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