Changeset 91240 in vbox
- Timestamp:
- Sep 15, 2021 9:07:48 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 6 moved
-
Makefile.kmk (modified) (4 diffs)
-
src/wizards/addcloudvm/UIWizardAddCloudVM.cpp (modified) (2 diffs)
-
src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h (modified) (1 diff)
-
src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp ) (14 diffs)
-
src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h ) (6 diffs)
-
src/wizards/newcloudvm/UIWizardNewCloudVM.cpp (modified) (2 diffs)
-
src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h (modified) (1 diff)
-
src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp ) (10 diffs)
-
src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h ) (5 diffs)
-
src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp ) (16 diffs)
-
src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h ) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r91152 r91240 649 649 src/widgets/graphics/UIGraphicsTextPane.h \ 650 650 src/wizards/addcloudvm/UIWizardAddCloudVM.h \ 651 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h \652 651 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \ 652 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h \ 653 653 src/wizards/editors/UIHostnameDomainNameEditor.h \ 654 654 src/wizards/editors/UIUserNamePasswordEditor.h \ … … 656 656 src/wizards/editors/UIWizardNewVMEditors.h \ 657 657 src/wizards/newcloudvm/UIWizardNewCloudVM.h \ 658 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h \659 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h \660 658 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \ 659 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h \ 660 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h \ 661 661 src/wizards/newvm/UIWizardNewVM.h \ 662 662 src/wizards/newvm/UIWizardNewVMNameOSTypePage.h \ … … 1158 1158 src/widgets/graphics/UIGraphicsTextPane.cpp \ 1159 1159 src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \ 1160 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp \1161 1160 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \ 1161 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp \ 1162 1162 src/wizards/editors/UIHostnameDomainNameEditor.cpp \ 1163 1163 src/wizards/editors/UIUserNamePasswordEditor.cpp \ … … 1165 1165 src/wizards/editors/UIWizardNewVMEditors.cpp \ 1166 1166 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \ 1167 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp \1168 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp \1169 1167 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \ 1168 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp \ 1169 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp \ 1170 1170 src/wizards/newvm/UIWizardNewVM.cpp \ 1171 1171 src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.cpp
r90564 r91240 21 21 #include "UINotificationCenter.h" 22 22 #include "UIWizardAddCloudVM.h" 23 #include "UIWizardAddCloudVMPageBasic1.h"24 23 #include "UIWizardAddCloudVMPageExpert.h" 24 #include "UIWizardAddCloudVMPageSource.h" 25 25 26 26 /* COM includes: */ … … 84 84 case WizardMode_Basic: 85 85 { 86 addPage(new UIWizardAddCloudVMPage Basic1);86 addPage(new UIWizardAddCloudVMPageSource); 87 87 break; 88 88 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h
r90375 r91240 23 23 24 24 /* GUI includes: */ 25 #include "UIWizardAddCloudVMPage Basic1.h"25 #include "UIWizardAddCloudVMPageSource.h" 26 26 27 27 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardAddCloudVMPage Basic1class implementation.3 * VBox Qt GUI - UIWizardAddCloudVMPageSource class implementation. 4 4 */ 5 5 … … 33 33 #include "UIVirtualBoxManager.h" 34 34 #include "UIWizardAddCloudVM.h" 35 #include "UIWizardAddCloudVMPage Basic1.h"35 #include "UIWizardAddCloudVMPageSource.h" 36 36 37 37 /* COM includes: */ … … 232 232 233 233 /********************************************************************************************************************************* 234 * Class UIWizardAddCloudVMPage Basic1implementation. *234 * Class UIWizardAddCloudVMPageSource implementation. * 235 235 *********************************************************************************************************************************/ 236 236 237 UIWizardAddCloudVMPage Basic1::UIWizardAddCloudVMPageBasic1()237 UIWizardAddCloudVMPageSource::UIWizardAddCloudVMPageSource() 238 238 : m_pLabelMain(0) 239 239 , m_pProviderLayout(0) … … 361 361 /* Setup connections: */ 362 362 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered, 363 this, &UIWizardAddCloudVMPage Basic1::sltHandleProviderComboChange);363 this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange); 364 364 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 365 this, &UIWizardAddCloudVMPage Basic1::sltHandleProviderComboChange);365 this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange); 366 366 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated), 367 this, &UIWizardAddCloudVMPage Basic1::sltHandleProviderComboChange);367 this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange); 368 368 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), 369 this, &UIWizardAddCloudVMPage Basic1::sltHandleProfileComboChange);369 this, &UIWizardAddCloudVMPageSource::sltHandleProfileComboChange); 370 370 connect(m_pProfileToolButton, &QIToolButton::clicked, 371 this, &UIWizardAddCloudVMPage Basic1::sltHandleProfileButtonClick);371 this, &UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick); 372 372 connect(m_pSourceInstanceList, &QListWidget::currentRowChanged, 373 this, &UIWizardAddCloudVMPage Basic1::sltHandleSourceInstanceChange);374 } 375 376 void UIWizardAddCloudVMPage Basic1::retranslateUi()373 this, &UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange); 374 } 375 376 void UIWizardAddCloudVMPageSource::retranslateUi() 377 377 { 378 378 /* Translate page: */ … … 419 419 } 420 420 421 void UIWizardAddCloudVMPage Basic1::initializePage()421 void UIWizardAddCloudVMPageSource::initializePage() 422 422 { 423 423 /* Populate providers: */ … … 431 431 } 432 432 433 bool UIWizardAddCloudVMPage Basic1::isComplete() const433 bool UIWizardAddCloudVMPageSource::isComplete() const 434 434 { 435 435 /* Initial result: */ … … 445 445 } 446 446 447 bool UIWizardAddCloudVMPage Basic1::validatePage()447 bool UIWizardAddCloudVMPageSource::validatePage() 448 448 { 449 449 /* Initial result: */ … … 457 457 } 458 458 459 void UIWizardAddCloudVMPage Basic1::sltHandleProviderComboChange()459 void UIWizardAddCloudVMPageSource::sltHandleProviderComboChange() 460 460 { 461 461 updateProvider(); … … 463 463 } 464 464 465 void UIWizardAddCloudVMPage Basic1::sltHandleProfileComboChange()465 void UIWizardAddCloudVMPageSource::sltHandleProfileComboChange() 466 466 { 467 467 updateProfile(); … … 469 469 } 470 470 471 void UIWizardAddCloudVMPage Basic1::sltHandleProfileButtonClick()471 void UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick() 472 472 { 473 473 if (gpManager) … … 475 475 } 476 476 477 void UIWizardAddCloudVMPage Basic1::sltHandleSourceInstanceChange()477 void UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange() 478 478 { 479 479 updateSourceInstance(); … … 481 481 } 482 482 483 void UIWizardAddCloudVMPage Basic1::setShortProviderName(const QString &strProviderShortName)483 void UIWizardAddCloudVMPageSource::setShortProviderName(const QString &strProviderShortName) 484 484 { 485 485 qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName); 486 486 } 487 487 488 QString UIWizardAddCloudVMPage Basic1::shortProviderName() const488 QString UIWizardAddCloudVMPageSource::shortProviderName() const 489 489 { 490 490 return qobject_cast<UIWizardAddCloudVM*>(wizard())->shortProviderName(); 491 491 } 492 492 493 void UIWizardAddCloudVMPage Basic1::setProfileName(const QString &strProfileName)493 void UIWizardAddCloudVMPageSource::setProfileName(const QString &strProfileName) 494 494 { 495 495 qobject_cast<UIWizardAddCloudVM*>(wizard())->setProfileName(strProfileName); 496 496 } 497 497 498 QString UIWizardAddCloudVMPage Basic1::profileName() const498 QString UIWizardAddCloudVMPageSource::profileName() const 499 499 { 500 500 return qobject_cast<UIWizardAddCloudVM*>(wizard())->profileName(); 501 501 } 502 502 503 void UIWizardAddCloudVMPage Basic1::setClient(const CCloudClient &comClient)503 void UIWizardAddCloudVMPageSource::setClient(const CCloudClient &comClient) 504 504 { 505 505 qobject_cast<UIWizardAddCloudVM*>(wizard())->setClient(comClient); 506 506 } 507 507 508 CCloudClient UIWizardAddCloudVMPage Basic1::client() const508 CCloudClient UIWizardAddCloudVMPageSource::client() const 509 509 { 510 510 return qobject_cast<UIWizardAddCloudVM*>(wizard())->client(); 511 511 } 512 512 513 void UIWizardAddCloudVMPage Basic1::setInstanceIds(const QStringList &instanceIds)513 void UIWizardAddCloudVMPageSource::setInstanceIds(const QStringList &instanceIds) 514 514 { 515 515 qobject_cast<UIWizardAddCloudVM*>(wizard())->setInstanceIds(instanceIds); 516 516 } 517 517 518 QStringList UIWizardAddCloudVMPage Basic1::instanceIds() const518 QStringList UIWizardAddCloudVMPageSource::instanceIds() const 519 519 { 520 520 return qobject_cast<UIWizardAddCloudVM*>(wizard())->instanceIds(); 521 521 } 522 522 523 void UIWizardAddCloudVMPage Basic1::updateProvider()523 void UIWizardAddCloudVMPageSource::updateProvider() 524 524 { 525 525 updateComboToolTip(m_pProviderComboBox); … … 530 530 } 531 531 532 void UIWizardAddCloudVMPage Basic1::updateProfile()532 void UIWizardAddCloudVMPageSource::updateProfile() 533 533 { 534 534 setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString()); … … 538 538 } 539 539 540 void UIWizardAddCloudVMPage Basic1::updateSourceInstance()540 void UIWizardAddCloudVMPageSource::updateSourceInstance() 541 541 { 542 542 setInstanceIds(currentListWidgetData(m_pSourceInstanceList)); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardAddCloudVMPage Basic1class declaration.3 * VBox Qt GUI - UIWizardAddCloudVMPageSource class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPage Basic1_h19 #define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPage Basic1_h18 #ifndef FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h 19 #define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 50 50 }; 51 51 52 /** Namespace for 1stpage of the Add Cloud VM wizard. */52 /** Namespace for Source page of the Add Cloud VM wizard. */ 53 53 namespace UIWizardAddCloudVMPage1 54 54 { … … 67 67 } 68 68 69 /** UINativeWizardPage extension for 1stpage of the Add Cloud VM wizard,69 /** UINativeWizardPage extension for Source page of the Add Cloud VM wizard, 70 70 * based on UIWizardAddCloudVMPage1 namespace functions. */ 71 class UIWizardAddCloudVMPage Basic1: public UINativeWizardPage71 class UIWizardAddCloudVMPageSource : public UINativeWizardPage 72 72 { 73 73 Q_OBJECT; … … 75 75 public: 76 76 77 /** Constructs 1st basicpage. */78 UIWizardAddCloudVMPage Basic1();77 /** Constructs Source page. */ 78 UIWizardAddCloudVMPageSource(); 79 79 80 80 protected: … … 161 161 }; 162 162 163 #endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPage Basic1_h */163 #endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.cpp
r90747 r91240 25 25 #include "UIProgressObject.h" 26 26 #include "UIWizardNewCloudVM.h" 27 #include "UIWizardNewCloudVMPage Basic1.h"28 #include "UIWizardNewCloudVMPage Basic2.h"27 #include "UIWizardNewCloudVMPageSource.h" 28 #include "UIWizardNewCloudVMPageProperties.h" 29 29 #include "UIWizardNewCloudVMPageExpert.h" 30 30 … … 168 168 { 169 169 if (m_fFullWizard) 170 addPage(new UIWizardNewCloudVMPage Basic1);171 addPage(new UIWizardNewCloudVMPage Basic2);170 addPage(new UIWizardNewCloudVMPageSource); 171 addPage(new UIWizardNewCloudVMPageProperties); 172 172 break; 173 173 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h
r90375 r91240 23 23 24 24 /* GUI includes: */ 25 #include "UIWizardNewCloudVMPage Basic1.h"26 #include "UIWizardNewCloudVMPage Basic2.h"25 #include "UIWizardNewCloudVMPageSource.h" 26 #include "UIWizardNewCloudVMPageProperties.h" 27 27 28 28 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewCloudVMPage Basic2class implementation.3 * VBox Qt GUI - UIWizardNewCloudVMPageProperties class implementation. 4 4 */ 5 5 … … 24 24 #include "UIMessageCenter.h" 25 25 #include "UIWizardNewCloudVM.h" 26 #include "UIWizardNewCloudVMPage Basic2.h"26 #include "UIWizardNewCloudVMPageProperties.h" 27 27 28 28 /* Namespaces: */ … … 47 47 48 48 /********************************************************************************************************************************* 49 * Class UIWizardNewCloudVMPage Basic2 implementation.*49 * Class UIWizardNewCloudVMPageProperties implementation. * 50 50 *********************************************************************************************************************************/ 51 51 52 UIWizardNewCloudVMPage Basic2::UIWizardNewCloudVMPageBasic2()52 UIWizardNewCloudVMPageProperties::UIWizardNewCloudVMPageProperties() 53 53 { 54 54 /* Prepare main layout: */ … … 73 73 /* Setup connections: */ 74 74 connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted, 75 this, &UIWizardNewCloudVMPage Basic2::sigProgressStarted);75 this, &UIWizardNewCloudVMPageProperties::sigProgressStarted); 76 76 connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange, 77 this, &UIWizardNewCloudVMPage Basic2::sigProgressChange);77 this, &UIWizardNewCloudVMPageProperties::sigProgressChange); 78 78 connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished, 79 this, &UIWizardNewCloudVMPage Basic2::sigProgressFinished);79 this, &UIWizardNewCloudVMPageProperties::sigProgressFinished); 80 80 81 81 /* Add into layout: */ … … 85 85 } 86 86 87 void UIWizardNewCloudVMPage Basic2::retranslateUi()87 void UIWizardNewCloudVMPageProperties::retranslateUi() 88 88 { 89 89 /* Translate page: */ … … 97 97 } 98 98 99 void UIWizardNewCloudVMPage Basic2::initializePage()99 void UIWizardNewCloudVMPageProperties::initializePage() 100 100 { 101 101 /* Generate VSD form, asynchronously: */ … … 103 103 } 104 104 105 bool UIWizardNewCloudVMPage Basic2::isComplete() const105 bool UIWizardNewCloudVMPageProperties::isComplete() const 106 106 { 107 107 /* Initial result: */ … … 116 116 } 117 117 118 bool UIWizardNewCloudVMPage Basic2::validatePage()118 bool UIWizardNewCloudVMPageProperties::validatePage() 119 119 { 120 120 /* Initial result: */ … … 153 153 } 154 154 155 void UIWizardNewCloudVMPage Basic2::sltInitShortWizardForm()155 void UIWizardNewCloudVMPageProperties::sltInitShortWizardForm() 156 156 { 157 157 /* Create Virtual System Description Form: */ … … 164 164 } 165 165 166 CCloudClient UIWizardNewCloudVMPage Basic2::client() const166 CCloudClient UIWizardNewCloudVMPageProperties::client() const 167 167 { 168 168 return qobject_cast<UIWizardNewCloudVM*>(wizard())->client(); 169 169 } 170 170 171 CVirtualSystemDescription UIWizardNewCloudVMPage Basic2::vsd() const171 CVirtualSystemDescription UIWizardNewCloudVMPageProperties::vsd() const 172 172 { 173 173 return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsd(); 174 174 } 175 175 176 void UIWizardNewCloudVMPage Basic2::setVSDForm(const CVirtualSystemDescriptionForm &comForm)176 void UIWizardNewCloudVMPageProperties::setVSDForm(const CVirtualSystemDescriptionForm &comForm) 177 177 { 178 178 qobject_cast<UIWizardNewCloudVM*>(wizard())->setVSDForm(comForm); 179 179 } 180 180 181 CVirtualSystemDescriptionForm UIWizardNewCloudVMPage Basic2::vsdForm() const181 CVirtualSystemDescriptionForm UIWizardNewCloudVMPageProperties::vsdForm() const 182 182 { 183 183 return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsdForm(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewCloudVMPage Basic2class declaration.3 * VBox Qt GUI - UIWizardNewCloudVMPageProperties class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic2_h19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic2_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h 19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 44 44 /** UINativeWizardPage extension for 2nd page of the New Cloud VM wizard, 45 45 * based on UIWizardNewCloudVMPage2 namespace functions. */ 46 class UIWizardNewCloudVMPage Basic2: public UINativeWizardPage46 class UIWizardNewCloudVMPageProperties : public UINativeWizardPage 47 47 { 48 48 Q_OBJECT; … … 51 51 52 52 /** Constructs 2nd basic page. */ 53 UIWizardNewCloudVMPage Basic2();53 UIWizardNewCloudVMPageProperties(); 54 54 55 55 protected: … … 91 91 }; 92 92 93 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic2_h */93 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewCloudVMPage Basic1class implementation.3 * VBox Qt GUI - UIWizardNewCloudVMPageSource class implementation. 4 4 */ 5 5 … … 35 35 #include "UIVirtualBoxManager.h" 36 36 #include "UIWizardNewCloudVM.h" 37 #include "UIWizardNewCloudVMPage Basic1.h"37 #include "UIWizardNewCloudVMPageSource.h" 38 38 39 39 /* COM includes: */ … … 266 266 267 267 /********************************************************************************************************************************* 268 * Class UIWizardNewCloudVMPage Basic1implementation. *268 * Class UIWizardNewCloudVMPageSource implementation. * 269 269 *********************************************************************************************************************************/ 270 270 271 UIWizardNewCloudVMPage Basic1::UIWizardNewCloudVMPageBasic1()271 UIWizardNewCloudVMPageSource::UIWizardNewCloudVMPageSource() 272 272 : m_pLabelMain(0) 273 273 , m_pProviderLayout(0) … … 419 419 /* Setup connections: */ 420 420 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered, 421 this, &UIWizardNewCloudVMPage Basic1::sltHandleProviderComboChange);421 this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange); 422 422 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 423 this, &UIWizardNewCloudVMPage Basic1::sltHandleProviderComboChange);423 this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange); 424 424 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated), 425 this, &UIWizardNewCloudVMPage Basic1::sltHandleProviderComboChange);425 this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange); 426 426 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), 427 this, &UIWizardNewCloudVMPage Basic1::sltHandleProfileComboChange);427 this, &UIWizardNewCloudVMPageSource::sltHandleProfileComboChange); 428 428 connect(m_pProfileToolButton, &QIToolButton::clicked, 429 this, &UIWizardNewCloudVMPage Basic1::sltHandleProfileButtonClick);429 this, &UIWizardNewCloudVMPageSource::sltHandleProfileButtonClick); 430 430 connect(m_pSourceTabBar, &QTabBar::currentChanged, 431 this, &UIWizardNewCloudVMPage Basic1::sltHandleSourceChange);431 this, &UIWizardNewCloudVMPageSource::sltHandleSourceChange); 432 432 connect(m_pSourceImageList, &QListWidget::currentRowChanged, 433 this, &UIWizardNewCloudVMPage Basic1::sltHandleSourceImageChange);434 } 435 436 void UIWizardNewCloudVMPage Basic1::retranslateUi()433 this, &UIWizardNewCloudVMPageSource::sltHandleSourceImageChange); 434 } 435 436 void UIWizardNewCloudVMPageSource::retranslateUi() 437 437 { 438 438 /* Translate page: */ … … 483 483 } 484 484 485 void UIWizardNewCloudVMPage Basic1::initializePage()485 void UIWizardNewCloudVMPageSource::initializePage() 486 486 { 487 487 /* Populate providers: */ … … 495 495 } 496 496 497 bool UIWizardNewCloudVMPage Basic1::isComplete() const497 bool UIWizardNewCloudVMPageSource::isComplete() const 498 498 { 499 499 /* Initial result: */ … … 508 508 } 509 509 510 bool UIWizardNewCloudVMPage Basic1::validatePage()510 bool UIWizardNewCloudVMPageSource::validatePage() 511 511 { 512 512 /* Initial result: */ … … 526 526 } 527 527 528 void UIWizardNewCloudVMPage Basic1::sltHandleProviderComboChange()528 void UIWizardNewCloudVMPageSource::sltHandleProviderComboChange() 529 529 { 530 530 updateProvider(); … … 532 532 } 533 533 534 void UIWizardNewCloudVMPage Basic1::sltHandleProfileComboChange()534 void UIWizardNewCloudVMPageSource::sltHandleProfileComboChange() 535 535 { 536 536 updateProfile(); … … 538 538 } 539 539 540 void UIWizardNewCloudVMPage Basic1::sltHandleProfileButtonClick()540 void UIWizardNewCloudVMPageSource::sltHandleProfileButtonClick() 541 541 { 542 542 if (gpManager) … … 544 544 } 545 545 546 void UIWizardNewCloudVMPage Basic1::sltHandleSourceChange()546 void UIWizardNewCloudVMPageSource::sltHandleSourceChange() 547 547 { 548 548 updateSource(); … … 550 550 } 551 551 552 void UIWizardNewCloudVMPage Basic1::sltHandleSourceImageChange()552 void UIWizardNewCloudVMPageSource::sltHandleSourceImageChange() 553 553 { 554 554 updateSourceImage(); … … 556 556 } 557 557 558 void UIWizardNewCloudVMPage Basic1::setShortProviderName(const QString &strProviderShortName)558 void UIWizardNewCloudVMPageSource::setShortProviderName(const QString &strProviderShortName) 559 559 { 560 560 qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName); 561 561 } 562 562 563 QString UIWizardNewCloudVMPage Basic1::shortProviderName() const563 QString UIWizardNewCloudVMPageSource::shortProviderName() const 564 564 { 565 565 return qobject_cast<UIWizardNewCloudVM*>(wizard())->shortProviderName(); 566 566 } 567 567 568 void UIWizardNewCloudVMPage Basic1::setProfileName(const QString &strProfileName)568 void UIWizardNewCloudVMPageSource::setProfileName(const QString &strProfileName) 569 569 { 570 570 qobject_cast<UIWizardNewCloudVM*>(wizard())->setProfileName(strProfileName); 571 571 } 572 572 573 QString UIWizardNewCloudVMPage Basic1::profileName() const573 QString UIWizardNewCloudVMPageSource::profileName() const 574 574 { 575 575 return qobject_cast<UIWizardNewCloudVM*>(wizard())->profileName(); 576 576 } 577 577 578 void UIWizardNewCloudVMPage Basic1::setClient(const CCloudClient &comClient)578 void UIWizardNewCloudVMPageSource::setClient(const CCloudClient &comClient) 579 579 { 580 580 qobject_cast<UIWizardNewCloudVM*>(wizard())->setClient(comClient); 581 581 } 582 582 583 CCloudClient UIWizardNewCloudVMPage Basic1::client() const583 CCloudClient UIWizardNewCloudVMPageSource::client() const 584 584 { 585 585 return qobject_cast<UIWizardNewCloudVM*>(wizard())->client(); 586 586 } 587 587 588 void UIWizardNewCloudVMPage Basic1::setVSD(const CVirtualSystemDescription &comDescription)588 void UIWizardNewCloudVMPageSource::setVSD(const CVirtualSystemDescription &comDescription) 589 589 { 590 590 qobject_cast<UIWizardNewCloudVM*>(wizard())->setVSD(comDescription); 591 591 } 592 592 593 CVirtualSystemDescription UIWizardNewCloudVMPage Basic1::vsd() const593 CVirtualSystemDescription UIWizardNewCloudVMPageSource::vsd() const 594 594 { 595 595 return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsd(); 596 596 } 597 597 598 CVirtualSystemDescriptionForm UIWizardNewCloudVMPage Basic1::vsdForm() const598 CVirtualSystemDescriptionForm UIWizardNewCloudVMPageSource::vsdForm() const 599 599 { 600 600 return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsdForm(); 601 601 } 602 602 603 void UIWizardNewCloudVMPage Basic1::updateProvider()603 void UIWizardNewCloudVMPageSource::updateProvider() 604 604 { 605 605 updateComboToolTip(m_pProviderComboBox); … … 610 610 } 611 611 612 void UIWizardNewCloudVMPage Basic1::updateProfile()612 void UIWizardNewCloudVMPageSource::updateProfile() 613 613 { 614 614 setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString()); … … 617 617 } 618 618 619 void UIWizardNewCloudVMPage Basic1::updateSource()619 void UIWizardNewCloudVMPageSource::updateSource() 620 620 { 621 621 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, client()); … … 623 623 } 624 624 625 void UIWizardNewCloudVMPage Basic1::updateSourceImage()625 void UIWizardNewCloudVMPageSource::updateSourceImage() 626 626 { 627 627 m_strSourceImageId = currentListWidgetData(m_pSourceImageList); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h
r91239 r91240 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewCloudVMPage Basic1class declaration.3 * VBox Qt GUI - UIWizardNewCloudVMPageSource class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic1_h19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic1_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h 19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 75 75 /** UINativeWizardPage extension for 1st page of the New Cloud VM wizard, 76 76 * based on UIWizardNewCloudVMPage1 namespace functions. */ 77 class UIWizardNewCloudVMPage Basic1: public UINativeWizardPage77 class UIWizardNewCloudVMPageSource : public UINativeWizardPage 78 78 { 79 79 Q_OBJECT; … … 82 82 83 83 /** Constructs 1st basic page. */ 84 UIWizardNewCloudVMPage Basic1();84 UIWizardNewCloudVMPageSource(); 85 85 86 86 protected: … … 180 180 }; 181 181 182 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPage Basic1_h */182 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h */
Note:
See TracChangeset
for help on using the changeset viewer.

