Changeset 85064 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 6, 2020 10:42:13 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r85063 r85064 652 652 src/wizards/newvm/UIWizardNewVMPageBasic1.h \ 653 653 src/wizards/newvm/UIWizardNewVMPageBasic2.h \ 654 src/wizards/newvm/UIWizardNewVMPageBasic Disk.h \654 src/wizards/newvm/UIWizardNewVMPageBasic3.h \ 655 655 src/wizards/newvm/UIWizardNewVMPageExpert.h \ 656 656 src/wizards/clonevm/UIWizardCloneVM.h \ … … 1114 1114 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \ 1115 1115 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \ 1116 src/wizards/newvm/UIWizardNewVMPageBasic Disk.cpp \1116 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \ 1117 1117 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \ 1118 1118 src/wizards/clonevm/UIWizardCloneVM.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r85063 r85064 21 21 #include "UIWizardNewVMPageBasic1.h" 22 22 #include "UIWizardNewVMPageBasic2.h" 23 #include "UIWizardNewVMPageBasic Disk.h"23 #include "UIWizardNewVMPageBasic3.h" 24 24 #include "UIWizardNewVMPageExpert.h" 25 25 #include "UIMessageCenter.h" … … 76 76 setPage(Page1, new UIWizardNewVMPageBasic1(m_strGroup)); 77 77 setPage(Page2, new UIWizardNewVMPageBasic2); 78 setPage(Page Disk, new UIWizardNewVMPageBasicDisk);78 setPage(Page3, new UIWizardNewVMPageBasic3); 79 79 setStartId(Page1); 80 80 break; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r85063 r85064 62 62 Page1, 63 63 Page2, 64 Page Disk,64 Page3, 65 65 PageMax 66 66 }; … … 98 98 99 99 /* Who will be able to create virtual-machine: */ 100 friend class UIWizardNewVMPageBasic Disk;100 friend class UIWizardNewVMPageBasic3; 101 101 friend class UIWizardNewVMPageExpert; 102 102 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r85063 r85064 508 508 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); 509 509 if (!pWizard || !pWizard->isUnattendedInstallEnabled()) 510 return UIWizardNewVM::Page Disk;510 return UIWizardNewVM::Page3; 511 511 return UIWizardNewVM::Page2; 512 512 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r85063 r85064 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPageBasic Diskclass implementation.3 * VBox Qt GUI - UIWizardNewVMPageBasic3 class implementation. 4 4 */ 5 5 … … 35 35 #include "UIWizardNewVD.h" 36 36 #include "UIWizardNewVM.h" 37 #include "UIWizardNewVMPageBasic Disk.h"38 39 UIWizardNewVMPage Disk::UIWizardNewVMPageDisk()37 #include "UIWizardNewVMPageBasic3.h" 38 39 UIWizardNewVMPage3::UIWizardNewVMPage3() 40 40 : m_fRecommendedNoDisk(false) 41 41 , m_pToolBox(0) … … 50 50 } 51 51 52 void UIWizardNewVMPage Disk::updateVirtualDiskSource()52 void UIWizardNewVMPage3::updateVirtualDiskSource() 53 53 { 54 54 /* Enable/disable controls: */ … … 71 71 } 72 72 73 void UIWizardNewVMPage Disk::getWithFileOpenDialog()73 void UIWizardNewVMPage3::getWithFileOpenDialog() 74 74 { 75 75 /* Get opened medium id: */ … … 94 94 } 95 95 96 bool UIWizardNewVMPage Disk::getWithNewVirtualDiskWizard()96 bool UIWizardNewVMPage3::getWithNewVirtualDiskWizard() 97 97 { 98 98 /* Create New Virtual Hard Drive wizard: */ … … 116 116 } 117 117 118 int UIWizardNewVMPage Disk::baseMemory() const118 int UIWizardNewVMPage3::baseMemory() const 119 119 { 120 120 if (!m_pBaseMemoryEditor) … … 123 123 } 124 124 125 int UIWizardNewVMPage Disk::VCPUCount() const125 int UIWizardNewVMPage3::VCPUCount() const 126 126 { 127 127 if (!m_pVirtualCPUEditor) … … 130 130 } 131 131 132 void UIWizardNewVMPage Disk::ensureNewVirtualDiskDeleted()132 void UIWizardNewVMPage3::ensureNewVirtualDiskDeleted() 133 133 { 134 134 /* Make sure virtual-disk valid: */ … … 154 154 } 155 155 156 void UIWizardNewVMPage Disk::createDiskWidgets()156 void UIWizardNewVMPage3::createDiskWidgets() 157 157 { 158 158 QWidget *pDiskContainer = new QWidget; … … 186 186 } 187 187 188 void UIWizardNewVMPage Disk::createHardwareWidgets()188 void UIWizardNewVMPage3::createHardwareWidgets() 189 189 { 190 190 QWidget *pHardwareContainer = new QWidget; … … 201 201 } 202 202 203 UIWizardNewVMPageBasic Disk::UIWizardNewVMPageBasicDisk()203 UIWizardNewVMPageBasic3::UIWizardNewVMPageBasic3() 204 204 { 205 205 prepare(); … … 215 215 } 216 216 217 void UIWizardNewVMPageBasic Disk::prepare()217 void UIWizardNewVMPageBasic3::prepare() 218 218 { 219 219 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 231 231 } 232 232 233 void UIWizardNewVMPageBasic Disk::createConnections()233 void UIWizardNewVMPageBasic3::createConnections() 234 234 { 235 235 connect(m_pDiskSkip, &QRadioButton::toggled, 236 this, &UIWizardNewVMPageBasic Disk::sltVirtualDiskSourceChanged);236 this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged); 237 237 connect(m_pDiskCreate, &QRadioButton::toggled, 238 this, &UIWizardNewVMPageBasic Disk::sltVirtualDiskSourceChanged);238 this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged); 239 239 connect(m_pDiskPresent, &QRadioButton::toggled, 240 this, &UIWizardNewVMPageBasic Disk::sltVirtualDiskSourceChanged);240 this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged); 241 241 connect(m_pDiskSelector, static_cast<void(UIMediaComboBox::*)(int)>(&UIMediaComboBox::currentIndexChanged), 242 this, &UIWizardNewVMPageBasic Disk::sltVirtualDiskSourceChanged);242 this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged); 243 243 connect(m_pVMMButton, &QIToolButton::clicked, 244 this, &UIWizardNewVMPageBasic Disk::sltGetWithFileOpenDialog);245 } 246 247 void UIWizardNewVMPageBasic Disk::sltVirtualDiskSourceChanged()244 this, &UIWizardNewVMPageBasic3::sltGetWithFileOpenDialog); 245 } 246 247 void UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged() 248 248 { 249 249 /* Call to base-class: */ … … 254 254 } 255 255 256 void UIWizardNewVMPageBasic Disk::sltGetWithFileOpenDialog()256 void UIWizardNewVMPageBasic3::sltGetWithFileOpenDialog() 257 257 { 258 258 /* Call to base-class: */ … … 260 260 } 261 261 262 void UIWizardNewVMPageBasic Disk::retranslateUi()262 void UIWizardNewVMPageBasic3::retranslateUi() 263 263 { 264 264 /* Translate page: */ … … 289 289 } 290 290 291 void UIWizardNewVMPageBasic Disk::initializePage()291 void UIWizardNewVMPageBasic3::initializePage() 292 292 { 293 293 /* Translate page: */ … … 310 310 } 311 311 312 void UIWizardNewVMPageBasic Disk::cleanupPage()312 void UIWizardNewVMPageBasic3::cleanupPage() 313 313 { 314 314 /* Call to base-class: */ … … 317 317 } 318 318 319 bool UIWizardNewVMPageBasic Disk::isComplete() const319 bool UIWizardNewVMPageBasic3::isComplete() const 320 320 { 321 321 /* Make sure 'virtualDisk' field feats the rules: */ … … 325 325 } 326 326 327 bool UIWizardNewVMPageBasic Disk::validatePage()327 bool UIWizardNewVMPageBasic3::validatePage() 328 328 { 329 329 /* Initial result: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.h
r85063 r85064 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPageBasic Diskclass declaration.3 * VBox Qt GUI - UIWizardNewVMPageBasic3 class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic Disk_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic Disk_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 41 41 class UIVirtualCPUEditor; 42 42 43 /* 3rd page of the New Virtual Machine wizard (base part):*/44 class UIWizardNewVMPage Disk: public UIWizardPageBase43 /** 3rd page of the New Virtual Machine wizard (base part). */ 44 class UIWizardNewVMPage3 : public UIWizardPageBase 45 45 { 46 46 … … 54 54 55 55 56 /* Constructor:*/57 UIWizardNewVMPage Disk();56 /** Constructor. */ 57 UIWizardNewVMPage3(); 58 58 59 /* Handlers:*/59 /** Handlers. */ 60 60 void updateVirtualDiskSource(); 61 61 void getWithFileOpenDialog(); 62 62 bool getWithNewVirtualDiskWizard(); 63 63 64 /* Stuff for 'virtualDisk' field:*/64 /** Stuff for 'virtualDisk' field. */ 65 65 CMedium virtualDisk() const { return m_virtualDisk; } 66 66 void setVirtualDisk(const CMedium &virtualDisk) { m_virtualDisk = virtualDisk; } 67 67 68 /* Stuff for 'virtualDiskId' field:*/68 /** Stuff for 'virtualDiskId' field. */ 69 69 QUuid virtualDiskId() const { return m_uVirtualDiskId; } 70 70 void setVirtualDiskId(const QUuid &uVirtualDiskId) { m_uVirtualDiskId = uVirtualDiskId; } 71 71 72 /* Stuff for 'virtualDiskName' field:*/72 /** Stuff for 'virtualDiskName' field. */ 73 73 QString virtualDiskName() const { return m_strVirtualDiskName; } 74 74 void setVirtualDiskName(const QString &strVirtualDiskName) { m_strVirtualDiskName = strVirtualDiskName; } 75 75 76 /* Stuff for 'virtualDiskLocation' field:*/76 /** Stuff for 'virtualDiskLocation' field. */ 77 77 QString virtualDiskLocation() const { return m_strVirtualDiskLocation; } 78 78 void setVirtualDiskLocation(const QString &strVirtualDiskLocation) { m_strVirtualDiskLocation = strVirtualDiskLocation; } … … 84 84 void createHardwareWidgets(); 85 85 86 /* Helpers:*/86 /** Helpers. */ 87 87 void ensureNewVirtualDiskDeleted(); 88 88 89 /* Input:*/89 /** Input. */ 90 90 bool m_fRecommendedNoDisk; 91 91 92 /* Variables:*/92 /** Variables. */ 93 93 CMedium m_virtualDisk; 94 94 QUuid m_uVirtualDiskId; … … 110 110 }; 111 111 112 /* 3rd page of the New Virtual Machine wizard (basic extension):*/113 class UIWizardNewVMPageBasic Disk : public UIWizardPage, public UIWizardNewVMPageDisk112 /** 3rd page of the New Virtual Machine wizard (basic extension). */ 113 class UIWizardNewVMPageBasic3 : public UIWizardPage, public UIWizardNewVMPage3 114 114 { 115 115 Q_OBJECT; … … 123 123 public: 124 124 125 /* Constructor:*/126 UIWizardNewVMPageBasic Disk();125 /** Constructor. */ 126 UIWizardNewVMPageBasic3(); 127 127 128 128 protected: 129 129 130 /* Wrapper to access 'wizard' from base part:*/130 /** Wrapper to access 'wizard' from base part. */ 131 131 UIWizard *wizardImp() const { return wizard(); } 132 /* Wrapper to access 'this' from base part:*/132 /** Wrapper to access 'this' from base part. */ 133 133 UIWizardPage* thisImp() { return this; } 134 /* Wrapper to access 'wizard-field' from base part:*/134 /** Wrapper to access 'wizard-field' from base part. */ 135 135 QVariant fieldImp(const QString &strFieldName) const { return UIWizardPage::field(strFieldName); } 136 136 137 137 private slots: 138 138 139 /* Handlers:*/139 /** Handlers. */ 140 140 void sltVirtualDiskSourceChanged(); 141 141 void sltGetWithFileOpenDialog(); … … 144 144 145 145 146 /** Prepare stuff :*/146 /** Prepare stuff. */ 147 147 void prepare(); 148 148 void createConnections(); … … 151 151 void cleanupPage(); 152 152 153 /** Validation stuff :*/153 /** Validation stuff. */ 154 154 bool isComplete() const; 155 155 bool validatePage(); 156 156 157 /* Widgets:*/157 /** Widgets. */ 158 158 QIRichTextLabel *m_pLabel; 159 159 }; 160 160 161 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic Disk_h */161 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r85063 r85064 24 24 /* Local includes: */ 25 25 #include "UIWizardNewVMPageBasic1.h" 26 #include "UIWizardNewVMPageBasic Disk.h"26 #include "UIWizardNewVMPageBasic3.h" 27 27 28 28 /* Forward declarations: */ … … 32 32 class UIWizardNewVMPageExpert : public UIWizardPage, 33 33 public UIWizardNewVMPage1, 34 public UIWizardNewVMPage Disk34 public UIWizardNewVMPage3 35 35 { 36 36 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.