Changeset 91579 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 5:32:35 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r91565 r91579 1765 1765 UIApplianceEditorWidget::UIApplianceEditorWidget(QWidget *pParent /* = 0 */) 1766 1766 : QIWithRetranslateUI<QWidget>(pParent) 1767 , m_pAppliance(0)1768 1767 , m_pModel(0) 1769 1768 { … … 1848 1847 /* Translate finally: */ 1849 1848 retranslateUi(); 1849 } 1850 1851 void UIApplianceEditorWidget::setAppliance(const CAppliance &comAppliance) 1852 { 1853 m_comAppliance = comAppliance; 1850 1854 } 1851 1855 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.h
r91565 r91579 34 34 /* COM includes: */ 35 35 #include "COMEnums.h" 36 #include "CAppliance.h" 36 37 #include "CVirtualSystemDescription.h" 37 38 … … 294 295 UIApplianceEditorWidget(QWidget *pParent = 0); 295 296 297 /** Defines @a comAppliance wrapper instance. */ 298 virtual void setAppliance(const CAppliance &comAppliance); 299 296 300 /** Defines the list of VSD @a hints. */ 297 301 void setVsdHints(const AbstractVSDParameterList &hints); 298 299 /** Returns whether the Appliance Editor has valid state. */300 bool isValid() const { return m_pAppliance != 0; }301 /** Returns the currently set appliance reference. */302 CAppliance *appliance() const { return m_pAppliance; }303 302 304 303 /** Defines virtual system base folder @a strPath. */ … … 324 323 virtual void retranslateUi() /* override */; 325 324 325 /** Holds the currently set appliance reference. */ 326 CAppliance m_comAppliance; 327 326 328 /** Holds the list of VSD hints. */ 327 329 AbstractVSDParameterList m_listVsdHints; 328 330 329 /** Holds the currently set appliance reference. */330 CAppliance *m_pAppliance;331 331 /** Holds the Appliance model reference. */ 332 332 UIApplianceModel *m_pModel; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceExportEditorWidget.cpp
r91541 r91579 63 63 void UIApplianceExportEditorWidget::setAppliance(const CAppliance &comAppliance) 64 64 { 65 /* Ca che newly passed appliance: */66 m_comAppliance = comAppliance;65 /* Call to base-class: */ 66 UIApplianceEditorWidget::setAppliance(comAppliance); 67 67 68 68 /* Cleanup previous stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceExportEditorWidget.h
r91539 r91579 39 39 40 40 /** Assigns @a comAppliance and populates widget contents. */ 41 v oid setAppliance(const CAppliance &comAppliance);41 virtual void setAppliance(const CAppliance &comAppliance) /* override final */; 42 42 43 43 /** Prepares export by pushing edited data back to appliance. */ 44 44 void prepareExport(); 45 46 private:47 48 /** Holds the appliance wrapper instance. */49 CAppliance m_comAppliance;50 45 }; 51 46 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp
r91578 r91579 50 50 void UIApplianceImportEditorWidget::setAppliance(const CAppliance &comAppliance) 51 51 { 52 /* Ca che newly passed appliance: */53 m_comAppliance = comAppliance;52 /* Call to base-class: */ 53 UIApplianceEditorWidget::setAppliance(comAppliance); 54 54 55 55 /* Cleanup previous stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.h
r91578 r91579 39 39 40 40 /** Assigns @a comAppliance and populates widget contents. */ 41 v oid setAppliance(const CAppliance &comAppliance);41 virtual void setAppliance(const CAppliance &comAppliance) /* override final */; 42 42 43 43 /** Prepares import by pushing edited data back to appliance. */ 44 44 void prepareImport(); 45 46 private:47 48 /** Holds the appliance wrapper instance. */49 CAppliance m_comAppliance;50 45 }; 51 46
Note:
See TracChangeset
for help on using the changeset viewer.