Changeset 88576 in vbox
- Timestamp:
- Apr 19, 2021 1:00:07 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r88444 r88576 661 661 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \ 662 662 src/wizards/newvm/UIWizardNewVM.h \ 663 src/wizards/newvm/UIWizardNewVMPage Basic1.h \664 src/wizards/newvm/UIWizardNewVMPage Basic2.h \663 src/wizards/newvm/UIWizardNewVMPageNameOSType.h \ 664 src/wizards/newvm/UIWizardNewVMPageUnattended.h \ 665 665 src/wizards/newvm/UIWizardNewVMPageBasic3.h \ 666 666 src/wizards/newvm/UIWizardNewVMPageBasic4.h \ … … 1152 1152 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \ 1153 1153 src/wizards/newvm/UIWizardNewVM.cpp \ 1154 src/wizards/newvm/UIWizardNewVMPage Basic1.cpp \1155 src/wizards/newvm/UIWizardNewVMPage Basic2.cpp \1154 src/wizards/newvm/UIWizardNewVMPageNameOSType.cpp \ 1155 src/wizards/newvm/UIWizardNewVMPageUnattended.cpp \ 1156 1156 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \ 1157 1157 src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r88246 r88576 23 23 #include "UICommon.h" 24 24 #include "UIWizardNewVM.h" 25 #include "UIWizardNewVMPage Basic1.h"26 #include "UIWizardNewVMPage Basic2.h"25 #include "UIWizardNewVMPageNameOSType.h" 26 #include "UIWizardNewVMPageUnattended.h" 27 27 #include "UIWizardNewVMPageBasic3.h" 28 28 #include "UIWizardNewVMPageBasic4.h" … … 82 82 case WizardMode_Basic: 83 83 { 84 setPage(Page1, new UIWizardNewVMPage Basic1(m_strGroup));85 setPage(Page2, new UIWizardNewVMPage Basic2);84 setPage(Page1, new UIWizardNewVMPageNameOSType(m_strGroup)); 85 setPage(Page2, new UIWizardNewVMPageUnattended); 86 86 setPage(Page3, new UIWizardNewVMPageBasic3); 87 87 setPage(Page4, new UIWizardNewVMPageBasic4); … … 510 510 case WizardMode_Basic: 511 511 { 512 UIWizardNewVMPage Basic1 *pPage = qobject_cast<UIWizardNewVMPageBasic1*> (page(Page1));512 UIWizardNewVMPageNameOSType *pPage = qobject_cast<UIWizardNewVMPageNameOSType*> (page(Page1)); 513 513 /* Make sure that we were able to find the page that created the folder. */ 514 514 Assert(pPage); … … 531 531 void UIWizardNewVM::sltHandleDetectedOSTypeChange() 532 532 { 533 UIWizardNewVMPage Basic1 *pPage = qobject_cast<UIWizardNewVMPageBasic1*>(page(Page1));533 UIWizardNewVMPageNameOSType *pPage = qobject_cast<UIWizardNewVMPageNameOSType*>(page(Page1)); 534 534 if (!pPage) 535 535 return; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88268 r88576 48 48 49 49 UIWizardNewVMPageExpert::UIWizardNewVMPageExpert(const QString &strGroup) 50 : UIWizardNewVMPage 1(strGroup)50 : UIWizardNewVMPageBaseNameOSType(strGroup) 51 51 , m_pToolBox(0) 52 52 , m_pDiskFormatGroupBox(0) … … 154 154 void UIWizardNewVMPageExpert::retranslateUi() 155 155 { 156 UIWizardNewVMPage 1::retranslateWidgets();157 UIWizardNewVMPage 2::retranslateWidgets();156 UIWizardNewVMPageBaseNameOSType::retranslateWidgets(); 157 UIWizardNewVMPageBaseUnattended::retranslateWidgets(); 158 158 UIWizardNewVMPage3::retranslateWidgets(); 159 159 UIWizardNewVMPage4::retranslateWidgets(); … … 338 338 void UIWizardNewVMPageExpert::markWidgets() const 339 339 { 340 UIWizardNewVMPage 1::markWidgets();341 UIWizardNewVMPage 2::markWidgets();340 UIWizardNewVMPageBaseNameOSType::markWidgets(); 341 UIWizardNewVMPageBaseUnattended::markWidgets(); 342 342 } 343 343 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88116 r88576 26 26 27 27 /* Local includes: */ 28 #include "UIWizardNewVMPage Basic1.h"29 #include "UIWizardNewVMPage Basic2.h"28 #include "UIWizardNewVMPageNameOSType.h" 29 #include "UIWizardNewVMPageUnattended.h" 30 30 #include "UIWizardNewVMPageBasic3.h" 31 31 #include "UIWizardNewVMPageBasic4.h" … … 38 38 /** Expert page of the New Virtual Machine wizard. */ 39 39 class UIWizardNewVMPageExpert : public UIWizardPage, 40 public UIWizardNewVMPage 1,41 public UIWizardNewVMPage 2,40 public UIWizardNewVMPageBaseNameOSType, 41 public UIWizardNewVMPageBaseUnattended, 42 42 public UIWizardNewVMPage3, 43 43 public UIWizardNewVMPage4, -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageNameOSType.cpp
r88575 r88576 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPageBasic 1class implementation.3 * VBox Qt GUI - UIWizardNewVMPageBasicNameOSStype class implementation. 4 4 */ 5 5 … … 31 31 #include "UIMessageCenter.h" 32 32 #include "UINameAndSystemEditor.h" 33 #include "UIWizardNewVMPage Basic1.h"33 #include "UIWizardNewVMPageNameOSType.h" 34 34 #include "UIWizardNewVM.h" 35 35 … … 178 178 }; 179 179 180 UIWizardNewVMPage 1::UIWizardNewVMPage1(const QString &strGroup)180 UIWizardNewVMPageBaseNameOSType::UIWizardNewVMPageBaseNameOSType(const QString &strGroup) 181 181 : m_pNameAndSystemEditor(0) 182 182 , m_pSkipUnattendedCheckBox(0) … … 188 188 } 189 189 190 void UIWizardNewVMPage 1::onNameChanged(QString strNewName)190 void UIWizardNewVMPageBaseNameOSType::onNameChanged(QString strNewName) 191 191 { 192 192 /* Do not forget about achitecture bits, if not yet specified: */ … … 204 204 } 205 205 206 void UIWizardNewVMPage 1::onOsTypeChanged()206 void UIWizardNewVMPageBaseNameOSType::onOsTypeChanged() 207 207 { 208 208 /* If the user manually edited the OS type, we didn't want our automatic OS type guessing anymore. … … 212 212 } 213 213 214 void UIWizardNewVMPage 1::composeMachineFilePath()214 void UIWizardNewVMPageBaseNameOSType::composeMachineFilePath() 215 215 { 216 216 if (!m_pNameAndSystemEditor) … … 232 232 } 233 233 234 QWidget *UIWizardNewVMPage 1::createNameOSTypeWidgets()234 QWidget *UIWizardNewVMPageBaseNameOSType::createNameOSTypeWidgets() 235 235 { 236 236 /* Prepare container widget: */ … … 264 264 } 265 265 266 bool UIWizardNewVMPage 1::createMachineFolder()266 bool UIWizardNewVMPageBaseNameOSType::createMachineFolder() 267 267 { 268 268 if (!m_pNameAndSystemEditor) … … 302 302 } 303 303 304 bool UIWizardNewVMPage 1::cleanupMachineFolder(bool fWizardCancel /* = false */)304 bool UIWizardNewVMPageBaseNameOSType::cleanupMachineFolder(bool fWizardCancel /* = false */) 305 305 { 306 306 /* Make sure folder was previosly created: */ … … 321 321 } 322 322 323 QString UIWizardNewVMPage 1::machineFilePath() const323 QString UIWizardNewVMPageBaseNameOSType::machineFilePath() const 324 324 { 325 325 return m_strMachineFilePath; 326 326 } 327 327 328 void UIWizardNewVMPage 1::setMachineFilePath(const QString &strMachineFilePath)328 void UIWizardNewVMPageBaseNameOSType::setMachineFilePath(const QString &strMachineFilePath) 329 329 { 330 330 m_strMachineFilePath = strMachineFilePath; 331 331 } 332 332 333 QString UIWizardNewVMPage 1::machineFolder() const333 QString UIWizardNewVMPageBaseNameOSType::machineFolder() const 334 334 { 335 335 return m_strMachineFolder; 336 336 } 337 337 338 void UIWizardNewVMPage 1::setMachineFolder(const QString &strMachineFolder)338 void UIWizardNewVMPageBaseNameOSType::setMachineFolder(const QString &strMachineFolder) 339 339 { 340 340 m_strMachineFolder = strMachineFolder; 341 341 } 342 342 343 QString UIWizardNewVMPage 1::machineBaseName() const343 QString UIWizardNewVMPageBaseNameOSType::machineBaseName() const 344 344 { 345 345 return m_strMachineBaseName; 346 346 } 347 347 348 void UIWizardNewVMPage 1::setMachineBaseName(const QString &strMachineBaseName)348 void UIWizardNewVMPageBaseNameOSType::setMachineBaseName(const QString &strMachineBaseName) 349 349 { 350 350 m_strMachineBaseName = strMachineBaseName; 351 351 } 352 352 353 QString UIWizardNewVMPage 1::guestOSFamiyId() const353 QString UIWizardNewVMPageBaseNameOSType::guestOSFamiyId() const 354 354 { 355 355 if (!m_pNameAndSystemEditor) … … 358 358 } 359 359 360 void UIWizardNewVMPage 1::markWidgets() const360 void UIWizardNewVMPageBaseNameOSType::markWidgets() const 361 361 { 362 362 if (m_pNameAndSystemEditor) … … 367 367 } 368 368 369 void UIWizardNewVMPage 1::retranslateWidgets()369 void UIWizardNewVMPageBaseNameOSType::retranslateWidgets() 370 370 { 371 371 if (m_pSkipUnattendedCheckBox) … … 378 378 } 379 379 380 QString UIWizardNewVMPage 1::ISOFilePath() const380 QString UIWizardNewVMPageBaseNameOSType::ISOFilePath() const 381 381 { 382 382 if (!m_pNameAndSystemEditor) … … 385 385 } 386 386 387 bool UIWizardNewVMPage 1::isUnattendedEnabled() const387 bool UIWizardNewVMPageBaseNameOSType::isUnattendedEnabled() const 388 388 { 389 389 if (!m_pNameAndSystemEditor) … … 397 397 } 398 398 399 const QString &UIWizardNewVMPage 1::detectedOSTypeId() const399 const QString &UIWizardNewVMPageBaseNameOSType::detectedOSTypeId() const 400 400 { 401 401 return m_strDetectedOSTypeId; 402 402 } 403 403 404 bool UIWizardNewVMPage 1::determineOSType(const QString &strISOPath)404 bool UIWizardNewVMPageBaseNameOSType::determineOSType(const QString &strISOPath) 405 405 { 406 406 QFileInfo isoFileInfo(strISOPath); … … 419 419 } 420 420 421 bool UIWizardNewVMPage 1::skipUnattendedInstall() const421 bool UIWizardNewVMPageBaseNameOSType::skipUnattendedInstall() const 422 422 { 423 423 return m_pSkipUnattendedCheckBox && m_pSkipUnattendedCheckBox->isChecked(); 424 424 } 425 425 426 bool UIWizardNewVMPage 1::checkISOFile() const426 bool UIWizardNewVMPageBaseNameOSType::checkISOFile() const 427 427 { 428 428 if (!m_pNameAndSystemEditor) … … 437 437 } 438 438 439 void UIWizardNewVMPage 1::setSkipCheckBoxEnable()439 void UIWizardNewVMPageBaseNameOSType::setSkipCheckBoxEnable() 440 440 { 441 441 if (!m_pSkipUnattendedCheckBox) … … 448 448 } 449 449 450 void UIWizardNewVMPage 1::setTypeByISODetectedOSType(const QString &strDetectedOSType)450 void UIWizardNewVMPageBaseNameOSType::setTypeByISODetectedOSType(const QString &strDetectedOSType) 451 451 { 452 452 Q_UNUSED(strDetectedOSType); … … 456 456 457 457 458 UIWizardNewVMPage Basic1::UIWizardNewVMPageBasic1(const QString &strGroup)459 : UIWizardNewVMPage 1(strGroup)458 UIWizardNewVMPageNameOSType::UIWizardNewVMPageNameOSType(const QString &strGroup) 459 : UIWizardNewVMPageBaseNameOSType(strGroup) 460 460 , m_pNameOSTypeLabel(0) 461 461 { … … 463 463 } 464 464 465 void UIWizardNewVMPage Basic1::prepare()465 void UIWizardNewVMPageNameOSType::prepare() 466 466 { 467 467 /* Prepare page layout: */ … … 494 494 } 495 495 496 void UIWizardNewVMPage Basic1::createConnections()496 void UIWizardNewVMPageNameOSType::createConnections() 497 497 { 498 498 if (m_pNameAndSystemEditor) 499 499 { 500 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMPage Basic1::sltNameChanged);501 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMPage Basic1::sltPathChanged);502 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMPage Basic1::sltOsTypeChanged);503 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMPage Basic1::sltISOPathChanged);504 } 505 } 506 507 bool UIWizardNewVMPage Basic1::isComplete() const500 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMPageNameOSType::sltNameChanged); 501 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMPageNameOSType::sltPathChanged); 502 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMPageNameOSType::sltOsTypeChanged); 503 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMPageNameOSType::sltISOPathChanged); 504 } 505 } 506 507 bool UIWizardNewVMPageNameOSType::isComplete() const 508 508 { 509 509 markWidgets(); … … 513 513 } 514 514 515 int UIWizardNewVMPage Basic1::nextId() const515 int UIWizardNewVMPageNameOSType::nextId() const 516 516 { 517 517 if (isUnattendedEnabled()) … … 520 520 } 521 521 522 void UIWizardNewVMPage Basic1::sltNameChanged(const QString &strNewName)522 void UIWizardNewVMPageNameOSType::sltNameChanged(const QString &strNewName) 523 523 { 524 524 onNameChanged(strNewName); … … 526 526 } 527 527 528 void UIWizardNewVMPage Basic1::sltPathChanged(const QString &strNewPath)528 void UIWizardNewVMPageNameOSType::sltPathChanged(const QString &strNewPath) 529 529 { 530 530 Q_UNUSED(strNewPath); … … 532 532 } 533 533 534 void UIWizardNewVMPage Basic1::sltOsTypeChanged()534 void UIWizardNewVMPageNameOSType::sltOsTypeChanged() 535 535 { 536 536 /* Call to base-class: */ … … 538 538 } 539 539 540 void UIWizardNewVMPage Basic1::retranslateUi()540 void UIWizardNewVMPageNameOSType::retranslateUi() 541 541 { 542 542 retranslateWidgets(); … … 553 553 } 554 554 555 void UIWizardNewVMPage Basic1::initializePage()555 void UIWizardNewVMPageNameOSType::initializePage() 556 556 { 557 557 /* Translate page: */ … … 562 562 } 563 563 564 void UIWizardNewVMPage Basic1::cleanupPage()564 void UIWizardNewVMPageNameOSType::cleanupPage() 565 565 { 566 566 /* Cleanup: */ … … 570 570 } 571 571 572 bool UIWizardNewVMPage Basic1::validatePage()572 bool UIWizardNewVMPageNameOSType::validatePage() 573 573 { 574 574 /* Try to create machine folder: */ … … 576 576 } 577 577 578 void UIWizardNewVMPage Basic1::sltISOPathChanged(const QString &strPath)578 void UIWizardNewVMPageNameOSType::sltISOPathChanged(const QString &strPath) 579 579 { 580 580 determineOSType(strPath); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageNameOSType.h
r88575 r88576 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic1class declaration.3 * VBox Qt GUI - UIWizardNewVMPageNameOSType class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic1_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic1_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 38 38 39 39 /** 1st page of the New Virtual Machine wizard (base part): */ 40 class UIWizardNewVMPage 1: public UIWizardPageBase40 class UIWizardNewVMPageBaseNameOSType : public UIWizardPageBase 41 41 { 42 42 protected: 43 43 44 44 /** Constructor. */ 45 UIWizardNewVMPage 1(const QString &strGroup);45 UIWizardNewVMPageBaseNameOSType(const QString &strGroup); 46 46 47 47 /** Handlers. */ … … 116 116 117 117 /** 1st page of the New Virtual Machine wizard (basic extension). */ 118 class UIWizardNewVMPage Basic1 : public UIWizardPage, public UIWizardNewVMPage1118 class UIWizardNewVMPageNameOSType : public UIWizardPage, public UIWizardNewVMPageBaseNameOSType 119 119 { 120 120 … … 131 131 132 132 /** Constructor. */ 133 UIWizardNewVMPage Basic1(const QString &strGroup);133 UIWizardNewVMPageNameOSType(const QString &strGroup); 134 134 virtual bool isComplete() const; /* override */ 135 135 virtual int nextId() const /* override */; … … 169 169 }; 170 170 171 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic1_h */171 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageUnattended.cpp
r88575 r88576 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic2class implementation.3 * VBox Qt GUI - UIWizardNewVMPageUnattended class implementation. 4 4 */ 5 5 … … 32 32 #include "UIIconPool.h" 33 33 #include "UIUserNamePasswordEditor.h" 34 #include "UIWizardNewVMPage Basic2.h"34 #include "UIWizardNewVMPageUnattended.h" 35 35 #include "UIWizardNewVM.h" 36 36 … … 40 40 #include "CUnattended.h" 41 41 42 UIWizardNewVMPage 2::UIWizardNewVMPage2()42 UIWizardNewVMPageBaseUnattended::UIWizardNewVMPageBaseUnattended() 43 43 : m_pUserNameContainer(0) 44 44 , m_pAdditionalOptionsContainer(0) … … 56 56 } 57 57 58 QString UIWizardNewVMPage 2::userName() const58 QString UIWizardNewVMPageBaseUnattended::userName() const 59 59 { 60 60 if (m_pUserNamePasswordEditor) … … 63 63 } 64 64 65 void UIWizardNewVMPage 2::setUserName(const QString &strName)65 void UIWizardNewVMPageBaseUnattended::setUserName(const QString &strName) 66 66 { 67 67 if (m_pUserNamePasswordEditor) … … 69 69 } 70 70 71 QString UIWizardNewVMPage 2::password() const71 QString UIWizardNewVMPageBaseUnattended::password() const 72 72 { 73 73 if (m_pUserNamePasswordEditor) … … 76 76 } 77 77 78 void UIWizardNewVMPage 2::setPassword(const QString &strPassword)78 void UIWizardNewVMPageBaseUnattended::setPassword(const QString &strPassword) 79 79 { 80 80 if (m_pUserNamePasswordEditor) … … 82 82 } 83 83 84 QString UIWizardNewVMPage 2::hostname() const84 QString UIWizardNewVMPageBaseUnattended::hostname() const 85 85 { 86 86 if (m_pHostnameLineEdit) … … 89 89 } 90 90 91 void UIWizardNewVMPage 2::setHostname(const QString &strHostName)91 void UIWizardNewVMPageBaseUnattended::setHostname(const QString &strHostName) 92 92 { 93 93 if (m_pHostnameLineEdit) … … 95 95 } 96 96 97 bool UIWizardNewVMPage 2::installGuestAdditions() const97 bool UIWizardNewVMPageBaseUnattended::installGuestAdditions() const 98 98 { 99 99 if (!m_pGAInstallationISOContainer) … … 102 102 } 103 103 104 void UIWizardNewVMPage 2::setInstallGuestAdditions(bool fInstallGA)104 void UIWizardNewVMPageBaseUnattended::setInstallGuestAdditions(bool fInstallGA) 105 105 { 106 106 if (m_pGAInstallationISOContainer) … … 108 108 } 109 109 110 QString UIWizardNewVMPage 2::guestAdditionsISOPath() const110 QString UIWizardNewVMPageBaseUnattended::guestAdditionsISOPath() const 111 111 { 112 112 if (!m_pGAISOFilePathSelector) … … 115 115 } 116 116 117 void UIWizardNewVMPage 2::setGuestAdditionsISOPath(const QString &strISOPath)117 void UIWizardNewVMPageBaseUnattended::setGuestAdditionsISOPath(const QString &strISOPath) 118 118 { 119 119 if (m_pGAISOFilePathSelector) … … 121 121 } 122 122 123 QString UIWizardNewVMPage 2::productKey() const123 QString UIWizardNewVMPageBaseUnattended::productKey() const 124 124 { 125 125 if (!m_pProductKeyLineEdit || !m_pProductKeyLineEdit->hasAcceptableInput()) … … 128 128 } 129 129 130 QWidget *UIWizardNewVMPage 2::createGAInstallWidgets()130 QWidget *UIWizardNewVMPageBaseUnattended::createGAInstallWidgets() 131 131 { 132 132 if (m_pGAInstallationISOContainer) … … 171 171 } 172 172 173 bool UIWizardNewVMPage 2::checkGAISOFile() const173 bool UIWizardNewVMPageBaseUnattended::checkGAISOFile() const 174 174 { 175 175 if (!m_pGAISOFilePathSelector) … … 185 185 } 186 186 187 void UIWizardNewVMPage 2::markWidgets() const187 void UIWizardNewVMPageBaseUnattended::markWidgets() const 188 188 { 189 189 if (installGuestAdditions()) … … 191 191 } 192 192 193 void UIWizardNewVMPage 2::retranslateWidgets()193 void UIWizardNewVMPageBaseUnattended::retranslateWidgets() 194 194 { 195 195 if (m_pHostnameLabel) … … 220 220 } 221 221 222 void UIWizardNewVMPage 2::disableEnableGAWidgets(bool fEnabled)222 void UIWizardNewVMPageBaseUnattended::disableEnableGAWidgets(bool fEnabled) 223 223 { 224 224 if (m_pGAISOPathLabel) … … 228 228 } 229 229 230 void UIWizardNewVMPage 2::disableEnableProductKeyWidgets(bool fEnabled)230 void UIWizardNewVMPageBaseUnattended::disableEnableProductKeyWidgets(bool fEnabled) 231 231 { 232 232 if (m_pProductKeyLabel) … … 236 236 } 237 237 238 bool UIWizardNewVMPage 2::startHeadless() const238 bool UIWizardNewVMPageBaseUnattended::startHeadless() const 239 239 { 240 240 if (!m_pStartHeadlessCheckBox) … … 243 243 } 244 244 245 QWidget *UIWizardNewVMPage 2::createUserNameWidgets()245 QWidget *UIWizardNewVMPageBaseUnattended::createUserNameWidgets() 246 246 { 247 247 if (m_pUserNameContainer) … … 259 259 } 260 260 261 QWidget *UIWizardNewVMPage 2::createAdditionalOptionsWidgets()261 QWidget *UIWizardNewVMPageBaseUnattended::createAdditionalOptionsWidgets() 262 262 { 263 263 if (m_pAdditionalOptionsContainer) … … 307 307 } 308 308 309 bool UIWizardNewVMPage 2::isGAInstallEnabled() const309 bool UIWizardNewVMPageBaseUnattended::isGAInstallEnabled() const 310 310 { 311 311 if (m_pGAInstallationISOContainer && m_pGAInstallationISOContainer->isChecked()) … … 314 314 } 315 315 316 UIWizardNewVMPage Basic2::UIWizardNewVMPageBasic2()316 UIWizardNewVMPageUnattended::UIWizardNewVMPageUnattended() 317 317 : m_pLabel(0) 318 318 { … … 320 320 } 321 321 322 void UIWizardNewVMPage Basic2::prepare()322 void UIWizardNewVMPageUnattended::prepare() 323 323 { 324 324 QGridLayout *pMainLayout = new QGridLayout(this); … … 342 342 } 343 343 344 void UIWizardNewVMPage Basic2::createConnections()344 void UIWizardNewVMPageUnattended::createConnections() 345 345 { 346 346 if (m_pUserNamePasswordEditor) 347 347 connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigSomeTextChanged, 348 this, &UIWizardNewVMPage Basic2::completeChanged);348 this, &UIWizardNewVMPageUnattended::completeChanged); 349 349 if (m_pGAISOFilePathSelector) 350 350 connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged, 351 this, &UIWizardNewVMPage Basic2::sltGAISOPathChanged);351 this, &UIWizardNewVMPageUnattended::sltGAISOPathChanged); 352 352 if (m_pGAISOFilePathSelector) 353 353 connect(m_pGAInstallationISOContainer, &QGroupBox::toggled, 354 this, &UIWizardNewVMPage Basic2::sltInstallGACheckBoxToggle);355 } 356 357 358 void UIWizardNewVMPage Basic2::retranslateUi()354 this, &UIWizardNewVMPageUnattended::sltInstallGACheckBoxToggle); 355 } 356 357 358 void UIWizardNewVMPageUnattended::retranslateUi() 359 359 { 360 360 setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup")); … … 366 366 } 367 367 368 void UIWizardNewVMPage Basic2::initializePage()368 void UIWizardNewVMPageUnattended::initializePage() 369 369 { 370 370 disableEnableProductKeyWidgets(isProductKeyWidgetEnabled()); … … 373 373 } 374 374 375 bool UIWizardNewVMPage Basic2::isComplete() const375 bool UIWizardNewVMPageUnattended::isComplete() const 376 376 { 377 377 markWidgets(); … … 394 394 } 395 395 396 void UIWizardNewVMPage Basic2::cleanupPage()397 { 398 } 399 400 void UIWizardNewVMPage Basic2::showEvent(QShowEvent *pEvent)396 void UIWizardNewVMPageUnattended::cleanupPage() 397 { 398 } 399 400 void UIWizardNewVMPageUnattended::showEvent(QShowEvent *pEvent) 401 401 { 402 402 // if (m_pToolBox) … … 405 405 } 406 406 407 void UIWizardNewVMPage Basic2::sltInstallGACheckBoxToggle(bool fEnabled)407 void UIWizardNewVMPageUnattended::sltInstallGACheckBoxToggle(bool fEnabled) 408 408 { 409 409 disableEnableGAWidgets(fEnabled); … … 411 411 } 412 412 413 void UIWizardNewVMPage Basic2::sltGAISOPathChanged(const QString &strPath)413 void UIWizardNewVMPageUnattended::sltGAISOPathChanged(const QString &strPath) 414 414 { 415 415 Q_UNUSED(strPath); … … 417 417 } 418 418 419 bool UIWizardNewVMPage Basic2::isProductKeyWidgetEnabled() const419 bool UIWizardNewVMPageUnattended::isProductKeyWidgetEnabled() const 420 420 { 421 421 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageUnattended.h
r88575 r88576 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMPage Basic2class declaration.3 * VBox Qt GUI - UIWizardNewVMPageUnattended class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic2_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic2_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 39 39 40 40 41 class UIWizardNewVMPage 2: public UIWizardPageBase41 class UIWizardNewVMPageBaseUnattended : public UIWizardPageBase 42 42 { 43 43 public: 44 44 45 UIWizardNewVMPage 2();45 UIWizardNewVMPageBaseUnattended(); 46 46 47 47 /** @name Property getters/setters … … 104 104 }; 105 105 106 class UIWizardNewVMPage Basic2 : public UIWizardPage, public UIWizardNewVMPage2106 class UIWizardNewVMPageUnattended : public UIWizardPage, public UIWizardNewVMPageBaseUnattended 107 107 { 108 108 Q_OBJECT; … … 117 117 public: 118 118 119 UIWizardNewVMPage Basic2();119 UIWizardNewVMPageUnattended(); 120 120 121 121 protected: … … 143 143 }; 144 144 145 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPage Basic2_h */145 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_h */
Note:
See TracChangeset
for help on using the changeset viewer.