Changeset 105542 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 30, 2024 12:43:20 PM (6 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r105539 r105542 51 51 , m_uDefaultSize(uDefaultSize) 52 52 , m_iMediumVariantPageIndex(-1) 53 , m_enmDeviceType(KDeviceType_HardDisk) 53 54 { 54 55 #ifndef VBOX_WS_MAC … … 129 130 case WizardMode_Basic: 130 131 { 131 addPage(new UIWizardNewVDFileTypePage );132 addPage(new UIWizardNewVDFileTypePage(m_enmDeviceType)); 132 133 m_iMediumVariantPageIndex = addPage(new UIWizardNewVDVariantPage); 133 134 addPage(new UIWizardNewVDSizeLocationPage(diskMinimumSize())); … … 136 137 case WizardMode_Expert: 137 138 { 138 addPage(new UIWizardNewVDExpertPage(diskMinimumSize() ));139 addPage(new UIWizardNewVDExpertPage(diskMinimumSize(), m_enmDeviceType)); 139 140 break; 140 141 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h
r105539 r105542 110 110 /** Holds the source virtual disk wrapper. */ 111 111 CMedium m_comSourceVirtualDisk; 112 KDeviceType m_enmDeviceType; 112 113 }; 113 114 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r105539 r105542 42 42 #include "CSystemProperties.h" 43 43 44 UIWizardNewVDExpertPage::UIWizardNewVDExpertPage(qulonglong uDiskMinimumSize )44 UIWizardNewVDExpertPage::UIWizardNewVDExpertPage(qulonglong uDiskMinimumSize, KDeviceType enmDeviceType) 45 45 : UINativeWizardPage() 46 46 , m_pSizeAndPathGroup(0) … … 51 51 , m_uMediumSizeMax(gpGlobalSession->virtualBox().GetSystemProperties().GetInfoVDSize()) 52 52 { 53 prepare(uDiskMinimumSize );54 } 55 56 void UIWizardNewVDExpertPage::prepare(qulonglong uDiskMinimumSize )53 prepare(uDiskMinimumSize, enmDeviceType); 54 } 55 56 void UIWizardNewVDExpertPage::prepare(qulonglong uDiskMinimumSize, KDeviceType enmDeviceType) 57 57 { 58 58 QVBoxLayout *pMainLayout = new QVBoxLayout(this); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.h
r105539 r105542 35 35 #include "UINativeWizardPage.h" 36 36 37 /* COM includes:*/ 38 #include "KDeviceType.h" 39 37 40 /* Forward declarations: */ 38 41 class QGroupBox; … … 48 51 public: 49 52 50 UIWizardNewVDExpertPage(qulonglong uDiskMinimumSize );53 UIWizardNewVDExpertPage(qulonglong uDiskMinimumSize, KDeviceType enmDeviceType); 51 54 52 55 private slots: … … 63 66 64 67 /** Prepare stuff. */ 65 void prepare(qulonglong uDiskMinimumSize );68 void prepare(qulonglong uDiskMinimumSize, KDeviceType enmDeviceType); 66 69 virtual void initializePage() RT_OVERRIDE RT_FINAL; 67 70 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.cpp
r104069 r105542 35 35 #include "QIRichTextLabel.h" 36 36 37 UIWizardNewVDFileTypePage::UIWizardNewVDFileTypePage( )37 UIWizardNewVDFileTypePage::UIWizardNewVDFileTypePage(KDeviceType enmDeviceType) 38 38 : m_pLabel(0) 39 39 , m_pFormatButtonGroup(0) 40 40 { 41 prepare( );41 prepare(enmDeviceType); 42 42 } 43 43 44 void UIWizardNewVDFileTypePage::prepare( )44 void UIWizardNewVDFileTypePage::prepare(KDeviceType enmDeviceType) 45 45 { 46 46 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 47 47 m_pLabel = new QIRichTextLabel(this); 48 48 pMainLayout->addWidget(m_pLabel); 49 m_pFormatButtonGroup = new UIDiskFormatsGroupBox(false, KDeviceType_HardDisk, 0);49 m_pFormatButtonGroup = new UIDiskFormatsGroupBox(false, enmDeviceType, 0); 50 50 pMainLayout->addWidget(m_pFormatButtonGroup, false); 51 51 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.h
r103982 r105542 35 35 #include "UINativeWizardPage.h" 36 36 37 /* COM includes:*/ 38 #include "KDeviceType.h" 39 37 40 /* Forward declarations: */ 38 41 class QIRichTextLabel; … … 47 50 48 51 /** Constructor. */ 49 UIWizardNewVDFileTypePage( );52 UIWizardNewVDFileTypePage(KDeviceType enmDeviceType); 50 53 51 54 private slots: … … 56 59 private: 57 60 58 void prepare( );61 void prepare(KDeviceType enmDeviceType); 59 62 void initializePage() RT_OVERRIDE RT_FINAL; 60 63
Note:
See TracChangeset
for help on using the changeset viewer.