openmw-tes3coop/apps/opencs/view/settings/settingsdialog.hpp

45 lines
983 B
C++
Raw Normal View History

2014-09-15 21:44:07 +00: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-15 21:44:07 +00:00
{
Q_OBJECT
public:
2014-09-16 20:11:41 +00:00
SettingsDialog (QTabWidget *parent = 0);
int windowWidth();
int windowHeight();
2014-09-15 21:44:07 +00: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-16 20:11:41 +00:00
//void enableDebugMode (bool state, QStandardItemModel *model = 0);
2014-09-15 21:44:07 +00:00
protected:
/// Settings are written on close
void closeEvent (QCloseEvent *event);
private:
2014-09-16 20:11:41 +00:00
void setViewValues();
2014-09-15 21:44:07 +00:00
public slots:
void show();
2014-09-16 20:11:41 +00:00
void rendererChanged();
void slotFullScreenChanged(int state);
void slotStandardToggled(bool checked);
2014-09-15 21:44:07 +00:00
};
}
#endif // CSVSETTINGS_SETTINGSDIALOG_H