Changeset 88577 in vbox
- Timestamp:
- Apr 19, 2021 1:23:37 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r88576 r88577 663 663 src/wizards/newvm/UIWizardNewVMPageNameOSType.h \ 664 664 src/wizards/newvm/UIWizardNewVMPageUnattended.h \ 665 src/wizards/newvm/UIWizardNewVMPage Basic3.h \666 src/wizards/newvm/UIWizardNewVMPage Basic4.h \665 src/wizards/newvm/UIWizardNewVMPageHardware.h \ 666 src/wizards/newvm/UIWizardNewVMPageDisk.h \ 667 667 src/wizards/newvm/UIWizardNewVMPageExpert.h \ 668 668 src/wizards/clonevm/UIWizardCloneVM.h \ … … 1154 1154 src/wizards/newvm/UIWizardNewVMPageNameOSType.cpp \ 1155 1155 src/wizards/newvm/UIWizardNewVMPageUnattended.cpp \ 1156 src/wizards/newvm/UIWizardNewVMPage Basic3.cpp \1157 src/wizards/newvm/UIWizardNewVMPage Basic4.cpp \1156 src/wizards/newvm/UIWizardNewVMPageHardware.cpp \ 1157 src/wizards/newvm/UIWizardNewVMPageDisk.cpp \ 1158 1158 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \ 1159 1159 src/wizards/clonevm/UIWizardCloneVM.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r88576 r88577 25 25 #include "UIWizardNewVMPageNameOSType.h" 26 26 #include "UIWizardNewVMPageUnattended.h" 27 #include "UIWizardNewVMPage Basic3.h"28 #include "UIWizardNewVMPage Basic4.h"27 #include "UIWizardNewVMPageHardware.h" 28 #include "UIWizardNewVMPageDisk.h" 29 29 #include "UIWizardNewVMPageExpert.h" 30 30 #include "UIMessageCenter.h" … … 84 84 setPage(Page1, new UIWizardNewVMPageNameOSType(m_strGroup)); 85 85 setPage(Page2, new UIWizardNewVMPageUnattended); 86 setPage(Page3, new UIWizardNewVMPage Basic3);87 setPage(Page4, new UIWizardNewVMPage Basic4);86 setPage(Page3, new UIWizardNewVMPageHardware); 87 setPage(Page4, new UIWizardNewVMPageDisk); 88 88 89 89 setStartId(Page1); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r88246 r88577 112 112 bool getBoolFieldValue(const QString &strFieldName) const; 113 113 114 friend class UIWizardNewVMPage Basic4;114 friend class UIWizardNewVMPageDisk; 115 115 friend class UIWizardNewVMPageExpert; 116 116 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.cpp
r88576 r88577 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic4class implementation.3 * VBox Qt GUI - UIWizardNewVMPageDisk class implementation. 4 4 */ 5 5 … … 36 36 #include "UIMessageCenter.h" 37 37 #include "UIWizardNewVD.h" 38 #include "UIWizardNewVMPage Basic4.h"38 #include "UIWizardNewVMPageDisk.h" 39 39 40 40 /* COM includes: */ … … 42 42 #include "CSystemProperties.h" 43 43 44 UIWizardNewVMPage 4::UIWizardNewVMPage4()44 UIWizardNewVMPageDiskBase::UIWizardNewVMPageDiskBase() 45 45 : m_fRecommendedNoDisk(false) 46 46 , m_pDiskEmpty(0) … … 53 53 } 54 54 55 SelectedDiskSource UIWizardNewVMPage 4::selectedDiskSource() const55 SelectedDiskSource UIWizardNewVMPageDiskBase::selectedDiskSource() const 56 56 { 57 57 return m_enmSelectedDiskSource; 58 58 } 59 59 60 void UIWizardNewVMPage 4::setSelectedDiskSource(SelectedDiskSource enmSelectedDiskSource)60 void UIWizardNewVMPageDiskBase::setSelectedDiskSource(SelectedDiskSource enmSelectedDiskSource) 61 61 { 62 62 m_enmSelectedDiskSource = enmSelectedDiskSource; 63 63 } 64 64 65 void UIWizardNewVMPage 4::getWithFileOpenDialog()65 void UIWizardNewVMPageDiskBase::getWithFileOpenDialog() 66 66 { 67 67 QUuid uMediumId; … … 79 79 } 80 80 81 void UIWizardNewVMPage 4::retranslateWidgets()81 void UIWizardNewVMPageDiskBase::retranslateWidgets() 82 82 { 83 83 if (m_pDiskEmpty) … … 91 91 } 92 92 93 void UIWizardNewVMPage 4::setEnableDiskSelectionWidgets(bool fEnabled)93 void UIWizardNewVMPageDiskBase::setEnableDiskSelectionWidgets(bool fEnabled) 94 94 { 95 95 if (!m_pDiskSelector || !m_pDiskSelectionButton) … … 100 100 } 101 101 102 QWidget *UIWizardNewVMPage 4::createNewDiskWidgets()102 QWidget *UIWizardNewVMPageDiskBase::createNewDiskWidgets() 103 103 { 104 104 return new QWidget(); 105 105 } 106 106 107 QWidget *UIWizardNewVMPage 4::createDiskWidgets()107 QWidget *UIWizardNewVMPageDiskBase::createDiskWidgets() 108 108 { 109 109 QWidget *pDiskContainer = new QWidget; … … 140 140 } 141 141 142 UIWizardNewVMPage Basic4::UIWizardNewVMPageBasic4()142 UIWizardNewVMPageDisk::UIWizardNewVMPageDisk() 143 143 : m_pLabel(0) 144 144 , m_fUserSetSize(false) … … 176 176 } 177 177 178 CMediumFormat UIWizardNewVMPage Basic4::mediumFormat() const178 CMediumFormat UIWizardNewVMPageDisk::mediumFormat() const 179 179 { 180 180 return m_mediumFormat; 181 181 } 182 182 183 QString UIWizardNewVMPage Basic4::mediumPath() const183 QString UIWizardNewVMPageDisk::mediumPath() const 184 184 { 185 185 return absoluteFilePath(toFileName(m_strDefaultName, m_strDefaultExtension), m_strDefaultPath); 186 186 } 187 187 188 void UIWizardNewVMPage Basic4::prepare()188 void UIWizardNewVMPageDisk::prepare() 189 189 { 190 190 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 201 201 } 202 202 203 QWidget *UIWizardNewVMPage Basic4::createNewDiskWidgets()203 QWidget *UIWizardNewVMPageDisk::createNewDiskWidgets() 204 204 { 205 205 QWidget *pWidget = new QWidget; … … 244 244 } 245 245 246 void UIWizardNewVMPage Basic4::createConnections()246 void UIWizardNewVMPageDisk::createConnections() 247 247 { 248 248 if (m_pDiskSourceButtonGroup) 249 249 connect(m_pDiskSourceButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 250 this, &UIWizardNewVMPage Basic4::sltSelectedDiskSourceChanged);250 this, &UIWizardNewVMPageDisk::sltSelectedDiskSourceChanged); 251 251 if (m_pDiskSelector) 252 252 connect(m_pDiskSelector, static_cast<void(UIMediaComboBox::*)(int)>(&UIMediaComboBox::currentIndexChanged), 253 this, &UIWizardNewVMPage Basic4::sltMediaComboBoxIndexChanged);253 this, &UIWizardNewVMPageDisk::sltMediaComboBoxIndexChanged); 254 254 if (m_pDiskSelectionButton) 255 255 connect(m_pDiskSelectionButton, &QIToolButton::clicked, 256 this, &UIWizardNewVMPage Basic4::sltGetWithFileOpenDialog);256 this, &UIWizardNewVMPageDisk::sltGetWithFileOpenDialog); 257 257 if (m_pMediumSizeEditor) 258 258 { 259 259 connect(m_pMediumSizeEditor, &UIMediumSizeEditor::sigSizeChanged, 260 this, &UIWizardNewVMPage Basic4::completeChanged);260 this, &UIWizardNewVMPageDisk::completeChanged); 261 261 connect(m_pMediumSizeEditor, &UIMediumSizeEditor::sigSizeChanged, 262 this, &UIWizardNewVMPage Basic4::sltHandleSizeEditorChange);263 } 264 } 265 266 void UIWizardNewVMPage Basic4::sltSelectedDiskSourceChanged()262 this, &UIWizardNewVMPageDisk::sltHandleSizeEditorChange); 263 } 264 } 265 266 void UIWizardNewVMPageDisk::sltSelectedDiskSourceChanged() 267 267 { 268 268 if (!m_pDiskSourceButtonGroup) … … 285 285 } 286 286 287 void UIWizardNewVMPage Basic4::sltMediaComboBoxIndexChanged()287 void UIWizardNewVMPageDisk::sltMediaComboBoxIndexChanged() 288 288 { 289 289 /* Make sure to set m_virtualDisk: */ … … 292 292 } 293 293 294 void UIWizardNewVMPage Basic4::sltGetWithFileOpenDialog()294 void UIWizardNewVMPageDisk::sltGetWithFileOpenDialog() 295 295 { 296 296 getWithFileOpenDialog(); 297 297 } 298 298 299 void UIWizardNewVMPage Basic4::retranslateUi()299 void UIWizardNewVMPageDisk::retranslateUi() 300 300 { 301 301 setTitle(UIWizardNewVM::tr("Virtual Hard disk")); … … 308 308 "Alternatively you can create a virtual machine without a virtual hard disk.</p>")); 309 309 310 UIWizardNewVMPage 4::retranslateWidgets();310 UIWizardNewVMPageDiskBase::retranslateWidgets(); 311 311 UIWizardNewVDPage1::retranslateWidgets(); 312 312 UIWizardNewVDPage2::retranslateWidgets(); … … 314 314 } 315 315 316 void UIWizardNewVMPage Basic4::initializePage()316 void UIWizardNewVMPageDisk::initializePage() 317 317 { 318 318 retranslateUi(); … … 357 357 } 358 358 359 void UIWizardNewVMPage Basic4::cleanupPage()359 void UIWizardNewVMPageDisk::cleanupPage() 360 360 { 361 361 UIWizardPage::cleanupPage(); 362 362 } 363 363 364 bool UIWizardNewVMPage Basic4::isComplete() const364 bool UIWizardNewVMPageDisk::isComplete() const 365 365 { 366 366 if (selectedDiskSource() == SelectedDiskSource_New) … … 374 374 } 375 375 376 bool UIWizardNewVMPage Basic4::validatePage()376 bool UIWizardNewVMPageDisk::validatePage() 377 377 { 378 378 bool fResult = true; … … 432 432 } 433 433 434 void UIWizardNewVMPage Basic4::sltHandleSizeEditorChange()434 void UIWizardNewVMPageDisk::sltHandleSizeEditorChange() 435 435 { 436 436 m_fUserSetSize = true; 437 437 } 438 438 439 void UIWizardNewVMPage Basic4::setEnableNewDiskWidgets(bool fEnable)439 void UIWizardNewVMPageDisk::setEnableNewDiskWidgets(bool fEnable) 440 440 { 441 441 if (m_pMediumSizeEditor) … … 447 447 } 448 448 449 void UIWizardNewVMPage Basic4::setVirtualDiskFromDiskCombo()449 void UIWizardNewVMPageDisk::setVirtualDiskFromDiskCombo() 450 450 { 451 451 AssertReturnVoid(m_pDiskSelector); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.h
r88576 r88577 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic4class declaration.3 * VBox Qt GUI - UIWizardNewVMPageDisk class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic4_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic4_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageDisk_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageDisk_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 44 44 45 45 46 class UIWizardNewVMPage 4: public UIWizardPageBase46 class UIWizardNewVMPageDiskBase : public UIWizardPageBase 47 47 { 48 48 … … 52 52 protected: 53 53 54 UIWizardNewVMPage 4();54 UIWizardNewVMPageDiskBase(); 55 55 56 56 SelectedDiskSource selectedDiskSource() const; … … 78 78 }; 79 79 80 class UIWizardNewVMPage Basic4: public UIWizardPage,81 public UIWizardNewVMPage 4,80 class UIWizardNewVMPageDisk : public UIWizardPage, 81 public UIWizardNewVMPageDiskBase, 82 82 public UIWizardNewVDPage1, 83 83 public UIWizardNewVDPage2, … … 93 93 public: 94 94 95 UIWizardNewVMPage Basic4();95 UIWizardNewVMPageDisk(); 96 96 /** For the guide wizard mode medium path, name and extention is static and we have 97 97 * no UI element for this. thus override. */ … … 137 137 }; 138 138 139 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic4_h */139 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageDisk_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88576 r88577 156 156 UIWizardNewVMPageBaseNameOSType::retranslateWidgets(); 157 157 UIWizardNewVMPageBaseUnattended::retranslateWidgets(); 158 UIWizardNewVMPage 3::retranslateWidgets();159 UIWizardNewVMPage 4::retranslateWidgets();158 UIWizardNewVMPageHardwareBase::retranslateWidgets(); 159 UIWizardNewVMPageDiskBase::retranslateWidgets(); 160 160 UIWizardNewVDPage1::retranslateWidgets(); 161 161 UIWizardNewVDPage2::retranslateWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88576 r88577 28 28 #include "UIWizardNewVMPageNameOSType.h" 29 29 #include "UIWizardNewVMPageUnattended.h" 30 #include "UIWizardNewVMPage Basic3.h"31 #include "UIWizardNewVMPage Basic4.h"30 #include "UIWizardNewVMPageHardware.h" 31 #include "UIWizardNewVMPageDisk.h" 32 32 #include "UIWizardNewVDPageBasic3.h" 33 33 … … 40 40 public UIWizardNewVMPageBaseNameOSType, 41 41 public UIWizardNewVMPageBaseUnattended, 42 public UIWizardNewVMPage 3,43 public UIWizardNewVMPage 4,42 public UIWizardNewVMPageHardwareBase, 43 public UIWizardNewVMPageDiskBase, 44 44 public UIWizardNewVDPage1, 45 45 public UIWizardNewVDPage2, -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageHardware.cpp
r88576 r88577 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic3class implementation.3 * VBox Qt GUI - UIWizardNewVMPageHardware class implementation. 4 4 */ 5 5 … … 28 28 #include "UIVirtualCPUEditor.h" 29 29 #include "UIWizardNewVM.h" 30 #include "UIWizardNewVMPage Basic3.h"30 #include "UIWizardNewVMPageHardware.h" 31 31 #include "UIWizardNewVDPageBasic3.h" 32 32 … … 34 34 #include "CGuestOSType.h" 35 35 36 UIWizardNewVMPage 3::UIWizardNewVMPage3()36 UIWizardNewVMPageHardwareBase::UIWizardNewVMPageHardwareBase() 37 37 : m_pBaseMemoryEditor(0) 38 38 , m_pVirtualCPUEditor(0) … … 41 41 } 42 42 43 int UIWizardNewVMPage 3::baseMemory() const43 int UIWizardNewVMPageHardwareBase::baseMemory() const 44 44 { 45 45 if (!m_pBaseMemoryEditor) … … 48 48 } 49 49 50 int UIWizardNewVMPage 3::VCPUCount() const50 int UIWizardNewVMPageHardwareBase::VCPUCount() const 51 51 { 52 52 if (!m_pVirtualCPUEditor) … … 55 55 } 56 56 57 bool UIWizardNewVMPage 3::EFIEnabled() const57 bool UIWizardNewVMPageHardwareBase::EFIEnabled() const 58 58 { 59 59 if (!m_pEFICheckBox) … … 62 62 } 63 63 64 void UIWizardNewVMPage 3::retranslateWidgets()64 void UIWizardNewVMPageHardwareBase::retranslateWidgets() 65 65 { 66 66 if (m_pEFICheckBox) … … 73 73 } 74 74 75 QWidget *UIWizardNewVMPage 3::createHardwareWidgets()75 QWidget *UIWizardNewVMPageHardwareBase::createHardwareWidgets() 76 76 { 77 77 QWidget *pHardwareContainer = new QWidget; … … 89 89 } 90 90 91 UIWizardNewVMPage Basic3::UIWizardNewVMPageBasic3()91 UIWizardNewVMPageHardware::UIWizardNewVMPageHardware() 92 92 : m_pLabel(0) 93 93 { … … 99 99 } 100 100 101 void UIWizardNewVMPage Basic3::prepare()101 void UIWizardNewVMPageHardware::prepare() 102 102 { 103 103 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 111 111 } 112 112 113 void UIWizardNewVMPage Basic3::createConnections()113 void UIWizardNewVMPageHardware::createConnections() 114 114 { 115 115 } 116 116 117 void UIWizardNewVMPage Basic3::retranslateUi()117 void UIWizardNewVMPageHardware::retranslateUi() 118 118 { 119 119 setTitle(UIWizardNewVM::tr("Hardware")); … … 126 126 } 127 127 128 void UIWizardNewVMPage Basic3::initializePage()128 void UIWizardNewVMPageHardware::initializePage() 129 129 { 130 130 retranslateUi(); … … 143 143 } 144 144 145 void UIWizardNewVMPage Basic3::cleanupPage()145 void UIWizardNewVMPageHardware::cleanupPage() 146 146 { 147 147 UIWizardPage::cleanupPage(); 148 148 } 149 149 150 bool UIWizardNewVMPage Basic3::isComplete() const150 bool UIWizardNewVMPageHardware::isComplete() const 151 151 { 152 152 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageHardware.h
r88576 r88577 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic3class declaration.3 * VBox Qt GUI - UIWizardNewVMPageHardware class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic3_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic3_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageHardware_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageHardware_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 40 40 41 41 /** 3rd page of the New Virtual Machine wizard (base part). */ 42 class UIWizardNewVMPage 3: public UIWizardPageBase42 class UIWizardNewVMPageHardwareBase : public UIWizardPageBase 43 43 { 44 44 … … 46 46 47 47 /** Constructor. */ 48 UIWizardNewVMPage 3();48 UIWizardNewVMPageHardwareBase(); 49 49 50 50 … … 71 71 72 72 /** 3rd page of the New Virtual Machine wizard (basic extension). */ 73 class UIWizardNewVMPage Basic3 : public UIWizardPage, public UIWizardNewVMPage373 class UIWizardNewVMPageHardware : public UIWizardPage, public UIWizardNewVMPageHardwareBase 74 74 { 75 75 Q_OBJECT; … … 81 81 82 82 /** Constructor. */ 83 UIWizardNewVMPage Basic3();83 UIWizardNewVMPageHardware(); 84 84 85 85 protected: … … 111 111 }; 112 112 113 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic3_h */113 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageHardware_h */
Note:
See TracChangeset
for help on using the changeset viewer.