aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-23 21:13:38 -0400
committerKen Moore <ken@pcbsd.org>2014-10-23 21:13:38 -0400
commit7cd34701d1678087dd2b5a407bbc40f733d7f212 (patch)
tree2636e04cf2ee69d5bc7b8a21dc24d3e4f25de0ff /lumina-desktop/LDesktop.h
parentAdd the auto-hide ability for the Lumina panels (and add a configuration opti... (diff)
downloadlumina-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.h11
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();
bgstack15