1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-28 14:53:58 +00:00
OpenMW/apps/opencs/view/settings/settingsdialog.hpp

44 lines
936 B
C++
Raw Normal View History

2014-09-16 07:44:07 +10:00
#ifndef CSVSETTINGS_SETTINGSDIALOG_H
#define CSVSETTINGS_SETTINGSDIALOG_H
#include <QStandardItem>
#include "ui_settingstab.h"
class QListWidgetItem;
namespace CSVSettings {
class SettingsDialog : public QTabWidget, private Ui::TabWidget
2014-09-16 07:44:07 +10:00
{
Q_OBJECT
public:
2014-09-17 06:11:41 +10:00
SettingsDialog (QTabWidget *parent = 0);
int windowWidth();
int windowHeight();
2014-09-16 07:44:07 +10:00
///Enables setting debug mode. When the dialog opens, a page is created
///which displays the SettingModel's contents in a Tree view.
2014-09-17 06:11:41 +10:00
//void enableDebugMode (bool state, QStandardItemModel *model = 0);
2014-09-16 07:44:07 +10:00
protected:
/// Settings are written on close
void closeEvent (QCloseEvent *event);
private:
2014-09-17 06:11:41 +10:00
void setViewValues();
2014-09-16 07:44:07 +10:00
public slots:
void show();
2014-09-17 06:11:41 +10:00
void rendererChanged();
void slotStandardToggled(bool checked);
2014-09-16 07:44:07 +10:00
};
}
#endif // CSVSETTINGS_SETTINGSDIALOG_H