1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 16:15:36 +00:00
openmw/apps/opencs/view/settings/dialog.hpp

50 lines
1.1 KiB
C++

#ifndef CSVSETTINGS_DIALOG_H
#define CSVSETTINGS_DIALOG_H
#include "settingwindow.hpp"
#include <QStandardItem>
#include "ui_settingstab.h"
namespace CSVSettings {
class Page;
class Dialog : public SettingWindow, private Ui::TabWidget
{
Q_OBJECT
//QListWidget *mPageListWidget;
//ResizeableStackedWidget *mStackedWidget;
bool mDebugMode;
public:
explicit Dialog (QTabWidget *parent = 0);
///Enables setting debug mode. When the dialog opens, a page is created
///which displays the SettingModel's contents in a Tree view.
void enableDebugMode (bool state, QStandardItemModel *model = 0);
protected:
/// Settings are written on close
void closeEvent (QCloseEvent *event);
bool eventFilter(QObject *target, QEvent *event);
private:
void buildPages();
public slots:
void show();
private slots:
void slotOverrideToggled(bool checked);
void slotRendererChanged(const QString &renderer);
};
}
#endif // CSVSETTINGS_DIALOG_H