2015-12-06 10:18:31 +00:00
|
|
|
#ifndef CSV_PREFS_DIALOGUE_H
|
|
|
|
#define CSV_PREFS_DIALOGUE_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
class QSplitter;
|
|
|
|
class QListWidget;
|
|
|
|
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);
|
|
|
|
|
2015-12-08 16:21:58 +00:00
|
|
|
PageBase *makePage (const std::string& key);
|
|
|
|
|
2015-12-06 10:18:31 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
Dialogue();
|
|
|
|
|
2015-12-15 13:56:29 +00:00
|
|
|
virtual ~Dialogue();
|
|
|
|
|
2015-12-06 10:18:31 +00:00
|
|
|
protected:
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void closeEvent (QCloseEvent *event) override;
|
2015-12-06 10:18:31 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void show();
|
2015-12-08 11:04:45 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void selectionChanged (QListWidgetItem *current, QListWidgetItem *previous);
|
2015-12-06 10:18:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|