OSDN Git Service

Ver0.21
[gefu/Gefu.git] / preferencedialog.h
index 867abaf..0f7ab9c 100644 (file)
@@ -1,10 +1,9 @@
 #ifndef PREFERENCEDIALOG_H
 #define PREFERENCEDIALOG_H
 
-#include "colorsamplemodel.h"
-
 #include <QDialog>
-#include <QAbstractTableModel>
+#include <QLabel>
+class Preferences;
 
 namespace Ui {
 class PreferenceDialog;
@@ -20,14 +19,18 @@ public:
 
 private:
     Ui::PreferenceDialog *ui;
-    ColorSampleModel m_model;
-    ColorMap m_colorMap;
+
+    void    loadAppearance(Preferences &prefs);
+    void    saveAppearance(Preferences &prefs);
+    void    setFont(QLabel *label, const QFont &font);
+    void    setPalette(QWidget *w, QPalette::ColorRole role, const QColor &color);
 
 private slots:
-    void changeFont();
-    void setControlsEnabled(bool enabled);
-    void selectBoxColor();
-    void selectViewColor();
+    void    chooseColor();
+    void    chooseFont();
+    void    choosePath();
+    void    exportAppearance();
+    void    importAppearance();
 
     // QDialog interface
 public slots: