![]() |
NDEVR
API Documentation
|
The main Settings dialog for the application. More...
Public Member Functions | |
| SettingsDialog (WindowManager *window_manager, QTModelManager *model_manager, QWidget *parent=nullptr) | |
| Constructs the main settings dialog. | |
| void | addSettingsMenu (QWidget *menu, std::function< void()> reset_to_defaults, uint04 location=1) |
| Adds a custom settings menu tab to the dialog. | |
| void | prepareToShow () |
| Prepares the dialog for display, refreshing all tab contents. | |
| void | removeSettingsMenu (QWidget *menu) |
| Removes a previously added settings menu tab. | |
| void | settingsAcceptedSignal () |
| Emitted when the user accepts the settings. | |
Protected Attributes | |
| QTResourceListener * | m_camera_background_listener = nullptr |
| Listener for camera background changes. | |
| ModelFileDialog * | m_export_settings_dialog = nullptr |
| The export settings file dialog. | |
| RibbonSubGroup * | m_export_settings_ribbon_group = nullptr |
| Ribbon group for export settings. | |
| FileAndFolderSettingsDialog * | m_file_and_folder_settings = nullptr |
| The file and folder settings dialog. | |
| ModelFileDialog * | m_import_settings_dialog = nullptr |
| The import settings file dialog. | |
| RibbonSubGroup * | m_import_settings_ribbon_group = nullptr |
| Ribbon group for import settings. | |
| KeystrokeWidget * | m_keystroke_widget = nullptr |
| The keystroke configuration widget. | |
| LanguageEditor * | m_language_editor = nullptr |
| The language selection editor. | |
| QTModelManager * | m_model_manager = nullptr |
| The model manager. | |
| ModulesDialog * | m_modules_dialog = nullptr |
| The modules management dialog. | |
| MouseEditorWidget * | m_mouse_editor = nullptr |
| The mouse settings editor. | |
| Dictionary< QWidget *, std::function< void()> > | m_reset_to_default_settings |
| Map of tabs to their reset callbacks. | |
| bool | m_shown_to_user = false |
| Whether the dialog has been shown at least once. | |
| UnitsDialog * | m_units_dialog = nullptr |
| The units configuration dialog. | |
| WindowManager * | m_window_manager = nullptr |
| The window manager. | |
| Ui::SettingsUI * | ui |
| The UI form for the settings dialog. | |
The main Settings dialog for the application.
Submenus can be added by the WindowManager or directly.
Definition at line 61 of file SettingsDialog.h.
| SettingsDialog::SettingsDialog | ( | WindowManager * | window_manager, |
| QTModelManager * | model_manager, | ||
| QWidget * | parent = nullptr ) |
Constructs the main settings dialog.
| [in] | window_manager | The window manager for dialog management. |
| [in] | model_manager | The model manager providing application state. |
| [in] | parent | The parent widget. |
References SettingsDialog().
Referenced by SettingsDialog().
| void SettingsDialog::addSettingsMenu | ( | QWidget * | menu, |
| std::function< void()> | reset_to_defaults, | ||
| uint04 | location = 1 ) |
Adds a custom settings menu tab to the dialog.
| [in] | menu | The widget to add as a tab. |
| [in] | reset_to_defaults | A callback to reset the tab's settings to defaults. |
| [in] | location | The tab insertion index. |
| void SettingsDialog::removeSettingsMenu | ( | QWidget * | menu | ) |
Removes a previously added settings menu tab.
| [in] | menu | The widget to remove. |