- Timestamp:
- Jul 12, 2021 5:27:15 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145662
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp
r90157 r90159 97 97 if (m_pDomainNameLabel) 98 98 { 99 m_pDomainNameLabel->setText(tr("&Domain "));99 m_pDomainNameLabel->setText(tr("&Domain Name")); 100 100 m_pDomainNameLabel->setToolTip(strDomainTooltip); 101 101 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageFileType.cpp
r88599 r90159 124 124 } 125 125 } 126 127 128 129 126 return pContainerWidget; 130 127 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r90157 r90159 84 84 switch (mode()) 85 85 { 86 case WizardMode_Expert:87 86 case WizardMode_Basic: 88 87 { … … 94 93 break; 95 94 } 96 //case WizardMode_Expert:97 //{98 // // addPage(new UIWizardNewCloudVMPageExpert(m_fFullWizard));99 //break;100 //}95 case WizardMode_Expert: 96 { 97 addPage(new UIWizardNewVMPageExpert()); 98 break; 99 } 101 100 default: 102 101 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r90074 r90159 32 32 #include "UIBaseMemoryEditor.h" 33 33 #include "UIConverter.h" 34 #include "UIHostnameDomainNameEditor.h" 34 35 #include "UIFilePathSelector.h" 35 36 #include "UIIconPool.h" … … 47 48 #include "CSystemProperties.h" 48 49 49 UIWizardNewVMPageExpert::UIWizardNewVMPageExpert(const QString &strGroup) 50 : //UIWizardNewVMPageBaseNameOSType(strGroup) 51 m_pToolBox(0) 50 UIWizardNewVMPageExpert::UIWizardNewVMPageExpert() 51 : m_pToolBox(0) 52 52 , m_pDiskFormatGroupBox(0) 53 53 , m_pDiskVariantGroupBox(0) 54 54 , m_pLocationLabel(0) 55 { 56 Q_UNUSED(strGroup); 55 , m_pLocationEditor(0) 56 , m_pLocationOpenButton(0) 57 , m_pMediumSizeEditorLabel(0) 58 , m_pMediumSizeEditor(0) 59 , m_pFormatButtonGroup(0) 60 , m_pFixedCheckBox(0) 61 , m_pSplitBox(0) 62 , m_pNameAndSystemEditor(0) 63 , m_pSkipUnattendedCheckBox(0) 64 , m_pNameAndSystemLayout(0) 65 , m_pAdditionalOptionsContainer(0) 66 , m_pProductKeyLabel(0) 67 , m_pProductKeyLineEdit(0) 68 , m_pHostnameDomainNameEditor(0) 69 , m_pStartHeadlessCheckBox(0) 70 , m_pGAInstallationISOContainer(0) 71 , m_pGAISOPathLabel(0) 72 , m_pGAISOFilePathSelector(0) 73 , m_pUserNameContainer(0) 74 { 57 75 /* Create widgets: */ 58 76 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 59 77 { 60 78 m_pToolBox = new UIToolBox; 61 //m_pToolBox->insertPage(ExpertToolboxItems_NameAndOSType, createNameOSTypeWidgets(), "");62 // m_pToolBox->insertPage(ExpertToolboxItems_Unattended, createUnattendedWidgets(), "", false);79 m_pToolBox->insertPage(ExpertToolboxItems_NameAndOSType, createNameOSTypeWidgets(), ""); 80 m_pToolBox->insertPage(ExpertToolboxItems_Unattended, createUnattendedWidgets(), ""); 63 81 // m_pToolBox->insertPage(ExpertToolboxItems_Hardware, createHardwareWidgets(), ""); 64 82 // m_pToolBox->insertPage(ExpertToolboxItems_Disk, createDiskWidgets(), ""); … … 99 117 // registerField("selectedDiskSource", this, "selectedDiskSource"); 100 118 // registerField("mediumVariant", this, "mediumVariant"); 119 101 120 } 102 121 … … 157 176 void UIWizardNewVMPageExpert::retranslateUi() 158 177 { 159 // UIWizardNewVMPageBaseNameOSType::retranslateWidgets(); 160 // UIWizardNewVMPageBaseUnattended::retranslateWidgets(); 161 // UIWizardNewVMPageHardwareBase::retranslateWidgets(); 162 // UIWizardNewVMPageDiskBase::retranslateWidgets(); 163 // UIWizardNewVDPageBaseFileType::retranslateWidgets(); 164 // UIWizardNewVDPageBaseVariant::retranslateWidgets(); 165 // UIWizardNewVDPageBaseSizeLocation::retranslateWidgets(); 166 167 // if (m_pToolBox) 168 // { 169 // m_pToolBox->setPageTitle(ExpertToolboxItems_NameAndOSType, QString(UIWizardNewVM::tr("Name and &Operating System"))); 170 // m_pToolBox->setPageTitle(ExpertToolboxItems_Unattended, UIWizardNewVM::tr("&Unattended Install")); 171 // m_pToolBox->setPageTitle(ExpertToolboxItems_Disk, UIWizardNewVM::tr("Hard Dis&k")); 172 // m_pToolBox->setPageTitle(ExpertToolboxItems_Hardware, UIWizardNewVM::tr("H&ardware")); 173 // } 178 if (m_pSkipUnattendedCheckBox) 179 { 180 m_pSkipUnattendedCheckBox->setText(UIWizardNewVM::tr("&Skip Unattended Installation")); 181 m_pSkipUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("<p>When checked selected ISO file will be mounted to the CD " 182 "drive of the virtual machine but the unattended installation " 183 "will not start.</p>")); 184 } 185 186 if (m_pStartHeadlessCheckBox) 187 { 188 m_pStartHeadlessCheckBox->setText(UIWizardNewVM::tr("&Install in Background")); 189 m_pStartHeadlessCheckBox->setToolTip(UIWizardNewVM::tr("<p>When checked, the newly created virtual machine will be started " 190 "in headless mode (without a GUI) for the unattended guest OS install.</p>")); 191 } 192 193 if (m_pProductKeyLabel) 194 m_pProductKeyLabel->setText(UIWizardNewVM::tr("&Product Key:")); 195 196 if (m_pGAISOPathLabel) 197 m_pGAISOPathLabel->setText(UIWizardNewVM::tr("GA I&nstallation ISO:")); 198 if (m_pGAISOFilePathSelector) 199 m_pGAISOFilePathSelector->setToolTip(UIWizardNewVM::tr("Please select an installation medium (ISO file)")); 200 if (m_pGAInstallationISOContainer) 201 { 202 m_pGAInstallationISOContainer->setTitle(UIWizardNewVM::tr("Gu&est Additions")); 203 m_pGAInstallationISOContainer->setToolTip(UIWizardNewVM::tr("<p>When checked the guest additions will be installed " 204 "after the OS install.</p>")); 205 } 206 207 if (m_pToolBox) 208 { 209 m_pToolBox->setPageTitle(ExpertToolboxItems_NameAndOSType, QString(UIWizardNewVM::tr("Name and &Operating System"))); 210 m_pToolBox->setPageTitle(ExpertToolboxItems_Unattended, UIWizardNewVM::tr("&Unattended Install")); 211 m_pToolBox->setPageTitle(ExpertToolboxItems_Disk, UIWizardNewVM::tr("Hard Dis&k")); 212 m_pToolBox->setPageTitle(ExpertToolboxItems_Hardware, UIWizardNewVM::tr("H&ardware")); 213 } 174 214 175 215 // if (m_pDiskFormatGroupBox) … … 190 230 // m_pLocationLabel->setText(UIWizardNewVM::tr("Disk &Location:")); 191 231 192 //if (m_pNameAndSystemLayout && m_pNameAndSystemEditor)193 //m_pNameAndSystemLayout->setColumnMinimumWidth(0, m_pNameAndSystemEditor->firstColumnWidth());232 if (m_pNameAndSystemLayout && m_pNameAndSystemEditor) 233 m_pNameAndSystemLayout->setColumnMinimumWidth(0, m_pNameAndSystemEditor->firstColumnWidth()); 194 234 } 195 235 … … 337 377 // updateWidgetAterMediumFormatChange(); 338 378 // setSkipCheckBoxEnable(); 339 //retranslateUi();379 retranslateUi(); 340 380 } 341 381 … … 354 394 { 355 395 QWidget *pContainerWidget = new QWidget; 356 //QGridLayout *pLayout = new QGridLayout(pContainerWidget);357 //pLayout->setContentsMargins(0, 0, 0, 0);358 //int iRow = 0;359 360 / / /* Username selector: */361 //pLayout->addWidget(createUserNameWidgets(), iRow, 0, 1, 2);362 363 / / /* Additional options: */364 //pLayout->addWidget(createAdditionalOptionsWidgets(), iRow, 2, 1, 2);365 366 //++iRow;367 / / /* Guest additions installation: */368 //pLayout->addWidget(createGAInstallWidgets(), iRow, 0, 1, 4);396 QGridLayout *pLayout = new QGridLayout(pContainerWidget); 397 pLayout->setContentsMargins(0, 0, 0, 0); 398 int iRow = 0; 399 400 /* Username selector: */ 401 pLayout->addWidget(createUserNameWidgets(), iRow, 0, 1, 2); 402 403 /* Additional options: */ 404 pLayout->addWidget(createAdditionalOptionsWidgets(), iRow, 2, 1, 2); 405 406 ++iRow; 407 /* Guest additions installation: */ 408 pLayout->addWidget(createGAInstallWidgets(), iRow, 0, 1, 4); 369 409 370 410 return pContainerWidget; … … 405 445 m_pDiskVariantGroupBox = new QGroupBox; 406 446 QVBoxLayout *pDiskVariantLayout = new QVBoxLayout(m_pDiskVariantGroupBox); 407 pDiskVariantLayout->addWidget(createMediumVariantWidgets( false /* fWithLabels */));447 pDiskVariantLayout->addWidget(createMediumVariantWidgets()); 408 448 409 449 pDiskContainerLayout->addWidget(m_pLocationLabel, 0, 0, 1, 1); … … 570 610 if (!pSenderWidget) 571 611 return; 572 m_userSetWidgets << pSenderWidget; 612 573 613 } 574 614 … … 588 628 if (!m_pMediumSizeEditor) 589 629 return; 590 m_userSetWidgets << m_pMediumSizeEditor; 630 591 631 completeChanged(); 592 632 } … … 622 662 void UIWizardNewVMPageExpert::sltSelectLocationButtonClicked() 623 663 { 624 onSelectLocationButtonClicked();664 //onSelectLocationButtonClicked(); 625 665 } 626 666 … … 643 683 void UIWizardNewVMPageExpert::updateWidgetAterMediumFormatChange() 644 684 { 645 CMediumFormat comMediumFormat = mediumFormat();646 if (comMediumFormat.isNull())647 {648 AssertMsgFailed(("No medium format set!"));649 return;650 }651 updateMediumVariantWidgetsAfterFormatChange(comMediumFormat);652 updateLocationEditorAfterFormatChange(comMediumFormat, m_formatExtensions);685 // CMediumFormat comMediumFormat = mediumFormat(); 686 // if (comMediumFormat.isNull()) 687 // { 688 // AssertMsgFailed(("No medium format set!")); 689 // return; 690 // } 691 // updateMediumVariantWidgetsAfterFormatChange(comMediumFormat); 692 // updateLocationEditorAfterFormatChange(comMediumFormat, m_formatExtensions); 653 693 } 654 694 … … 678 718 // pWizard->setVirtualDisk(m_pDiskSelector->id()); 679 719 } 720 721 void UIWizardNewVMPageExpert::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat, bool fPreferred /* = false */) 722 { 723 Q_UNUSED(pParent); 724 Q_UNUSED(pFormatLayout); 725 Q_UNUSED(medFormat); 726 Q_UNUSED(fPreferred); 727 728 // /* Check that medium format supports creation: */ 729 // ULONG uFormatCapabilities = 0; 730 // QVector<KMediumFormatCapabilities> capabilities; 731 // capabilities = medFormat.GetCapabilities(); 732 // for (int i = 0; i < capabilities.size(); i++) 733 // uFormatCapabilities |= capabilities[i]; 734 735 // if (!(uFormatCapabilities & KMediumFormatCapabilities_CreateFixed || 736 // uFormatCapabilities & KMediumFormatCapabilities_CreateDynamic)) 737 // return; 738 739 // /* Check that medium format supports creation of virtual hard-disks: */ 740 // QVector<QString> fileExtensions; 741 // QVector<KDeviceType> deviceTypes; 742 // medFormat.DescribeFileExtensions(fileExtensions, deviceTypes); 743 // if (!deviceTypes.contains(KDeviceType_HardDisk)) 744 // return; 745 746 // /* Create/add corresponding radio-button: */ 747 // QRadioButton *pFormatButton = new QRadioButton(pParent); 748 // AssertPtrReturnVoid(pFormatButton); 749 // { 750 // /* Make the preferred button font bold: */ 751 // if (fPreferred) 752 // { 753 // QFont font = pFormatButton->font(); 754 // font.setBold(true); 755 // pFormatButton->setFont(font); 756 // } 757 // pFormatLayout->addWidget(pFormatButton); 758 // m_formats << medFormat; 759 // m_formatNames << medFormat.GetName(); 760 // m_pFormatButtonGroup->addButton(pFormatButton, m_formatNames.size() - 1); 761 // m_formatExtensions << UIWizardNewVDPageBaseSizeLocation::defaultExtension(medFormat); 762 // } 763 } 764 765 QWidget *UIWizardNewVMPageExpert::createFormatButtonGroup(bool fExpertMode) 766 { 767 Q_UNUSED(fExpertMode); 768 QWidget *pContainerWidget = new QWidget; 769 QVBoxLayout *pContainerLayout = new QVBoxLayout(pContainerWidget); 770 pContainerLayout->setContentsMargins(0, 0, 0, 0); 771 772 m_pFormatButtonGroup = new QButtonGroup; 773 if (m_pFormatButtonGroup) 774 { 775 /* Enumerate medium formats in special order: */ 776 CSystemProperties properties = uiCommon().virtualBox().GetSystemProperties(); 777 const QVector<CMediumFormat> &formats = properties.GetMediumFormats(); 778 QMap<QString, CMediumFormat> vdi, preferred, others; 779 foreach (const CMediumFormat &format, formats) 780 { 781 /* VDI goes first: */ 782 if (format.GetName() == "VDI") 783 vdi[format.GetId()] = format; 784 else 785 { 786 const QVector<KMediumFormatCapabilities> &capabilities = format.GetCapabilities(); 787 /* Then goes preferred: */ 788 if (capabilities.contains(KMediumFormatCapabilities_Preferred)) 789 preferred[format.GetId()] = format; 790 /* Then others: */ 791 else 792 others[format.GetId()] = format; 793 } 794 } 795 796 // /* Create buttons for VDI, preferred and others: */ 797 // foreach (const QString &strId, vdi.keys()) 798 // addFormatButton(pContainerWidget, pContainerLayout, vdi.value(strId), true); 799 // foreach (const QString &strId, preferred.keys()) 800 // addFormatButton(pContainerWidget, pContainerLayout, preferred.value(strId), true); 801 // if (fExpertMode) 802 // { 803 // foreach (const QString &strId, others.keys()) 804 // addFormatButton(pContainerWidget, pContainerLayout, others.value(strId)); 805 // } 806 807 // if (!m_pFormatButtonGroup->buttons().isEmpty()) 808 // { 809 // m_pFormatButtonGroup->button(0)->click(); 810 // m_pFormatButtonGroup->button(0)->setFocus(); 811 // } 812 } 813 return pContainerWidget; 814 } 815 816 QWidget *UIWizardNewVMPageExpert::createMediumVariantWidgets() 817 { 818 QWidget *pContainerWidget = new QWidget; 819 QVBoxLayout *pMainLayout = new QVBoxLayout(pContainerWidget); 820 if (pMainLayout) 821 { 822 QVBoxLayout *pVariantLayout = new QVBoxLayout; 823 if (pVariantLayout) 824 { 825 m_pFixedCheckBox = new QCheckBox; 826 m_pSplitBox = new QCheckBox; 827 pVariantLayout->addWidget(m_pFixedCheckBox); 828 pVariantLayout->addWidget(m_pSplitBox); 829 } 830 pMainLayout->addLayout(pVariantLayout); 831 pMainLayout->addStretch(); 832 pMainLayout->setContentsMargins(0, 0, 0, 0); 833 } 834 return pContainerWidget; 835 } 836 837 QWidget *UIWizardNewVMPageExpert::createNameOSTypeWidgets() 838 { 839 QWidget *pContainerWidget = new QWidget; 840 AssertReturn(pContainerWidget, 0); 841 m_pNameAndSystemLayout = new QGridLayout(pContainerWidget); 842 AssertReturn(m_pNameAndSystemLayout, 0); 843 m_pNameAndSystemLayout->setContentsMargins(0, 0, 0, 0); 844 m_pNameAndSystemEditor = new UINameAndSystemEditor(0, 845 true /* fChooseName? */, 846 true /* fChoosePath? */, 847 true /* fChooseImage? */, 848 true /* fChooseType? */); 849 if (m_pNameAndSystemEditor) 850 m_pNameAndSystemLayout->addWidget(m_pNameAndSystemEditor, 0, 0, 1, 2); 851 m_pSkipUnattendedCheckBox = new QCheckBox; 852 if (m_pSkipUnattendedCheckBox) 853 m_pNameAndSystemLayout->addWidget(m_pSkipUnattendedCheckBox, 1, 1); 854 return pContainerWidget; 855 } 856 857 QWidget *UIWizardNewVMPageExpert::createUserNameWidgets() 858 { 859 if (m_pUserNameContainer) 860 return m_pUserNameContainer; 861 862 m_pUserNameContainer = new QGroupBox; 863 QVBoxLayout *pUserNameContainerLayout = new QVBoxLayout(m_pUserNameContainer); 864 m_pUserNamePasswordEditor = new UIUserNamePasswordEditor; 865 AssertReturn(m_pUserNamePasswordEditor, 0); 866 867 m_pUserNamePasswordEditor->setLabelsVisible(true); 868 m_pUserNamePasswordEditor->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 869 pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor); 870 871 return m_pUserNameContainer; 872 } 873 874 QWidget *UIWizardNewVMPageExpert::createAdditionalOptionsWidgets() 875 { 876 if (m_pAdditionalOptionsContainer) 877 return m_pAdditionalOptionsContainer; 878 879 m_pAdditionalOptionsContainer = new QGroupBox; 880 QGridLayout *pAdditionalOptionsContainerLayout = new QGridLayout(m_pAdditionalOptionsContainer); 881 pAdditionalOptionsContainerLayout->setColumnStretch(0, 0); 882 pAdditionalOptionsContainerLayout->setColumnStretch(1, 1); 883 884 m_pProductKeyLabel = new QLabel; 885 if (m_pProductKeyLabel) 886 { 887 m_pProductKeyLabel->setAlignment(Qt::AlignRight); 888 m_pProductKeyLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 889 pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLabel, 0, 0); 890 } 891 m_pProductKeyLineEdit = new QLineEdit; 892 if (m_pProductKeyLineEdit) 893 { 894 m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#"); 895 if (m_pProductKeyLabel) 896 m_pProductKeyLabel->setBuddy(m_pProductKeyLineEdit); 897 pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLineEdit, 0, 1, 1, 2); 898 } 899 900 m_pHostnameDomainNameEditor = new UIHostnameDomainNameEditor; 901 if (m_pHostnameDomainNameEditor) 902 pAdditionalOptionsContainerLayout->addWidget(m_pHostnameDomainNameEditor, 1, 0, 2, 3); 903 904 m_pStartHeadlessCheckBox = new QCheckBox; 905 if (m_pStartHeadlessCheckBox) 906 pAdditionalOptionsContainerLayout->addWidget(m_pStartHeadlessCheckBox, 3, 1); 907 908 return m_pAdditionalOptionsContainer; 909 } 910 911 QWidget *UIWizardNewVMPageExpert::createGAInstallWidgets() 912 { 913 if (m_pGAInstallationISOContainer) 914 return m_pGAInstallationISOContainer; 915 916 m_pGAInstallationISOContainer = new QGroupBox; 917 if (m_pGAInstallationISOContainer) 918 { 919 m_pGAInstallationISOContainer->setCheckable(true); 920 921 QHBoxLayout *pGAInstallationISOLayout = new QHBoxLayout(m_pGAInstallationISOContainer); 922 if (pGAInstallationISOLayout) 923 { 924 m_pGAISOPathLabel = new QLabel; 925 if (m_pGAISOPathLabel) 926 { 927 m_pGAISOPathLabel->setAlignment(Qt::AlignRight); 928 m_pGAISOPathLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 929 930 pGAInstallationISOLayout->addWidget(m_pGAISOPathLabel); 931 } 932 m_pGAISOFilePathSelector = new UIFilePathSelector; 933 { 934 m_pGAISOFilePathSelector->setResetEnabled(false); 935 m_pGAISOFilePathSelector->setMode(UIFilePathSelector::Mode_File_Open); 936 m_pGAISOFilePathSelector->setFileDialogFilters("ISO Images(*.iso *.ISO)"); 937 m_pGAISOFilePathSelector->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 938 m_pGAISOFilePathSelector->setInitialPath(uiCommon().defaultFolderPathForType(UIMediumDeviceType_DVD)); 939 if (m_pGAISOPathLabel) 940 m_pGAISOPathLabel->setBuddy(m_pGAISOFilePathSelector); 941 942 pGAInstallationISOLayout->addWidget(m_pGAISOFilePathSelector); 943 } 944 } 945 } 946 947 return m_pGAInstallationISOContainer; 948 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r90003 r90159 25 25 #include <QSet> 26 26 27 /* Local includes: */ 28 #include "UIWizardNewVMNameOSTypePageBasic.h" 29 #include "UIWizardNewVMUnattendedPageBasic.h" 30 #include "UIWizardNewVMHardwarePageBasic.h" 31 #include "UIWizardNewVMDiskPageBasic.h" 32 #include "UIWizardNewVDPageSizeLocation.h" 27 #include "UINativeWizardPage.h" 28 29 #include "COMEnums.h" 30 #include "CMediumFormat.h" 33 31 34 32 /* Forward declarations: */ 33 class QButtonGroup; 34 class QCheckBox; 35 class QGridLayout; 35 36 class QGroupBox; 37 class QLabel; 38 class QLineEdit; 39 class QVBoxLayout; 40 class UIFilePathSelector; 41 class UIHostnameDomainNameEditor; 42 class UIMediumSizeEditor; 43 class UINameAndSystemEditor; 36 44 class UIToolBox; 45 class UIUserNamePasswordEditor; 46 class QIToolButton; 37 47 38 48 /** Expert page of the New Virtual Machine wizard. */ 39 class UIWizardNewVMPageExpert : public UIWizardPage, 40 public UIWizardNewVDPageBaseFileType, 41 public UIWizardNewVDPageBaseVariant, 42 public UIWizardNewVDPageBaseSizeLocation 49 class UIWizardNewVMPageExpert : public UINativeWizardPage 43 50 { 44 51 … … 47 54 public: 48 55 49 /** Constructor. */ 50 UIWizardNewVMPageExpert(const QString &strGroup); 56 UIWizardNewVMPageExpert(); 51 57 52 58 protected: … … 103 109 QWidget *createUnattendedWidgets(); 104 110 virtual QWidget *createNewDiskWidgets() /* override */; 111 QWidget *createFormatButtonGroup(bool fExpertMode); 112 QWidget *createMediumVariantWidgets(); 113 void addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, 114 CMediumFormat medFormat, bool fPreferred /* = false */); 115 QWidget *createNameOSTypeWidgets(); 116 QWidget *createUserNameWidgets(); 117 QWidget *createAdditionalOptionsWidgets(); 118 QWidget *createGAInstallWidgets(); 119 105 120 void updateVirtualDiskPathFromMachinePathName(); 106 121 void updateWidgetAterMediumFormatChange(); 107 122 void setEnableNewDiskWidgets(bool fEnable); 108 123 void setVirtualDiskFromDiskCombo(); 124 125 109 126 110 127 /** @name Variables … … 114 131 QGroupBox *m_pDiskVariantGroupBox; 115 132 QLabel *m_pLocationLabel; 116 /** Set of widgets which user explicitly modified their values. They are exempt from 117 * adjusting when OS type changes. */ 118 QSet<QObject*> m_userSetWidgets; 133 QLineEdit *m_pLocationEditor; 134 QIToolButton *m_pLocationOpenButton; 135 QLabel *m_pMediumSizeEditorLabel; 136 UIMediumSizeEditor *m_pMediumSizeEditor; 137 QButtonGroup *m_pFormatButtonGroup; 138 QCheckBox *m_pFixedCheckBox; 139 QCheckBox *m_pSplitBox; 140 UINameAndSystemEditor *m_pNameAndSystemEditor; 141 QCheckBox *m_pSkipUnattendedCheckBox; 142 QGridLayout *m_pNameAndSystemLayout; 143 QGroupBox *m_pAdditionalOptionsContainer; 144 QLabel *m_pProductKeyLabel; 145 QLineEdit *m_pProductKeyLineEdit; 146 UIHostnameDomainNameEditor *m_pHostnameDomainNameEditor; 147 148 149 QCheckBox *m_pStartHeadlessCheckBox; 150 QGroupBox *m_pGAInstallationISOContainer; 151 QLabel *m_pGAISOPathLabel; 152 UIFilePathSelector *m_pGAISOFilePathSelector; 153 QGroupBox *m_pUserNameContainer; 154 UIUserNamePasswordEditor *m_pUserNamePasswordEditor; 155 119 156 /** @} */ 120 157 };
Note:
See TracChangeset
for help on using the changeset viewer.