OSDN Git Service

Ver0.03
[gefu/Gefu.git] / preferencedialog.h
1 #ifndef PREFERENCEDIALOG_H
2 #define PREFERENCEDIALOG_H
3
4 #include "colorsamplemodel.h"
5
6 #include <QDialog>
7 #include <QAbstractTableModel>
8
9 namespace Ui {
10 class PreferenceDialog;
11 }
12
13 class PreferenceDialog : public QDialog
14 {
15     Q_OBJECT
16
17 public:
18     explicit PreferenceDialog(QWidget *parent = 0);
19     ~PreferenceDialog();
20
21 private:
22     Ui::PreferenceDialog *ui;
23     ColorSampleModel m_model;
24     ColorMap m_colorMap;
25
26 private slots:
27     void changeFont();
28     void setControlsEnabled(bool enabled);
29     void selectBoxColor();
30     void selectViewColor();
31
32     // QDialog interface
33 public slots:
34     void accept();
35 };
36
37 #endif // PREFERENCEDIALOG_H