mirror-chatterino2/settingsdialog.h
2017-01-02 03:02:32 +01:00

39 lines
763 B
C++

#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include "QWidget"
#include "QMainWindow"
#include "QHBoxLayout"
#include "QVBoxLayout"
#include "QListView"
#include "QButtonGroup"
#include "QPushButton"
#include "QDialogButtonBox"
#include "QStackedLayout"
#include "settingsdialogtab.h"
class SettingsDialog : public QWidget
{
public:
SettingsDialog();
void select(SettingsDialogTab* tab);
private:
QVBoxLayout tabs;
QVBoxLayout vbox;
QHBoxLayout hbox;
QStackedLayout pageStack;
QDialogButtonBox buttonBox;
QPushButton okButton;
QPushButton cancelButton;
void addTab(QLayout* layout, QString title, QString imageRes);
void addTabs();
SettingsDialogTab* selectedTab = NULL;
};
#endif // SETTINGSDIALOG_H