-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsm3_color.h
85 lines (66 loc) · 1.81 KB
/
sm3_color.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
//! \file sm_font.h
#ifndef SM_COLOR_H
#define SM_COLOR_H
#include <QColor>
#include <QColorDialog>
#include "sm3_widgets.h"
#include "sm3_config.h"
#include "sysmon3.h"
//! A class to allow the user to select a customized font.
class SM_Color : public QFrame
{
Q_OBJECT
public:
//*! \brief Construct the window for font selection
SM_Color( SM_Settings* );
//! \brief A null destructor.
~SM_Color() {};
signals:
void updateColors( void );
private:
SM_Settings* settingsPtr;
SM_Widgets* widgetsPtr;
QSettings* settings;
QString server;
QComboBox* cb_family;
QSpinBox* sb_size;
QCheckBox* ckbox_bold;
QGridLayout* ckbox_grid;
QHBoxLayout* stats_row;
QColor* lbl_color;
QColor* lbl_background;
QLabel* small;
QLabel* regular;
QLabel* regularBold;
QLabel* large;
QLabel* largeBold;
QLabel* title;
QLabel* lbl_family;
QLabel* lbl_size;
QLabel* sample_label;
QLabel* sample_data;
QProgressBar* sample_progress;
QPushButton* pb_label_color;
QPushButton* pb_label_background;
QPushButton* pb_data_color;
QPushButton* pb_data_background;
QPushButton* pb_progress_color;
QPushButton* pb_progress_background;
QPushButton* pb_apply;
QPushButton* pb_default;
//QPushButton* pb_help;
QPushButton* pb_exit;
void redraw( void );
private slots:
void label_color ( void );
void label_background ( void );
void data_color ( void );
void data_background ( void );
void progress_color ( void );
void progress_background( void );
void apply ( void );
//void help ( void );
void setDefault( void );
void update ( int );
};
#endif