From 7cd34701d1678087dd2b5a407bbc40f733d7f212 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 23 Oct 2014 21:13:38 -0400 Subject: 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. --- lumina-desktop/LDesktop.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lumina-desktop/LDesktop.h') 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 #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 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 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(); -- cgit