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