Changeset 88598 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 20, 2021 8:16:05 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143900
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 8 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r88597 r88598 910 910 src/wizards/newvd/UIWizardNewVD.h \ 911 911 src/wizards/newvd/UIWizardNewVDPageFileType.h \ 912 src/wizards/newvd/UIWizardNewVDPage Basic2.h \912 src/wizards/newvd/UIWizardNewVDPageVariant.h \ 913 913 src/wizards/newvd/UIWizardNewVDPageBasic3.h \ 914 914 src/wizards/newvd/UIWizardNewVDPageExpert.h … … 1448 1448 src/wizards/newvd/UIWizardNewVD.cpp \ 1449 1449 src/wizards/newvd/UIWizardNewVDPageFileType.cpp \ 1450 src/wizards/newvd/UIWizardNewVDPage Basic2.cpp \1450 src/wizards/newvd/UIWizardNewVDPageVariant.cpp \ 1451 1451 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \ 1452 1452 src/wizards/newvd/UIWizardNewVDPageExpert.cpp -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r88597 r88598 23 23 #include "UIWizardNewVD.h" 24 24 #include "UIWizardNewVDPageFileType.h" 25 #include "UIWizardNewVDPage Basic2.h"25 #include "UIWizardNewVDPageVariant.h" 26 26 #include "UIWizardNewVDPageBasic3.h" 27 27 #include "UIWizardNewVDPageExpert.h" … … 127 127 { 128 128 setPage(Page1, new UIWizardNewVDPageFileType); 129 setPage(Page2, new UIWizardNewVDPage Basic2);129 setPage(Page2, new UIWizardNewVDPageVariant); 130 130 setPage(Page3, new UIWizardNewVDPageBasic3(m_strDefaultName, m_strDefaultPath, m_uDefaultSize)); 131 131 break; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r88597 r88598 154 154 { 155 155 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 156 UIWizardNewVDPage 2::retranslateWidgets();156 UIWizardNewVDPageBaseVariant::retranslateWidgets(); 157 157 UIWizardNewVDPage3::retranslateWidgets(); 158 158 /* Translate widgets: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.h
r88597 r88598 24 24 /* GUI includes: */ 25 25 #include "UIWizardNewVDPageFileType.h" 26 #include "UIWizardNewVDPage Basic2.h"26 #include "UIWizardNewVDPageVariant.h" 27 27 #include "UIWizardNewVDPageBasic3.h" 28 28 … … 33 33 class SHARED_LIBRARY_STUFF UIWizardNewVDPageExpert : public UIWizardPage, 34 34 public UIWizardNewVDPageBaseFileType, 35 public UIWizardNewVDPage 2,35 public UIWizardNewVDPageBaseVariant, 36 36 public UIWizardNewVDPage3 37 37 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageVariant.cpp
r88597 r88598 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVDPage Basic2class implementation.3 * VBox Qt GUI - UIWizardNewVDPageVariant class implementation. 4 4 */ 5 5 … … 23 23 24 24 /* GUI includes: */ 25 #include "UIWizardNewVDPage Basic2.h"25 #include "UIWizardNewVDPageVariant.h" 26 26 #include "UIWizardNewVD.h" 27 27 #include "QIRichTextLabel.h" … … 30 30 #include "CMediumFormat.h" 31 31 32 UIWizardNewVDPage 2::UIWizardNewVDPage2()32 UIWizardNewVDPageBaseVariant::UIWizardNewVDPageBaseVariant() 33 33 : m_pFixedCheckBox(0) 34 34 , m_pSplitBox(0) … … 40 40 } 41 41 42 QWidget *UIWizardNewVDPage 2::createMediumVariantWidgets(bool fWithLabels)42 QWidget *UIWizardNewVDPageBaseVariant::createMediumVariantWidgets(bool fWithLabels) 43 43 { 44 44 QWidget *pContainerWidget = new QWidget; … … 75 75 } 76 76 77 qulonglong UIWizardNewVDPage 2::mediumVariant() const77 qulonglong UIWizardNewVDPageBaseVariant::mediumVariant() const 78 78 { 79 79 /* Initial value: */ … … 94 94 } 95 95 96 void UIWizardNewVDPage 2::setMediumVariant(qulonglong uMediumVariant)96 void UIWizardNewVDPageBaseVariant::setMediumVariant(qulonglong uMediumVariant) 97 97 { 98 98 /* Exclusive options: */ … … 107 107 } 108 108 109 void UIWizardNewVDPage 2::retranslateWidgets()109 void UIWizardNewVDPageBaseVariant::retranslateWidgets() 110 110 { 111 111 if (m_pFixedCheckBox) … … 138 138 } 139 139 140 void UIWizardNewVDPage 2::setWidgetVisibility(CMediumFormat &mediumFormat)140 void UIWizardNewVDPageBaseVariant::setWidgetVisibility(CMediumFormat &mediumFormat) 141 141 { 142 142 ULONG uCapabilities = 0; … … 174 174 } 175 175 176 void UIWizardNewVDPage 2::updateMediumVariantWidgetsAfterFormatChange(const CMediumFormat &mediumFormat)176 void UIWizardNewVDPageBaseVariant::updateMediumVariantWidgetsAfterFormatChange(const CMediumFormat &mediumFormat) 177 177 { 178 178 /* Enable/disable widgets: */ … … 198 198 } 199 199 200 UIWizardNewVDPage Basic2::UIWizardNewVDPageBasic2()200 UIWizardNewVDPageVariant::UIWizardNewVDPageVariant() 201 201 { 202 202 /* Create widgets: */ … … 207 207 /* Setup connections: */ 208 208 connect(m_pFixedCheckBox, &QAbstractButton::toggled, 209 this, &UIWizardNewVDPage Basic2::completeChanged);209 this, &UIWizardNewVDPageVariant::completeChanged); 210 210 connect(m_pSplitBox, &QCheckBox::stateChanged, 211 this, &UIWizardNewVDPage Basic2::completeChanged);211 this, &UIWizardNewVDPageVariant::completeChanged); 212 212 213 213 /* Register fields: */ … … 215 215 } 216 216 217 void UIWizardNewVDPage Basic2::retranslateUi()217 void UIWizardNewVDPageVariant::retranslateUi() 218 218 { 219 219 retranslateWidgets(); … … 222 222 } 223 223 224 void UIWizardNewVDPage Basic2::initializePage()224 void UIWizardNewVDPageVariant::initializePage() 225 225 { 226 226 /* Translate page: */ … … 230 230 } 231 231 232 bool UIWizardNewVDPage Basic2::isComplete() const232 bool UIWizardNewVDPageVariant::isComplete() const 233 233 { 234 234 /* Make sure medium variant is correct: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageVariant.h
r88597 r88598 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVDPage Basic2class declaration.3 * VBox Qt GUI - UIWizardNewVDPageVariant class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic2_h19 #define FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic2_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageVariant_h 19 #define FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageVariant_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 33 33 34 34 /* 2nd page of the New Virtual Hard Drive wizard (base part): */ 35 class SHARED_LIBRARY_STUFF UIWizardNewVDPage 2: public UIWizardPageBase35 class SHARED_LIBRARY_STUFF UIWizardNewVDPageBaseVariant : public UIWizardPageBase 36 36 { 37 37 protected: 38 38 39 39 /** Constructor: */ 40 UIWizardNewVDPage 2();40 UIWizardNewVDPageBaseVariant(); 41 41 42 42 QWidget *createMediumVariantWidgets(bool fWithLabels); … … 63 63 64 64 /* 2nd page of the New Virtual Hard Drive wizard (basic extension): */ 65 class SHARED_LIBRARY_STUFF UIWizardNewVDPage Basic2 : public UIWizardPage, public UIWizardNewVDPage265 class SHARED_LIBRARY_STUFF UIWizardNewVDPageVariant : public UIWizardPage, public UIWizardNewVDPageBaseVariant 66 66 { 67 67 Q_OBJECT; … … 70 70 public: 71 71 72 UIWizardNewVDPage Basic2();72 UIWizardNewVDPageVariant(); 73 73 74 74 private: … … 80 80 81 81 82 #endif /* !FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPage Basic2_h */82 #endif /* !FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDPageVariant_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.cpp
r88597 r88598 310 310 UIWizardNewVMPageDiskBase::retranslateWidgets(); 311 311 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 312 UIWizardNewVDPage 2::retranslateWidgets();312 UIWizardNewVDPageBaseVariant::retranslateWidgets(); 313 313 UIWizardNewVDPage3::retranslateWidgets(); 314 314 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageDisk.h
r88597 r88598 28 28 #include "UIWizardPage.h" 29 29 #include "UIWizardNewVDPageFileType.h" 30 #include "UIWizardNewVDPage Basic2.h"30 #include "UIWizardNewVDPageVariant.h" 31 31 #include "UIWizardNewVDPageBasic3.h" 32 32 #include "UIWizardNewVM.h" … … 81 81 public UIWizardNewVMPageDiskBase, 82 82 public UIWizardNewVDPageBaseFileType, 83 public UIWizardNewVDPage 2,83 public UIWizardNewVDPageBaseVariant, 84 84 public UIWizardNewVDPage3 85 85 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88597 r88598 159 159 UIWizardNewVMPageDiskBase::retranslateWidgets(); 160 160 UIWizardNewVDPageBaseFileType::retranslateWidgets(); 161 UIWizardNewVDPage 2::retranslateWidgets();161 UIWizardNewVDPageBaseVariant::retranslateWidgets(); 162 162 UIWizardNewVDPage3::retranslateWidgets(); 163 163 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88597 r88598 43 43 public UIWizardNewVMPageDiskBase, 44 44 public UIWizardNewVDPageBaseFileType, 45 public UIWizardNewVDPage 2,45 public UIWizardNewVDPageBaseVariant, 46 46 public UIWizardNewVDPage3 47 47 {
Note:
See TracChangeset
for help on using the changeset viewer.