1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 19:23:52 +00:00
openmw/apps/opencs/view/prefs/dialogue.hpp

46 lines
752 B
C++
Raw Normal View History

#ifndef CSV_PREFS_DIALOGUE_H
#define CSV_PREFS_DIALOGUE_H
#include <QMainWindow>
class QSplitter;
class QStackedWidget;
2015-12-08 11:04:45 +00:00
class QListWidgetItem;
namespace CSVPrefs
{
2015-12-08 16:21:58 +00:00
class PageBase;
class Dialogue : public QMainWindow
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2022-09-22 18:26:05 +00:00
QStackedWidget* mContent;
2022-09-22 18:26:05 +00:00
private:
void buildCategorySelector(QSplitter* main);
2022-09-22 18:26:05 +00:00
void buildContentArea(QSplitter* main);
2022-09-22 18:26:05 +00:00
PageBase* makePage(const std::string& key);
2022-09-22 18:26:05 +00:00
public:
Dialogue();
2015-12-08 16:21:58 +00:00
2022-09-22 18:26:05 +00:00
~Dialogue() override;
2022-09-22 18:26:05 +00:00
protected:
void closeEvent(QCloseEvent* event) override;
2022-09-22 18:26:05 +00:00
public slots:
2022-09-22 18:26:05 +00:00
void show();
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void selectionChanged(QListWidgetItem* current, QListWidgetItem* previous);
};
}
#endif