From b51101672a050deb996c18e58d5a3dd0a880b158 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 26 Jun 2015 17:25:33 -0400 Subject: Add a new PanelWidget to lumina-config. This allows the user to add more than 2 panels to each screen, and panels can be removed individually (not just the last one). --- lumina-config/mainUI.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'lumina-config/mainUI.h') diff --git a/lumina-config/mainUI.h b/lumina-config/mainUI.h index 47588a0c..04c6253c 100644 --- a/lumina-config/mainUI.h +++ b/lumina-config/mainUI.h @@ -36,6 +36,7 @@ #include "ColorDialog.h" #include "ThemeDialog.h" #include "GetPluginDialog.h" +#include "PanelWidget.h" //namespace for using the *.ui file namespace Ui{ @@ -48,6 +49,12 @@ public: MainUI(); ~MainUI(); + //Panels Page simplifications + QString getColorStyle(QString current, bool allowTransparency = true); + + //Get an application on the system + XDGDesktop getSysApp(bool allowreset = false); + private: Ui::MainUI *ui; //the *.ui file access QSettings *settings, *appsettings, *sessionsettings; @@ -61,6 +68,7 @@ private: bool loading, panadjust; bool moddesk, modpan, modmenu, modshort, moddef, modses; //page modified flags int panelnumber; + QList PANELS; //General purpose functions (not connected to buttons) void setupMenus(); //called during initialization @@ -68,13 +76,6 @@ private: int currentDesktop(); //the number for the current desktop - //Panels Page simplifications - QString getColorStyle(QString current, bool allowTransparency = true); - //QString getNewPanelPlugin(); - - //Get an application on the system - XDGDesktop getSysApp(bool allowreset = false); - //Convert to/from fluxbox keyboard shortcuts QString dispToFluxKeys(QString); QString fluxToDispKeys(QString); @@ -110,7 +111,12 @@ private slots: //Panels Page void panelValChanged(); - void addpanel1(); + void newPanel(); + void removePanel(int); //connected to a signal from the panel widget + void loadPanels(); + void savePanels(); + + /*void addpanel1(); void addpanel2(); void rmpanel1(); void rmpanel2(); @@ -128,7 +134,7 @@ private slots: void uppanel1plugin(); void uppanel2plugin(); void dnpanel1plugin(); - void dnpanel2plugin(); + void dnpanel2plugin();*/ //Menu Page/Tab void addmenuplugin(); -- cgit