#ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H #include "settings/settings.h" #include "widgets/settingsdialogtab.h" #include #include #include #include #include #include #include #include #include #include namespace chatterino { namespace widgets { 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; /// Widget creation helpers QCheckBox *createCheckbox(const QString &title, settings::Setting &setting); }; } // namespace widgets } // namespace chatterino #endif // SETTINGSDIALOG_H