-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsm3_config.h
98 lines (79 loc) · 2.14 KB
/
sm3_config.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//! \file sm_config.h
#ifndef SMCONFIG_H
#define SMCONFIG_H
#include "sm3_widgets.h"
#include "sm3_font.h"
#include "sm3_color.h"
#include "sm3_temps.h"
#include "version.h"
#include "sysmon3.h"
//! \brief Provide the top level window for user configuration
/*! \class SM_Config
This class provides the top level window for user configuration.
It allows customization of the user's display instance.
It also provides pushbuttons for access to widgets to configure
desired temperature items and the user's font and color preferences.
*/
class SM_Config : public QFrame
{
Q_OBJECT
public:
SM_Config( SM_Settings* , QString, QRect );
~SM_Config() {};
private:
SM_Settings* settingsPtr;
QString data;
SM_Widgets* widgetsPtr;
QRect parentGeom;
QLabel* version;
QLabel* lbl_refresh;
QLabel* lbl_font;
QLabel* lbl_color;
QLabel* lbl_temps;
QPushButton* pb_font;
QPushButton* pb_color;
QPushButton* pb_temps;
QPushButton* pb_exit;
// Help pushbuttons
QPushButton* PBrefresh;
QPushButton* PBtime;
QPushButton* PBdate;
QPushButton* PBuptime;
QPushButton* PBcpu;
QPushButton* PBmemory;
QPushButton* pb_apply;
QCheckBox* CBtime;
QCheckBox* CBdate;
QCheckBox* CBuptime;
QCheckBox* CBcpu;
QCheckBox* CBcpuBar;
QCheckBox* CBmemory;
QSpinBox* SBrefresh;
QLineEdit* LEtime;
QLineEdit* LEdate;
void update_local( void );
void msg_box ( QString*, int );
QString bool2string ( bool );
QStringList sensors; // <Interface,Device>
private slots:
void update_font ( void );
void update_colors( void );
void update_temps ( void );
void refresh_help ( void );
void time_help ( void );
void date_help ( void );
void uptime_help ( void );
void cpu_help ( void );
void memory_help ( void );
public slots:
void sendFonts();
void sendColors();
void sendTemps();
void apply();
signals:
void updateFonts ( void );
void updateColors ( void );
void updateTemps ( void );
void updateEntries ( void );
};
#endif