- Timestamp:
- Apr 20, 2021 8:02:57 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 8 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r88577 r88597 909 909 src/wizards/UIWizardPage.h \ 910 910 src/wizards/newvd/UIWizardNewVD.h \ 911 src/wizards/newvd/UIWizardNewVDPage Basic1.h \911 src/wizards/newvd/UIWizardNewVDPageFileType.h \ 912 912 src/wizards/newvd/UIWizardNewVDPageBasic2.h \ 913 913 src/wizards/newvd/UIWizardNewVDPageBasic3.h \ … … 1447 1447 src/wizards/UIWizardPage.cpp \ 1448 1448 src/wizards/newvd/UIWizardNewVD.cpp \ 1449 src/wizards/newvd/UIWizardNewVDPage Basic1.cpp \1449 src/wizards/newvd/UIWizardNewVDPageFileType.cpp \ 1450 1450 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \ 1451 1451 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r87860 r88597 22 22 #include "UICommon.h" 23 23 #include "UIWizardNewVD.h" 24 #include "UIWizardNewVDPage Basic1.h"24 #include "UIWizardNewVDPageFileType.h" 25 25 #include "UIWizardNewVDPageBasic2.h" 26 26 #include "UIWizardNewVDPageBasic3.h" … … 126 126 case WizardMode_Basic: 127 127 { 128 setPage(Page1, new UIWizardNewVDPage Basic1);128 setPage(Page1, new UIWizardNewVDPageFileType); 129 129 setPage(Page2, new UIWizardNewVDPageBasic2); 130 130 setPage(Page3, new UIWizardNewVDPageBasic3(m_strDefaultName, m_strDefaultPath, m_uDefaultSize)); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r88038 r88597 153 153 void UIWizardNewVDPageExpert::retranslateUi() 154 154 { 155 UIWizardNewVDPage 1::retranslateWidgets();155 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 156 156 UIWizardNewVDPage2::retranslateWidgets(); 157 157 UIWizardNewVDPage3::retranslateWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.h
r87972 r88597 23 23 24 24 /* GUI includes: */ 25 #include "UIWizardNewVDPage Basic1.h"25 #include "UIWizardNewVDPageFileType.h" 26 26 #include "UIWizardNewVDPageBasic2.h" 27 27 #include "UIWizardNewVDPageBasic3.h" … … 32 32 /* Expert page of the New Virtual Hard Drive wizard: */ 33 33 class SHARED_LIBRARY_STUFF UIWizardNewVDPageExpert : public UIWizardPage, 34 public UIWizardNewVDPage 1,34 public UIWizardNewVDPageBaseFileType, 35 35 public UIWizardNewVDPage2, 36 36 public UIWizardNewVDPage3 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageFileType.cpp
r88596 r88597 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVDPage Basic1class implementation.3 * VBox Qt GUI - UIWizardNewVDPageFileType class implementation. 4 4 */ 5 5 … … 23 23 /* GUI includes: */ 24 24 #include "UIConverter.h" 25 #include "UIWizardNewVDPage Basic1.h"25 #include "UIWizardNewVDPageFileType.h" 26 26 #include "UIWizardNewVDPageBasic3.h" 27 27 #include "UIWizardNewVD.h" … … 33 33 34 34 35 UIWizardNewVDPage 1::UIWizardNewVDPage1()35 UIWizardNewVDPageBaseFileType::UIWizardNewVDPageBaseFileType() 36 36 : m_pFormatButtonGroup(0) 37 37 { 38 38 } 39 39 40 void UIWizardNewVDPage 1::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat, bool fPreferred /* = false */)40 void UIWizardNewVDPageBaseFileType::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat, bool fPreferred /* = false */) 41 41 { 42 42 /* Check that medium format supports creation: */ … … 77 77 } 78 78 79 QWidget *UIWizardNewVDPage 1::createFormatButtonGroup(bool fExpertMode)79 QWidget *UIWizardNewVDPageBaseFileType::createFormatButtonGroup(bool fExpertMode) 80 80 { 81 81 QWidget *pContainerWidget = new QWidget; … … 130 130 } 131 131 132 CMediumFormat UIWizardNewVDPage 1::mediumFormat() const132 CMediumFormat UIWizardNewVDPageBaseFileType::mediumFormat() const 133 133 { 134 134 return m_pFormatButtonGroup && m_pFormatButtonGroup->checkedButton() ? m_formats[m_pFormatButtonGroup->checkedId()] : CMediumFormat(); 135 135 } 136 136 137 void UIWizardNewVDPage 1::setMediumFormat(const CMediumFormat &mediumFormat)137 void UIWizardNewVDPageBaseFileType::setMediumFormat(const CMediumFormat &mediumFormat) 138 138 { 139 139 int iPosition = m_formats.indexOf(mediumFormat); … … 145 145 } 146 146 147 void UIWizardNewVDPage 1::retranslateWidgets()147 void UIWizardNewVDPageBaseFileType::retranslateWidgets() 148 148 { 149 149 if (m_pFormatButtonGroup) … … 159 159 } 160 160 161 UIWizardNewVDPage Basic1::UIWizardNewVDPageBasic1()161 UIWizardNewVDPageFileType::UIWizardNewVDPageFileType() 162 162 { 163 163 /* Create widgets: */ … … 173 173 /* Setup connections: */ 174 174 connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked), 175 this, &UIWizardNewVDPage Basic1::completeChanged);175 this, &UIWizardNewVDPageFileType::completeChanged); 176 176 177 177 /* Register classes: */ … … 181 181 } 182 182 183 void UIWizardNewVDPage Basic1::retranslateUi()183 void UIWizardNewVDPageFileType::retranslateUi() 184 184 { 185 185 retranslateWidgets(); … … 193 193 } 194 194 195 void UIWizardNewVDPage Basic1::initializePage()195 void UIWizardNewVDPageFileType::initializePage() 196 196 { 197 197 /* Translate page: */ … … 199 199 } 200 200 201 bool UIWizardNewVDPage Basic1::isComplete() const201 bool UIWizardNewVDPageFileType::isComplete() const 202 202 { 203 203 /* Make sure medium format is correct: */ … … 205 205 } 206 206 207 int UIWizardNewVDPage Basic1::nextId() const207 int UIWizardNewVDPageFileType::nextId() const 208 208 { 209 209 /* Show variant page only if there is something to show: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageFileType.h
r88596 r88597 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVDPage Basic1class declaration.3 * VBox Qt GUI - UIWizardNewVDPageFileType class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic1_h19 #define FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic1_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageFileType_h 19 #define FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageFileType_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 37 37 38 38 /* 1st page of the New Virtual Hard Drive wizard (base part): */ 39 class SHARED_LIBRARY_STUFF UIWizardNewVDPage 1: public UIWizardPageBase39 class SHARED_LIBRARY_STUFF UIWizardNewVDPageBaseFileType : public UIWizardPageBase 40 40 { 41 41 protected: 42 42 43 43 /* Constructor: */ 44 UIWizardNewVDPage 1();44 UIWizardNewVDPageBaseFileType(); 45 45 46 46 /* Helping stuff: */ … … 63 63 64 64 /* 1st page of the New Virtual Hard Drive wizard (basic extension): */ 65 class SHARED_LIBRARY_STUFF UIWizardNewVDPage Basic1 : public UIWizardPage, public UIWizardNewVDPage165 class SHARED_LIBRARY_STUFF UIWizardNewVDPageFileType : public UIWizardPage, public UIWizardNewVDPageBaseFileType 66 66 { 67 67 Q_OBJECT; … … 71 71 72 72 /* Constructor: */ 73 UIWizardNewVDPage Basic1();73 UIWizardNewVDPageFileType(); 74 74 75 75 private: … … 92 92 93 93 94 #endif /* !FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic1_h */94 #endif /* !FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageFileType_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.cpp
r88577 r88597 309 309 310 310 UIWizardNewVMPageDiskBase::retranslateWidgets(); 311 UIWizardNewVDPage 1::retranslateWidgets();311 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 312 312 UIWizardNewVDPage2::retranslateWidgets(); 313 313 UIWizardNewVDPage3::retranslateWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.h
r88577 r88597 27 27 /* GUI includes: */ 28 28 #include "UIWizardPage.h" 29 #include "UIWizardNewVDPage Basic1.h"29 #include "UIWizardNewVDPageFileType.h" 30 30 #include "UIWizardNewVDPageBasic2.h" 31 31 #include "UIWizardNewVDPageBasic3.h" … … 80 80 class UIWizardNewVMPageDisk : public UIWizardPage, 81 81 public UIWizardNewVMPageDiskBase, 82 public UIWizardNewVDPage 1,82 public UIWizardNewVDPageBaseFileType, 83 83 public UIWizardNewVDPage2, 84 84 public UIWizardNewVDPage3 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88577 r88597 158 158 UIWizardNewVMPageHardwareBase::retranslateWidgets(); 159 159 UIWizardNewVMPageDiskBase::retranslateWidgets(); 160 UIWizardNewVDPage 1::retranslateWidgets();160 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 161 161 UIWizardNewVDPage2::retranslateWidgets(); 162 162 UIWizardNewVDPage3::retranslateWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88577 r88597 42 42 public UIWizardNewVMPageHardwareBase, 43 43 public UIWizardNewVMPageDiskBase, 44 public UIWizardNewVDPage 1,44 public UIWizardNewVDPageBaseFileType, 45 45 public UIWizardNewVDPage2, 46 46 public UIWizardNewVDPage3
Note:
See TracChangeset
for help on using the changeset viewer.