MyBooks
dlgprefs.hpp
Go to the documentation of this file.
1 #ifndef DLGPREFS_HPP
2 #define DLGPREFS_HPP
3 
4 #include <QObject>
5 #include <QDialog>
6 #include <QEvent>
7 #include <QWidget>
8 
9 #include "ui_dlgprefs.h"
10 
11 QT_BEGIN_NAMESPACE
12 namespace Ui {
13 class DlgPrefs;
14 }
15 QT_END_NAMESPACE
16 
23 class DlgPrefs : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  explicit DlgPrefs(QWidget *parent = 0);
29  ~DlgPrefs();
30 
31 protected:
32  void changeEvent(QEvent *e);
33 
34 private slots:
35  void slotSave();
36  void slotColorAChgR(int val);
37  void slotColorAChgG(int val);
38  void slotColorAChgB(int val);
39  void slotColorAChgA(int val);
40  void slotColorBChgR(int val);
41  void slotColorBChgG(int val);
42  void slotColorBChgB(int val);
43  void slotColorBChgA(int val);
44  void slotSelColorA();
45  void slotSelColorB();
46  void slotSelRTitleFont();
47  void slotSelRSecFont();
48  void slotSelRDetailFont();
49 
50 private:
51  class PrefsPrivate;
52  PrefsPrivate *d;
53 
54  Ui::DlgPrefs *ui;
55 
56  void getSettingsFromForm();
57  void displaySettings();
58  void readSettings();
59  void saveSettings();
60 };
61 
62 #endif // DLGPREFS_HPP
Definition: reportpreview.h:30
Preference parameter maintenance.
Definition: dlgprefs.hpp:23
Definition: dlgprefs.cpp:14
PrefsPrivate * d
Definition: dlgprefs.hpp:51
Ui::DlgPrefs * ui
Definition: dlgprefs.hpp:54