|
SILICON
|
Dialog for editing persisted application settings and shortcuts. More...
#include <settingsWindow.hpp>
Public Member Functions | |
| SettingsWindow (const QString &appName, QVector< ShortcutSetting > shortcuts, QWidget *parent=nullptr) | |
| Builds the settings dialog for one application namespace. | |
Private Member Functions | |
| void | loadSettings () |
| Loads persisted settings into the visible editors. | |
| bool | saveSettings () |
| Writes the current editor state to disk and applies it to the app. | |
| void | importSettings () |
| Imports settings from an external TOML file into the active store. | |
| void | exportSettings () |
| Exports the current settings to an external TOML file. | |
| bool | importSettingsStore (QSettings &importedSettings) |
| Applies settings from another settings store. | |
| QByteArray | exportSettingsContent () |
| Serializes the visible settings to TOML bytes. | |
| void | restoreDefaults () |
| Resets the visible editors to their declared default values. | |
| void | addShortcutEditor (const ShortcutSetting &shortcut) |
| Adds one key sequence editor row for a shortcut setting. | |
| void | applySettings () |
| Applies the visible settings to the running application state. | |
| void | writeVisibleSettings (QSettings &target) const |
| Writes the currently visible values to a target settings store. | |
Private Attributes | |
| SiliconSettings | settings |
| QVector< ShortcutSetting > | shortcuts |
| QVector< QKeySequenceEdit * > | shortcutEditors |
| QComboBox * | themeCombo |
| QSpinBox * | maxSimulationStepsSpinBox |
| QSpinBox * | maxTransitionsPerDeltaCycleSpinBox |
| QFormLayout * | keybindingsLayout |
| QPushButton * | importButton |
| QPushButton * | exportButton |
| QPushButton * | restoreDefaultsButton |
| QDialogButtonBox * | buttonBox |
| CallbackScope | callbacks |
Dialog for editing persisted application settings and shortcuts.
Definition at line 52 of file settingsWindow.hpp.
|
explicit |
Builds the settings dialog for one application namespace.
| appName | Application-specific settings namespace. |
| shortcuts | Shortcut definitions exposed in the keybindings section. |
| parent | Parent widget. |
Definition at line 77 of file settingsWindow.cpp.
|
private |
Adds one key sequence editor row for a shortcut setting.
Definition at line 287 of file settingsWindow.cpp.
|
private |
Applies the visible settings to the running application state.
Definition at line 294 of file settingsWindow.cpp.
|
private |
Exports the current settings to an external TOML file.
Definition at line 278 of file settingsWindow.cpp.
|
private |
Serializes the visible settings to TOML bytes.
Definition at line 223 of file settingsWindow.cpp.
|
private |
Imports settings from an external TOML file into the active store.
Definition at line 256 of file settingsWindow.cpp.
|
private |
Applies settings from another settings store.
Definition at line 200 of file settingsWindow.cpp.
|
private |
Loads persisted settings into the visible editors.
Definition at line 152 of file settingsWindow.cpp.
|
private |
Resets the visible editors to their declared default values.
Definition at line 171 of file settingsWindow.cpp.
|
private |
Writes the current editor state to disk and applies it to the app.
Definition at line 186 of file settingsWindow.cpp.
|
private |
Writes the currently visible values to a target settings store.
Definition at line 309 of file settingsWindow.cpp.
|
private |
Definition at line 99 of file settingsWindow.hpp.
|
private |
Definition at line 100 of file settingsWindow.hpp.
|
private |
Definition at line 97 of file settingsWindow.hpp.
|
private |
Definition at line 96 of file settingsWindow.hpp.
|
private |
Definition at line 95 of file settingsWindow.hpp.
|
private |
Definition at line 93 of file settingsWindow.hpp.
|
private |
Definition at line 94 of file settingsWindow.hpp.
|
private |
Definition at line 98 of file settingsWindow.hpp.
|
private |
Definition at line 87 of file settingsWindow.hpp.
|
private |
Definition at line 90 of file settingsWindow.hpp.
|
private |
Definition at line 89 of file settingsWindow.hpp.
|
private |
Definition at line 92 of file settingsWindow.hpp.