#ifndef PREFERENCEDIALOG_H
#define PREFERENCEDIALOG_H
-#include "colorsamplemodel.h"
-
#include <QDialog>
-#include <QAbstractTableModel>
+#include <QLabel>
+class Preferences;
namespace Ui {
class PreferenceDialog;
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: