1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-15 03:24:49 +03:00

58 Commits

Author SHA1 Message Date
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
46292bf7e5 layouts::storage,provide subcontainment identities
--a generic way to identify subcontainments such as
systrays, group applets etc...
2020-08-19 15:14:46 +03:00
Michail Vourlakos
ab2f416176 layouts::storage,functions for subcontainments 2020-08-19 15:01:45 +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
5876548a7d drop deprecated importing layout presets 2020-08-14 09:57:39 +03:00
Michail Vourlakos
6dd3d96bfb update MultipleLayoutsHidden file importing 2020-08-14 09:41:23 +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
5ed3f111e3 update Layout::MULTIPLELAYOUTSHIDDENNAME
which is used to identify multiple layouts hidden
base layout
2020-08-14 09:08:01 +03:00
Michail Vourlakos
ba178e534d add missing signals when adding new layout 2020-08-13 22:23:59 +03:00
Michail Vourlakos
50c419d4e4 upgrade importDefaultLayout codepaths
--use Templates::Manger in order to import
default layout on startup
2020-08-13 21:28:52 +03:00
Michail Vourlakos
15dc6f5eac move newLayout from layoutsmanager to templates 2020-08-13 20:42:38 +03:00
Michail Vourlakos
19c96df252 update Layout::Manager::newLayout() function
--drop its presets support and update to all new
Layout Templates manager
2020-08-12 14:03:38 +03:00
Michail Vourlakos
edf06edeba drop Layouts::Manager::presetsPaths 2020-08-12 13:51:28 +03:00
Michail Vourlakos
6e2d8143e5 improve Default Layout Template name is accessed 2020-08-12 12:59:55 +03:00
Michail Vourlakos
9092e54fc0 enable Multiple Layouts mode in wayland
--enable multiple layouts mode partially and
try to provide at least one central layout
combined with a shared layout
2020-08-03 18:13:37 +03:00
Michail Vourlakos
dec2860d5f synchronizer:improve freeactivities layout semantic 2020-08-03 17:42:06 +03:00
Michail Vourlakos
fed3194ca9 multiple:unload central layouts after the additions
--this way a shared layout that unloads its only central
layout is not unloaded at all if a new central layout exists
with it
2020-08-03 17:30:13 +03:00
Michail Vourlakos
0bcc45e633 use KWin slideouts when switching layouts 2020-08-03 00:29:59 +03: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
ac996f1721 fixes for View:layout activities windows updates 2020-07-12 15:33:40 +03:00
Michail Vourlakos
381675ac57 reduce kconfig.sync() calls
--improves startup times in some cases because
it does not write to disk that often.
2020-05-12 02:16:08 +03:00
Michail Vourlakos
63187ce5b4 remove Latte library as requirement
--implement things simpler by using the same
CoreTypes header file both for LatteCore.Types
import statement and App c++ implementation.
Let's leave in the future to decide if
a LibLatte is really necessary.
2020-04-24 14:52:16 +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
6e4779e6ab require new official Latte library 2020-04-22 21:10:17 +03:00
Michail Vourlakos
ac3ccb5b98 try to support a public liblatte library 2020-04-22 14:09:42 +03:00
Michail Vourlakos
e525596a04 refactor:split Latte Types to Tasks and Types
--move also irrelevant types to their owner. For
example LayoutsPage is moved to Settings::Dialog
namespace
2020-04-18 16:58:00 +03:00
Michail Vourlakos
5073939335 REFACTOR:split up and refactor liblatte2 and types
--use a more logical organization for types. LibLatte2
is split to become LatteCore library and Latte types
are now moved to application level. The Latte Types will
be split even more... Tasks-Only related types will
become Latte.Tasks types

BUG:420210
2020-04-18 13:39:45 +03:00
Michail Vourlakos
6bc4409b0b move settings dialogs in their own directory 2020-03-26 20:04:44 +02:00
Michail Vourlakos
0ff8f2b74f force plasmageometries updates for activitieschange 2020-03-21 12:10:19 +02:00
Michail Vourlakos
22a9416583 fixes for assigned layouts handling 2020-03-16 21:03:14 +02:00
Michail Vourlakos
ba94546cb4 multiple fixes for single layout case 2020-03-16 19:41:18 +02:00
Michail Vourlakos
748ca87bb8 simplify code for switch button-single layout 2020-03-16 18:17:17 +02:00
Michail Vourlakos
94e5a04de2 make copy layout function proxy aware 2020-03-16 12:59:50 +02:00
Michail Vourlakos
00e6fbba5b update synchronizer semantics to freeactivities 2020-03-16 11:02:17 +02:00
Michail Vourlakos
2db252b769 fix warnings 2020-03-14 14:41:07 +02:00
Michail Vourlakos
d164f06354 fix wrong mis-assignment of Shared layouts
--when an active central layout was changing
from one shared layout to another the new
shared layout was not loaded properly
2020-03-08 00:44:06 +02:00
Michail Vourlakos
ad58783ae5 dont load orphaned-central layout when shared
--the orphaned-central layout should NOT be loaded
when it has already been loaded as SHARED layout for
other CENTRAL layouts in a MULTIPLE LAYOUTS environment

BUG:417886
FIXED-IN:0.9.9
2020-02-23 10:29:26 +02:00
Michail Vourlakos
af712c6ac4 IMPORTANT:fix first run initialization
--dont mess the old migrating process during startup
with a new user that uses Latte for first time. This
is a very important step during startup otherwise the
entire Latte experiences instability.

BUG:417886
FIXED-IN:0.9.9
2020-02-23 10:29:26 +02:00
Tranter Madi
fe5dbf9f2b Improve context menu
Summary:
- Add `Configure Latte Global Settings...` because it's too hidden in Layout > Configure and does not relate to the Layout menu.
- Insert a new `Separator` to separate between Global settings and View settings (see screenshot)
- Rename `Panel/Dock Settings` to `Edit Panel/Dock` (Verb + Noun)
- Rename `Layout > Configure...` to `Layout > Manage Layouts` (Verb + Noun)

Menu Items Order:

   a.  -separator-
   b. Layouts->
   c. Configure Application...
   e.  -separator-
   f. Add Widgets...
   g. Edit Dock...
   h.  -separator- [only for Tasks plasmoid]
   i.  Close... [only for Tasks plasmoid]

BUG: 415584

Test Plan:
Before:
{F7844554}

After:
a. context menu of applets
{F7845184}
b. context menu of a task that hasn't/has one window shown
{F7844944}
{F7845185}
c. context menu of Latte Tasks plasmoid when used on the desktop
{F7845186}
{F7845187}

Reviewers: #latte_dock, #vdg, mvourlakos

Reviewed By: #latte_dock, mvourlakos

Subscribers: ngraham, ndavis, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26238
2019-12-27 23:41:23 +07: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
Yuri Chornoivan
3a60d6f3b2 Fix minor EBN issues 2019-08-18 19:59:09 +03:00
Michail Vourlakos
cea1155685 fix Importer::standardPath behavior 2019-07-22 09:49:04 +03:00
Michail Vourlakos
a5ce2f97c6 support Importer::standardPathsFor 2019-06-17 16:29:05 +03:00
Michail Vourlakos
b71baccc14 fix screenForContainment in MulitpleShared mode 2019-06-15 21:38:07 +03:00