-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsm3_font.h
64 lines (50 loc) · 1.26 KB
/
sm3_font.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
//! \file sm_font.h
#ifndef SM_FONT_H
#define SM_FONT_H
#include "sm3_widgets.h"
#include "sm3_config.h"
#include "sysmon3.h"
//! Define the height of widgets in pixels.
#define BUTTON_H 26
//! A class to allow the user to select a customized font.
class SM_Font : public QFrame
{
Q_OBJECT
public:
//*! \brief Construct the window for font selection
SM_Font( SM_Settings* );
//! \brief A null destructor.
~SM_Font() {};
signals:
void updateFonts( void );
private:
SM_Widgets* widgetsPtr;
SM_Settings* settingsPtr;
QComboBox* cb_family;
QSpinBox* sb_size;
QCheckBox* ckbox_bold;
QGridLayout* ckbox_grid;
QHBoxLayout* stats_row;
QLabel* small;
QLabel* regular;
QLabel* regularBold;
QLabel* large;
QLabel* largeBold;
QLabel* title;
QLabel* lbl_family;
QLabel* lbl_size;
QLabel* samples;
QPushButton* pb_font;
QPushButton* pb_default;
//QPushButton* pb_help;
QPushButton* pb_exit;
QPushButton* pb_apply;
void redraw( void );
private slots:
void apply ( void );
//void help ( void );
void selectFont( void );
void setDefault( void );
void update ( int );
};
#endif