OSDN Git Service

サムネイルモードの実装
[gefu/Gefu.git] / preferencedialog.h
index 9385208..0f7ab9c 100644 (file)
@@ -1,11 +1,9 @@
 #ifndef PREFERENCEDIALOG_H
 #define PREFERENCEDIALOG_H
 
-#include "colorsamplemodel.h"
-
 #include <QDialog>
-#include <QAbstractTableModel>
-#include <QSettings>
+#include <QLabel>
+class Preferences;
 
 namespace Ui {
 class PreferenceDialog;
@@ -21,22 +19,18 @@ public:
 
 private:
     Ui::PreferenceDialog *ui;
-    ColorSampleModel m_model;
-    ColorMap m_colorMap;
 
-    void saveAppearance(QSettings &settings);
-    void loadAppearance(QSettings &settings, bool import);
+    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 chooseFont();
-    void setControlsEnabled(bool enabled);
-    void setIgnoreExtDefault();
-    void selectBoxColor();
-    void selectViewColor();
-    void selectViewerColor();
-    void browseApp();
-    void importAppearance();
-    void exportAppearance();
+    void    chooseColor();
+    void    chooseFont();
+    void    choosePath();
+    void    exportAppearance();
+    void    importAppearance();
 
     // QDialog interface
 public slots: