Changeset 92437 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 15, 2021 5:32:54 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r92436 r92437 251 251 const char *UIExtraDataDefs::GUI_VMActivityOverview_HiddenColumns = "GUI/VMActivityOverviewHiddenColumns"; 252 252 const char *UIExtraDataDefs::GUI_VMActivityOverview_ShowAllMachines = "GUI/VMActivityOverviewShowAllMachines"; 253 254 const char *UIExtraDataDefs::GUI_MediumSelector_DialogGeometry = "GUI/MediumSelector/DialogGeometry"; 253 255 254 256 /* Obsolete keys: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r92436 r92437 459 459 /** @} */ 460 460 461 /** @name Medium Selector stuff 462 * @{ */ 463 SHARED_LIBRARY_STUFF extern const char *GUI_MediumSelector_DialogGeometry; 464 /** @} */ 465 461 466 /** @name Old key support stuff. 462 467 * @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r92436 r92437 4722 4722 } 4723 4723 4724 QRect UIExtraDataManager::mediumSelectorDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry) 4725 { 4726 return dialogGeometry(GUI_MediumSelector_DialogGeometry, pWidget, pParentWidget, defaultGeometry); 4727 } 4728 4729 void UIExtraDataManager::setMediumSelectorDialogGeometry(const QRect &geometry, bool fMaximized) 4730 { 4731 setDialogGeometry(GUI_MediumSelector_DialogGeometry, geometry, fMaximized); 4732 } 4733 4734 bool UIExtraDataManager::mediumSelectorDialogShouldBeMaximized() 4735 { 4736 const QStringList data = extraDataStringList(GUI_MediumSelector_DialogGeometry); 4737 4738 /* Make sure 5th item has required value: */ 4739 return data.size() == 5 && data[4] == GUI_Geometry_State_Max; 4740 } 4741 4724 4742 void UIExtraDataManager::sltExtraDataChange(const QUuid &uMachineID, const QString &strKey, const QString &strValue) 4725 4743 { -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r92400 r92437 829 829 bool VMActivityOverviewShowAllMachines(); 830 830 void setVMActivityOverviewShowAllMachines(bool fShow); 831 /** @} */ 832 833 /** @name Medium Selector 834 * @{ */ 835 QRect mediumSelectorDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry); 836 void setMediumSelectorDialogGeometry(const QRect &geometry, bool fMaximized); 837 bool mediumSelectorDialogShouldBeMaximized(); 831 838 /** @} */ 832 839 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp
r92430 r92437 57 57 const QString &machineSettingsFilePath, const QString &strMachineGuestOSTypeId, 58 58 const QUuid &uMachineID, QWidget *pParent, UIActionPool *pActionPool) 59 :QIWithRetranslateUI<QI MainDialog>(pParent)59 :QIWithRetranslateUI<QIWithRestorableGeometry<QIMainDialog> >(pParent) 60 60 , m_pCentralWidget(0) 61 61 , m_pMainLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.h
r92414 r92437 25 25 #include "QIMainDialog.h" 26 26 #include "QIWithRetranslateUI.h" 27 #include "QIWithRestorableGeometry.h" 27 28 #include "UIMedium.h" 28 29 #include "UIMediumDefs.h" … … 41 42 class UIMediumSearchWidget; 42 43 43 44 44 /** QIDialog extension providing GUI with a dialog to select an existing medium. */ 45 class SHARED_LIBRARY_STUFF UIMediumSelector : public QIWithRetranslateUI<QI MainDialog>45 class SHARED_LIBRARY_STUFF UIMediumSelector : public QIWithRetranslateUI<QIWithRestorableGeometry<QIMainDialog> > 46 46 { 47 47
Note:
See TracChangeset
for help on using the changeset viewer.