Changeset 97383 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 3, 2022 1:51:44 PM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r97141 r97383 100 100 { 101 101 /* Load data: */ 102 load OwnData();102 load(); 103 103 104 104 /* Execute dialog: */ … … 109 109 { 110 110 /* Save data: */ 111 save OwnData();111 save(); 112 112 113 113 /* If serialization was clean: */ … … 348 348 * which will be lost in such case: */ 349 349 if ( !isSettingsChanged() 350 || msgCenter().confirmSettingsDiscarding( ))350 || msgCenter().confirmSettingsDiscarding(this)) 351 351 { 352 352 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h
r97141 r97383 59 59 using namespace UISettingsDefs; 60 60 61 /** QIMainDialog aubclass used as 62 * base dialog class for both Global & VM settings which encapsulates most of their common functionality. */ 61 /** QIMainDialog subclass used as 62 * base dialog class for both Global Preferences & Machine Settings 63 * dialogs, which encapsulates most of their common functionality. */ 63 64 class SHARED_LIBRARY_STUFF UISettingsDialog : public QIWithRetranslateUI<QIMainDialog> 64 65 { … … 106 107 virtual void closeEvent(QCloseEvent *pEvent) RT_OVERRIDE; 107 108 109 /** Loads the dialog @a data. */ 110 void loadData(QVariant &data); 111 /** Saves the dialog @a data. */ 112 void saveData(QVariant &data); 113 114 /** Loads the dialog data. */ 115 virtual void load() = 0; 116 /** Saves the dialog data. */ 117 virtual void save() = 0; 118 119 /** Returns configuration access level. */ 120 ConfigurationAccessLevel configurationAccessLevel() const { return m_enmConfigurationAccessLevel; } 121 /** Defines configuration access level. */ 122 void setConfigurationAccessLevel(ConfigurationAccessLevel enmConfigurationAccessLevel); 123 108 124 /** Returns the serialize process instance. */ 109 125 UISettingsSerializer *serializeProcess() const { return m_pSerializeProcess; } 110 126 /** Returns whether the serialization is in progress. */ 111 127 bool isSerializationInProgress() const { return m_fSerializationIsInProgress; } 112 113 /** Loads the @a data. */114 void loadData(QVariant &data);115 /** Wrapper for the method above.116 * Loads the data from the corresponding source. */117 virtual void loadOwnData() = 0;118 119 /** Saves the @a data. */120 void saveData(QVariant &data);121 /** Wrapper for the method above.122 * Saves the data to the corresponding source. */123 virtual void saveOwnData() = 0;124 125 /** Returns configuration access level. */126 ConfigurationAccessLevel configurationAccessLevel() const { return m_enmConfigurationAccessLevel; }127 /** Defines configuration access level. */128 void setConfigurationAccessLevel(ConfigurationAccessLevel enmConfigurationAccessLevel);129 128 130 129 /** Returns the dialog title extension. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r97310 r97383 132 132 } 133 133 134 void UISettingsDialogGlobal::load OwnData()134 void UISettingsDialogGlobal::load() 135 135 { 136 136 /* Get host & properties: */ … … 146 146 } 147 147 148 void UISettingsDialogGlobal::save OwnData()148 void UISettingsDialogGlobal::save() 149 149 { 150 150 /* Get host & properties: */ … … 406 406 } 407 407 408 void UISettingsDialogMachine::load OwnData()408 void UISettingsDialogMachine::load() 409 409 { 410 410 /* Check that session is NOT created: */ … … 432 432 } 433 433 434 void UISettingsDialogMachine::save OwnData()434 void UISettingsDialogMachine::save() 435 435 { 436 436 /* Check that session is NOT created: */ … … 643 643 644 644 /* Reload data: */ 645 load OwnData();645 load(); 646 646 } 647 647 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h
r97135 r97383 66 66 virtual void retranslateUi() RT_OVERRIDE; 67 67 68 /** Loads the d ata from the corresponding source. */69 virtual void load OwnData() RT_OVERRIDE;70 /** Saves the d ata to the corresponding source. */71 virtual void save OwnData() RT_OVERRIDE;68 /** Loads the dialog data. */ 69 virtual void load() RT_OVERRIDE; 70 /** Saves the dialog data. */ 71 virtual void save() RT_OVERRIDE; 72 72 73 73 /** Returns the dialog title extension. */ … … 114 114 virtual void retranslateUi() RT_OVERRIDE; 115 115 116 /** Loads the d ata from the corresponding source. */117 virtual void load OwnData() RT_OVERRIDE;118 /** Saves the d ata to the corresponding source. */119 virtual void save OwnData() RT_OVERRIDE;116 /** Loads the dialog data. */ 117 virtual void load() RT_OVERRIDE; 118 /** Saves the dialog data. */ 119 virtual void save() RT_OVERRIDE; 120 120 121 121 /** Returns the dialog title extension. */
Note:
See TracChangeset
for help on using the changeset viewer.