diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-23 21:13:38 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-23 21:13:38 -0400 |
commit | 7cd34701d1678087dd2b5a407bbc40f733d7f212 (patch) | |
tree | 2636e04cf2ee69d5bc7b8a21dc24d3e4f25de0ff /lumina-desktop/LDesktop.h | |
parent | Add the auto-hide ability for the Lumina panels (and add a configuration opti... (diff) | |
download | lumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.tar.gz lumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.tar.bz2 lumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.zip |
Add a new menu plugin:
The "Window List" will show a menu of all the current windows, and activate the one that the user clicks on.
Diffstat (limited to 'lumina-desktop/LDesktop.h')
-rw-r--r-- | lumina-desktop/LDesktop.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lumina-desktop/LDesktop.h b/lumina-desktop/LDesktop.h index 503a820f..4843808d 100644 --- a/lumina-desktop/LDesktop.h +++ b/lumina-desktop/LDesktop.h @@ -25,7 +25,7 @@ #include <LuminaXDG.h> #include "LPanel.h" -#include "Globals.h" +//#include "Globals.h" #include "AppMenu.h" #include "desktop-plugins/LDPlugin.h" #include "desktop-plugins/LDPluginContainer.h" @@ -54,12 +54,12 @@ private: QString DPREFIX; int desktopnumber; //int xoffset; - bool defaultdesktop, desktoplocked, changingsettings, issyncing; + bool defaultdesktop, desktoplocked, changingsettings, issyncing, usewinmenu; QList<LPanel*> PANELS; QMdiArea *bgDesktop; //desktop widget area QWidget *bgWindow; //full screen background - QMenu *deskMenu; - AppMenu *appmenu; + QMenu *deskMenu, *winMenu; + //AppMenu *appmenu; QLabel *workspacelabel; QWidgetAction *wkspaceact; QList<LDPlugin*> PLUGINS; @@ -71,11 +71,14 @@ private: private slots: void SettingsChanged(); void UnlockSettings(){ issyncing=false; } + //Menu functions void UpdateMenu(bool fast = false); void ShowMenu(){ UpdateMenu(true); //run the fast version deskMenu->popup(QCursor::pos()); } + void UpdateWinMenu(); + void winClicked(QAction*); //Desktop plugin system functions void UpdateDesktop(); |