Changeset 91707 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 13, 2021 10:43:17 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r91656 r91707 678 678 src/wizards/clonevd/UIWizardCloneVDExpertPage.h \ 679 679 src/wizards/exportappliance/UIWizardExportApp.h \ 680 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \681 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \682 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \683 680 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \ 681 src/wizards/exportappliance/UIWizardExportAppPageFormat.h \ 682 src/wizards/exportappliance/UIWizardExportAppPageSettings.h \ 683 src/wizards/exportappliance/UIWizardExportAppPageVMs.h \ 684 684 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.h \ 685 685 src/wizards/importappliance/UIWizardImportApp.h \ … … 1188 1188 src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp \ 1189 1189 src/wizards/exportappliance/UIWizardExportApp.cpp \ 1190 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \1191 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \1192 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \1193 1190 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \ 1191 src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp \ 1192 src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp \ 1193 src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp \ 1194 1194 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \ 1195 1195 src/wizards/importappliance/UIWizardImportApp.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r91467 r91707 28 28 #include "UIProgressObject.h" 29 29 #include "UIWizardExportApp.h" 30 #include "UIWizardExportAppPageBasic1.h"31 #include "UIWizardExportAppPageBasic2.h"32 #include "UIWizardExportAppPageBasic3.h"33 30 #include "UIWizardExportAppPageExpert.h" 31 #include "UIWizardExportAppPageFormat.h" 32 #include "UIWizardExportAppPageSettings.h" 33 #include "UIWizardExportAppPageVMs.h" 34 34 35 35 /* COM includes: */ … … 443 443 case WizardMode_Basic: 444 444 { 445 addPage(new UIWizardExportAppPage Basic1(m_predefinedMachineNames, m_fFastTraverToExportOCI));446 addPage(new UIWizardExportAppPage Basic2(m_fFastTraverToExportOCI));447 addPage(new UIWizardExportAppPage Basic3);445 addPage(new UIWizardExportAppPageVMs(m_predefinedMachineNames, m_fFastTraverToExportOCI)); 446 addPage(new UIWizardExportAppPageFormat(m_fFastTraverToExportOCI)); 447 addPage(new UIWizardExportAppPageSettings); 448 448 break; 449 449 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r91663 r91707 44 44 #include "UIVirtualBoxManager.h" 45 45 #include "UIWizardExportApp.h" 46 #include "UIWizardExportAppPageBasic1.h"47 #include "UIWizardExportAppPageBasic2.h"48 #include "UIWizardExportAppPageBasic3.h"49 46 #include "UIWizardExportAppPageExpert.h" 47 #include "UIWizardExportAppPageFormat.h" 48 #include "UIWizardExportAppPageSettings.h" 49 #include "UIWizardExportAppPageVMs.h" 50 50 51 51 /* Namespaces: */ 52 using namespace UIWizardExportApp Page1;53 using namespace UIWizardExportApp Page2;54 using namespace UIWizardExportApp Page3;52 using namespace UIWizardExportAppFormat; 53 using namespace UIWizardExportAppSettings; 54 using namespace UIWizardExportAppVMs; 55 55 56 56 … … 428 428 429 429 /* Translate tool-box: */ 430 m_pToolBox->setPageTitle(0, UIWizardExportApp::tr("Virtual &machines to export"));431 m_pToolBox->setPageTitle(1, UIWizardExportApp::tr(" Virtual &systemsettings"));432 m_pToolBox->setPageTitle(2, UIWizardExportApp::tr(" Appliance settings"));430 m_pToolBox->setPageTitle(0, UIWizardExportApp::tr("Virtual &machines")); 431 m_pToolBox->setPageTitle(1, UIWizardExportApp::tr("Format &settings")); 432 m_pToolBox->setPageTitle(2, UIWizardExportApp::tr("&Appliance settings")); 433 433 434 434 /* Translate File selector: */ … … 700 700 701 701 /* Refresh settings widget state: */ 702 UIWizardExportApp Page2::refreshStackedWidget(m_pSettingsWidget1, wizard()->isFormatCloudOne());703 UIWizardExportApp Page3::refreshStackedWidget(m_pSettingsWidget2, wizard()->isFormatCloudOne());702 UIWizardExportAppFormat::refreshStackedWidget(m_pSettingsWidget1, wizard()->isFormatCloudOne()); 703 UIWizardExportAppSettings::refreshStackedWidget(m_pSettingsWidget2, wizard()->isFormatCloudOne()); 704 704 705 705 /* Update export settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r91663 r91707 51 51 class UIWizardExportApp; 52 52 53 /** UIWizardPage extension for UIWizardExportApp Page1, UIWizardExportAppPage2 and UIWizardExportAppPage3. */53 /** UIWizardPage extension for UIWizardExportAppVMs, UIWizardExportAppFormat and UIWizardExportAppSettings. */ 54 54 class UIWizardExportAppPageExpert : public UINativeWizardPage 55 55 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic2class implementation.3 * VBox Qt GUI - UIWizardExportAppPageFormat class implementation. 4 4 */ 5 5 … … 38 38 #include "UIVirtualBoxManager.h" 39 39 #include "UIWizardExportApp.h" 40 #include "UIWizardExportAppPage Basic2.h"40 #include "UIWizardExportAppPageFormat.h" 41 41 42 42 /* COM includes: */ … … 45 45 46 46 /* Namespaces: */ 47 using namespace UIWizardExportApp Page2;47 using namespace UIWizardExportAppFormat; 48 48 49 49 50 50 /********************************************************************************************************************************* 51 * Class UIWizardExportApp Page2 implementation.*51 * Class UIWizardExportAppFormat implementation. * 52 52 *********************************************************************************************************************************/ 53 53 54 void UIWizardExportApp Page2::populateFormats(QIComboBox *pCombo, bool fExportToOCIByDefault)54 void UIWizardExportAppFormat::populateFormats(QIComboBox *pCombo, bool fExportToOCIByDefault) 55 55 { 56 56 /* Sanity check: */ … … 129 129 } 130 130 131 void UIWizardExportApp Page2::populateMACAddressPolicies(QIComboBox *pCombo)131 void UIWizardExportAppFormat::populateMACAddressPolicies(QIComboBox *pCombo) 132 132 { 133 133 /* Sanity check: */ … … 189 189 } 190 190 191 QString UIWizardExportApp Page2::format(QIComboBox *pCombo)191 QString UIWizardExportAppFormat::format(QIComboBox *pCombo) 192 192 { 193 193 /* Sanity check: */ … … 198 198 } 199 199 200 bool UIWizardExportApp Page2::isFormatCloudOne(QIComboBox *pCombo, int iIndex /* = -1 */)200 bool UIWizardExportAppFormat::isFormatCloudOne(QIComboBox *pCombo, int iIndex /* = -1 */) 201 201 { 202 202 /* Sanity check: */ … … 211 211 } 212 212 213 void UIWizardExportApp Page2::refreshStackedWidget(QStackedWidget *pStackedWidget, bool fIsFormatCloudOne)213 void UIWizardExportAppFormat::refreshStackedWidget(QStackedWidget *pStackedWidget, bool fIsFormatCloudOne) 214 214 { 215 215 /* Update stack appearance according to chosen format: */ … … 217 217 } 218 218 219 void UIWizardExportApp Page2::refreshFileSelectorName(QString &strFileSelectorName,220 const QStringList &machineNames,221 const QString &strDefaultApplianceName,222 bool fIsFormatCloudOne)219 void UIWizardExportAppFormat::refreshFileSelectorName(QString &strFileSelectorName, 220 const QStringList &machineNames, 221 const QString &strDefaultApplianceName, 222 bool fIsFormatCloudOne) 223 223 { 224 224 /* If format is cloud one: */ … … 240 240 } 241 241 242 void UIWizardExportApp Page2::refreshFileSelectorExtension(QString &strFileSelectorExt,243 UIEmptyFilePathSelector *pFileSelector,244 bool fIsFormatCloudOne)242 void UIWizardExportAppFormat::refreshFileSelectorExtension(QString &strFileSelectorExt, 243 UIEmptyFilePathSelector *pFileSelector, 244 bool fIsFormatCloudOne) 245 245 { 246 246 /* If format is cloud one: */ … … 265 265 } 266 266 267 void UIWizardExportApp Page2::refreshFileSelectorPath(UIEmptyFilePathSelector *pFileSelector,268 const QString &strFileSelectorName,269 const QString &strFileSelectorExt,270 bool fIsFormatCloudOne)267 void UIWizardExportAppFormat::refreshFileSelectorPath(UIEmptyFilePathSelector *pFileSelector, 268 const QString &strFileSelectorName, 269 const QString &strFileSelectorExt, 270 bool fIsFormatCloudOne) 271 271 { 272 272 /* If format is cloud one: */ … … 287 287 } 288 288 289 void UIWizardExportApp Page2::refreshManifestCheckBoxAccess(QCheckBox *pCheckBox,290 bool fIsFormatCloudOne)289 void UIWizardExportAppFormat::refreshManifestCheckBoxAccess(QCheckBox *pCheckBox, 290 bool fIsFormatCloudOne) 291 291 { 292 292 /* If format is cloud one: */ … … 306 306 } 307 307 308 void UIWizardExportApp Page2::refreshIncludeISOsCheckBoxAccess(QCheckBox *pCheckBox,309 bool fIsFormatCloudOne)308 void UIWizardExportAppFormat::refreshIncludeISOsCheckBoxAccess(QCheckBox *pCheckBox, 309 bool fIsFormatCloudOne) 310 310 { 311 311 /* If format is cloud one: */ … … 324 324 } 325 325 326 void UIWizardExportApp Page2::refreshLocalStuff(CAppliance &comLocalAppliance,327 const QList<QUuid> &machineIDs,328 const QString &strUri)326 void UIWizardExportAppFormat::refreshLocalStuff(CAppliance &comLocalAppliance, 327 const QList<QUuid> &machineIDs, 328 const QString &strUri) 329 329 { 330 330 /* Clear stuff: */ … … 365 365 } 366 366 367 void UIWizardExportApp Page2::refreshProfileCombo(QIComboBox *pCombo,368 const QString &strFormat,369 bool fIsFormatCloudOne)367 void UIWizardExportAppFormat::refreshProfileCombo(QIComboBox *pCombo, 368 const QString &strFormat, 369 bool fIsFormatCloudOne) 370 370 { 371 371 /* Sanity check: */ … … 437 437 } 438 438 439 void UIWizardExportApp Page2::refreshCloudProfile(CCloudProfile &comCloudProfile,440 const QString &strShortProviderName,441 const QString &strProfileName,442 bool fIsFormatCloudOne)439 void UIWizardExportAppFormat::refreshCloudProfile(CCloudProfile &comCloudProfile, 440 const QString &strShortProviderName, 441 const QString &strProfileName, 442 bool fIsFormatCloudOne) 443 443 { 444 444 /* If format is cloud one: */ … … 450 450 } 451 451 452 void UIWizardExportApp Page2::refreshCloudExportMode(const QMap<CloudExportMode, QAbstractButton*> &radios,453 bool fIsFormatCloudOne)452 void UIWizardExportAppFormat::refreshCloudExportMode(const QMap<CloudExportMode, QAbstractButton*> &radios, 453 bool fIsFormatCloudOne) 454 454 { 455 455 /* If format is cloud one: */ … … 474 474 } 475 475 476 void UIWizardExportApp Page2::refreshCloudStuff(CAppliance &comCloudAppliance,477 CCloudClient &comCloudClient,478 CVirtualSystemDescription &comCloudVsd,479 CVirtualSystemDescriptionForm &comCloudVsdExportForm,480 const CCloudProfile &comCloudProfile,481 const QList<QUuid> &machineIDs,482 const QString &strUri,483 const CloudExportMode enmCloudExportMode)476 void UIWizardExportAppFormat::refreshCloudStuff(CAppliance &comCloudAppliance, 477 CCloudClient &comCloudClient, 478 CVirtualSystemDescription &comCloudVsd, 479 CVirtualSystemDescriptionForm &comCloudVsdExportForm, 480 const CCloudProfile &comCloudProfile, 481 const QList<QUuid> &machineIDs, 482 const QString &strUri, 483 const CloudExportMode enmCloudExportMode) 484 484 { 485 485 /* Clear stuff: */ … … 564 564 } 565 565 566 QString UIWizardExportApp Page2::profileName(QIComboBox *pCombo)566 QString UIWizardExportAppFormat::profileName(QIComboBox *pCombo) 567 567 { 568 568 return pCombo->currentData(ProfileData_Name).toString(); 569 569 } 570 570 571 void UIWizardExportApp Page2::updateFormatComboToolTip(QIComboBox *pCombo)571 void UIWizardExportAppFormat::updateFormatComboToolTip(QIComboBox *pCombo) 572 572 { 573 573 AssertPtrReturnVoid(pCombo); … … 581 581 } 582 582 583 void UIWizardExportApp Page2::updateMACAddressExportPolicyComboToolTip(QIComboBox *pCombo)583 void UIWizardExportAppFormat::updateMACAddressExportPolicyComboToolTip(QIComboBox *pCombo) 584 584 { 585 585 AssertPtrReturnVoid(pCombo); … … 595 595 596 596 /********************************************************************************************************************************* 597 * Class UIWizardExportAppPage Basic2implementation. *597 * Class UIWizardExportAppPageFormat implementation. * 598 598 *********************************************************************************************************************************/ 599 599 600 UIWizardExportAppPage Basic2::UIWizardExportAppPageBasic2(bool fExportToOCIByDefault)600 UIWizardExportAppPageFormat::UIWizardExportAppPageFormat(bool fExportToOCIByDefault) 601 601 : m_fExportToOCIByDefault(fExportToOCIByDefault) 602 602 , m_pLabelFormat(0) … … 849 849 /* Setup connections: */ 850 850 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered, 851 this, &UIWizardExportAppPage Basic2::sltHandleFormatComboChange);851 this, &UIWizardExportAppPageFormat::sltHandleFormatComboChange); 852 852 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 853 this, &UIWizardExportAppPage Basic2::sltHandleFormatComboChange);853 this, &UIWizardExportAppPageFormat::sltHandleFormatComboChange); 854 854 connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, 855 this, &UIWizardExportAppPage Basic2::sltHandleFileSelectorChange);855 this, &UIWizardExportAppPageFormat::sltHandleFileSelectorChange); 856 856 connect(m_pFormatComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), 857 this, &UIWizardExportAppPage Basic2::sltHandleFormatComboChange);857 this, &UIWizardExportAppPageFormat::sltHandleFormatComboChange); 858 858 connect(m_pMACComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), 859 this, &UIWizardExportAppPage Basic2::sltHandleMACAddressExportPolicyComboChange);859 this, &UIWizardExportAppPageFormat::sltHandleMACAddressExportPolicyComboChange); 860 860 connect(m_pManifestCheckbox, &QCheckBox::stateChanged, 861 this, &UIWizardExportAppPage Basic2::sltHandleManifestCheckBoxChange);861 this, &UIWizardExportAppPageFormat::sltHandleManifestCheckBoxChange); 862 862 connect(m_pIncludeISOsCheckbox, &QCheckBox::stateChanged, 863 this, &UIWizardExportAppPage Basic2::sltHandleIncludeISOsCheckBoxChange);863 this, &UIWizardExportAppPageFormat::sltHandleIncludeISOsCheckBoxChange); 864 864 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), 865 this, &UIWizardExportAppPage Basic2::sltHandleProfileComboChange);865 this, &UIWizardExportAppPageFormat::sltHandleProfileComboChange); 866 866 connect(m_pExportModeButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*, bool)>(&QButtonGroup::buttonToggled), 867 this, &UIWizardExportAppPage Basic2::sltHandleRadioButtonToggled);867 this, &UIWizardExportAppPageFormat::sltHandleRadioButtonToggled); 868 868 connect(m_pProfileToolButton, &QIToolButton::clicked, 869 this, &UIWizardExportAppPage Basic2::sltHandleProfileButtonClick);870 } 871 872 UIWizardExportApp *UIWizardExportAppPage Basic2::wizard() const869 this, &UIWizardExportAppPageFormat::sltHandleProfileButtonClick); 870 } 871 872 UIWizardExportApp *UIWizardExportAppPageFormat::wizard() const 873 873 { 874 874 return qobject_cast<UIWizardExportApp*>(UINativeWizardPage::wizard()); 875 875 } 876 876 877 void UIWizardExportAppPage Basic2::retranslateUi()877 void UIWizardExportAppPageFormat::retranslateUi() 878 878 { 879 879 /* Translate page: */ 880 setTitle(UIWizardExportApp::tr(" Appliancesettings"));880 setTitle(UIWizardExportApp::tr("Format settings")); 881 881 882 882 /* Translate objects: */ … … 1000 1000 } 1001 1001 1002 void UIWizardExportAppPage Basic2::initializePage()1002 void UIWizardExportAppPageFormat::initializePage() 1003 1003 { 1004 1004 /* Populate formats: */ … … 1019 1019 } 1020 1020 1021 bool UIWizardExportAppPage Basic2::isComplete() const1021 bool UIWizardExportAppPageFormat::isComplete() const 1022 1022 { 1023 1023 /* Initial result: */ … … 1034 1034 } 1035 1035 1036 bool UIWizardExportAppPage Basic2::validatePage()1036 bool UIWizardExportAppPageFormat::validatePage() 1037 1037 { 1038 1038 /* Initial result: */ … … 1062 1062 } 1063 1063 1064 void UIWizardExportAppPage Basic2::sltHandleFormatComboChange()1064 void UIWizardExportAppPageFormat::sltHandleFormatComboChange() 1065 1065 { 1066 1066 /* Update combo tool-tip: */ … … 1089 1089 } 1090 1090 1091 void UIWizardExportAppPage Basic2::sltHandleFileSelectorChange()1091 void UIWizardExportAppPageFormat::sltHandleFileSelectorChange() 1092 1092 { 1093 1093 /* Skip empty paths: */ … … 1100 1100 } 1101 1101 1102 void UIWizardExportAppPage Basic2::sltHandleMACAddressExportPolicyComboChange()1102 void UIWizardExportAppPageFormat::sltHandleMACAddressExportPolicyComboChange() 1103 1103 { 1104 1104 updateMACAddressExportPolicyComboToolTip(m_pMACComboBox); … … 1107 1107 } 1108 1108 1109 void UIWizardExportAppPage Basic2::sltHandleManifestCheckBoxChange()1109 void UIWizardExportAppPageFormat::sltHandleManifestCheckBoxChange() 1110 1110 { 1111 1111 wizard()->setManifestSelected(m_pManifestCheckbox->isChecked()); … … 1113 1113 } 1114 1114 1115 void UIWizardExportAppPage Basic2::sltHandleIncludeISOsCheckBoxChange()1115 void UIWizardExportAppPageFormat::sltHandleIncludeISOsCheckBoxChange() 1116 1116 { 1117 1117 wizard()->setIncludeISOsSelected(m_pIncludeISOsCheckbox->isChecked()); … … 1119 1119 } 1120 1120 1121 void UIWizardExportAppPage Basic2::sltHandleProfileComboChange()1121 void UIWizardExportAppPageFormat::sltHandleProfileComboChange() 1122 1122 { 1123 1123 /* Update wizard fields: */ … … 1134 1134 } 1135 1135 1136 void UIWizardExportAppPage Basic2::sltHandleRadioButtonToggled(QAbstractButton *pButton, bool fToggled)1136 void UIWizardExportAppPageFormat::sltHandleRadioButtonToggled(QAbstractButton *pButton, bool fToggled) 1137 1137 { 1138 1138 /* Handle checked buttons only: */ … … 1145 1145 } 1146 1146 1147 void UIWizardExportAppPage Basic2::sltHandleProfileButtonClick()1147 void UIWizardExportAppPageFormat::sltHandleProfileButtonClick() 1148 1148 { 1149 1149 /* Open Cloud Profile Manager: */ … … 1152 1152 } 1153 1153 1154 void UIWizardExportAppPage Basic2::updateLocalStuff()1154 void UIWizardExportAppPageFormat::updateLocalStuff() 1155 1155 { 1156 1156 /* Create appliance: */ … … 1160 1160 } 1161 1161 1162 void UIWizardExportAppPage Basic2::updateCloudStuff()1162 void UIWizardExportAppPageFormat::updateCloudStuff() 1163 1163 { 1164 1164 /* Create appliance, client, VSD and VSD export form: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.h
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic2class declaration.3 * VBox Qt GUI - UIWizardExportAppPageFormat class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic2_h19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic2_h18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageFormat_h 19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageFormat_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 60 60 }; 61 61 62 /** Namespace for 2nd basicpage of the Export Appliance wizard. */63 namespace UIWizardExportApp Page262 /** Namespace for Format page of the Export Appliance wizard. */ 63 namespace UIWizardExportAppFormat 64 64 { 65 65 /** Populates formats. */ … … 135 135 } 136 136 137 /** UINativeWizardPage extension for 2nd basicpage of the Export Appliance wizard,138 * based on UIWizardExportApp Page2namespace functions. */139 class UIWizardExportAppPage Basic2: public UINativeWizardPage137 /** UINativeWizardPage extension for Format page of the Export Appliance wizard, 138 * based on UIWizardExportAppFormat namespace functions. */ 139 class UIWizardExportAppPageFormat : public UINativeWizardPage 140 140 { 141 141 Q_OBJECT; … … 143 143 public: 144 144 145 /** Constructs 2nd basicpage. */146 UIWizardExportAppPage Basic2(bool fExportToOCIByDefault);145 /** Constructs Format page. */ 146 UIWizardExportAppPageFormat(bool fExportToOCIByDefault); 147 147 148 148 protected: … … 260 260 }; 261 261 262 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic2_h */262 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageFormat_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic3class implementation.3 * VBox Qt GUI - UIWizardExportAppPageSettings class implementation. 4 4 */ 5 5 … … 28 28 #include "UIMessageCenter.h" 29 29 #include "UIWizardExportApp.h" 30 #include "UIWizardExportAppPage Basic3.h"30 #include "UIWizardExportAppPageSettings.h" 31 31 32 32 /* COM includes: */ … … 35 35 36 36 /* Namespaces: */ 37 using namespace UIWizardExportApp Page3;37 using namespace UIWizardExportAppSettings; 38 38 39 39 40 40 /********************************************************************************************************************************* 41 * Class UIWizardExportApp Page3 implementation.*41 * Class UIWizardExportAppSettings implementation. * 42 42 *********************************************************************************************************************************/ 43 43 44 void UIWizardExportApp Page3::refreshStackedWidget(QStackedWidget *pStackedWidget,45 bool fIsFormatCloudOne)44 void UIWizardExportAppSettings::refreshStackedWidget(QStackedWidget *pStackedWidget, 45 bool fIsFormatCloudOne) 46 46 { 47 47 /* Update stack appearance according to chosen format: */ … … 49 49 } 50 50 51 void UIWizardExportApp Page3::refreshApplianceSettingsWidget(UIApplianceExportEditorWidget *pApplianceWidget,52 const CAppliance &comAppliance,53 bool fIsFormatCloudOne)51 void UIWizardExportAppSettings::refreshApplianceSettingsWidget(UIApplianceExportEditorWidget *pApplianceWidget, 52 const CAppliance &comAppliance, 53 bool fIsFormatCloudOne) 54 54 { 55 55 /* Nothing for cloud case? */ … … 64 64 } 65 65 66 void UIWizardExportApp Page3::refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor,67 const CVirtualSystemDescriptionForm &comVsdForm,68 bool fIsFormatCloudOne)66 void UIWizardExportAppSettings::refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor, 67 const CVirtualSystemDescriptionForm &comVsdForm, 68 bool fIsFormatCloudOne) 69 69 { 70 70 /* Nothing for local case? */ … … 81 81 82 82 /********************************************************************************************************************************* 83 * Class UIWizardExportAppPage Basic3 implementation.*83 * Class UIWizardExportAppPageSettings implementation. * 84 84 *********************************************************************************************************************************/ 85 85 86 UIWizardExportAppPage Basic3::UIWizardExportAppPageBasic3()86 UIWizardExportAppPageSettings::UIWizardExportAppPageSettings() 87 87 : m_pLabel(0) 88 88 , m_pSettingsWidget2(0) … … 153 153 } 154 154 155 UIWizardExportApp *UIWizardExportAppPage Basic3::wizard() const155 UIWizardExportApp *UIWizardExportAppPageSettings::wizard() const 156 156 { 157 157 return qobject_cast<UIWizardExportApp*>(UINativeWizardPage::wizard()); 158 158 } 159 159 160 void UIWizardExportAppPage Basic3::retranslateUi()160 void UIWizardExportAppPageSettings::retranslateUi() 161 161 { 162 162 /* Translate page: */ 163 setTitle(UIWizardExportApp::tr(" Virtual systemsettings"));163 setTitle(UIWizardExportApp::tr("Appliance settings")); 164 164 165 165 /* Translate label: */ … … 173 173 } 174 174 175 void UIWizardExportAppPage Basic3::initializePage()175 void UIWizardExportAppPageSettings::initializePage() 176 176 { 177 177 /* Translate page: */ … … 191 191 } 192 192 193 bool UIWizardExportAppPage Basic3::validatePage()193 bool UIWizardExportAppPageSettings::validatePage() 194 194 { 195 195 /* Initial result: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.h
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic3class declaration.3 * VBox Qt GUI - UIWizardExportAppPageSettings class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic3_h19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic3_h18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_h 19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 39 39 class UIWizardExportApp; 40 40 41 /** Namespace for 3rd basicpage of the Export Appliance wizard. */42 namespace UIWizardExportApp Page341 /** Namespace for Settings page of the Export Appliance wizard. */ 42 namespace UIWizardExportAppSettings 43 43 { 44 44 /** Refresh stacked widget. */ … … 56 56 } 57 57 58 /** UINativeWizardPage extension for 3rd basicpage of the Export Appliance wizard,59 * based on UIWizardExportApp Page3namespace functions. */60 class UIWizardExportAppPage Basic3: public UINativeWizardPage58 /** UINativeWizardPage extension for Settings page of the Export Appliance wizard, 59 * based on UIWizardExportAppSettings namespace functions. */ 60 class UIWizardExportAppPageSettings : public UINativeWizardPage 61 61 { 62 62 Q_OBJECT; … … 64 64 public: 65 65 66 /** Constructs 3rd basicpage. */67 UIWizardExportAppPage Basic3();66 /** Constructs Settings page. */ 67 UIWizardExportAppPageSettings(); 68 68 69 69 protected: … … 98 98 }; 99 99 100 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic3_h */100 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic1class implementation.3 * VBox Qt GUI - UIWizardExportAppPageVMs class implementation. 4 4 */ 5 5 … … 26 26 #include "UIMessageCenter.h" 27 27 #include "UIWizardExportApp.h" 28 #include "UIWizardExportAppPage Basic1.h"28 #include "UIWizardExportAppPageVMs.h" 29 29 30 30 /* COM includes: */ … … 32 32 33 33 /* Namespaces: */ 34 using namespace UIWizardExportApp Page1;34 using namespace UIWizardExportAppVMs; 35 35 36 36 … … 70 70 71 71 /********************************************************************************************************************************* 72 * Class UIWizardExportApp Page1 implementation.*72 * Class UIWizardExportAppVMs implementation. * 73 73 *********************************************************************************************************************************/ 74 74 75 void UIWizardExportApp Page1::populateVMItems(QListWidget *pVMSelector, const QStringList &selectedVMNames)75 void UIWizardExportAppVMs::populateVMItems(QListWidget *pVMSelector, const QStringList &selectedVMNames) 76 76 { 77 77 /* Add all VM items into VM selector: */ … … 121 121 } 122 122 123 void UIWizardExportApp Page1::refreshSavedMachines(QStringList &savedMachines, QListWidget *pVMSelector)123 void UIWizardExportAppVMs::refreshSavedMachines(QStringList &savedMachines, QListWidget *pVMSelector) 124 124 { 125 125 savedMachines.clear(); … … 129 129 } 130 130 131 QStringList UIWizardExportApp Page1::machineNames(QListWidget *pVMSelector)131 QStringList UIWizardExportAppVMs::machineNames(QListWidget *pVMSelector) 132 132 { 133 133 /* Prepare list: */ … … 140 140 } 141 141 142 QList<QUuid> UIWizardExportApp Page1::machineIDs(QListWidget *pVMSelector)142 QList<QUuid> UIWizardExportAppVMs::machineIDs(QListWidget *pVMSelector) 143 143 { 144 144 /* Prepare list: */ … … 153 153 154 154 /********************************************************************************************************************************* 155 * Class UIWizardExportAppPage Basic1 implementation.*155 * Class UIWizardExportAppPageVMs implementation. * 156 156 *********************************************************************************************************************************/ 157 157 158 UIWizardExportAppPage Basic1::UIWizardExportAppPageBasic1(const QStringList &selectedVMNames, bool fFastTravelToNextPage)158 UIWizardExportAppPageVMs::UIWizardExportAppPageVMs(const QStringList &selectedVMNames, bool fFastTravelToNextPage) 159 159 : m_selectedVMNames(selectedVMNames) 160 160 , m_fFastTravelToNextPage(fFastTravelToNextPage) … … 183 183 /* Setup connections: */ 184 184 connect(m_pVMSelector, &QListWidget::itemSelectionChanged, 185 this, &UIWizardExportAppPage Basic1::sltHandleVMItemSelectionChanged);186 } 187 188 UIWizardExportApp *UIWizardExportAppPage Basic1::wizard() const185 this, &UIWizardExportAppPageVMs::sltHandleVMItemSelectionChanged); 186 } 187 188 UIWizardExportApp *UIWizardExportAppPageVMs::wizard() const 189 189 { 190 190 return qobject_cast<UIWizardExportApp*>(UINativeWizardPage::wizard()); 191 191 } 192 192 193 void UIWizardExportAppPage Basic1::retranslateUi()193 void UIWizardExportAppPageVMs::retranslateUi() 194 194 { 195 195 /* Translate page: */ 196 setTitle(UIWizardExportApp::tr("Virtual machines to export"));196 setTitle(UIWizardExportApp::tr("Virtual machines")); 197 197 198 198 /* Translate widgets: */ … … 202 202 } 203 203 204 void UIWizardExportAppPage Basic1::initializePage()204 void UIWizardExportAppPageVMs::initializePage() 205 205 { 206 206 /* Populate VM items: */ … … 215 215 } 216 216 217 bool UIWizardExportAppPage Basic1::isComplete() const217 bool UIWizardExportAppPageVMs::isComplete() const 218 218 { 219 219 /* Initial result: */ … … 227 227 } 228 228 229 bool UIWizardExportAppPage Basic1::validatePage()229 bool UIWizardExportAppPageVMs::validatePage() 230 230 { 231 231 /* Initial result: */ … … 242 242 } 243 243 244 void UIWizardExportAppPage Basic1::sltHandleVMItemSelectionChanged()244 void UIWizardExportAppPageVMs::sltHandleVMItemSelectionChanged() 245 245 { 246 246 /* Update wizard fields: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.h
r91706 r91707 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardExportAppPage Basic1class declaration.3 * VBox Qt GUI - UIWizardExportAppPageVMs class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic1_h19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic1_h18 #ifndef FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageVMs_h 19 #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageVMs_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 33 33 class UIWizardExportApp; 34 34 35 /** Namespace for 1st basicpage of the Export Appliance wizard. */36 namespace UIWizardExportApp Page135 /** Namespace for VMs page of the Export Appliance wizard. */ 36 namespace UIWizardExportAppVMs 37 37 { 38 38 /** Populates @a pVMSelector with items on the basis of passed @a selectedVMNames. */ … … 48 48 } 49 49 50 /** UINativeWizardPage extension for 1st basicpage of the Export Appliance wizard,51 * based on UIWizardExportApp Page1namespace functions. */52 class UIWizardExportAppPage Basic1: public UINativeWizardPage50 /** UINativeWizardPage extension for VMs page of the Export Appliance wizard, 51 * based on UIWizardExportAppVMs namespace functions. */ 52 class UIWizardExportAppPageVMs : public UINativeWizardPage 53 53 { 54 54 Q_OBJECT; … … 56 56 public: 57 57 58 /** Constructs 1st basicpage.58 /** Constructs VMs page. 59 59 * @param selectedVMNames Brings the list of selected VM names. 60 60 * @param fFastTravelToNextPage Brings whether we should fast-travel to next page. */ 61 UIWizardExportAppPage Basic1(const QStringList &selectedVMNames, bool fFastTravelToNextPage);61 UIWizardExportAppPageVMs(const QStringList &selectedVMNames, bool fFastTravelToNextPage); 62 62 63 63 protected: … … 97 97 }; 98 98 99 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPage Basic1_h */99 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageVMs_h */
Note:
See TracChangeset
for help on using the changeset viewer.