OSDN Git Service

Ver0.21
[gefu/Gefu.git] / preferencedialog.h
1 #ifndef PREFERENCEDIALOG_H
2 #define PREFERENCEDIALOG_H
3
4 #include <QDialog>
5 #include <QLabel>
6 class Preferences;
7
8 namespace Ui {
9 class PreferenceDialog;
10 }
11
12 class PreferenceDialog : public QDialog
13 {
14     Q_OBJECT
15
16 public:
17     explicit PreferenceDialog(QWidget *parent = 0);
18     ~PreferenceDialog();
19
20 private:
21     Ui::PreferenceDialog *ui;
22
23     void    loadAppearance(Preferences &prefs);
24     void    saveAppearance(Preferences &prefs);
25     void    setFont(QLabel *label, const QFont &font);
26     void    setPalette(QWidget *w, QPalette::ColorRole role, const QColor &color);
27
28 private slots:
29     void    chooseColor();
30     void    chooseFont();
31     void    choosePath();
32     void    exportAppearance();
33     void    importAppearance();
34
35     // QDialog interface
36 public slots:
37     void accept();
38 };
39
40 #endif // PREFERENCEDIALOG_H