-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionsPage.h
More file actions
76 lines (50 loc) · 1.23 KB
/
Copy pathOptionsPage.h
File metadata and controls
76 lines (50 loc) · 1.23 KB
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
#ifndef OPTIONSPAGE_H
#define OPTIONSPAGE_H
#include <QWidget>
#include <QSoundEffect>
class QLabel;
class QLineEdit;
class QSplider;
class QSpinBox;
class QCheckBox;
class QPushButton;
class QComboBox;
class QFontComboBox;
class QListWidget;
class QMediaPlayer;
class QOptionsPage : public QWidget
{
Q_OBJECT
public:
protected:
bool m_bModified;
bool m_bRelaunch;
QFontComboBox * m_pCmbUI_FontFamily;
QComboBox * m_pCmbUI_FontSize;
QListWidget * m_pListLocale;
QComboBox * m_pCmbReminder_RingSound;
QComboBox * m_pCmbReminder_RingInterval;
QSpinBox * m_pSpin_Reminder_ShockFactor;
QPushButton * m_pBtnReminder_RingSoundTest;
QSoundEffect m_xSoundReminder;
QFontComboBox * m_pCmbNote_FontFamily;
QComboBox * m_pCmbNote_FontSize;
QComboBox * m_pCmbNote_Foreground;
QComboBox * m_pCmbNote_Background;
QPushButton * m_pBtnSave;
QPushButton * m_pBtnDiscard;
public:
explicit QOptionsPage(QWidget* parent = 0);
bool isModified() const {return m_bModified;}
void saveChanges();
void discardChanges();
signals:
void optionsSaved();
protected slots:
void onTestRingSound();
void onOptionChanged();
void onRelaunchChanged();
void onSaveOptions();
void onDiscardOptions();
};
#endif // OPTIONSPAGE_H