1 //=========================================== 2 // Lumina-DE source code 3 // Copyright (c) 2015, Ken Moore 4 // Available under the 3-clause BSD license 5 // See the LICENSE file for full details 6 //=========================================== 7 #ifndef _LUMINA_CONFIG_PANEL_WIDGET_H 8 #define _LUMINA_CONFIG_PANEL_WIDGET_H 9 10 #include "globals.h" 11 12 #include "LPlugins.h" 13 14 //namespace for using the *.ui file 15 namespace Ui{ 16 class PanelWidget; 17 }; 18 19 class PanelWidget : public QWidget{ 20 Q_OBJECT 21 public: 22 PanelWidget(QWidget *parent, QWidget *Main, LPlugins *Pinfo); 23 ~PanelWidget(); 24 25 void LoadSettings(QSettings *settings, int Dnum, int Pnum); 26 void SaveSettings(QSettings *settings, QString screenID = ""); //save the current settings 27 28 int PanelNumber(); 29 void ChangePanelNumber(int newnum); 30 31 public slots: 32 void LoadIcons(); 33 34 private: 35 Ui::PanelWidget *ui; 36 QWidget *mainui; 37 LPlugins *PINFO; 38 39 int dnum, pnum; 40 41 void reloadColorSample(); 42 QString getSysApp(bool allowreset = false); 43 QString getColorStyle(QString current, bool allowTransparency = true); 44 private slots: 45 void on_tool_rm_clicked(); 46 void ItemChanged(); 47 void UseColorChanged(); 48 void on_tool_selectcolor_clicked(); 49 void on_tool_addplugin_clicked(); 50 void on_tool_remplugin_clicked(); 51 void on_tool_upplugin_clicked(); 52 void on_tool_downplugin_clicked(); 53 54 signals: 55 void PanelChanged(); 56 void PanelRemoved(int); 57 58 }; 59 60 #endif 61