2017-01-01 18:43:52 +01:00
|
|
|
#ifndef SETTINGSDIALOG_H
|
|
|
|
#define SETTINGSDIALOG_H
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
#include "QButtonGroup"
|
|
|
|
#include "QCheckBox"
|
|
|
|
#include "QDialogButtonBox"
|
2017-01-01 18:43:52 +01:00
|
|
|
#include "QHBoxLayout"
|
|
|
|
#include "QListView"
|
2017-01-11 18:52:09 +01:00
|
|
|
#include "QMainWindow"
|
2017-01-02 03:02:32 +01:00
|
|
|
#include "QPushButton"
|
|
|
|
#include "QStackedLayout"
|
2017-01-11 18:52:09 +01:00
|
|
|
#include "QVBoxLayout"
|
|
|
|
#include "QWidget"
|
2017-01-02 03:02:32 +01:00
|
|
|
#include "settingsdialogtab.h"
|
2017-01-01 18:43:52 +01:00
|
|
|
|
2017-01-02 03:02:32 +01:00
|
|
|
class SettingsDialog : public QWidget
|
2017-01-01 18:43:52 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SettingsDialog();
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
void select(SettingsDialogTab *tab);
|
2017-01-02 03:02:32 +01:00
|
|
|
|
2017-01-01 18:43:52 +01:00
|
|
|
private:
|
2017-01-02 03:02:32 +01:00
|
|
|
QVBoxLayout tabs;
|
|
|
|
QVBoxLayout vbox;
|
2017-01-01 18:43:52 +01:00
|
|
|
QHBoxLayout hbox;
|
2017-01-02 03:02:32 +01:00
|
|
|
QStackedLayout pageStack;
|
|
|
|
QDialogButtonBox buttonBox;
|
|
|
|
QPushButton okButton;
|
|
|
|
QPushButton cancelButton;
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
void addTab(QLayout *layout, QString title, QString imageRes);
|
2017-01-02 03:02:32 +01:00
|
|
|
|
|
|
|
void addTabs();
|
2017-01-01 18:43:52 +01:00
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
SettingsDialogTab *selectedTab = NULL;
|
2017-01-03 21:19:33 +01:00
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
QCheckBox *createCheckbox(QString title, QString settingsId);
|
2017-01-01 18:43:52 +01:00
|
|
|
};
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
#endif // SETTINGSDIALOG_H
|