Changeset 74550 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.h
- Timestamp:
- Oct 1, 2018 12:57:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.h
r72288 r74550 25 25 class QILineEdit; 26 26 class QCheckBox; 27 class QComboBox; 28 class QGridLayout; 27 29 class QLabel; 28 30 class QIRichTextLabel; 29 31 class UIFilePathSelector; 32 33 /** MAC address policies. */ 34 enum MACAddressClonePolicy 35 { 36 MACAddressClonePolicy_KeepAllMACs, 37 MACAddressClonePolicy_KeepNATMACs, 38 MACAddressClonePolicy_StripAllMACs, 39 MACAddressClonePolicy_MAX 40 }; 41 Q_DECLARE_METATYPE(MACAddressClonePolicy); 30 42 31 43 /* 1st page of the Clone Virtual Machine wizard (base part): */ … … 45 57 void setCloneFilePath(const QString &path); 46 58 47 bool isReinitMACsChecked() const;48 59 /** calls CVirtualBox::ComposeMachineFilename(...) and sets related member variables */ 49 60 void composeCloneFilePath(); 61 /** Populates MAC address policies. */ 62 void populateMACAddressClonePolicies(); 50 63 51 QString m_strOriginalName; 52 QString m_strDefaultPath; 53 QString m_strGroup; 64 /** Updates MAC address policy combo tool-tips. */ 65 void updateMACAddressClonePolicyComboToolTip(); 66 /** Returns MAC address clone policy. */ 67 MACAddressClonePolicy macAddressClonePolicy() const; 68 /** Defines @a enmMACAddressClonePolicy. */ 69 void setMACAddressClonePolicy(MACAddressClonePolicy enmMACAddressClonePolicy); 70 71 QString m_strOriginalName; 72 QString m_strDefaultPath; 73 QString m_strGroup; 54 74 /** Full, non-native path of the clone machines setting file. Generated by CVirtualBox::ComposeMachineFilename(...) */ 55 QString m_strCloneFilePath;75 QString m_strCloneFilePath; 56 76 /** The full path of the folder where clone machine's settings file is located. 57 77 * Generated from the m_strCloneFilePath by removing base file name */ 58 QString m_strCloneFolder; 59 QCheckBox *m_pReinitMACsCheckBox; 60 QILineEdit *m_pNameLineEdit; 78 QString m_strCloneFolder; 79 QILineEdit *m_pNameLineEdit; 61 80 UIFilePathSelector *m_pPathSelector; 62 QLabel *m_pNameLabel; 63 QLabel *m_pPathLabel; 64 81 QLabel *m_pNameLabel; 82 QLabel *m_pPathLabel; 83 QLabel *m_pMACComboBoxLabel; 84 QComboBox *m_pMACComboBox; 65 85 }; 66 86 … … 71 91 Q_PROPERTY(QString cloneName READ cloneName WRITE setCloneName); 72 92 Q_PROPERTY(QString cloneFilePath READ cloneFilePath WRITE setCloneFilePath); 73 Q_PROPERTY( bool reinitMACs READ isReinitMACsChecked);93 Q_PROPERTY(MACAddressClonePolicy macAddressClonePolicy READ macAddressClonePolicy WRITE setMACAddressClonePolicy); 74 94 75 95 public: … … 81 101 void sltNameChanged(); 82 102 void sltPathChanged(); 103 /** Handles change in MAC address policy combo-box. */ 104 void sltHandleMACAddressClonePolicyComboChange(); 83 105 84 106 private: … … 91 113 92 114 QIRichTextLabel *m_pMainLabel; 115 QGridLayout *m_pContainerLayout; 93 116 }; 94 117
Note:
See TracChangeset
for help on using the changeset viewer.