API Documentation
Loading...
Searching...
No Matches
SettingsDialog Class Reference

The main Settings dialog for the application. Submenus can be added by the WindowManager or directly. More...

#include <SettingsDialog.h>

Inheritance diagram for SettingsDialog:
[legend]
Collaboration diagram for SettingsDialog:
[legend]

Signals

void settingsAcceptedSignal ()
 

Public Member Functions

void addSettingsMenu (QWidget *menu, std::function< void()> reset_to_defaults, uint04 location=1)
 
void prepareToShow ()
 
void removeSettingsMenu (QWidget *menu)
 
 SettingsDialog (WindowManager *window_manager, QTModelManager *model_manager, QWidget *parent=nullptr)
 
virtual ~SettingsDialog ()
 

Protected Member Functions

void createBackground ()
 
bool event (QEvent *event) override
 
void resetGeneralToDefaults ()
 
void resetUIToDefaults ()
 
void retranslate ()
 
void setupExportTab ()
 
void setupFolderTab ()
 
void setupGraphicsTab ()
 
void setupImportTab ()
 
void setupKeystrokeTab ()
 
void setupMainTab ()
 
void setupMouseSettingsTab ()
 
void setupStationTab ()
 
void setupUITab ()
 
void setupUnitsTab ()
 
void updateExportSettingsRibbon ()
 
void updateImportSettingsRibbon ()
 
void updateLayout ()
 
void updateTabLocation ()
 

Protected Attributes

QTResourceListenerm_camera_background_listener = nullptr
 
ModelFileDialogm_export_settings_dialog = nullptr
 
RibbonSubGroupm_export_settings_ribbon_group = nullptr
 
FileAndFolderSettingsDialogm_file_and_folder_settings = nullptr
 
ModelFileDialogm_import_settings_dialog = nullptr
 
RibbonSubGroupm_import_settings_ribbon_group = nullptr
 
KeystrokeWidgetm_keystroke_widget = nullptr
 
LanguageEditorm_language_editor = nullptr
 
QTModelManagerm_model_manager = nullptr
 
ModulesDialogm_modules_dialog = nullptr
 
MouseEditorWidget * m_mouse_editor = nullptr
 
Dictionary< QWidget *, std::function< void()> > m_reset_to_default_settings
 
bool m_shown_to_user = false
 
UnitsDialogm_units_dialog = nullptr
 
WindowManagerm_window_manager = nullptr
 
Ui::SettingsUI * ui
 

Detailed Description

The main Settings dialog for the application. Submenus can be added by the WindowManager or directly.


Constructor & Destructor Documentation

◆ SettingsDialog()

SettingsDialog ( WindowManager * window_manager,
QTModelManager * model_manager,
QWidget * parent = nullptr )

◆ ~SettingsDialog()

virtual ~SettingsDialog ( )
virtual

Member Function Documentation

◆ addSettingsMenu()

void addSettingsMenu ( QWidget * menu,
std::function< void()> reset_to_defaults,
uint04 location = 1 )

◆ createBackground()

void createBackground ( )
protected

◆ event()

bool event ( QEvent * event)
overrideprotected

◆ prepareToShow()

void prepareToShow ( )

◆ removeSettingsMenu()

void removeSettingsMenu ( QWidget * menu)

◆ resetGeneralToDefaults()

void resetGeneralToDefaults ( )
protected

◆ resetUIToDefaults()

void resetUIToDefaults ( )
protected

◆ retranslate()

void retranslate ( )
protected

◆ settingsAcceptedSignal

void settingsAcceptedSignal ( )
signal

◆ setupExportTab()

void setupExportTab ( )
protected

◆ setupFolderTab()

void setupFolderTab ( )
protected

◆ setupGraphicsTab()

void setupGraphicsTab ( )
protected

◆ setupImportTab()

void setupImportTab ( )
protected

◆ setupKeystrokeTab()

void setupKeystrokeTab ( )
protected

◆ setupMainTab()

void setupMainTab ( )
protected

◆ setupMouseSettingsTab()

void setupMouseSettingsTab ( )
protected

◆ setupStationTab()

void setupStationTab ( )
protected

◆ setupUITab()

void setupUITab ( )
protected

◆ setupUnitsTab()

void setupUnitsTab ( )
protected

◆ updateExportSettingsRibbon()

void updateExportSettingsRibbon ( )
protected

◆ updateImportSettingsRibbon()

void updateImportSettingsRibbon ( )
protected

◆ updateLayout()

void updateLayout ( )
protected

◆ updateTabLocation()

void updateTabLocation ( )
protected

Member Data Documentation

◆ m_camera_background_listener

QTResourceListener* m_camera_background_listener = nullptr
protected

◆ m_export_settings_dialog

ModelFileDialog* m_export_settings_dialog = nullptr
protected

◆ m_export_settings_ribbon_group

RibbonSubGroup* m_export_settings_ribbon_group = nullptr
protected

◆ m_file_and_folder_settings

FileAndFolderSettingsDialog* m_file_and_folder_settings = nullptr
protected

◆ m_import_settings_dialog

ModelFileDialog* m_import_settings_dialog = nullptr
protected

◆ m_import_settings_ribbon_group

RibbonSubGroup* m_import_settings_ribbon_group = nullptr
protected

◆ m_keystroke_widget

KeystrokeWidget* m_keystroke_widget = nullptr
protected

◆ m_language_editor

LanguageEditor* m_language_editor = nullptr
protected

◆ m_model_manager

QTModelManager* m_model_manager = nullptr
protected

◆ m_modules_dialog

ModulesDialog* m_modules_dialog = nullptr
protected

◆ m_mouse_editor

MouseEditorWidget* m_mouse_editor = nullptr
protected

◆ m_reset_to_default_settings

Dictionary<QWidget*, std::function<void()> > m_reset_to_default_settings
protected

◆ m_shown_to_user

bool m_shown_to_user = false
protected

◆ m_units_dialog

UnitsDialog* m_units_dialog = nullptr
protected

◆ m_window_manager

WindowManager* m_window_manager = nullptr
protected

◆ ui

Ui::SettingsUI* ui
protected

The documentation for this class was generated from the following file: