Changeset 10167 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsNetwork.h
- Timestamp:
- Jul 3, 2008 5:09:23 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32709
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsNetwork.h
r9951 r10167 24 24 #define __VBoxVMSettingsNetwork_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsNetwork.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class QIWidgetValidator;31 class VBoxVMSettingsDlg;32 30 #ifdef Q_WS_WIN 33 31 class QTreeWidget; … … 54 52 55 53 void setValidator (QIWidgetValidator *aValidator); 54 55 QWidget* setOrderAfter (QWidget *aAfter); 56 56 57 void setNetworksList (const QStringList &aList); 57 58 … … 133 134 * QWidget sub-class which represents network settings page itself. 134 135 */ 135 class VBoxVMSettingsNetworkPage : public QIWithRetranslateUI<QWidget>136 class VBoxVMSettingsNetworkPage : public VBoxSettingsPage 136 137 { 137 138 Q_OBJECT; … … 139 140 public: 140 141 141 static void getFromMachine (const CMachine &aMachine, 142 QWidget *aPage, 143 VBoxVMSettingsDlg *aDlg, 144 const QString &aPath); 145 static void putBackToMachine(); 146 static bool revalidate (QString &aWarning, QString &aTitle); 142 VBoxVMSettingsNetworkPage(); 147 143 148 protected slots: 144 protected: 145 146 void getFrom (const CMachine &aMachine); 147 void putBackTo(); 148 149 void setValidator (QIWidgetValidator *aVal); 150 bool revalidate (QString &aWarning, QString &aTitle); 151 152 void retranslateUi(); 153 154 private slots: 149 155 150 156 void updateNetworksList(); … … 154 160 #endif 155 161 156 protected: 157 158 VBoxVMSettingsNetworkPage (QWidget *aParent); 159 160 void getFrom (const CMachine &aMachine, 161 VBoxVMSettingsDlg *aDlg, 162 const QString &aPath); 163 void putBackTo(); 164 bool validate (QString &aWarning, QString &aTitle); 165 166 void retranslateUi(); 162 private: 167 163 168 164 void populateNetworksList(); 169 170 static VBoxVMSettingsNetworkPage *mSettings;171 165 172 166 /* Widgets */ … … 175 169 VBoxNIList *mNIList; 176 170 #endif 171 172 /* Widget Validator*/ 173 QIWidgetValidator *mValidator; 177 174 178 175 /* Lists */
Note:
See TracChangeset
for help on using the changeset viewer.