diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-02 09:43:19 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-02 09:43:19 -0500 |
commit | 33681a12eb754af6f057e8a6984db4af18dc010b (patch) | |
tree | 708a16ed1ce3ee80ac6cf1e61c77ccc9ac569b12 /src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h | |
parent | Update the help text for lumina-open to include the "-action <ActionID>" synt... (diff) | |
download | lumina-33681a12eb754af6f057e8a6984db4af18dc010b.tar.gz lumina-33681a12eb754af6f057e8a6984db4af18dc010b.tar.bz2 lumina-33681a12eb754af6f057e8a6984db4af18dc010b.zip |
Clean up some of the applauncher context menu functionality:
1) Add the ability for plugins to set their own high-priority context menu, and put the plugin modification menu into that as needed.
2) For the applauncher plugin, generate a custom context menu specifically for the file in question. This may include the various "actions" in .desktop files as appropriate, and also adds shortcuts for launch, open, open-with, file properties, and delete file.
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h')
-rw-r--r-- | src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h index a0f6a7cd..95fc9284 100644 --- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h +++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h @@ -1,6 +1,6 @@ //=========================================== // Lumina-DE source code -// Copyright (c) 2014, Ken Moore +// Copyright (c) 2014-2017, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== @@ -38,13 +38,18 @@ private: private slots: void loadButton(); - void buttonClicked(); + void buttonClicked(bool openwith = false); //void openContextMenu(); //void increaseIconSize(); //void decreaseIconSize(); //void deleteFile(); + void actionTriggered(QAction *act); + void openWith(); + void fileProperties(); + void fileDelete(); + public slots: void LocaleChange(){ loadButton(); //force reload |