From 33681a12eb754af6f057e8a6984db4af18dc010b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 2 Mar 2017 09:43:19 -0500 Subject: 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. --- .../desktop-plugins/applauncher/AppLauncherPlugin.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h') 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 -- cgit