Changeset 10167
- Timestamp:
- 07/03/08 19:09:23 (2 months ago)
- Files:
-
- trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk (modified) (5 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/VBoxUI.pro (modified) (2 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobalSettingsDlg.h (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobalSettingsGeneral.h (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobalSettingsInput.h (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobalSettingsLanguage.h (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsUtils.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsUtils.h) (5 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsAudio.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsCD.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsDlg.h (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsFD.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsGeneral.h (modified) (4 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsHD.h (modified) (7 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsNetwork.h (modified) (6 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsParallel.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsSF.h (modified) (6 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsSerial.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsUSB.h (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsVRDP.h (modified) (2 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettingsDlg.cpp (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettingsGeneral.cpp (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettingsInput.cpp (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettingsLanguage.cpp (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp (modified) (4 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsAudio.cpp (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsCD.cpp (modified) (8 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsDlg.cpp (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsFD.cpp (modified) (9 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsGeneral.cpp (modified) (11 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsHD.cpp (modified) (8 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp (modified) (7 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsParallel.cpp (modified) (4 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSF.cpp (modified) (10 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSerial.cpp (modified) (6 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsUSB.cpp (modified) (17 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsVRDP.cpp (modified) (4 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsDlg.ui (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsGeneral.ui (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsInput.ui (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsLanguage.ui (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsAudio.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsCD.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui (deleted)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsFD.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsGeneral.ui (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsHD.ui (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsParallel.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsSF.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsSerial.ui (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsUSB.ui (modified) (3 diffs)
- trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsVRDP.ui (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r10160 r10167 87 87 VBOX_PATH_QT4_SHARE ?= $(VBOX_PATH_QT4) 88 88 89 VBOX_MODULE_QT4 = QtCore QtGui 90 VBOX_DEFS_QT4 = QT_CORE_LIB QT_GUI_LIB 89 VBOX_MODULE_QT4 = QtCore QtGui 90 VBOX_DEFS_QT4 = QT_CORE_LIB QT_GUI_LIB 91 91 92 92 ifeq ($(KBUILD_TARGET),darwin) … … 449 449 include/QIMainDialog.h \ 450 450 include/QIHelpButton.h \ 451 include/VBoxUtils.h \ 451 452 include/VBoxGlobalSettings.h \ 452 453 include/VBoxGlobal.h \ … … 471 472 include/VBoxVMLogViewer.h \ 472 473 include/VBoxDiskImageManagerDlg.h \ 473 include/VBox VMSettingsUtils.h \474 include/VBoxSettingsUtils.h \ 474 475 include/VBoxVMSettingsGeneral.h \ 475 476 include/VBoxVMSettingsHD.h \ … … 483 484 include/VBoxVMSettingsSF.h \ 484 485 include/VBoxVMSettingsVRDP.h \ 485 include/VBoxVMSettingsDlg.h \ 486 include/VBoxGlobalSettingsGeneral.h \ 487 include/VBoxGlobalSettingsInput.h \ 488 include/VBoxGlobalSettingsLanguage.h \ 489 include/VBoxGlobalSettingsDlg.h 486 include/VBoxGLSettingsGeneral.h \ 487 include/VBoxGLSettingsInput.h \ 488 include/VBoxGLSettingsLanguage.h \ 489 include/VBoxSettingsDialog.h \ 490 include/VBoxSettingsDialogSpecific.h \ 491 include/VBoxSettingsPage.h 490 492 491 493 # Sources containing local definitions of classes that use the Q_OBJECT macro … … 565 567 src/VBoxVMSettingsSF.cpp \ 566 568 src/VBoxVMSettingsVRDP.cpp \ 567 src/VBox VMSettingsDlg.cpp \568 src/VBoxG lobalSettingsGeneral.cpp \569 src/VBoxG lobalSettingsInput.cpp \570 src/VBox GlobalSettingsLanguage.cpp \571 src/VBox GlobalSettingsDlg.cpp569 src/VBoxGLSettingsGeneral.cpp \ 570 src/VBoxGLSettingsInput.cpp \ 571 src/VBoxGLSettingsLanguage.cpp \ 572 src/VBoxSettingsDialog.cpp \ 573 src/VBoxSettingsDialogSpecific.cpp 572 574 573 575 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 trunk/src/VBox/Frontends/VirtualBox4/VBoxUI.pro
r10102 r10167 28 28 ui/VBoxCloseVMDlg.ui \ 29 29 ui/VBoxDiskImageManagerDlg.ui \ 30 ui/VBox GlobalSettingsDlg.ui \30 ui/VBoxSettingsDialog.ui \ 31 31 ui/VBoxGlobalSettingsGeneral.ui \ 32 32 ui/VBoxGlobalSettingsInput.ui \ … … 43 43 ui/VBoxVMSettingsAudio.ui \ 44 44 ui/VBoxVMSettingsCD.ui \ 45 ui/VBoxVMSettingsDlg.ui \46 45 ui/VBoxVMSettingsFD.ui \ 47 46 ui/VBoxVMSettingsGeneral.ui \ trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsUtils.h
r10112 r10167 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBox VMSettingsUtils class declaration4 * VBoxSettingsUtils class declaration 5 5 */ 6 6 … … 21 21 */ 22 22 23 #ifndef __VBox VMSettingsUtils_h__24 #define __VBox VMSettingsUtils_h__23 #ifndef __VBoxSettingsUtils_h__ 24 #define __VBoxSettingsUtils_h__ 25 25 26 26 #include <VBoxGlobal.h> … … 41 41 { 42 42 /* mTwSelector column numbers */ 43 listView_Category = 0, 44 listView_Id = 1, 45 listView_Link = 2, 43 treeWidget_Category = 0, 44 treeWidget_Id = 1, 45 treeWidget_Link = 2, 46 46 47 /* mTwUSBFilters column numbers */ 47 lvUSBFilters_Name = 0,48 twUSBFilters_Name = 0, 48 49 }; 49 50 … … 237 238 layout->addWidget (&mIcon); 238 239 layout->addWidget (&mLabel); 240 setVisible (false); 239 241 } 240 242 … … 248 250 }; 249 251 250 #endif // __VBox VMSettingsUtils_h__251 252 #endif // __VBoxSettingsUtils_h__ 253 trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsAudio.h
r9751 r10167 24 24 #define __VBoxVMSettingsAudio_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsAudio.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxVMSettingsAudio : public QIWithRetranslateUI<QWidget>,30 class VBoxVMSettingsAudio : public VBoxSettingsPage, 31 31 public Ui::VBoxVMSettingsAudio 32 32 { … … 35 35 public: 36 36 37 VBoxVMSettingsAudio (QWidget *aParent);37 VBoxVMSettingsAudio(); 38 38 39 static void getFromMachine (const CMachine &aMachine, 40 QWidget *aPage); 41 static void putBackToMachine(); 39 protected: 42 40 43 41 void getFrom (const CMachine &aMachine); 44 42 void putBackTo(); 45 43 46 protected: 44 void setOrderAfter (QWidget *aWidget); 47 45 48 46 void retranslateUi(); … … 52 50 void prepareComboboxes(); 53 51 54 /* Private member vars */55 static VBoxVMSettingsAudio *mSettings;56 57 52 CMachine mMachine; 58 53 }; trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsCD.h
r9751 r10167 24 24 #define __VBoxVMSettingsCD_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsCD.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxVMSettingsDlg; 31 class QIWidgetValidator; 32 33 class VBoxVMSettingsCD : public QIWithRetranslateUI<QWidget>, 30 class VBoxVMSettingsCD : public VBoxSettingsPage, 34 31 public Ui::VBoxVMSettingsCD 35 32 { … … 38 35 public: 39 36 40 VBoxVMSettingsCD (QWidget *aParent, VBoxVMSettingsDlg *aDlg, 41 const QString &aPath); 42 43 static void getFromMachine (const CMachine &aMachine, 44 QWidget *aPage, 45 VBoxVMSettingsDlg *aDlg, 46 const QString &aPath); 47 static void putBackToMachine(); 48 static bool revalidate (QString &aWarning); 49 50 void getFrom (const CMachine &aMachine); 51 void putBackTo(); 52 bool validate (QString &aWarning); 37 VBoxVMSettingsCD(); 53 38 54 39 signals: … … 58 43 protected: 59 44 45 void getFrom (const CMachine &aMachine); 46 void putBackTo(); 47 48 void setValidator (QIWidgetValidator *aVal); 49 bool revalidate (QString &aWarning, QString &aTitle); 50 51 void setOrderAfter (QWidget *aWidget); 52 60 53 void retranslateUi(); 61 54 62 55 private slots: 63 56 64 void onMediaChanged(); 57 void onGbChange (bool aSwitchedOn); 58 void onRbChange(); 59 void onCbChange(); 65 60 void showImageManager(); 66 61 67 62 private: 68 69 static VBoxVMSettingsCD *mSettings;70 63 71 64 CMachine mMachine; trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsFD.h
r9751 r10167 24 24 #define __VBoxVMSettingsFD_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsFD.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxVMSettingsDlg; 31 class QIWidgetValidator; 32 33 class VBoxVMSettingsFD : public QIWithRetranslateUI<QWidget>, 30 class VBoxVMSettingsFD : public VBoxSettingsPage, 34 31 public Ui::VBoxVMSettingsFD 35 32 { … … 38 35 public: 39 36 40 VBoxVMSettingsFD (QWidget *aParent, VBoxVMSettingsDlg *aDlg, 41 const QString &aPath); 42 43 static void getFromMachine (const CMachine &aMachine, 44 QWidget *aPage, 45 VBoxVMSettingsDlg *aDlg, 46 const QString &aPath); 47 static void putBackToMachine(); 48 static bool revalidate (QString &aWarning); 49 50 void getFrom (const CMachine &aMachine); 51 void putBackTo(); 52 bool validate (QString &aWarning); 37 VBoxVMSettingsFD(); 53 38 54 39 signals: … … 58 43 protected: 59 44 45 void getFrom (const CMachine &aMachine); 46 void putBackTo(); 47 48 void setValidator (QIWidgetValidator *aVal); 49 bool revalidate (QString &aWarning, QString &aTitle); 50 51 void setOrderAfter (QWidget *aWidget); 52 60 53 void retranslateUi(); 61 54 62 55 private slots: 63 56 64 void onMediaChanged(); 57 void onGbChange (bool aSwitchedOn); 58 void onRbChange(); 59 void onCbChange(); 65 60 void showImageManager(); 66 61 67 62 private: 68 69 static VBoxVMSettingsFD *mSettings;70 63 71 64 CMachine mMachine; trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsGeneral.h
r9751 r10167 24 24 #define __VBoxVMSettingsGeneral_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsGeneral.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxVMSettingsDlg; 31 class QIWidgetValidator; 32 33 class VBoxVMSettingsGeneral : public QIWithRetranslateUI<QWidget>, 30 class VBoxVMSettingsGeneral : public VBoxSettingsPage, 34 31 public Ui::VBoxVMSettingsGeneral 35 32 { … … 38 35 public: 39 36 40 VBoxVMSettingsGeneral (QWidget *aParent, VBoxVMSettingsDlg *aDlg, 41 const QString &aPath); 42 43 static void getFromMachine (const CMachine &aMachine, 44 QWidget *aPage, 45 VBoxVMSettingsDlg *aDlg, 46 const QString &aPath); 47 static void putBackToMachine(); 48 49 void getFrom (const CMachine &aMachine); 50 void putBackTo(); 37 VBoxVMSettingsGeneral(); 51 38 52 39 signals: … … 55 42 56 43 protected: 44 45 void getFrom (const CMachine &aMachine); 46 void putBackTo(); 47 48 void setOrderAfter (QWidget *aWidget); 57 49 58 50 void retranslateUi(); … … 78 70 void adjustBootOrderTWSize (); 79 71 80 static VBoxVMSettingsGeneral *mSettings; 72 bool eventFilter (QObject *aObject, QEvent *aEvent); 73 void showEvent (QShowEvent *aEvent); 81 74 82 bool eventFilter (QObject *aObject, QEvent *aEvent);83 84 QIWidgetValidator *mValidator;85 75 CMachine mMachine; 86 76 }; trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsHD.h
r9751 r10167 24 24 #define __VBoxVMSettingsHD_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsHD.gen.h" 27 28 #include "COMDefs.h" 28 #include "QIWithRetranslateUI.h"29 29 #include "VBoxMediaComboBox.h" 30 30 31 /* Qt includes */32 31 #include <QComboBox> 33 34 class VBoxVMSettingsDlg;35 class QIWidgetValidator;36 32 37 33 /** Register type to store slot data */ … … 245 241 246 242 static HDSlotUniquizer* instance (QWidget *aParent = 0, 247 HDItemsModel *aWatched = 0); 243 HDItemsModel *aWatched = 0, 244 const CMachine &aMachine = CMachine()); 248 245 249 246 QList<HDSltValue> list (const HDSltValue &aIncluding, bool aFilter = true); … … 256 253 } 257 254 255 const CMachine& machine() const { return mMachine; } 256 258 257 protected: 259 258 260 HDSlotUniquizer (QWidget *aParent, HDItemsModel *aWatched); 259 HDSlotUniquizer (QWidget *aParent, HDItemsModel *aWatched, 260 const CMachine &aMachine); 261 261 virtual ~HDSlotUniquizer(); 262 262 … … 272 272 QList<HDSltValue> mIDEList; 273 273 QList<HDSltValue> mSATAList; 274 const CMachine &mMachine; 274 275 }; 275 276 276 277 /** QWidget class reimplementation used as hard disks settings */ 277 class VBoxVMSettingsHD : public QIWithRetranslateUI<QWidget>,278 class VBoxVMSettingsHD : public VBoxSettingsPage, 278 279 public Ui::VBoxVMSettingsHD 279 280 { … … 282 283 public: 283 284 284 VBoxVMSettingsHD (QWidget *aParent, VBoxVMSettingsDlg *aDlg, 285 const QString &aPath); 286 ~VBoxVMSettingsHD(); 287 288 static void getFromMachine (const CMachine &aMachine, 289 QWidget *aPage, 290 VBoxVMSettingsDlg *aDlg, 291 const QString &aPath); 292 static void putBackToMachine(); 293 static bool revalidate (QString &aWarning); 294 295 bool eventFilter (QObject *aObj, QEvent *aEvent); 296 297 static CMachine mMachine; 285 VBoxVMSettingsHD(); 298 286 299 287 signals: … … 303 291 protected: 304 292 293 void getFrom (const CMachine &aMachine); 294 void putBackTo(); 295 296 void setValidator (QIWidgetValidator *aVal); 297 bool revalidate (QString &aWarning, QString &aTitle); 298 299 void setOrderAfter (QWidget *aWidget); 300 305 301 void retranslateUi(); 306 307 void getFrom();308 void putBackTo();309 bool validate (QString &aWarning);310 302 311 303 private slots: … … 321 313 private: 322 314 315 bool eventFilter (QObject *aObj, QEvent *aEvent); 316 323 317 int maxNameLength() const; 324 318 void showEvent (QShowEvent *aEvent); 325 319 326 static VBoxVMSettingsHD *mSettings; 327 320 CMachine mMachine; 328 321 QIWidgetValidator *mValidator; 329 322 HDItemsModel *mModel; 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 */ trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsParallel.h
r9751 r10167 24 24 #define __VBoxVMSettingsParallel_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsParallel.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 30 class VBoxVMSettingsDlg;31 29 32 30 class VBoxVMSettingsParallel : public QIWithRetranslateUI<QWidget>, … … 37 35 public: 38 36 39 VBoxVMSettingsParallel (QWidget *aParent = NULL);37 VBoxVMSettingsParallel(); 40 38 41 static void getFromMachine (const CMachine &aMachine, 42 QWidget *aPage, 43 VBoxVMSettingsDlg *aDlg, 44 const QString &aPath); 39 void getFromPort (const CParallelPort &aPort); 40 void putBackToPort(); 45 41 46 static void putBackToMachine();42 void setValidator (QIWidgetValidator *aVal); 47 43 48 static bool revalidate (QString &aWarning, QString &aTitle); 44 QWidget* setOrderAfter (QWidget *aAfter); 45 46 QString pageTitle() const; 47 bool isUserDefined(); 49 48 50 49 protected: … … 59 58 private: 60 59 61 void getFromPort (const CParallelPort &aPort);62 void putBackToPort();63 bool isUserDefined();60 QIWidgetValidator *mValidator; 61 CParallelPort mPort; 62 }; 64 63 65 QString pageTitle() const; 64 class VBoxVMSettingsParallelPage : public VBoxSettingsPage 65 { 66 Q_OBJECT; 66 67 67 static QTabWidget *mTabWidget; 68 public: 68 69 69 CParallelPort mPort; 70 VBoxVMSettingsParallelPage(); 71 72 protected: 73 74 void getFrom (const CMachine &aMachine); 75 void putBackTo(); 76 77 void setValidator (QIWidgetValidator *aVal); 78 bool revalidate (QString &aWarning, QString &aTitle); 79 80 void retranslateUi(); 81 82 private: 83 84 QIWidgetValidator *mValidator; 85 QTabWidget *mTabWidget; 70 86 }; 71 87 trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsSF.h
r9729 r10167 24 24 #define __VBoxVMSettingsSF_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsSF.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 29 /* Qt includes */30 29 #include <QDialog> 31 30 32 class VBoxVMSettingsDlg;33 31 class SFTreeViewItem; 34 32 class QIDialogButtonBox; … … 48 46 typedef QList<SFolderName> SFoldersNameList; 49 47 50 class VBoxVMSettingsSF : public QIWithRetranslateUI<QWidget>,48 class VBoxVMSettingsSF : public VBoxSettingsPage, 51 49 public Ui::VBoxVMSettingsSF 52 50 { … … 55 53 public: 56 54 57 VBoxVMSettingsSF (QWidget *aParent = 0, int aType = WrongType); 58 59 static void getFromMachineEx (const CMachine &aMachine, 60 QWidget *aParent, 61 VBoxVMSettingsDlg *aDlg); 62 static void putBackToMachineEx(); 63 64 int dialogType() { return mDialogType; } 55 VBoxVMSettingsSF (int aType = WrongType, QWidget *aParent = 0); 65 56 66 57 void getFromGlobal(); … … 72 63 void putBackToConsole(); 73 64 65 int dialogType() { return mDialogType; } 66 74 67 protected: 68 69 void getFrom (const CMachine &aMachine); 70 void putBackTo(); 71 72 void setOrderAfter (QWidget *aWidget); 75 73 76 74 void retranslateUi(); … … 108 106 SFoldersNameList usedList (bool aIncludeSelected); 109 107 110 static VBoxVMSettingsSF *mSettings;111 112 108 int mDialogType; 113 109 QMenu *mMenu; … … 138 134 bool aEnableSelector /* for "permanent" checkbox */, 139 135 const SFoldersNameList &aUsedNames); 140 ~VBoxAddSFDialog() {}136 ~VBoxAddSFDialog() {} 141 137 142 138 QString getPath(); trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsSerial.h
r9751 r10167 24 24 #define __VBoxVMSettingsSerial_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsSerial.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 30 class VBoxVMSettingsDlg;31 29 32 30 class VBoxVMSettingsSerial : public QIWithRetranslateUI<QWidget>, … … 35 33 Q_OBJECT; 36 34 35 public: 37 36 38 public: 39 VBoxVMSettingsSerial (QWidget* aParent = NULL); 37 VBoxVMSettingsSerial(); 40 38 41 static void getFromMachine (const CMachine &aMachine, 42 QWidget *aPage, 43 VBoxVMSettingsDlg *aDlg, 44 const QString &aPath); 39 void getFromPort (const CSerialPort &aPort); 40 void putBackToPort(); 45 41 46 static void putBackToMachine();42 void setValidator (QIWidgetValidator *aVal); 47 43 48 static bool revalidate (QString &aWarning, QString &aTitle); 44 QWidget* setOrderAfter (QWidget *aAfter); 45 46 QString pageTitle() const; 47 bool isUserDefined(); 49 48 50 49 protected: … … 60 59 private: 61 60 62 QString pageTitle() const; 61 QIWidgetValidator *mValidator; 62 CSerialPort mPort; 63 }; 63 64 64 void getFromPort (const CSerialPort &aPort); 65 void putBackToPort(); 66 bool isUserDefined();65 class VBoxVMSettingsSerialPage : public VBoxSettingsPage 66 { 67 Q_OBJECT; 67 68 68 static QTabWidget *mTabWidget; 69 public: 69 70 70 CSerialPort mPort; 71 VBoxVMSettingsSerialPage(); 72 73 protected: 74 75 void getFrom (const CMachine &aMachine); 76 void putBackTo(); 77 78 void setValidator (QIWidgetValidator *aVal); 79 bool revalidate (QString &aWarning, QString &aTitle); 80 81 void retranslateUi(); 82 83 private: 84 85 QIWidgetValidator *mValidator; 86 QTabWidget *mTabWidget; 71 87 }; 72 88 trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsUSB.h
r9889 r10167 24 24 #define __VBoxVMSettingsUSB_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsUSB.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxGlobalSettingsDlg;31 class VBoxVMSettingsDlg;32 class QIWidgetValidator;33 30 class VBoxUSBMenu; 34 31 35 class VBoxVMSettingsUSB : public QIWithRetranslateUI<QWidget>,32 class VBoxVMSettingsUSB : public VBoxSettingsPage, 36 33 public Ui::VBoxVMSettingsUSB 37 34 { … … 47 44 }; 48 45 49 static void getFrom (QWidget *aPage, 50 VBoxGlobalSettingsDlg *aDlg, 51 const QString &aPath); 52 static void getFrom (const CMachine &aMachine, 53 QWidget *aPage, 54 VBoxVMSettingsDlg *aDlg, 55 const QString &aPath); 56 static void putBackTo(); 46 VBoxVMSettingsUSB (FilterType aType); 57 47 58 48 protected: 59 49 60 VBoxVMSettingsUSB (QWidget *aParent,61 FilterType aType,62 QWidget *aDlg,63 const QString &aPath);50 void getFrom (const CSystemProperties &aProps, 51 const VBoxGlobalSettings &aGs); 52 void putBackTo (CSystemProperties &aProps, 53 VBoxGlobalSettings &aGs); 64 54 65 ~VBoxVMSettingsUSB(); 55 void getFrom (const CMachine &aMachine); 56 void putBackTo(); 66 57 67 void getFromHost(); 68 void putBackToHost(); 58 void setValidator (QIWidgetValidator *aVal); 69 59 70 void getFromMachine (const CMachine &aMachine); 71 void putBackToMachine(); 60 void setOrderAfter (QWidget *aWidget); 72 61 73 62 void retranslateUi(); 74 75 FilterType mType;76 63 77 64 private slots: … … 93 80 void addUSBFilter (const CUSBDeviceFilter &aFilter, bool isNew); 94 81 95 static VBoxVMSettingsUSB *mSettings;96 97 82 CMachine mMachine; 98 83 QIWidgetValidator *mValidator; 84 FilterType mType; 99 85 QAction *mNewAction; 100 86 QAction *mAddAction; trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsVRDP.h
r9751 r10167 24 24 #define __VBoxVMSettingsVRDP_h__ 25 25 26 #include "VBoxSettingsPage.h" 26 27 #include "VBoxVMSettingsVRDP.gen.h" 27 #include "QIWithRetranslateUI.h"28 28 #include "COMDefs.h" 29 29 30 class VBoxVMSettingsDlg; 31 class QIWidgetValidator; 32 33 class VBoxVMSettingsVRDP : public QIWithRetranslateUI<QWidget>, 30 class VBoxVMSettingsVRDP : public VBoxSettingsPage, 34 31 public Ui::VBoxVMSettingsVRDP 35 32 { … … 38 35 public: 39 36 40 VBoxVMSettingsVRDP (QWidget *aParent, VBoxVMSettingsDlg *aDlg, 41 const QString &aPath); 37 VBoxVMSettingsVRDP(); 42 38 43 static void getFromMachine (const CMachine &aMachine, 44 QWidget *aPage, 45 VBoxVMSettingsDlg *aDlg, 46 const QString &aPath); 47 static void putBackToMachine(); 39 protected: 48 40 49 41 void getFrom (const CMachine &aMachine); 50 42 void putBackTo(); 51 43 52 protected: 44 void setValidator (QIWidgetValidator *aVal); 45 46 void setOrderAfter (QWidget *aWidget); 53 47 54 48 void retranslateUi(); 55 49 56 50 private: 57 58 static VBoxVMSettingsVRDP *mSettings;59 51 60 52 CMachine mMachine; trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r10166 r10167 3518 3518 3519 3519 /* Setup settings layout */ 3520 mSettings = new VBoxVMSettingsSF ( this, MachineType | ConsoleType);3520 mSettings = new VBoxVMSettingsSF (MachineType | ConsoleType, this); 3521 3521 mSettings->getFromConsole (aSession.GetConsole()); <3522 3522 mSettings->getFromMachine (aSession.GetMachine());

