1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-05 17:17:49 +03:00
Commit Graph

116 Commits

Author SHA1 Message Date
Michail Vourlakos
3de29ece9b drop subContaiment functions from genericlayout
--responsibility is now at Layouts::Storage singleton
class
2020-08-19 17:10:00 +03:00
Michail Vourlakos
ac2a4cffc6 support different subcontainments types
--create an abstract implementation for subcontainments
such as systrays and group applet in order to use
the same infrastructure for all storage operations
such as Multiple Layouts loading, copying views,
providing important information etc.

BUG:418642
2020-08-19 16:59:07 +03:00
Michail Vourlakos
d4bed3881b drop layout::storage totally
--use only the all new layouts::storage
singleton class for all layout storage
operations
2020-08-18 03:13:05 +03:00
Michail Vourlakos
d3c1f4d1a8 layouts::storage,move copyView() function 2020-08-18 02:56:33 +03:00
Michail Vourlakos
53a0cb6574 layouts::storage, move syncToLayoutFile() code 2020-08-18 02:23:34 +03:00
Michail Vourlakos
d97be6744d layouts::storage, move isBroken() function 2020-08-18 02:15:28 +03:00
Michail Vourlakos
9a1346d04a layouts::storage support importToCorona() 2020-08-18 01:56:11 +03:00
Michail Vourlakos
2fd9d6cbfd layout::storage move private functionality
--move private functionality to singleto class
2020-08-18 01:44:10 +03:00
Michail Vourlakos
d97fe4c59c provide a new Layouts::Storage singleton
--this class will be the replacement for layout::storage
and will be responsible for any containment actions for
all layouts either loaded or offloaded. Through this
refactor loading and checking CentralLayouts should become
lighter and also memory efficient
2020-08-18 01:23:41 +03:00
Michail Vourlakos
7ef74d2096 sync settings before exporting 2020-08-14 10:52:13 +03:00
Michail Vourlakos
7c238589ba improve name style and layouts path references
--use Importer in order to reference layouts directory
in user space and improve also naming for relevant
Importer functions
2020-08-14 09:33:39 +03:00
Michail Vourlakos
8c1d0d34e5 rename internal containments to subcontainments
--applets that act as internal containments are now called
subcontainments because they are containments inside
main containments
2020-08-02 01:22:25 +03:00
Michail Vourlakos
0286966cab use properly default custom background values 2020-07-30 18:09:49 +03:00
Martijn Vogelaar
2e4f7da4c2 Introduction and implementation of the SidebarAutohide
as discussed in #19.
2020-07-28 15:49:55 +00:00
Michail Vourlakos
383d762f11 Introduce storage TMP directory for layouts
--all storage functions are now taking place into
the same Latte TMP directory that is introduced
for layouts. So no more .bak files are needed from
~/.config folder.
2020-07-26 13:13:40 +03:00
Michail Vourlakos
cb368c504d drop old Tasks identification code paths 2020-05-18 20:02:30 +03:00
Michail Vourlakos
46760a04de cycle properly config views with Meta+A 2020-05-16 17:06:19 +03:00
Michail Vourlakos
9be7822b98 upgrade to LatteApp.Interfaces containment access 2020-05-02 13:23:37 +03:00
Michail Vourlakos
97e7c428b7 rename Ability.Container to Metrics
--major change but improves readability a lot
2020-04-27 21:21:44 +03:00
Michail Vourlakos
2526ab7e17 rename to MemoryUsage::LayoutsMemory
--easier to read in the code as that type
provides:
MemoryUsage::SingleLayout
MemoryUsage::MultipleLayouts
2020-04-24 12:31:03 +03:00
Michail Vourlakos
a613bb49ba small improvements 2020-03-24 20:29:10 +02:00
Michail Vourlakos
90d1cedc1e fix context menu for applet if group plasmoid
--the new code can understand ALL applets that are
inside an internal containment style applets such
as plasma, nomad systrays and group plasmoid

FIXED-IN:0.9.10
2020-03-24 20:08:27 +02:00
Michail Vourlakos
df844ed171 drop double reference in corona 2020-03-18 17:39:19 +02:00
Michail Vourlakos
ba94546cb4 multiple fixes for single layout case 2020-03-16 19:41:18 +02:00
Michail Vourlakos
2db252b769 fix warnings 2020-03-14 14:41:07 +02:00
Michail Vourlakos
d3a07b5371 improvements for multips views and sidebars 2020-03-07 21:24:06 +02:00
Michail Vourlakos
0b2be421eb IMPORTANT:Multiple docks/panels in same edge
--Latte can now support multiple Views in the same screen
edge. Views as separated in THREE Layers of priorities.
1. Views from Shared Layouts have highest priority and they
are first to occupy a screen edge
2. Views that are set OnPrimary screen occupy a screen edge only
if there is NO other View from a Shared Layout applied already
3. Views that are Explicit to specific screens occupy a screen
edge only if there is NO PRIMARY view already loaded
2020-03-07 18:30:22 +02:00
Michail Vourlakos
90df4f4f61 support new visibility mode for SideBars
--SideBar views are shown/hide ONLY WHEN the
user has requested to DO SHOW from external
applets, shortcuts and scripts
2020-03-01 18:20:23 +02:00
Michail Vourlakos
ccbf2c88fd crash fix:from unloading views
--when as Always Visible view was unloaded from
a CentralLayout because its Activity was closing
it was creating a crash. This patch fixes the
situation by releasing sensitive view signals
earlier.
2019-12-27 19:14:31 +02:00
Michail Vourlakos
f93bec8893 fixes for WindowsCanCover
--show immediately when view contains mouse
--hide only if view does not contain mouse
--never apply ByPassWM hint for WindowsCanCover
2019-12-27 14:20:31 +02:00
Michail Vourlakos
61016444fb dont crash when changing layouts
--occasionaly when the user was switching
layouts it could get some crashes. It looks
safer to unload first the Latte::Views objects
and their corresponding containments afterwards.
I tried in my system to switch multiple layouts
in plenty different configurations and I could
not get a crash. This patch should fix the
mentioned crash report if that was the root
of the issue.

BUG:412864
FIXED-IN:0.9.5
2019-11-13 16:24:05 +02:00
Michail Vourlakos
8fe5f8f843 add report error message for unknown screens 2019-07-23 11:19:48 +03:00
Michail Vourlakos
10939d410c Views Report Information for inactive layouts 2019-07-15 00:05:10 +03:00
Michail Vourlakos
3412b13148 present Views data for Active layout 2019-07-15 00:05:10 +03:00
Michail Vourlakos
7954a3ac39 improve Screens Report
--the new report identifies for all your layouts
when a screen has not been assigned any docks/panels.
That can help user to clean up the ScreensConnectors
if wants to
2019-07-14 13:59:02 +03:00
Michail Vourlakos
eb0c52c52b improve settings windows shown trigerring behavior
--when the user uses Meta+A to cycle between the Views
configuration windows then in such case when NO Config
window is shown the LAST ONE USED should be shown again.
IF a Config View is already shown then the NEXT should
be shown afterwards
2019-07-10 17:10:31 +03:00
Michail Vourlakos
ba6460e919 update indicators runtime
--fixes to signals in ViewParts in order to avoid
crashes. Currently the recreateView approach is used
in order to reload indicators runtime dynamically.
The "View::setSource" approach does not reload the
indicators properly
2019-06-20 17:42:49 +03:00
Michail Vourlakos
85e49d41bf improve view recreation code 2019-06-20 11:21:12 +03:00
Michail Vourlakos
b71baccc14 fix screenForContainment in MulitpleShared mode 2019-06-15 21:38:07 +03:00
Michail Vourlakos
61e9e629c5 rename some global shortcuts texts
--protect also the Layout::lastConfigViewFor,
dont sent a view that is no longer available
2019-05-25 18:05:24 +03:00
Michail Vourlakos
96b86f4c49 remember lastConfigViewFor for shared layouts 2019-05-25 17:49:02 +03:00
Michail Vourlakos
7cd3b6201d remember the last created ConfigView per layout 2019-05-25 17:40:29 +03:00
Michail Vourlakos
e13793df38 identify screen id at startup for primary screens 2019-05-12 01:36:00 +03:00
Michail Vourlakos
c653bbe14b send view edge changed signal when copying views 2019-05-12 01:18:18 +03:00
Michail Vourlakos
a661fbb032 refactor:drop LAYOUTSMANAGER apis moved to SYNCHER 2019-05-11 09:51:47 +03:00
Michail Vourlakos
24e25944db Shared Views have highest priority
--Shared views can be positioned to all free edges
including those occupied by Central layouts and the
Central layouts update their views accordingly
2019-05-10 00:00:47 +03:00
Michail Vourlakos
c6cd3f4685 move layout connections in the view
--any view and view::containment() signals that
are related to layout are now moved in the
View::setLayout() in order to be reinitialized
properly when the view changes to another
layout
2019-05-09 23:45:52 +03:00
Michail Vourlakos
8c3d658a0d refactor:move Importer to "layouts" folder 2019-05-09 17:57:12 +03:00
Michail Vourlakos
a27ff3ec48 REFACTOR:Update LayoutManager to Layouts::Manager
--create "layouts" own directory in order to host
all LAYOUTS management/control code and classes
2019-05-09 17:12:57 +03:00
Michail Vourlakos
29157f4636 refactor:rename managedLayout to layout/viewLayout 2019-05-09 00:13:17 +03:00
Michail Vourlakos
78d212ce8e SharedLayouts saving their settings from Layouts 2019-05-08 21:48:35 +03:00
Michail Vourlakos
f2eb0b6b3a REFACTOR:DONT load MultipleLayouts in Central(s)
--no reason to load Mutiple layouts linked file
as a Pseudo Central layout. This way no needed
checks can be removed and things are still working
as before.
2019-05-08 21:48:34 +03:00
Michail Vourlakos
e417a8d4ba add type() to layouts 2019-05-02 12:58:56 +03:00
Michail Vourlakos
cf0f22b44d fix crash,protect connector() calls
--connector calls must be done only when we
are sure that a screen id has already been
assigned

BUG: 407128
2019-05-01 18:52:03 +03:00
Michail Vourlakos
1c6ddcad10 Improve addView for ActiveLayouts
--take into account the TopLayout views before
adding a new View either on startup loading
or when the user adds it
2019-04-09 21:01:50 +03:00
Michail Vourlakos
6620cf54bd plenty fixes updates for MultipleTopLayouts 2019-04-09 21:01:50 +03:00
Michail Vourlakos
70640ae2e5 override functions for Active and TopLayouts 2019-04-09 21:01:50 +03:00
Michail Vourlakos
385b0e0b20 update struts properly for TopLayouts 2019-04-09 21:01:50 +03:00
Michail Vourlakos
bdca8f58e8 simplify GenericLayout::latteViews call 2019-04-09 21:01:50 +03:00
Michail Vourlakos
dc9553b3ca fix crashes from loading/unloading layouts 2019-04-09 21:01:50 +03:00
Michail Vourlakos
9236f18c4e add TopLayout and use combined with ActiveLayout 2019-04-09 21:01:49 +03:00
Michail Vourlakos
1ec19d6627 update syncLatteViewsToScreens
--update function to use new validViewsMap() function
in order to identify which views must be presented
and where. The validViewsMap function can be used also
from subclasses in order to indetify the Layout occupied
edges without applying the final map state to actual
views.
2019-04-09 21:01:49 +03:00
Michail Vourlakos
861fced797 REFACTOR:move storaging to own class
--GenericLayout moves out all the storaging
mechanism to its dedicated Layout::Storage
class
2019-04-06 19:08:35 +03:00
Michail Vourlakos
bbddfd3d48 REFACTOR:move code from Active to GeneralLayout
--huge refactor in order to split the logic of the
Layout file. One of small steps in order to end at
the following logic:
AbstractLayout->GeneralLayout->InterfacedLayout

InterfacedLayout->NormalLayout
InterfacedLayout->OnTopLayout

PresentedLayout, that will contain references for
one ActiveLayout and one OnTopLayout and will
act as a class to provide useful information to
layoutManager and all other classes that want
to work with Views.

GeneralLayout will gain a storage object
for all STORAGE properties that require
a CORONA to work
2019-04-06 13:55:17 +03:00
Michail Vourlakos
89b86a3c12 REFACTOR:move code from ActiveLayout to Abstract 2019-04-06 13:55:17 +03:00
Michail Vourlakos
7d0905e379 refactor: rename Layout to ActiveLayout
--first steps to abstract the Layout code in
different classes
2019-04-06 13:55:17 +03:00