2015-12-06 10:18:31 +00:00
|
|
|
#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;
|
2015-12-06 10:18:31 +00:00
|
|
|
|
|
|
|
namespace CSVPrefs
|
|
|
|
{
|
2015-12-08 16:21:58 +00:00
|
|
|
class PageBase;
|
|
|
|
|
2015-12-06 10:18:31 +00:00
|
|
|
class Dialogue : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
QStackedWidget* mContent;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void buildCategorySelector(QSplitter* main);
|
|
|
|
|
|
|
|
void buildContentArea(QSplitter* main);
|
|
|
|
|
|
|
|
PageBase* makePage(const std::string& key);
|
|
|
|
|
2015-12-08 16:21:58 +00:00
|
|
|
public:
|
|
|
|
Dialogue();
|
|
|
|
|
2021-05-19 00:53:55 +00:00
|
|
|
~Dialogue() override;
|
2015-12-06 10:18:31 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent* event) override;
|
|
|
|
|
2021-05-19 00:53:55 +00:00
|
|
|
public slots:
|
2015-12-15 13:56:29 +00:00
|
|
|
|
2015-12-06 10:18:31 +00:00
|
|
|
void show();
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
private slots:
|
2015-12-06 10:18:31 +00:00
|
|
|
|
2015-12-08 11:04:45 +00:00
|
|
|
void selectionChanged(QListWidgetItem* current, QListWidgetItem* previous);
|
2015-12-06 10:18:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|