release 0.2.2
[qbat.git] / settings.h
blob250baf07dc7d2181c5b9a1ec6a34437a4a580e9e
1 //
2 // C++ Interface: settings
3 //
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
5 //
6 // Copyright: See COPYING file that comes with this distribution
7 //
8 #ifndef QBAT_SETTINGS_H
9 #define QBAT_SETTINGS_H
11 #include <QDialog>
12 #include "ui/ui_settingsdialog.h"
13 #include "common.h"
15 namespace qbat {
16 class CSettings : public QDialog {
17 Q_OBJECT
18 private:
19 Ui::settingsDialog ui;
20 QButtonGroup colorSelectButtons;
21 Settings * m_Settings;
23 QRgb colors[UI_COUNT_COLORS];
25 void applySettings();
26 public:
27 CSettings(QWidget * parent = 0);
28 ~CSettings();
30 bool execute(Settings * settings);
31 private slots:
32 void editColor(int id);
36 #endif