Commit Graph

134 Commits (3122103f6ca7c13473f2274ecfa78e1c7ee56b34)

Author SHA1 Message Date
Michail Vourlakos 3122103f6c save column widths properly in settings window
Michail Vourlakos 1e855f2472 dont crash when saving a new layout
Michail Vourlakos d418abbeb4 remove deprecated code from settings dialog
Michail Vourlakos 45e3531ad3 move logic out of settings dialog
--layouts controller in settings window
should take ownership for all logic
related to layouts model/view
Michail Vourlakos 01bb785999 rename editedName to currentName for layout data
--improve semantics for layout data in settings
window
Michail Vourlakos 4437472fa9 simplify shares map create/sync in settings window
Michail Vourlakos 4de91c535c remove deprecated code
Michail Vourlakos e29b5a3e38 update layout removing in settings window
Michail Vourlakos 60d24144b5 update layouts settings data classes
Michail Vourlakos 264b2b7568 remove deprecated settings window functions
Michail Vourlakos 828bacce33 update share_id automatic when layout_id changed
Michail Vourlakos c6e8f6f032 introduce layouts controller for MVC approach
--the new controller will take all functionality
from Layouts model that is currently found in settings
window and that way the settings window will be
simplified and is going to be responsible only for
the UI elements of the window and NOT the QTableView
internals
Michail Vourlakos 2db252b769 fix warnings
Michail Vourlakos 154000345d fix some warnings for shareddelegate
Michail Vourlakos aa4a6061cd improve semantics for settings
Michail Vourlakos 9a104340bb simplify code for background cmbbox
Michail Vourlakos c39a50f253 rename colorscmb to backgroundcmb
--improve delegate name
Michail Vourlakos 5f3007ed93 simplify colors combobox in layouts editor
Michail Vourlakos 49e203de86 fixes for shared column delegate behavior
Michail Vourlakos 46e44606bc update editor shared delegate to new model
Michail Vourlakos 44c1abcf73 update settings activities delegate
--drop totally deprecated activities delegate
code
Michail Vourlakos d4ed1aa609 update settings Activites delegate
Michail Vourlakos 6e66907957 update settings Layout name delegate
Michail Vourlakos e5baecfb9f visual for layout name was edited
Michail Vourlakos a9bc5aa19f introduce original/edited Named in layout data
Michail Vourlakos 4428d4b083 support setData function for layouts model
--initial support for this
Michail Vourlakos 4874b254dd fix sharedcolumn and introduce some editable items
Michail Vourlakos bab5564d0a remove deprecated settings window code
Michail Vourlakos 70c8841646 update layouts headers
Michail Vourlakos b55447764a update layouts checkdelegates for new model
Michail Vourlakos 401a56a8a4 support loading in the new model
Michail Vourlakos 5e75b889e0 introduce initial LayoutsModel
Michail Vourlakos be4e088f5e use QList for layoutsdata
--add isActive flag for Data::Layout
Michail Vourlakos f81d535468 drop old originalLayoutNames list
Michail Vourlakos 09c599a2d7 update how layouts settings are stored in editor
Michail Vourlakos 7bb01f150a support new layouts data for settings
Michail Vourlakos 1ee24adbbd update "FreeActivities" during apply
Michail Vourlakos fca4db5962 support font style for FreeActivities record
Michail Vourlakos 5f7bcf565d remove old code for activities in settings window
--remove relevant deprecated code that is not needed
in the new implementation
Michail Vourlakos 43de9b509b update activities combobox implementation
--the new implementation will provide all Activites
and everything else will be updated automatically
--also a default option is introduced which describes
which layout will be used for the free layouts and
the user will be able to alter this easily
Michail Vourlakos 38d7ec5c2e prevent user from switching to shared layouts
Michail Vourlakos 5464018135 fix crashes and update share ids runtime in model
Michail Vourlakos ab09e56d56 dont close settings dialog with Enter key
Michail Vourlakos 57d1bf1f43 add quit application to contextmenu actions
--easier way for some to quit Latte by just
right clicking on the docks/panels

BUG:417486
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
Michail Vourlakos fdf798b49f add KDE official Help menu
--in that way Latte gains easily language
switching from user
--exposure of how/where to report bugs
Michail Vourlakos 0853d78101 remove QFontMetrics deprecated code
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
Michail Vourlakos a69f3013d8 search for Latte desktop file in more generic way
--there are distros that do not return /usr/share/applications
as their first global path for desktop files. It is better to not
just search for the "applications" path but rather the desktop
file also to make sure that we use the first one found.

BUG:412612
FIXED-IN:0.9.4
Michail Vourlakos 1a49238d57 track kwinrc file only on changes
--instead of reading the kwin values all the time
when needed from user actions we now read them
only on startup and when the kwinrc file was
updated/changed

BUG:411657
FIXED-IN:0.9.3