Changeset 85063 in vbox
- Timestamp:
- Jul 6, 2020 10:19:00 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r85055 r85063 652 652 src/wizards/newvm/UIWizardNewVMPageBasic1.h \ 653 653 src/wizards/newvm/UIWizardNewVMPageBasic2.h \ 654 src/wizards/newvm/UIWizardNewVMPageBasicHardware.h \655 654 src/wizards/newvm/UIWizardNewVMPageBasicDisk.h \ 656 655 src/wizards/newvm/UIWizardNewVMPageExpert.h \ … … 1115 1114 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \ 1116 1115 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \ 1117 src/wizards/newvm/UIWizardNewVMPageBasicHardware.cpp \1118 1116 src/wizards/newvm/UIWizardNewVMPageBasicDisk.cpp \ 1119 1117 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.cpp
r82968 r85063 26 26 27 27 28 UIMediaComboBox::UIMediaComboBox(QWidget *pParent )28 UIMediaComboBox::UIMediaComboBox(QWidget *pParent /* = 0 */) 29 29 : QComboBox(pParent) 30 30 , m_enmMediaType(UIMediumDeviceType_Invalid) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediaComboBox.h
r82968 r85063 41 41 42 42 /** Constructs media combo-box passing @a pParent to the base-class. */ 43 UIMediaComboBox(QWidget *pParent );43 UIMediaComboBox(QWidget *pParent = 0); 44 44 45 45 /** Performs refresh. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r85055 r85063 21 21 #include "UIWizardNewVMPageBasic1.h" 22 22 #include "UIWizardNewVMPageBasic2.h" 23 #include "UIWizardNewVMPageBasicHardware.h"24 23 #include "UIWizardNewVMPageBasicDisk.h" 25 24 #include "UIWizardNewVMPageExpert.h" … … 77 76 setPage(Page1, new UIWizardNewVMPageBasic1(m_strGroup)); 78 77 setPage(Page2, new UIWizardNewVMPageBasic2); 79 setPage(PageHardware, new UIWizardNewVMPageBasicHardware);80 78 setPage(PageDisk, new UIWizardNewVMPageBasicDisk); 81 79 setStartId(Page1); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r85055 r85063 62 62 Page1, 63 63 Page2, 64 PageHardware,65 64 PageDisk, 66 65 PageMax -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r85055 r85063 508 508 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); 509 509 if (!pWizard || !pWizard->isUnattendedInstallEnabled()) 510 return UIWizardNewVM::Page Hardware;510 return UIWizardNewVM::PageDisk; 511 511 return UIWizardNewVM::Page2; 512 512 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp
r85056 r85063 119 119 } 120 120 121 void UIWizardNewVMPage2::createUserNameHostNameWidgets() 122 { 123 if (!m_pToolBox) 124 return; 125 QWidget *pContainer = new QWidget; 126 QGridLayout *pGridLayout = new QGridLayout(pContainer); 127 128 m_pUserNamePasswordEditor = new UIUserNamePasswordEditor; 129 pGridLayout->addWidget(m_pUserNamePasswordEditor, 0, 0, 3, 4); 130 m_pHostnameLabel = new QLabel; 131 m_pHostnameLineEdit = new QLineEdit; 132 pGridLayout->addWidget(m_pHostnameLabel, 3, 0, 1, 1, Qt::AlignRight); 133 pGridLayout->addWidget(m_pHostnameLineEdit, 3, 1, 1, 3); 134 m_pToolBox->insertItem(ToolBoxItems_UserNameHostname, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 135 } 136 137 void UIWizardNewVMPage2::createGAInstallWidgets() 138 { 139 if (!m_pToolBox) 140 return; 141 QWidget *pContainer = new QWidget; 142 QGridLayout *pContainerLayout = new QGridLayout(pContainer); 143 144 m_pInstallGACheckBox = new QCheckBox; 145 m_pISOPathLabel = new QLabel; 146 { 147 m_pISOPathLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); 148 m_pISOPathLabel->setEnabled(false); 149 } 150 m_pISOFilePathSelector = new UIFilePathSelector; 151 { 152 m_pISOFilePathSelector->setResetEnabled(false); 153 m_pISOFilePathSelector->setMode(UIFilePathSelector::Mode_File_Open); 154 m_pISOFilePathSelector->setFileDialogFilters("*.iso *.ISO"); 155 m_pISOFilePathSelector->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); 156 m_pISOFilePathSelector->setEnabled(false); 157 } 158 159 pContainerLayout->addWidget(m_pInstallGACheckBox, 0, 0, 1, 5); 160 pContainerLayout->addWidget(m_pISOPathLabel, 1, 1, 1, 1); 161 pContainerLayout->addWidget(m_pISOFilePathSelector, 1, 2, 1, 4); 162 163 m_pToolBox->insertItem(ToolBoxItems_GAInstall, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 164 } 165 166 void UIWizardNewVMPage2::createProductKeyWidgets() 167 { 168 if (!m_pToolBox) 169 return; 170 QWidget *pContainer = new QWidget; 171 QGridLayout *pGridLayout = new QGridLayout(pContainer); 172 173 m_pProductKeyLabel = new QLabel; 174 m_pProductKeyLineEdit = new QLineEdit; 175 m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#"); 176 pGridLayout->addWidget(m_pProductKeyLabel, 0, 0, 1, 1, Qt::AlignRight); 177 pGridLayout->addWidget(m_pProductKeyLineEdit, 0, 1, 1, 3); 178 m_pToolBox->insertItem(ToolBoxItems_ProductKey, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 179 } 180 121 181 bool UIWizardNewVMPage2::checkGAISOFile() const 122 182 { … … 160 220 registerField("guestAdditionsISOPath", this, "guestAdditionsISOPath"); 161 221 registerField("productKey", this, "productKey"); 162 } 163 164 void UIWizardNewVMPageBasic2::createUserNameHostNameWidgets() 165 { 166 if (!m_pToolBox) 167 return; 168 QWidget *pContainer = new QWidget; 169 QGridLayout *pGridLayout = new QGridLayout(pContainer); 170 171 m_pUserNamePasswordEditor = new UIUserNamePasswordEditor; 172 pGridLayout->addWidget(m_pUserNamePasswordEditor, 0, 0, 3, 4); 173 connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigSomeTextChanged, 174 this, &UIWizardNewVMPageBasic2::completeChanged); 175 m_pHostnameLabel = new QLabel; 176 m_pHostnameLineEdit = new QLineEdit; 177 pGridLayout->addWidget(m_pHostnameLabel, 3, 0, 1, 1, Qt::AlignRight); 178 pGridLayout->addWidget(m_pHostnameLineEdit, 3, 1, 1, 3); 179 180 m_pToolBox->insertItem(Tabs_UserNameHostname, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 181 182 } 183 184 void UIWizardNewVMPageBasic2::createGAInstallWidgets() 185 { 186 if (!m_pToolBox) 187 return; 188 QWidget *pContainer = new QWidget; 189 QGridLayout *pContainerLayout = new QGridLayout(pContainer); 190 191 m_pInstallGACheckBox = new QCheckBox; 192 connect(m_pInstallGACheckBox, &QCheckBox::toggled, this, &UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle); 193 m_pISOPathLabel = new QLabel; 194 { 195 m_pISOPathLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); 196 m_pISOPathLabel->setEnabled(false); 197 } 198 m_pISOFilePathSelector = new UIFilePathSelector; 199 { 200 m_pISOFilePathSelector->setResetEnabled(false); 201 m_pISOFilePathSelector->setMode(UIFilePathSelector::Mode_File_Open); 202 m_pISOFilePathSelector->setFileDialogFilters("*.iso *.ISO"); 203 m_pISOFilePathSelector->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); 204 m_pISOFilePathSelector->setEnabled(false); 205 connect(m_pISOFilePathSelector, &UIFilePathSelector::pathChanged, this, &UIWizardNewVMPageBasic2::sltGAISOPathChanged); 206 } 207 208 pContainerLayout->addWidget(m_pInstallGACheckBox, 0, 0, 1, 5); 209 pContainerLayout->addWidget(m_pISOPathLabel, 1, 1, 1, 1); 210 pContainerLayout->addWidget(m_pISOFilePathSelector, 1, 2, 1, 4); 211 212 m_pToolBox->insertItem(Tabs_GAInstall, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 213 } 214 215 void UIWizardNewVMPageBasic2::createProductKeyWidgets() 216 { 217 if (!m_pToolBox) 218 return; 219 QWidget *pContainer = new QWidget; 220 QGridLayout *pGridLayout = new QGridLayout(pContainer); 221 222 223 m_pProductKeyLabel = new QLabel; 224 m_pProductKeyLineEdit = new QLineEdit; 225 m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#"); 226 pGridLayout->addWidget(m_pProductKeyLabel, 0, 0, 1, 1, Qt::AlignRight); 227 pGridLayout->addWidget(m_pProductKeyLineEdit, 0, 1, 1, 3); 228 229 m_pToolBox->insertItem(Tabs_ProductKey, pContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 222 223 createConnections(); 224 } 225 226 void UIWizardNewVMPageBasic2::createConnections() 227 { 228 if (m_pUserNamePasswordEditor) 229 connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigSomeTextChanged, 230 this, &UIWizardNewVMPageBasic2::completeChanged); 231 if (m_pInstallGACheckBox) 232 connect(m_pInstallGACheckBox, &QCheckBox::toggled, this, 233 &UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle); 234 if (m_pISOFilePathSelector) 235 connect(m_pISOFilePathSelector, &UIFilePathSelector::pathChanged, 236 this, &UIWizardNewVMPageBasic2::sltGAISOPathChanged); 230 237 } 231 238 … … 234 241 setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup")); 235 242 if (m_pLabel) 236 m_pLabel->setText(UIWizardNewVM::tr("<p>Here you can configure the unattended install by modifying user 243 m_pLabel->setText(UIWizardNewVM::tr("<p>Here you can configure the unattended install by modifying username, password, and " 237 244 "hostname. You can additionally enable guest additions install and a product key for " 238 245 "Microsoft Windows guests.</p>")); … … 241 248 if (m_pToolBox) 242 249 { 243 m_pToolBox->setItemText(T abs_UserNameHostname, UIWizardNewVM::tr("UserName and hostname"));244 m_pToolBox->setItemText(T abs_GAInstall, UIWizardNewVM::tr("Guest additions install"));245 m_pToolBox->setItemText(T abs_ProductKey, UIWizardNewVM::tr("Product key"));250 m_pToolBox->setItemText(ToolBoxItems_UserNameHostname, UIWizardNewVM::tr("Username and hostname")); 251 m_pToolBox->setItemText(ToolBoxItems_GAInstall, UIWizardNewVM::tr("Guest additions install")); 252 m_pToolBox->setItemText(ToolBoxItems_ProductKey, UIWizardNewVM::tr("Product key")); 246 253 } 247 254 if (m_pInstallGACheckBox) … … 277 284 if (m_pToolBox) 278 285 { 279 QWidget *pProductKeyWidget = m_pToolBox->widget(T abs_ProductKey);286 QWidget *pProductKeyWidget = m_pToolBox->widget(ToolBoxItems_ProductKey); 280 287 if (pProductKeyWidget) 281 288 pProductKeyWidget->setEnabled(isProductKeyWidgetVisible()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.h
r85056 r85063 60 60 61 61 protected: 62 enum Tabs62 enum 63 63 { 64 Tabs_UserNameHostname, 65 Tabs_GAInstall, 66 Tabs_ProductKey, 67 Tabs_Max 64 ToolBoxItems_UserNameHostname, 65 ToolBoxItems_GAInstall, 66 ToolBoxItems_ProductKey 68 67 }; 68 69 void createUserNameHostNameWidgets(); 70 void createGAInstallWidgets(); 71 void createProductKeyWidgets(); 69 72 70 73 bool checkGAISOFile() const; … … 116 119 117 120 void prepare(); 118 void createUserNameHostNameWidgets(); 119 void createGAInstallWidgets(); 120 void createProductKeyWidgets(); 121 void createConnections(); 121 122 void retranslateUi(); 122 123 void initializePage(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasicDisk.cpp
r84886 r85063 20 20 #include <QMetaType> 21 21 #include <QRadioButton> 22 #include <QToolBox> 22 23 #include <QVBoxLayout> 23 24 … … 25 26 #include "QIRichTextLabel.h" 26 27 #include "QIToolButton.h" 28 #include "UIBaseMemoryEditor.h" 27 29 #include "UIIconPool.h" 28 30 #include "UIMediaComboBox.h" … … 30 32 #include "UIMediumSelector.h" 31 33 #include "UIMessageCenter.h" 34 #include "UIVirtualCPUEditor.h" 32 35 #include "UIWizardNewVD.h" 33 36 #include "UIWizardNewVM.h" … … 36 39 UIWizardNewVMPageDisk::UIWizardNewVMPageDisk() 37 40 : m_fRecommendedNoDisk(false) 41 , m_pToolBox(0) 42 , m_pDiskSkip(0) 43 , m_pDiskCreate(0) 44 , m_pDiskPresent(0) 45 , m_pDiskSelector(0) 46 , m_pVMMButton(0) 47 , m_pBaseMemoryEditor(0) 48 , m_pVirtualCPUEditor(0) 38 49 { 39 50 } … … 105 116 } 106 117 118 int UIWizardNewVMPageDisk::baseMemory() const 119 { 120 if (!m_pBaseMemoryEditor) 121 return 0; 122 return m_pBaseMemoryEditor->value(); 123 } 124 125 int UIWizardNewVMPageDisk::VCPUCount() const 126 { 127 if (!m_pVirtualCPUEditor) 128 return 1; 129 return m_pVirtualCPUEditor->value(); 130 } 131 107 132 void UIWizardNewVMPageDisk::ensureNewVirtualDiskDeleted() 108 133 { … … 129 154 } 130 155 156 void UIWizardNewVMPageDisk::createDiskWidgets() 157 { 158 QWidget *pDiskContainer = new QWidget; 159 QGridLayout *pDiskLayout = new QGridLayout(pDiskContainer); 160 161 m_pDiskSkip = new QRadioButton; 162 m_pDiskCreate = new QRadioButton; 163 m_pDiskPresent = new QRadioButton; 164 QStyleOptionButton options; 165 options.initFrom(m_pDiskPresent); 166 int iWidth = m_pDiskPresent->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &options, m_pDiskPresent); 167 pDiskLayout->setColumnMinimumWidth(0, iWidth); 168 m_pDiskSelector = new UIMediaComboBox; 169 { 170 m_pDiskSelector->setType(UIMediumDeviceType_HardDisk); 171 m_pDiskSelector->repopulate(); 172 } 173 m_pVMMButton = new QIToolButton; 174 { 175 m_pVMMButton->setAutoRaise(true); 176 m_pVMMButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_disabled_16px.png")); 177 } 178 pDiskLayout->addWidget(m_pDiskSkip, 0, 0, 1, 3); 179 pDiskLayout->addWidget(m_pDiskCreate, 1, 0, 1, 3); 180 pDiskLayout->addWidget(m_pDiskPresent, 2, 0, 1, 3); 181 pDiskLayout->addWidget(m_pDiskSelector, 3, 1); 182 pDiskLayout->addWidget(m_pVMMButton, 3, 2); 183 184 if (m_pToolBox) 185 m_pToolBox->insertItem(ToolBoxItems_Disk, pDiskContainer, UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 186 } 187 188 void UIWizardNewVMPageDisk::createHardwareWidgets() 189 { 190 QWidget *pHardwareContainer = new QWidget; 191 QGridLayout *pHardwareLayout = new QGridLayout(pHardwareContainer); 192 193 m_pBaseMemoryEditor = new UIBaseMemoryEditor(0, true); 194 m_pVirtualCPUEditor = new UIVirtualCPUEditor(0, true); 195 pHardwareLayout->addWidget(m_pBaseMemoryEditor, 0, 0, 1, 4); 196 pHardwareLayout->addWidget(m_pVirtualCPUEditor, 1, 0, 1, 4); 197 198 if (m_pToolBox) 199 m_pToolBox->insertItem(ToolBoxItems_Hardware, pHardwareContainer, 200 UIIconPool::iconSet(":/cloud_profile_manager_16px.png"), QString()); 201 } 202 131 203 UIWizardNewVMPageBasicDisk::UIWizardNewVMPageBasicDisk() 132 204 { 133 /* Create widgets: */ 205 prepare(); 206 /* Register classes: */ 207 qRegisterMetaType<CMedium>(); 208 /* Register fields: */ 209 registerField("virtualDisk", this, "virtualDisk"); 210 registerField("virtualDiskId", this, "virtualDiskId"); 211 registerField("virtualDiskName", this, "virtualDiskName"); 212 registerField("virtualDiskLocation", this, "virtualDiskLocation"); 213 registerField("baseMemory", this, "baseMemory"); 214 registerField("VCPUCount", this, "VCPUCount"); 215 } 216 217 void UIWizardNewVMPageBasicDisk::prepare() 218 { 134 219 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 135 { 136 m_pLabel = new QIRichTextLabel(this); 137 QGridLayout *pDiskLayout = new QGridLayout; 138 { 139 m_pDiskSkip = new QRadioButton(this); 140 m_pDiskCreate = new QRadioButton(this); 141 m_pDiskPresent = new QRadioButton(this); 142 QStyleOptionButton options; 143 options.initFrom(m_pDiskPresent); 144 int iWidth = m_pDiskPresent->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &options, m_pDiskPresent); 145 pDiskLayout->setColumnMinimumWidth(0, iWidth); 146 m_pDiskSelector = new UIMediaComboBox(this); 147 { 148 m_pDiskSelector->setType(UIMediumDeviceType_HardDisk); 149 m_pDiskSelector->repopulate(); 150 } 151 m_pVMMButton = new QIToolButton(this); 152 { 153 m_pVMMButton->setAutoRaise(true); 154 m_pVMMButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_disabled_16px.png")); 155 } 156 pDiskLayout->addWidget(m_pDiskSkip, 0, 0, 1, 3); 157 pDiskLayout->addWidget(m_pDiskCreate, 1, 0, 1, 3); 158 pDiskLayout->addWidget(m_pDiskPresent, 2, 0, 1, 3); 159 pDiskLayout->addWidget(m_pDiskSelector, 3, 1); 160 pDiskLayout->addWidget(m_pVMMButton, 3, 2); 161 } 162 pMainLayout->addWidget(m_pLabel); 163 pMainLayout->addLayout(pDiskLayout); 164 pMainLayout->addStretch(); 165 updateVirtualDiskSource(); 166 } 167 168 /* Setup connections: */ 220 m_pToolBox = new QToolBox; 221 222 m_pLabel = new QIRichTextLabel(this); 223 pMainLayout->addWidget(m_pLabel); 224 pMainLayout->addWidget(m_pToolBox); 225 createDiskWidgets(); 226 createHardwareWidgets(); 227 228 pMainLayout->addStretch(); 229 updateVirtualDiskSource(); 230 createConnections(); 231 } 232 233 void UIWizardNewVMPageBasicDisk::createConnections() 234 { 169 235 connect(m_pDiskSkip, &QRadioButton::toggled, 170 236 this, &UIWizardNewVMPageBasicDisk::sltVirtualDiskSourceChanged); … … 177 243 connect(m_pVMMButton, &QIToolButton::clicked, 178 244 this, &UIWizardNewVMPageBasicDisk::sltGetWithFileOpenDialog); 179 180 /* Register classes: */181 qRegisterMetaType<CMedium>();182 /* Register fields: */183 registerField("virtualDisk", this, "virtualDisk");184 registerField("virtualDiskId", this, "virtualDiskId");185 registerField("virtualDiskName", this, "virtualDiskName");186 registerField("virtualDiskLocation", this, "virtualDiskLocation");187 245 } 188 246 … … 215 273 "<p>If you need a more complex storage set-up you can skip this step " 216 274 "and make the changes to the machine settings once the machine is created.</p>" 217 "<p>The recommended size of the hard disk is <b>%1</b>.</p>") 275 "<p>The recommended size of the hard disk is <b>%1</b>.</p>" 276 "<p>You can modify the virtual machine's hardware.</p>") 218 277 .arg(strRecommendedHDD)); 278 219 279 m_pDiskSkip->setText(UIWizardNewVM::tr("&Do not add a virtual hard disk")); 220 280 m_pDiskCreate->setText(UIWizardNewVM::tr("&Create a virtual hard disk now")); 221 281 m_pDiskPresent->setText(UIWizardNewVM::tr("&Use an existing virtual hard disk file")); 222 282 m_pVMMButton->setToolTip(UIWizardNewVM::tr("Choose a virtual hard disk file...")); 283 284 if (m_pToolBox) 285 { 286 m_pToolBox->setItemText(ToolBoxItems_Disk, UIWizardNewVM::tr("Hard Disk")); 287 m_pToolBox->setItemText(ToolBoxItems_Hardware, UIWizardNewVM::tr("Hardware")); 288 } 223 289 } 224 290 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasicDisk.h
r84886 r85063 34 34 /* Forward declarations: */ 35 35 class QRadioButton; 36 class QToolBox; 36 37 class QIRichTextLabel; 37 38 class QIToolButton; 39 class UIBaseMemoryEditor; 38 40 class UIMediaComboBox; 41 class UIVirtualCPUEditor; 39 42 40 43 /* 3rd page of the New Virtual Machine wizard (base part): */ 41 44 class UIWizardNewVMPageDisk : public UIWizardPageBase 42 45 { 46 43 47 protected: 48 49 enum 50 { 51 ToolBoxItems_Disk, 52 ToolBoxItems_Hardware 53 }; 54 44 55 45 56 /* Constructor: */ … … 67 78 void setVirtualDiskLocation(const QString &strVirtualDiskLocation) { m_strVirtualDiskLocation = strVirtualDiskLocation; } 68 79 80 int baseMemory() const; 81 int VCPUCount() const; 82 83 void createDiskWidgets(); 84 void createHardwareWidgets(); 85 69 86 /* Helpers: */ 70 87 void ensureNewVirtualDiskDeleted(); … … 79 96 QString m_strVirtualDiskLocation; 80 97 81 /* Widgets: */ 82 QRadioButton *m_pDiskSkip; 83 QRadioButton *m_pDiskCreate; 84 QRadioButton *m_pDiskPresent; 85 UIMediaComboBox *m_pDiskSelector; 86 QIToolButton *m_pVMMButton; 98 /** @name Widgets 99 * @{ */ 100 QToolBox *m_pToolBox; 101 QRadioButton *m_pDiskSkip; 102 QRadioButton *m_pDiskCreate; 103 QRadioButton *m_pDiskPresent; 104 UIMediaComboBox *m_pDiskSelector; 105 QIToolButton *m_pVMMButton; 106 UIBaseMemoryEditor *m_pBaseMemoryEditor; 107 UIVirtualCPUEditor *m_pVirtualCPUEditor; 108 /** @} */ 109 87 110 }; 88 111 … … 95 118 Q_PROPERTY(QString virtualDiskName READ virtualDiskName WRITE setVirtualDiskName); 96 119 Q_PROPERTY(QString virtualDiskLocation READ virtualDiskLocation WRITE setVirtualDiskLocation); 120 Q_PROPERTY(int baseMemory READ baseMemory); 121 Q_PROPERTY(int VCPUCount READ VCPUCount); 97 122 98 123 public: … … 118 143 private: 119 144 120 /* Translate stuff: */ 145 146 /** Prepare stuff: */ 147 void prepare(); 148 void createConnections(); 121 149 void retranslateUi(); 122 123 /* Prepare stuff: */124 150 void initializePage(); 125 151 void cleanupPage(); 126 152 127 /* Validation stuff: */153 /** Validation stuff: */ 128 154 bool isComplete() const; 129 155 bool validatePage(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r85055 r85063 24 24 /* Local includes: */ 25 25 #include "UIWizardNewVMPageBasic1.h" 26 #include "UIWizardNewVMPageBasicHardware.h"27 26 #include "UIWizardNewVMPageBasicDisk.h" 28 27 … … 33 32 class UIWizardNewVMPageExpert : public UIWizardPage, 34 33 public UIWizardNewVMPage1, 35 public UIWizardNewVMPageHardware,36 34 public UIWizardNewVMPageDisk 37 35 {
Note:
See TracChangeset
for help on using the changeset viewer.