Commit Graph

61 Commits (57ec2b3851d54151796aac9bdd063b792a50f4d4)

Author SHA1 Message Date
Michail Vourlakos 5e03174b7c context:use restore() provided function
containment() is not accessible during the containment
actions constructor. We now use the provided ::restore()
function in order to load the actions

BUG:441448
3 years ago
Michail Vourlakos a7e8cf4542 context:add actions in context menu dynamically 4 years ago
Michail Vourlakos 5b0a507be2 contextmenu:update visibility for hash actions 4 years ago
Michail Vourlakos 2c9b07ebe0 context:define for all actions default visibility 4 years ago
Michail Vourlakos 54ba404d5b context:MoveView action in hash 4 years ago
Michail Vourlakos 6c10be18a3 context:SwitchLayouts action in hash 4 years ago
Michail Vourlakos 7314f40e93 context:AddView action in hash 4 years ago
Michail Vourlakos ed2d29373c context:Quit Latte action in hash 4 years ago
Michail Vourlakos d792812102 context:Remove View in hash 4 years ago
Michail Vourlakos 79ef06c774 context:Print Action in hash 4 years ago
Michail Vourlakos eeafa17f17 context:Preferences action in hash 4 years ago
Michail Vourlakos a4cc972a3c context:ExportViewTemplate in hash 4 years ago
Michail Vourlakos fb554b82c5 context:DuplicateView in hash 4 years ago
Michail Vourlakos 199272e2cf context:EditView action in hash 4 years ago
Michail Vourlakos dce9e7e64a context:addwidgets in hash 4 years ago
Michail Vourlakos b85ce9e415 context:add separator action in hash 4 years ago
Michail Vourlakos f26b59f248 contextmenu:add section action in hash 4 years ago
Michail Vourlakos cb91c1b788 contextactions:provide QHash to organize them 4 years ago
Michail Vourlakos ab806445ac contaimentactions:update to use contextmenudata 4 years ago
Michail Vourlakos 761c7f34d2 contaimentactions:share contextmenudata class 4 years ago
Alexander Lohnau 505379ed04 Use spdx syntax for all files 4 years ago
Ömer Fadıl Usta 03e9c6c954 Reorder inits to Fix wrong initialize problem and fixes for string compares 4 years ago
Michail Vourlakos 69ec3d937f contextmenu:provide icons for moveToLayout options 4 years ago
Michail Vourlakos 88f72bcc3b contextmenu:draw layout icons
--change also layout actions to radiobuttons
4 years ago
Michail Vourlakos dc11db19d4 context menu:provide icon for edit layout 4 years ago
Michail Vourlakos 8e9de84e01 contextmenu:expose layouts icon data 4 years ago
Michail Vourlakos 06f90877d5 rephrase menu to Edit Layouts... 4 years ago
Michail Vourlakos 765fd490c3 move Duplicate Dock in Add... menus
BUG:433688
4 years ago
Michail Vourlakos fe5d2d7a63 context menu:provide Add view through templates 4 years ago
Michail Vourlakos 5f6c0df50c free some dynamic created actions on destruction 4 years ago
Michail Vourlakos 631f4a9d6e provide moveView through context menu
--the user can now user the ContextMenu in order
to move a view between different active layouts
4 years ago
Michail Vourlakos 7f64126d5f improve and simplify context menu data 4 years ago
Michail Vourlakos 56b142eca0 same way everywhere to expose containmentActions
--tasks applet is now using a generic way to show
Latte containmentActions for its context menu and
this can be easily reused by any other applet that
creates its own ContextMenu
4 years ago
Michail Vourlakos 5fa77e05eb contextmenu:add export as template 4 years ago
Michail Vourlakos 965644ce2c add duplicate view in context menu 4 years ago
Michail Vourlakos f39e46fd68 hide settings window InMenu for inMultipleMode
--inMultipleMode only Plasma Activities Explorer can
enable/disable layouts
4 years ago
Michail Vourlakos 41fe38c19d contextmenu:improve how layout shown inmultiple 4 years ago
Michail Vourlakos b1de2a3905 contextmenu:hide inactive layouts at MultipleMode 4 years ago
Michail Vourlakos be2ec0a7af parent layouts in context menu properly
--there is a chance that this fixes also a memory leak
4 years ago
Michail Vourlakos 87ae24dae1 add myView.action() to reach view actions
-this way things are more clear how the actions
are applied and reordered
4 years ago
Michail Vourlakos a44c5fa821 provide remove dock action in context menu 4 years ago
Michail Vourlakos 84d4d4cef7 provide latte internal widget explorer 4 years ago
Michail Vourlakos 7393ac02eb drop currentLayoutName as signal from synchronizer 4 years ago
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
5 years ago
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
5 years ago
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
5 years ago
Tranter Madi c893ab3d22 Improve Contextmenu
Summary:
- Display Dock Settings/Panel Settings instead of View Settings
- Hide View Settings when configuring
- Create `Alt+A`, `Alt+S`, `Alt+L` shortcuts for actions.

Reviewers: #latte_dock, mvourlakos

Reviewed By: #latte_dock, mvourlakos

Subscribers: mvourlakos, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18976
6 years ago
Michail Vourlakos d2ea33e236 sniff latte view id through contextData
--the menu is sending the containment id to
Latte::Corona and afterwards calls for the menu
data. These data now are including also the view
type, memory usage, active layout name and of
course the full layouts list shown to menu.
This is improvement from D18918.
6 years ago
Michail Vourlakos a375902442 support to send the viewType through dbus 6 years ago
Michail Vourlakos 6a235244b3 update translation string 6 years ago