![]() |
Tome
A generic data editor for games supporting arbitrary input and output formats.
|
Controller for accessing user settings. More...
#include <settingscontroller.h>
Public Member Functions | |
| SettingsController () | |
| Constructs a new controller for accessing user settings. | |
| void | addRecentProject (const QString &path) |
| Adds the specified full project path to the list of recent projects. More... | |
| const QStringList | getRecentProjects () const |
| Gets a list of full paths to recently opened projects. More... | |
| bool | getRunIntegrityChecksOnLoad () const |
| Gets whether to run all integrity checks after opening a project. More... | |
| bool | getRunIntegrityChecksOnSave () const |
| Gets whether to run all integrity checks after saving a project. More... | |
| bool | getShowComponentNamesInRecordTable () const |
| Gets whether to show the names of the respective component in front of the field name in the record table. More... | |
| bool | getShowDescriptionColumnInsteadOfFieldTooltips () const |
| Gets whether to show an additional column with the description of all record fields in the record table. More... | |
| bool | getExpandRecordTreeOnRefresh () const |
| Gets whether to expand all nodes of the record tree every time after it has changed. More... | |
| const QString | getLastProjectPath () const |
| Gets the full path to the most recently opened project. More... | |
| void | removeRecentProject (const QString &path) |
| Removes the specified full project path from the list of recent projects. More... | |
| void | setRecentProjects (const QStringList &recentProjects) |
| Sets the list of full paths to recently opened projects. More... | |
| void | setRunIntegrityChecksOnLoad (bool runIntegrityChecksOnLoad) |
| Sets whether to run all integrity checks after opening a project, or not. More... | |
| void | setRunIntegrityChecksOnSave (bool runIntegrityChecksOnSave) |
| Sets whether to run all integrity checks after saving a project, or not. More... | |
| void | setShowComponentNamesInRecordTable (bool showComponentNamesInRecordTable) |
| Sets whether to show the names of the respective component in front of the field name in the record table. More... | |
| void | setShowDescriptionColumnInsteadOfFieldTooltips (bool showDescriptionColumnInsteadOfFieldTooltips) |
| Sets whether to show an additional column with the description of all record fields in the record table, or to show tooltips instead. More... | |
| void | setExpandRecordTreeOnRefresh (bool expandRecordTreeOnRefresh) |
| Sets whether to expand all nodes of the record tree every time after it has changed, or not. More... | |
| void | setLastProjectPath (const QString &path) |
| Sets the full path to the most recently opened project. More... | |
Controller for accessing user settings.
| void SettingsController::addRecentProject | ( | const QString & | path | ) |
Adds the specified full project path to the list of recent projects.
| path | Path of the project to add. |
| bool SettingsController::getExpandRecordTreeOnRefresh | ( | ) | const |
Gets whether to expand all nodes of the record tree every time after it has changed.
| const QString SettingsController::getLastProjectPath | ( | ) | const |
Gets the full path to the most recently opened project.
| const QStringList SettingsController::getRecentProjects | ( | ) | const |
Gets a list of full paths to recently opened projects.
| bool SettingsController::getRunIntegrityChecksOnLoad | ( | ) | const |
Gets whether to run all integrity checks after opening a project.
| bool SettingsController::getRunIntegrityChecksOnSave | ( | ) | const |
Gets whether to run all integrity checks after saving a project.
| bool SettingsController::getShowComponentNamesInRecordTable | ( | ) | const |
Gets whether to show the names of the respective component in front of the field name in the record table.
| bool SettingsController::getShowDescriptionColumnInsteadOfFieldTooltips | ( | ) | const |
Gets whether to show an additional column with the description of all record fields in the record table.
| void SettingsController::removeRecentProject | ( | const QString & | path | ) |
Removes the specified full project path from the list of recent projects.
| path | Path of the project to remove. |
| void SettingsController::setExpandRecordTreeOnRefresh | ( | bool | expandRecordTreeOnRefresh | ) |
Sets whether to expand all nodes of the record tree every time after it has changed, or not.
| expandRecordTreeOnRefresh | Whether to expand all nodes of the record tree every time after it has changed. |
| void SettingsController::setLastProjectPath | ( | const QString & | path | ) |
Sets the full path to the most recently opened project.
| path | Full path to the most recently opened project. |
| void SettingsController::setRecentProjects | ( | const QStringList & | recentProjects | ) |
Sets the list of full paths to recently opened projects.
| recentProjects | List of full paths to recently opened projects. |
| void SettingsController::setRunIntegrityChecksOnLoad | ( | bool | runIntegrityChecksOnLoad | ) |
Sets whether to run all integrity checks after opening a project, or not.
| runIntegrityChecksOnLoad | Whether to run all integrity checks after opening a project. |
| void SettingsController::setRunIntegrityChecksOnSave | ( | bool | runIntegrityChecksOnSave | ) |
Sets whether to run all integrity checks after saving a project, or not.
| runIntegrityChecksOnSave | Whether to run all integrity checks after saving a project. |
| void SettingsController::setShowComponentNamesInRecordTable | ( | bool | showComponentNamesInRecordTable | ) |
Sets whether to show the names of the respective component in front of the field name in the record table.
| showComponentNamesInRecordTable | Whether to show the names of the respective component in front of the field name in the record table. |
| void SettingsController::setShowDescriptionColumnInsteadOfFieldTooltips | ( | bool | showDescriptionColumnInsteadOfFieldTooltips | ) |
Sets whether to show an additional column with the description of all record fields in the record table, or to show tooltips instead.
| showDescriptionColumnInsteadOfFieldTooltips | Whether to show an additional column with the description of all record fields in the record table. |
1.8.13