OpenMW
|
#include <usersettingsdialog.hpp>
Public Slots | |
void | slotChangePage (QListWidgetItem *, QListWidgetItem *) |
Called when a different page is selected in the left-hand list widget. | |
Public Member Functions | |
UserSettingsDialog (QMainWindow *parent=0) | |
~UserSettingsDialog () | |
Private Member Functions | |
void | closeEvent (QCloseEvent *event) |
Settings are written on close. | |
AbstractPage & | getAbstractPage (int index) |
void | setWidgetStates () |
void | buildPages () |
void | writeSettings () |
template<typename T > | |
void | createPage () |
Templated function to create a custom user preference page. | |
Private Attributes | |
QListWidget * | mListWidget |
QStackedWidget * | mStackedWidget |
CSVSettings::UserSettingsDialog::UserSettingsDialog | ( | QMainWindow * | parent = 0 | ) |
void CSVSettings::UserSettingsDialog::buildPages | ( | ) | [private] |
void CSVSettings::UserSettingsDialog::closeEvent | ( | QCloseEvent * | event | ) | [private] |
Settings are written on close.
void CSVSettings::UserSettingsDialog::createPage | ( | ) | [inline, private] |
Templated function to create a custom user preference page.
CSVSettings::AbstractPage & CSVSettings::UserSettingsDialog::getAbstractPage | ( | int | index | ) | [private] |
return the setting page by name performs dynamic cast to AbstractPage *
void CSVSettings::UserSettingsDialog::setWidgetStates | ( | ) | [private] |
void CSVSettings::UserSettingsDialog::slotChangePage | ( | QListWidgetItem * | current, |
QListWidgetItem * | previous | ||
) | [slot] |
Called when a different page is selected in the left-hand list widget.
void CSVSettings::UserSettingsDialog::writeSettings | ( | ) | [private] |
QListWidget* CSVSettings::UserSettingsDialog::mListWidget [private] |
QStackedWidget* CSVSettings::UserSettingsDialog::mStackedWidget [private] |