aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/mainUI.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-06-26 17:25:33 -0400
committerKen Moore <ken@pcbsd.org>2015-06-26 17:25:33 -0400
commitb51101672a050deb996c18e58d5a3dd0a880b158 (patch)
tree68a06041718d63e45e128cfc7a29786e2d917e33 /lumina-config/mainUI.h
parentSome quick cleanup in the LSession.cpp file and update the port files (diff)
downloadlumina-b51101672a050deb996c18e58d5a3dd0a880b158.tar.gz
lumina-b51101672a050deb996c18e58d5a3dd0a880b158.tar.bz2
lumina-b51101672a050deb996c18e58d5a3dd0a880b158.zip
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).
Diffstat (limited to 'lumina-config/mainUI.h')
-rw-r--r--lumina-config/mainUI.h24
1 files changed, 15 insertions, 9 deletions
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<PanelWidget*> 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();
bgstack15