- Timestamp:
- Mar 23, 2022 11:21:34 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r94318 r94333 7575 7575 endif 7576 7576 else if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris win) 7577 VBOX_QT_MOD += Qt 5Core Qt5Gui Qt5Widgets Qt5PrintSupport $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,)7577 VBOX_QT_MOD += Qt6Core Qt5Gui Qt5Widgets Qt5PrintSupport $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,) 7578 7578 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris) 7579 7579 VBOX_QT_MOD += Qt5DBus Qt5Xml Qt5XcbQpa Qt5X11Extras -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInterface.cpp
r94323 r94333 86 86 void UIGlobalSettingsInterface::getFromCache() 87 87 { 88 /* Load old data from thecache: */88 /* Load old data from cache: */ 89 89 const UIDataSettingsGlobalInterface &oldData = m_pCache->base(); 90 90 m_pEditorColorTheme->setValue(oldData.m_enmColorTheme); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.h
r94323 r94333 76 76 void cleanup(); 77 77 78 /** Saves existing proxydata from cache. */78 /** Saves existing data from cache. */ 79 79 bool saveData(); 80 80 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp
r94298 r94333 128 128 void UIMachineSettingsAudio::getFromCache() 129 129 { 130 /* Get old audio data from thecache: */130 /* Get old audio data from cache: */ 131 131 const UIDataSettingsMachineAudio &oldAudioData = m_pCache->base(); 132 132 133 /* Load old audio data from thecache: */133 /* Load old audio data from cache: */ 134 134 m_pCheckBoxAudio->setChecked(oldAudioData.m_fAudioEnabled); 135 135 m_pEditorAudioHostDriver->setValue(oldAudioData.m_audioDriverType); … … 163 163 UISettingsPageMachine::fetchData(data); 164 164 165 /* Update audiodata and failing state: */166 setFailed(!save AudioData());165 /* Update data and failing state: */ 166 setFailed(!saveData()); 167 167 168 168 /* Upload machine to data: */ … … 271 271 } 272 272 273 bool UIMachineSettingsAudio::save AudioData()273 bool UIMachineSettingsAudio::saveData() 274 274 { 275 275 /* Prepare result: */ 276 276 bool fSuccess = true; 277 /* Save audio settings from thecache: */277 /* Save audio settings from cache: */ 278 278 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 279 279 { 280 /* Get old audio data from thecache: */280 /* Get old audio data from cache: */ 281 281 const UIDataSettingsMachineAudio &oldAudioData = m_pCache->base(); 282 /* Get new audio data from thecache: */282 /* Get new audio data from cache: */ 283 283 const UIDataSettingsMachineAudio &newAudioData = m_pCache->data(); 284 284 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h
r94298 r94333 43 43 UIMachineSettingsAudio(); 44 44 /** Destructs Audio settings page. */ 45 ~UIMachineSettingsAudio();45 virtual ~UIMachineSettingsAudio() RT_OVERRIDE; 46 46 47 47 protected: … … 81 81 void cleanup(); 82 82 83 /** Saves existing audio data from thecache. */84 bool save AudioData();83 /** Saves existing data from cache. */ 84 bool saveData(); 85 85 86 86 /** Holds the page data cache instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r94056 r94333 493 493 void UIMachineSettingsDisplay::getFromCache() 494 494 { 495 /* Get old display data from thecache: */495 /* Get old display data from cache: */ 496 496 const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base(); 497 497 … … 500 500 repopulateComboAuthType(); 501 501 502 /* Load old 'Screen' data from thecache: */502 /* Load old 'Screen' data from cache: */ 503 503 m_pSpinboxMonitorCount->setValue(oldDisplayData.m_cGuestScreenCount); 504 504 m_pEditorScaleFactor->setScaleFactors(oldDisplayData.m_scaleFactors); … … 520 520 if (oldDisplayData.m_fRemoteDisplayServerSupported) 521 521 { 522 /* Load old 'Remote Display' data from thecache: */522 /* Load old 'Remote Display' data from cache: */ 523 523 m_pCheckboxRemoteDisplay->setChecked(oldDisplayData.m_fRemoteDisplayServerEnabled); 524 524 m_pEditorRemoteDisplayPort->setText(oldDisplayData.m_strRemoteDisplayPort); … … 529 529 } 530 530 531 /* Load old 'Recording' data from thecache: */531 /* Load old 'Recording' data from cache: */ 532 532 m_pCheckboxRecording->setChecked(oldDisplayData.m_fRecordingEnabled); 533 533 m_pEditorRecordingFilePath->setInitialPath(oldDisplayData.m_strRecordingFolder); … … 633 633 UISettingsPageMachine::fetchData(data); 634 634 635 /* Update d isplay data and failing state: */636 setFailed(!saveD isplayData());635 /* Update data and failing state: */ 636 setFailed(!saveData()); 637 637 638 638 /* Upload machine to data: */ … … 870 870 void UIMachineSettingsDisplay::polishPage() 871 871 { 872 /* Get old display data from thecache: */872 /* Get old display data from cache: */ 873 873 const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base(); 874 874 … … 1849 1849 } 1850 1850 1851 bool UIMachineSettingsDisplay::saveD isplayData()1851 bool UIMachineSettingsDisplay::saveData() 1852 1852 { 1853 1853 /* Prepare result: */ 1854 1854 bool fSuccess = true; 1855 /* Save display settings from thecache: */1855 /* Save display settings from cache: */ 1856 1856 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 1857 1857 { 1858 /* Save 'Screen' data from thecache: */1858 /* Save 'Screen' data from cache: */ 1859 1859 if (fSuccess) 1860 1860 fSuccess = saveScreenData(); 1861 /* Save 'Remote Display' data from thecache: */1861 /* Save 'Remote Display' data from cache: */ 1862 1862 if (fSuccess) 1863 1863 fSuccess = saveRemoteDisplayData(); 1864 /* Save 'Video Capture' data from thecache: */1864 /* Save 'Video Capture' data from cache: */ 1865 1865 if (fSuccess) 1866 1866 fSuccess = saveRecordingData(); … … 1874 1874 /* Prepare result: */ 1875 1875 bool fSuccess = true; 1876 /* Save 'Screen' data from thecache: */1876 /* Save 'Screen' data from cache: */ 1877 1877 if (fSuccess) 1878 1878 { 1879 /* Get old display data from thecache: */1879 /* Get old display data from cache: */ 1880 1880 const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base(); 1881 /* Get new display data from thecache: */1881 /* Get new display data from cache: */ 1882 1882 const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data(); 1883 1883 … … 1943 1943 /* Prepare result: */ 1944 1944 bool fSuccess = true; 1945 /* Save 'Remote Display' data from thecache: */1945 /* Save 'Remote Display' data from cache: */ 1946 1946 if (fSuccess) 1947 1947 { 1948 /* Get old display data from thecache: */1948 /* Get old display data from cache: */ 1949 1949 const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base(); 1950 /* Get new display data from thecache: */1950 /* Get new display data from cache: */ 1951 1951 const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data(); 1952 1952 … … 2006 2006 /* Prepare result: */ 2007 2007 bool fSuccess = true; 2008 /* Save 'Recording' data from thecache: */2008 /* Save 'Recording' data from cache: */ 2009 2009 if (fSuccess) 2010 2010 { 2011 /* Get old display data from thecache: */2011 /* Get old display data from cache: */ 2012 2012 const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base(); 2013 /* Get new display data from thecache: */2013 /* Get new display data from cache: */ 2014 2014 const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data(); 2015 2015 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r93990 r94333 57 57 UIMachineSettingsDisplay(); 58 58 /** Destructs Display settings page. */ 59 ~UIMachineSettingsDisplay();59 virtual ~UIMachineSettingsDisplay() RT_OVERRIDE; 60 60 61 61 /** Defines @a comGuestOSType. */ … … 169 169 /** Calculates recording video quality for passed @a iFrameWidth, @a iFrameHeight, @a iFrameRate and @a iBitRate. */ 170 170 static int calculateQuality(int iFrameWidth, int iFrameHeight, int iFrameRate, int iBitRate); 171 /** Saves existing d isplay data from thecache. */172 bool saveD isplayData();173 /** Saves existing 'Screen' data from thecache. */171 /** Saves existing data from cache. */ 172 bool saveData(); 173 /** Saves existing 'Screen' data from cache. */ 174 174 bool saveScreenData(); 175 /** Saves existing 'Remote Display' data from thecache. */175 /** Saves existing 'Remote Display' data from cache. */ 176 176 bool saveRemoteDisplayData(); 177 /** Saves existing 'Recording' data from thecache. */177 /** Saves existing 'Recording' data from cache. */ 178 178 bool saveRecordingData(); 179 179 /** Decide which of the recording related widgets are to be disabled/enabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r93829 r94333 260 260 void UIMachineSettingsGeneral::getFromCache() 261 261 { 262 /* Get old general data from thecache: */262 /* Get old general data from cache: */ 263 263 const UIDataSettingsMachineGeneral &oldGeneralData = m_pCache->base(); 264 264 … … 268 268 repopulateComboDnDMode(); 269 269 270 /* Load old 'Basic' data from thecache: */270 /* Load old 'Basic' data from cache: */ 271 271 AssertPtrReturnVoid(m_pEditorNameAndSystem); 272 272 m_pEditorNameAndSystem->setName(oldGeneralData.m_strName); 273 273 m_pEditorNameAndSystem->setTypeId(oldGeneralData.m_strGuestOsTypeId); 274 274 275 /* Load old 'Advanced' data from thecache: */275 /* Load old 'Advanced' data from cache: */ 276 276 AssertPtrReturnVoid(m_pEditorSnapshotFolder); 277 277 AssertPtrReturnVoid(m_pComboClipboard); … … 284 284 m_pComboDragAndDrop->setCurrentIndex(iDnDModePosition == -1 ? 0 : iDnDModePosition); 285 285 286 /* Load old 'Description' data from thecache: */286 /* Load old 'Description' data from cache: */ 287 287 AssertPtrReturnVoid(m_pEditorDescription); 288 288 m_pEditorDescription->setPlainText(oldGeneralData.m_strDescription); 289 289 290 /* Load old 'Encryption' data from thecache: */290 /* Load old 'Encryption' data from cache: */ 291 291 AssertPtrReturnVoid(m_pCheckBoxEncryption); 292 292 AssertPtrReturnVoid(m_pComboCipher); … … 368 368 UISettingsPageMachine::fetchData(data); 369 369 370 /* Update generaldata and failing state: */371 setFailed(!save GeneralData());370 /* Update data and failing state: */ 371 setFailed(!saveData()); 372 372 373 373 /* Upload machine to data: */ … … 892 892 } 893 893 894 bool UIMachineSettingsGeneral::save GeneralData()894 bool UIMachineSettingsGeneral::saveData() 895 895 { 896 896 /* Prepare result: */ 897 897 bool fSuccess = true; 898 /* Save general settings from thecache: */898 /* Save general settings from cache: */ 899 899 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 900 900 { 901 /* Save 'Basic' data from thecache: */901 /* Save 'Basic' data from cache: */ 902 902 if (fSuccess) 903 903 fSuccess = saveBasicData(); 904 /* Save 'Advanced' data from thecache: */904 /* Save 'Advanced' data from cache: */ 905 905 if (fSuccess) 906 906 fSuccess = saveAdvancedData(); 907 /* Save 'Description' data from thecache: */907 /* Save 'Description' data from cache: */ 908 908 if (fSuccess) 909 909 fSuccess = saveDescriptionData(); 910 /* Save 'Encryption' data from thecache: */910 /* Save 'Encryption' data from cache: */ 911 911 if (fSuccess) 912 912 fSuccess = saveEncryptionData(); … … 920 920 /* Prepare result: */ 921 921 bool fSuccess = true; 922 /* Save 'Basic' data from thecache: */922 /* Save 'Basic' data from cache: */ 923 923 if (fSuccess) 924 924 { 925 /* Get old general data from thecache: */925 /* Get old general data from cache: */ 926 926 const UIDataSettingsMachineGeneral &oldGeneralData = m_pCache->base(); 927 /* Get new general data from thecache: */927 /* Get new general data from cache: */ 928 928 const UIDataSettingsMachineGeneral &newGeneralData = m_pCache->data(); 929 929 … … 959 959 /* Prepare result: */ 960 960 bool fSuccess = true; 961 /* Save 'Advanced' data from thecache: */961 /* Save 'Advanced' data from cache: */ 962 962 if (fSuccess) 963 963 { 964 /* Get old general data from thecache: */964 /* Get old general data from cache: */ 965 965 const UIDataSettingsMachineGeneral &oldGeneralData = m_pCache->base(); 966 /* Get new general data from thecache: */966 /* Get new general data from cache: */ 967 967 const UIDataSettingsMachineGeneral &newGeneralData = m_pCache->data(); 968 968 … … 1006 1006 /* Prepare result: */ 1007 1007 bool fSuccess = true; 1008 /* Save 'Description' data from thecache: */1008 /* Save 'Description' data from cache: */ 1009 1009 if (fSuccess) 1010 1010 { 1011 /* Get old general data from thecache: */1011 /* Get old general data from cache: */ 1012 1012 const UIDataSettingsMachineGeneral &oldGeneralData = m_pCache->base(); 1013 /* Get new general data from thecache: */1013 /* Get new general data from cache: */ 1014 1014 const UIDataSettingsMachineGeneral &newGeneralData = m_pCache->data(); 1015 1015 … … 1033 1033 /* Prepare result: */ 1034 1034 bool fSuccess = true; 1035 /* Save 'Encryption' data from thecache: */1035 /* Save 'Encryption' data from cache: */ 1036 1036 if (fSuccess) 1037 1037 { 1038 /* Get old general data from thecache: */1038 /* Get old general data from cache: */ 1039 1039 const UIDataSettingsMachineGeneral &oldGeneralData = m_pCache->base(); 1040 /* Get new general data from thecache: */1040 /* Get new general data from cache: */ 1041 1041 const UIDataSettingsMachineGeneral &newGeneralData = m_pCache->data(); 1042 1042 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h
r93990 r94333 48 48 UIMachineSettingsGeneral(); 49 49 /** Destructs General settings page. */ 50 ~UIMachineSettingsGeneral();50 virtual ~UIMachineSettingsGeneral() RT_OVERRIDE; 51 51 52 52 /** Returns the VM OS type ID. */ … … 66 66 * @note This task COULD be performed in other than GUI thread. */ 67 67 virtual void loadToCacheFrom(QVariant &data) RT_OVERRIDE; 68 /** Loads data into the corresponding widgets from thecache,68 /** Loads data into the corresponding widgets from cache, 69 69 * @note This task SHOULD be performed in GUI thread only! */ 70 70 virtual void getFromCache() RT_OVERRIDE; … … 73 73 * @note This task SHOULD be performed in GUI thread only! */ 74 74 virtual void putToCache() RT_OVERRIDE; 75 /** Save data from thecache into the corresponding external object(s).75 /** Save data from cache into the corresponding external object(s). 76 76 * @note This task COULD be performed in other than GUI thread. */ 77 77 virtual void saveFromCacheTo(QVariant &data) /* overrride */; … … 120 120 void repopulateComboDnDMode(); 121 121 122 /** Saves existing general data from thecache. */123 bool save GeneralData();124 /** Saves existing 'Basic' data from thecache. */122 /** Saves existing general data from cache. */ 123 bool saveData(); 124 /** Saves existing 'Basic' data from cache. */ 125 125 bool saveBasicData(); 126 /** Saves existing 'Advanced' data from thecache. */126 /** Saves existing 'Advanced' data from cache. */ 127 127 bool saveAdvancedData(); 128 /** Saves existing 'Description' data from thecache. */128 /** Saves existing 'Description' data from cache. */ 129 129 bool saveDescriptionData(); 130 /** Saves existing 'Encryption' data from thecache. */130 /** Saves existing 'Encryption' data from cache. */ 131 131 bool saveEncryptionData(); 132 132 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r94148 r94333 211 211 void UIMachineSettingsInterface::getFromCache() 212 212 { 213 /* Get old interface data from thecache: */213 /* Get old interface data from cache: */ 214 214 const UIDataSettingsMachineInterface &oldInterfaceData = m_pCache->base(); 215 215 216 /* Load old interface data from thecache: */216 /* Load old interface data from cache: */ 217 217 m_pEditorStatusBar->setStatusBarEnabled(oldInterfaceData.m_fStatusBarEnabled); 218 218 m_pEditorStatusBar->setStatusBarConfiguration(oldInterfaceData.m_statusBarRestrictions, … … 288 288 UISettingsPageMachine::fetchData(data); 289 289 290 /* Update interfacedata and failing state: */291 setFailed(!save InterfaceData());290 /* Update data and failing state: */ 291 setFailed(!saveData()); 292 292 293 293 /* Upload machine to data: */ … … 413 413 } 414 414 415 bool UIMachineSettingsInterface::save InterfaceData()415 bool UIMachineSettingsInterface::saveData() 416 416 { 417 417 /* Prepare result: */ 418 418 bool fSuccess = true; 419 /* Save display settings from thecache: */419 /* Save display settings from cache: */ 420 420 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 421 421 { 422 /* Save 'Menu-bar' data from thecache: */422 /* Save 'Menu-bar' data from cache: */ 423 423 if (fSuccess) 424 424 fSuccess = saveMenuBarData(); 425 /* Save 'Status-bar' data from thecache: */425 /* Save 'Status-bar' data from cache: */ 426 426 if (fSuccess) 427 427 fSuccess = saveStatusBarData(); 428 /* Save 'Mini-toolbar' data from thecache: */428 /* Save 'Mini-toolbar' data from cache: */ 429 429 if (fSuccess) 430 430 fSuccess = saveMiniToolbarData(); 431 /* Save 'Visual State' data from thecache: */431 /* Save 'Visual State' data from cache: */ 432 432 if (fSuccess) 433 433 fSuccess = saveVisualStateData(); … … 441 441 /* Prepare result: */ 442 442 bool fSuccess = true; 443 /* Save 'Menu-bar' data from thecache: */443 /* Save 'Menu-bar' data from cache: */ 444 444 if (fSuccess) 445 445 { 446 /* Get old interface data from thecache: */446 /* Get old interface data from cache: */ 447 447 const UIDataSettingsMachineInterface &oldInterfaceData = m_pCache->base(); 448 /* Get new interface data from thecache: */448 /* Get new interface data from cache: */ 449 449 const UIDataSettingsMachineInterface &newInterfaceData = m_pCache->data(); 450 450 … … 494 494 /* Prepare result: */ 495 495 bool fSuccess = true; 496 /* Save 'Status-bar' data from thecache: */496 /* Save 'Status-bar' data from cache: */ 497 497 if (fSuccess) 498 498 { 499 /* Get old interface data from thecache: */499 /* Get old interface data from cache: */ 500 500 const UIDataSettingsMachineInterface &oldInterfaceData = m_pCache->base(); 501 /* Get new interface data from thecache: */501 /* Get new interface data from cache: */ 502 502 const UIDataSettingsMachineInterface &newInterfaceData = m_pCache->data(); 503 503 … … 520 520 /* Prepare result: */ 521 521 bool fSuccess = true; 522 /* Save 'Mini-toolbar' data from thecache: */522 /* Save 'Mini-toolbar' data from cache: */ 523 523 if (fSuccess) 524 524 { 525 /* Get old interface data from thecache: */525 /* Get old interface data from cache: */ 526 526 const UIDataSettingsMachineInterface &oldInterfaceData = m_pCache->base(); Q_UNUSED(oldInterfaceData); 527 /* Get new interface data from thecache: */527 /* Get new interface data from cache: */ 528 528 const UIDataSettingsMachineInterface &newInterfaceData = m_pCache->data(); Q_UNUSED(newInterfaceData); 529 529 … … 545 545 /* Prepare result: */ 546 546 bool fSuccess = true; 547 /* Save 'Visual State' data from thecache: */547 /* Save 'Visual State' data from cache: */ 548 548 if (fSuccess) 549 549 { 550 /* Get old interface data from thecache: */550 /* Get old interface data from cache: */ 551 551 const UIDataSettingsMachineInterface &oldInterfaceData = m_pCache->base(); 552 /* Get new interface data from thecache: */552 /* Get new interface data from cache: */ 553 553 const UIDataSettingsMachineInterface &newInterfaceData = m_pCache->data(); 554 554 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r94148 r94333 46 46 UIMachineSettingsInterface(const QUuid &uMachineId); 47 47 /** Destructs User Interface settings page. */ 48 ~UIMachineSettingsInterface();48 virtual ~UIMachineSettingsInterface() RT_OVERRIDE; 49 49 50 50 protected: … … 84 84 void cleanup(); 85 85 86 /** Saves existing interface data from thecache. */87 bool save InterfaceData();88 /** Saves existing 'Menu-bar' data from thecache. */86 /** Saves existing data from cache. */ 87 bool saveData(); 88 /** Saves existing 'Menu-bar' data from cache. */ 89 89 bool saveMenuBarData(); 90 /** Saves existing 'Status-bar' data from thecache. */90 /** Saves existing 'Status-bar' data from cache. */ 91 91 bool saveStatusBarData(); 92 /** Saves existing 'Mini-toolbar' data from thecache. */92 /** Saves existing 'Mini-toolbar' data from cache. */ 93 93 bool saveMiniToolbarData(); 94 /** Saves existing 'Visual State' data from thecache. */94 /** Saves existing 'Visual State' data from cache. */ 95 95 bool saveVisualStateData(); 96 96 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r94058 r94333 1174 1174 UIMachineSettingsNetwork *pTab = qobject_cast<UIMachineSettingsNetwork*>(m_pTabWidget->widget(iSlot)); 1175 1175 1176 /* Load old adapter data from thecache: */1176 /* Load old adapter data from cache: */ 1177 1177 pTab->getAdapterDataFromCache(m_pCache->child(iSlot)); 1178 1178 … … 1215 1215 UISettingsPageMachine::fetchData(data); 1216 1216 1217 /* Update networkdata and failing state: */1218 setFailed(!save NetworkData());1217 /* Update data and failing state: */ 1218 setFailed(!saveData()); 1219 1219 1220 1220 /* Upload machine to data: */ … … 1513 1513 } 1514 1514 1515 bool UIMachineSettingsNetworkPage::save NetworkData()1515 bool UIMachineSettingsNetworkPage::saveData() 1516 1516 { 1517 1517 /* Prepare result: */ 1518 1518 bool fSuccess = true; 1519 /* Save network settings from thecache: */1519 /* Save network settings from cache: */ 1520 1520 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 1521 1521 { … … 1532 1532 /* Prepare result: */ 1533 1533 bool fSuccess = true; 1534 /* Save adapter settings from thecache: */1534 /* Save adapter settings from cache: */ 1535 1535 if (fSuccess && m_pCache->child(iSlot).wasChanged()) 1536 1536 { 1537 /* Get old network data from thecache: */1537 /* Get old network data from cache: */ 1538 1538 const UIDataSettingsMachineNetworkAdapter &oldAdapterData = m_pCache->child(iSlot).base(); 1539 /* Get new network data from thecache: */1539 /* Get new network data from cache: */ 1540 1540 const UIDataSettingsMachineNetworkAdapter &newAdapterData = m_pCache->child(iSlot).data(); 1541 1541 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r93990 r94333 44 44 UIMachineSettingsNetworkPage(); 45 45 /** Destructs Network settings page. */ 46 ~UIMachineSettingsNetworkPage();46 virtual ~UIMachineSettingsNetworkPage() RT_OVERRIDE; 47 47 48 48 /** Returns the bridged adapter list. */ … … 134 134 static bool saveGenericProperties(CNetworkAdapter &comAdapter, const QString &strProperties); 135 135 136 /** Saves existing network data from thecache. */137 bool save NetworkData();138 /** Saves existing adapter data from thecache. */136 /** Saves existing data from cache. */ 137 bool saveData(); 138 /** Saves existing adapter data from cache. */ 139 139 bool saveAdapterData(int iSlot); 140 140 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r94005 r94333 395 395 updateRootItemsVisibility(); 396 396 397 /* For each folder => load it from thecache: */397 /* For each folder => load it from cache: */ 398 398 for (int iFolderIndex = 0; iFolderIndex < m_pCache->childCount(); ++iFolderIndex) 399 399 addSharedFolderItem(m_pCache->child(iFolderIndex).base(), false /* its new? */); … … 437 437 UISettingsPageMachine::fetchData(data); 438 438 439 /* Update foldersdata and failing state: */440 setFailed(!save FoldersData());439 /* Update data and failing state: */ 440 setFailed(!saveData()); 441 441 442 442 /* Upload machine to data: */ … … 1027 1027 } 1028 1028 1029 bool UIMachineSettingsSF::save FoldersData()1029 bool UIMachineSettingsSF::saveData() 1030 1030 { 1031 1031 /* Prepare result: */ 1032 1032 bool fSuccess = true; 1033 /* Save folders settings from thecache: */1033 /* Save folders settings from cache: */ 1034 1034 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 1035 1035 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h
r93990 r94333 53 53 UIMachineSettingsSF(); 54 54 /** Destructs Shared Folders settings page. */ 55 ~UIMachineSettingsSF();55 virtual ~UIMachineSettingsSF() RT_OVERRIDE; 56 56 57 57 protected: … … 144 144 bool getSharedFolder(const QString &strFolderName, const CSharedFolderVector &folders, CSharedFolder &comFolder); 145 145 146 /** Saves existing folder data from thecache. */147 bool save FoldersData();146 /** Saves existing data from cache. */ 147 bool saveData(); 148 148 /** Removes shared folder defined by a @a folderCache. */ 149 149 bool removeSharedFolder(const UISettingsCacheSharedFolder &folderCache); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r94042 r94333 629 629 UIMachineSettingsSerial *pPage = qobject_cast<UIMachineSettingsSerial*>(m_pTabWidget->widget(iSlot)); 630 630 631 /* Load old port data from thecache: */631 /* Load old port data from cache: */ 632 632 pPage->loadPortData(m_pCache->child(iSlot).base()); 633 633 … … 676 676 UISettingsPageMachine::fetchData(data); 677 677 678 /* Update serialdata and failing state: */679 setFailed(!save SerialData());678 /* Update data and failing state: */ 679 setFailed(!saveData()); 680 680 681 681 /* Upload machine to data: */ … … 823 823 } 824 824 825 bool UIMachineSettingsSerialPage::save SerialData()825 bool UIMachineSettingsSerialPage::saveData() 826 826 { 827 827 /* Prepare result: */ 828 828 bool fSuccess = true; 829 /* Save serial settings from thecache: */829 /* Save serial settings from cache: */ 830 830 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 831 831 { … … 842 842 /* Prepare result: */ 843 843 bool fSuccess = true; 844 /* Save adapter settings from thecache: */844 /* Save adapter settings from cache: */ 845 845 if (fSuccess && m_pCache->child(iSlot).wasChanged()) 846 846 { 847 /* Get old serial data from thecache: */847 /* Get old serial data from cache: */ 848 848 const UIDataSettingsMachineSerialPort &oldPortData = m_pCache->child(iSlot).base(); 849 /* Get new serial data from thecache: */849 /* Get new serial data from cache: */ 850 850 const UIDataSettingsMachineSerialPort &newPortData = m_pCache->child(iSlot).data(); 851 851 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r93990 r94333 43 43 UIMachineSettingsSerialPage(); 44 44 /** Destructs Serial settings page. */ 45 ~UIMachineSettingsSerialPage();45 virtual ~UIMachineSettingsSerialPage() RT_OVERRIDE; 46 46 47 47 protected: … … 80 80 void cleanup(); 81 81 82 /** Saves existing serial data from thecache. */83 bool save SerialData();84 /** Saves existing port data from thecache. */82 /** Saves existing data from cache. */ 83 bool saveData(); 84 /** Saves existing port data from cache. */ 85 85 bool savePortData(int iSlot); 86 86 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r93998 r94333 3131 3131 m_pModelStorage->clear(); 3132 3132 3133 /* Load old common data from thecache: */3133 /* Load old common data from cache: */ 3134 3134 m_pModelStorage->setMachineId(m_uMachineId); 3135 3135 … … 3139 3139 /* Get controller cache: */ 3140 3140 const UISettingsCacheMachineStorageController &controllerCache = m_pCache->child(iControllerIndex); 3141 /* Get old controller data from thecache: */3141 /* Get old controller data from cache: */ 3142 3142 const UIDataSettingsMachineStorageController &oldControllerData = controllerCache.base(); 3143 3143 3144 /* Load old controller data from thecache: */3144 /* Load old controller data from cache: */ 3145 3145 const QModelIndex controllerIndex = m_pModelStorage->addController(oldControllerData.m_strName, 3146 3146 oldControllerData.m_enmBus, … … 3155 3155 /* Get attachment cache: */ 3156 3156 const UISettingsCacheMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex); 3157 /* Get old attachment data from thecache: */3157 /* Get old attachment data from cache: */ 3158 3158 const UIDataSettingsMachineStorageAttachment &oldAttachmentData = attachmentCache.base(); 3159 3159 3160 /* Load old attachment data from thecache: */3160 /* Load old attachment data from cache: */ 3161 3161 const QModelIndex attachmentIndex = m_pModelStorage->addAttachment(controllerId, 3162 3162 oldAttachmentData.m_enmDeviceType, … … 3244 3244 UISettingsPageMachine::fetchData(data); 3245 3245 3246 /* Update storagedata and failing state: */3247 setFailed(!save StorageData());3246 /* Update data and failing state: */ 3247 setFailed(!saveData()); 3248 3248 3249 3249 /* Upload machine to data: */ … … 5379 5379 } 5380 5380 5381 bool UIMachineSettingsStorage::save StorageData()5381 bool UIMachineSettingsStorage::saveData() 5382 5382 { 5383 5383 /* Prepare result: */ 5384 5384 bool fSuccess = true; 5385 /* Save storage settings from thecache: */5385 /* Save storage settings from cache: */ 5386 5386 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 5387 5387 { … … 5445 5445 if (fSuccess && isMachineOffline()) 5446 5446 { 5447 /* Get old controller data from thecache: */5447 /* Get old controller data from cache: */ 5448 5448 const UIDataSettingsMachineStorageController &oldControllerData = controllerCache.base(); 5449 5449 … … 5475 5475 if (fSuccess && isMachineOffline()) 5476 5476 { 5477 /* Get new controller data from thecache: */5477 /* Get new controller data from cache: */ 5478 5478 const UIDataSettingsMachineStorageController &newControllerData = controllerCache.data(); 5479 5479 … … 5562 5562 if (fSuccess) 5563 5563 { 5564 /* Get old controller data from thecache: */5564 /* Get old controller data from cache: */ 5565 5565 const UIDataSettingsMachineStorageController &oldControllerData = controllerCache.base(); 5566 /* Get new controller data from thecache: */5566 /* Get new controller data from cache: */ 5567 5567 const UIDataSettingsMachineStorageController &newControllerData = controllerCache.data(); 5568 5568 … … 5666 5666 if (fSuccess) 5667 5667 { 5668 /* Get old controller data from thecache: */5668 /* Get old controller data from cache: */ 5669 5669 const UIDataSettingsMachineStorageController &oldControllerData = controllerCache.base(); 5670 /* Get old attachment data from thecache: */5670 /* Get old attachment data from cache: */ 5671 5671 const UIDataSettingsMachineStorageAttachment &oldAttachmentData = attachmentCache.base(); 5672 5672 … … 5703 5703 if (fSuccess) 5704 5704 { 5705 /* Get new controller data from thecache: */5705 /* Get new controller data from cache: */ 5706 5706 const UIDataSettingsMachineStorageController &newControllerData = controllerCache.data(); 5707 /* Get new attachment data from thecache: */5707 /* Get new attachment data from cache: */ 5708 5708 const UIDataSettingsMachineStorageAttachment &newAttachmentData = attachmentCache.data(); 5709 5709 … … 5793 5793 if (fSuccess) 5794 5794 { 5795 /* Get new controller data from thecache: */5795 /* Get new controller data from cache: */ 5796 5796 const UIDataSettingsMachineStorageController &newControllerData = controllerCache.data(); 5797 /* Get new attachment data from thecache: */5797 /* Get new attachment data from cache: */ 5798 5798 const UIDataSettingsMachineStorageAttachment &newAttachmentData = attachmentCache.data(); 5799 5799 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r93990 r94333 251 251 void addRecentMediumActions(QMenu *pOpenMediumMenu, UIMediumDeviceType enmRecentMediumType); 252 252 253 /** Saves existing storage data from thecache. */254 bool save StorageData();253 /** Saves existing data from cache. */ 254 bool saveData(); 255 255 /** Removes existing storage controller described by the @a controllerCache. */ 256 256 bool removeStorageController(const UISettingsCacheMachineStorageController &controllerCache); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r93829 r94333 306 306 void UIMachineSettingsSystem::getFromCache() 307 307 { 308 /* Get old system data from thecache: */308 /* Get old system data from cache: */ 309 309 const UIDataSettingsMachineSystem &oldSystemData = m_pCache->base(); 310 310 … … 315 315 repopulateComboParavirtProviderType(); 316 316 317 /* Load old 'Motherboard' data from thecache: */317 /* Load old 'Motherboard' data from cache: */ 318 318 m_pEditorBaseMemory->setValue(oldSystemData.m_iMemorySize); 319 319 m_pEditorBootOrder->setValue(oldSystemData.m_bootItems); … … 326 326 m_pCheckBoxUTC->setChecked(oldSystemData.m_fEnabledUTC); 327 327 328 /* Load old 'Processor' data from thecache: */328 /* Load old 'Processor' data from cache: */ 329 329 m_pSliderProcessorCount->setValue(oldSystemData.m_cCPUCount); 330 330 m_pSliderProcessorExecCap->setValue(oldSystemData.m_iCPUExecCap); … … 332 332 m_pCheckBoxNestedVirtualization->setChecked(oldSystemData.m_fEnabledNestedHwVirtEx); 333 333 334 /* Load old 'Acceleration' data from thecache: */334 /* Load old 'Acceleration' data from cache: */ 335 335 const int iParavirtProviderPosition = m_pComboParavirtProvider->findData(oldSystemData.m_paravirtProvider); 336 336 m_pComboParavirtProvider->setCurrentIndex(iParavirtProviderPosition == -1 ? 0 : iParavirtProviderPosition); … … 397 397 UISettingsPageMachine::fetchData(data); 398 398 399 /* Update systemdata and failing state: */400 setFailed(!save SystemData());399 /* Update data and failing state: */ 400 setFailed(!saveData()); 401 401 402 402 /* Upload machine to data: */ … … 686 686 void UIMachineSettingsSystem::polishPage() 687 687 { 688 /* Get old system data from thecache: */688 /* Get old system data from cache: */ 689 689 const UIDataSettingsMachineSystem &systemData = m_pCache->base(); 690 690 … … 1318 1318 } 1319 1319 1320 bool UIMachineSettingsSystem::save SystemData()1320 bool UIMachineSettingsSystem::saveData() 1321 1321 { 1322 1322 /* Prepare result: */ 1323 1323 bool fSuccess = true; 1324 /* Save general settings from thecache: */1324 /* Save general settings from cache: */ 1325 1325 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 1326 1326 { 1327 /* Save 'Motherboard' data from thecache: */1327 /* Save 'Motherboard' data from cache: */ 1328 1328 if (fSuccess) 1329 1329 fSuccess = saveMotherboardData(); 1330 /* Save 'Processor' data from thecache: */1330 /* Save 'Processor' data from cache: */ 1331 1331 if (fSuccess) 1332 1332 fSuccess = saveProcessorData(); 1333 /* Save 'Acceleration' data from thecache: */1333 /* Save 'Acceleration' data from cache: */ 1334 1334 if (fSuccess) 1335 1335 fSuccess = saveAccelerationData(); … … 1343 1343 /* Prepare result: */ 1344 1344 bool fSuccess = true; 1345 /* Save 'Motherboard' settings from thecache: */1345 /* Save 'Motherboard' settings from cache: */ 1346 1346 if (fSuccess) 1347 1347 { 1348 /* Get old system data from thecache: */1348 /* Get old system data from cache: */ 1349 1349 const UIDataSettingsMachineSystem &oldSystemData = m_pCache->base(); 1350 /* Get new system data from thecache: */1350 /* Get new system data from cache: */ 1351 1351 const UIDataSettingsMachineSystem &newSystemData = m_pCache->data(); 1352 1352 … … 1406 1406 /* Prepare result: */ 1407 1407 bool fSuccess = true; 1408 /* Save 'Processor' settings from thecache: */1408 /* Save 'Processor' settings from cache: */ 1409 1409 if (fSuccess) 1410 1410 { 1411 /* Get old system data from thecache: */1411 /* Get old system data from cache: */ 1412 1412 const UIDataSettingsMachineSystem &oldSystemData = m_pCache->base(); 1413 /* Get new system data from thecache: */1413 /* Get new system data from cache: */ 1414 1414 const UIDataSettingsMachineSystem &newSystemData = m_pCache->data(); 1415 1415 … … 1451 1451 /* Prepare result: */ 1452 1452 bool fSuccess = true; 1453 /* Save 'Acceleration' settings from thecache: */1453 /* Save 'Acceleration' settings from cache: */ 1454 1454 if (fSuccess) 1455 1455 { 1456 /* Get old system data from thecache: */1456 /* Get old system data from cache: */ 1457 1457 const UIDataSettingsMachineSystem &oldSystemData = m_pCache->base(); 1458 /* Get new system data from thecache: */1458 /* Get new system data from cache: */ 1459 1459 const UIDataSettingsMachineSystem &newSystemData = m_pCache->data(); 1460 1460 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r93990 r94333 48 48 UIMachineSettingsSystem(); 49 49 /** Destructs System settings page. */ 50 ~UIMachineSettingsSystem();50 virtual ~UIMachineSettingsSystem() RT_OVERRIDE; 51 51 52 52 /** Returns whether the HW Virt Ex is supported. */ … … 150 150 void retranslateComboParavirtProvider(); 151 151 152 /** Saves existing system data from thecache. */153 bool save SystemData();154 /** Saves existing 'Motherboard' data from thecache. */152 /** Saves existing data from cache. */ 153 bool saveData(); 154 /** Saves existing 'Motherboard' data from cache. */ 155 155 bool saveMotherboardData(); 156 /** Saves existing 'Processor' data from thecache. */156 /** Saves existing 'Processor' data from cache. */ 157 157 bool saveProcessorData(); 158 /** Saves existing 'Acceleration' data from thecache. */158 /** Saves existing 'Acceleration' data from cache. */ 159 159 bool saveAccelerationData(); 160 160 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r94001 r94333 435 435 m_pTreeWidgetFilters->clear(); 436 436 437 /* Get old USB data from thecache: */437 /* Get old USB data from cache: */ 438 438 const UIDataSettingsMachineUSB &oldUsbData = m_pCache->base(); 439 439 … … 450 450 m_pRadioButtonUSB3->setVisible(supportedTypes.contains(KUSBControllerType_XHCI)); 451 451 452 /* Load old USB data from thecache: */452 /* Load old USB data from cache: */ 453 453 m_pCheckBoxUSB->setChecked(oldUsbData.m_fUSBEnabled); 454 454 switch (oldUsbData.m_USBControllerType) … … 460 460 } 461 461 462 /* For each filter => load it from thecache: */462 /* For each filter => load it from cache: */ 463 463 for (int iFilterIndex = 0; iFilterIndex < m_pCache->childCount(); ++iFilterIndex) 464 464 addUSBFilterItem(m_pCache->child(iFilterIndex).base(), false /* its new? */); … … 512 512 UISettingsPageMachine::fetchData(data); 513 513 514 /* Update USBdata and failing state: */515 setFailed(!save USBData());514 /* Update data and failing state: */ 515 setFailed(!saveData()); 516 516 517 517 /* Upload machine to data: */ … … 1087 1087 } 1088 1088 1089 bool UIMachineSettingsUSB::save USBData()1089 bool UIMachineSettingsUSB::saveData() 1090 1090 { 1091 1091 /* Prepare result: */ 1092 1092 bool fSuccess = true; 1093 /* Save USB settings from thecache: */1093 /* Save USB settings from cache: */ 1094 1094 if (fSuccess && isMachineInValidMode() && m_pCache->wasChanged()) 1095 1095 { 1096 /* Get new USB data from thecache: */1096 /* Get new USB data from cache: */ 1097 1097 const UIDataSettingsMachineUSB &newUsbData = m_pCache->data(); 1098 1098 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h
r93990 r94333 53 53 UIMachineSettingsUSB(); 54 54 /** Destructs USB settings page. */ 55 ~UIMachineSettingsUSB();55 virtual ~UIMachineSettingsUSB() RT_OVERRIDE; 56 56 57 57 /** Returns whether the USB is enabled. */ … … 136 136 void addUSBFilterItem(const UIDataSettingsMachineUSBFilter &filterData, bool fChoose); 137 137 138 /** Saves existing USB data from thecache. */139 bool save USBData();138 /** Saves existing data from cache. */ 139 bool saveData(); 140 140 /** Removes USB controllers of passed @a types. */ 141 141 bool removeUSBControllers(const QSet<KUSBControllerType> &types = QSet<KUSBControllerType>());
Note:
See TracChangeset
for help on using the changeset viewer.