Changeset 91254 in vbox
- Timestamp:
- Sep 15, 2021 1:46:39 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r91252 r91254 173 173 UIDiskFormatsGroupBox::UIDiskFormatsGroupBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent /* = 0 */) 174 174 : UIDiskEditorGroupBox(fExpertMode, pParent) 175 , m_enmDeviceType(enmDeviceType)175 , UIDiskFormatBase(enmDeviceType) 176 176 , m_pFormatButtonGroup(0) 177 177 , m_pMainLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.h
r91253 r91254 74 74 }; 75 75 76 class SHARED_LIBRARY_STUFF UIDiskFormatsGroupBox : public UIDiskEditorGroupBox 77 { 78 Q_OBJECT; 79 80 signals: 81 82 void sigMediumFormatChanged(); 83 84 public: 85 86 UIDiskFormatsGroupBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent = 0); 87 CMediumFormat mediumFormat() const; 88 void setMediumFormat(const CMediumFormat &mediumFormat); 89 const CMediumFormat &VDIMediumFormat() const; 90 const QStringList formatExtensions() const; 91 92 private: 76 class UIDiskFormatBase 77 { 78 79 public: 80 81 UIDiskFormatBase(KDeviceType enmDeviceType) 82 : m_enmDeviceType(enmDeviceType) 83 {} 84 85 protected: 86 93 87 struct Format 94 88 { … … 106 100 }; 107 101 102 QVector<Format> m_formatList; 103 CMediumFormat m_comVDIMediumFormat; 104 KDeviceType m_enmDeviceType; 105 106 }; 107 108 class SHARED_LIBRARY_STUFF UIDiskFormatsGroupBox : public UIDiskEditorGroupBox, public UIDiskFormatBase 109 { 110 Q_OBJECT; 111 112 signals: 113 114 void sigMediumFormatChanged(); 115 116 public: 117 118 UIDiskFormatsGroupBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent = 0); 119 CMediumFormat mediumFormat() const; 120 void setMediumFormat(const CMediumFormat &mediumFormat); 121 const CMediumFormat &VDIMediumFormat() const; 122 const QStringList formatExtensions() const; 123 124 private: 125 108 126 void prepare(); 109 127 void populateFormats(); … … 112 130 virtual void retranslateUi() /* override final */; 113 131 114 QVector<Format> m_formatList;115 116 CMediumFormat m_comVDIMediumFormat;117 KDeviceType m_enmDeviceType;118 132 119 133 QButtonGroup *m_pFormatButtonGroup;
Note:
See TracChangeset
for help on using the changeset viewer.