1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

55 lines
1.1 KiB
C++
Raw Normal View History

2014-04-22 22:17:19 -05:00
#ifndef CSVSETTINGS_DIALOG_H
#define CSVSETTINGS_DIALOG_H
#include "settingwindow.hpp"
#include <QStandardItem>
#include "ui_settingstab.h"
2014-04-22 22:17:19 -05:00
namespace CSVSettings {
class Page;
class Dialog : public SettingWindow, private Ui::TabWidget
2014-04-22 22:17:19 -05:00
{
Q_OBJECT
//QListWidget *mPageListWidget;
//ResizeableStackedWidget *mStackedWidget;
2014-04-22 22:17:19 -05:00
bool mDebugMode;
public:
explicit Dialog (QTabWidget *parent = 0);
2014-04-22 22:17:19 -05:00
///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);
void setupDialog();
private:
void buildPages();
public slots:
void show();
private slots:
void slotOverrideToggled(bool checked);
void slotRendererChanged(const QString &renderer);
signals:
void toggleStatusBar(bool checked); // FIXME: maybe not needed
2014-04-22 22:17:19 -05:00
};
}
#endif // CSVSETTINGS_DIALOG_H