Changeset 33882 in vbox
- Timestamp:
- Nov 9, 2010 9:32:27 AM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 38 deleted
- 7 edited
- 38 copied
- 19 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r33631 r33882 169 169 ./src/settings \ 170 170 ./src/settings/global \ 171 ./src/settings/ vm\171 ./src/settings/machine \ 172 172 ./src/wizards/newvm \ 173 173 ./src/wizards/newhd \ … … 293 293 src/settings/UISettingsPage.h \ 294 294 src/settings/VBoxSettingsSelector.h \ 295 src/settings/global/ VBoxGLSettingsGeneral.h \296 src/settings/global/ VBoxGLSettingsInput.h \297 src/settings/global/ VBoxGLSettingsUpdate.h \298 src/settings/global/ VBoxGLSettingsLanguage.h \299 src/settings/global/ VBoxGLSettingsNetwork.h \300 src/settings/global/ VBoxGLSettingsNetworkDetails.h \301 src/settings/ vm/VBoxVMSettingsGeneral.h \302 src/settings/ vm/VBoxVMSettingsSystem.h \303 src/settings/ vm/VBoxVMSettingsDisplay.h \304 src/settings/ vm/VBoxVMSettingsHD.h \305 src/settings/ vm/VBoxVMSettingsAudio.h \306 src/settings/ vm/VBoxVMSettingsNetwork.h \307 src/settings/ vm/VBoxVMSettingsPortForwardingDlg.h \308 src/settings/ vm/VBoxVMSettingsSerial.h \309 src/settings/ vm/VBoxVMSettingsParallel.h \310 src/settings/ vm/VBoxVMSettingsUSB.h \311 src/settings/ vm/VBoxVMSettingsUSBFilterDetails.h \312 src/settings/ vm/VBoxVMSettingsSF.h \313 src/settings/ vm/VBoxVMSettingsSFDetails.h \295 src/settings/global/UIGlobalSettingsGeneral.h \ 296 src/settings/global/UIGlobalSettingsInput.h \ 297 src/settings/global/UIGlobalSettingsUpdate.h \ 298 src/settings/global/UIGlobalSettingsLanguage.h \ 299 src/settings/global/UIGlobalSettingsNetwork.h \ 300 src/settings/global/UIGlobalSettingsNetworkDetails.h \ 301 src/settings/machine/UIMachineSettingsGeneral.h \ 302 src/settings/machine/UIMachineSettingsSystem.h \ 303 src/settings/machine/UIMachineSettingsDisplay.h \ 304 src/settings/machine/UIMachineSettingsStorage.h \ 305 src/settings/machine/UIMachineSettingsAudio.h \ 306 src/settings/machine/UIMachineSettingsNetwork.h \ 307 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \ 308 src/settings/machine/UIMachineSettingsSerial.h \ 309 src/settings/machine/UIMachineSettingsParallel.h \ 310 src/settings/machine/UIMachineSettingsUSB.h \ 311 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \ 312 src/settings/machine/UIMachineSettingsSF.h \ 313 src/settings/machine/UIMachineSettingsSFDetails.h \ 314 314 src/wizards/newvm/UINewVMWzd.h \ 315 315 src/wizards/newhd/UINewHDWzd.h \ … … 380 380 src/selector/UIVMDesktop.cpp \ 381 381 src/settings/UISettingsDialogSpecific.cpp \ 382 src/settings/ vm/VBoxVMSettingsPortForwardingDlg.cpp \382 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \ 383 383 src/runtime/UIActionsPool.cpp \ 384 384 src/runtime/UIIndicatorsPool.cpp \ … … 454 454 src/settings/UISettingsPage.cpp \ 455 455 src/settings/VBoxSettingsSelector.cpp \ 456 src/settings/global/ VBoxGLSettingsGeneral.cpp \457 src/settings/global/ VBoxGLSettingsInput.cpp \458 src/settings/global/ VBoxGLSettingsUpdate.cpp \459 src/settings/global/ VBoxGLSettingsLanguage.cpp \460 src/settings/global/ VBoxGLSettingsNetwork.cpp \461 src/settings/global/ VBoxGLSettingsNetworkDetails.cpp \462 src/settings/ vm/VBoxVMSettingsGeneral.cpp \463 src/settings/ vm/VBoxVMSettingsSystem.cpp \464 src/settings/ vm/VBoxVMSettingsDisplay.cpp \465 src/settings/ vm/VBoxVMSettingsHD.cpp \466 src/settings/ vm/VBoxVMSettingsAudio.cpp \467 src/settings/ vm/VBoxVMSettingsNetwork.cpp \468 src/settings/ vm/VBoxVMSettingsPortForwardingDlg.cpp \469 src/settings/ vm/VBoxVMSettingsSerial.cpp \470 src/settings/ vm/VBoxVMSettingsParallel.cpp \471 src/settings/ vm/VBoxVMSettingsUSB.cpp \472 src/settings/ vm/VBoxVMSettingsUSBFilterDetails.cpp \473 src/settings/ vm/VBoxVMSettingsSF.cpp \474 src/settings/ vm/VBoxVMSettingsSFDetails.cpp \456 src/settings/global/UIGlobalSettingsGeneral.cpp \ 457 src/settings/global/UIGlobalSettingsInput.cpp \ 458 src/settings/global/UIGlobalSettingsUpdate.cpp \ 459 src/settings/global/UIGlobalSettingsLanguage.cpp \ 460 src/settings/global/UIGlobalSettingsNetwork.cpp \ 461 src/settings/global/UIGlobalSettingsNetworkDetails.cpp \ 462 src/settings/machine/UIMachineSettingsGeneral.cpp \ 463 src/settings/machine/UIMachineSettingsSystem.cpp \ 464 src/settings/machine/UIMachineSettingsDisplay.cpp \ 465 src/settings/machine/UIMachineSettingsStorage.cpp \ 466 src/settings/machine/UIMachineSettingsAudio.cpp \ 467 src/settings/machine/UIMachineSettingsNetwork.cpp \ 468 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \ 469 src/settings/machine/UIMachineSettingsSerial.cpp \ 470 src/settings/machine/UIMachineSettingsParallel.cpp \ 471 src/settings/machine/UIMachineSettingsUSB.cpp \ 472 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \ 473 src/settings/machine/UIMachineSettingsSF.cpp \ 474 src/settings/machine/UIMachineSettingsSFDetails.cpp \ 475 475 src/wizards/newvm/UINewVMWzd.cpp \ 476 476 src/wizards/newhd/UINewHDWzd.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r32667 r33882 29 29 src/VBoxVMLogViewer.ui \ 30 30 src/settings/UISettingsDialog.ui \ 31 src/settings/ vm/VBoxVMSettingsGeneral.ui \32 src/settings/ vm/VBoxVMSettingsSystem.ui \33 src/settings/ vm/VBoxVMSettingsDisplay.ui \34 src/settings/ vm/VBoxVMSettingsHD.ui \35 src/settings/ vm/VBoxVMSettingsAudio.ui \36 src/settings/ vm/VBoxVMSettingsNetwork.ui \37 src/settings/ vm/VBoxVMSettingsSerial.ui \38 src/settings/ vm/VBoxVMSettingsParallel.ui \39 src/settings/ vm/VBoxVMSettingsUSB.ui \40 src/settings/ vm/VBoxVMSettingsUSBFilterDetails.ui \41 src/settings/ vm/VBoxVMSettingsSF.ui \42 src/settings/ vm/VBoxVMSettingsSFDetails.ui \43 src/settings/ global/VBoxGLSettingsGeneral.ui \44 src/settings/ global/VBoxGLSettingsInput.ui \45 src/settings/ global/VBoxGLSettingsUpdate.ui \46 src/settings/ global/VBoxGLSettingsLanguage.ui \47 src/settings/ global/VBoxGLSettingsNetwork.ui \48 src/settings/ global/VBoxGLSettingsNetworkDetails.ui \31 src/settings/global/UIGlobalSettingsGeneral.ui \ 32 src/settings/global/UIGlobalSettingsInput.ui \ 33 src/settings/global/UIGlobalSettingsUpdate.ui \ 34 src/settings/global/UIGlobalSettingsLanguage.ui \ 35 src/settings/global/UIGlobalSettingsNetwork.ui \ 36 src/settings/global/UIGlobalSettingsNetworkDetails.ui \ 37 src/settings/machine/UIMachineSettingsGeneral.ui \ 38 src/settings/machine/UIMachineSettingsSystem.ui \ 39 src/settings/machine/UIMachineSettingsDisplay.ui \ 40 src/settings/machine/UIMachineSettingsStorage.ui \ 41 src/settings/machine/UIMachineSettingsAudio.ui \ 42 src/settings/machine/UIMachineSettingsNetwork.ui \ 43 src/settings/machine/UIMachineSettingsSerial.ui \ 44 src/settings/machine/UIMachineSettingsParallel.ui \ 45 src/settings/machine/UIMachineSettingsUSB.ui \ 46 src/settings/machine/UIMachineSettingsUSBFilterDetails.ui \ 47 src/settings/machine/UIMachineSettingsSF.ui \ 48 src/settings/machine/UIMachineSettingsSFDetails.ui \ 49 49 src/wizards/newvm/UINewVMWzdPage1.ui \ 50 50 src/wizards/newvm/UINewVMWzdPage2.ui \ -
trunk/src/VBox/Frontends/VirtualBox/src/precomp.h
r32814 r33882 207 207 #include "VBoxFilePathSelectorWidget.h" 208 208 #include "VBoxFrameBuffer.h" 209 #include " VBoxGLSettingsGeneral.h"210 #include " VBoxGLSettingsInput.h"211 #include " VBoxGLSettingsLanguage.h"212 #include " VBoxGLSettingsNetwork.h"213 #include " VBoxGLSettingsNetworkDetails.h"214 #include " VBoxGLSettingsUpdate.h"209 #include "UIGlobalSettingsGeneral.h" 210 #include "UIGlobalSettingsInput.h" 211 #include "UIGlobalSettingsLanguage.h" 212 #include "UIGlobalSettingsNetwork.h" 213 #include "UIGlobalSettingsNetworkDetails.h" 214 #include "UIGlobalSettingsUpdate.h" 215 215 #include "VBoxGlobal.h" 216 216 #include "VBoxGlobalSettings.h" … … 252 252 #include "UIVMListView.h" 253 253 #include "VBoxVMLogViewer.h" 254 #include " VBoxVMSettingsAudio.h"255 #include " VBoxVMSettingsDisplay.h"256 #include " VBoxVMSettingsGeneral.h"257 #include " VBoxVMSettingsHD.h"258 #include " VBoxVMSettingsNetwork.h"259 #include " VBoxVMSettingsParallel.h"260 #include " VBoxVMSettingsSF.h"261 #include " VBoxVMSettingsSFDetails.h"262 #include " VBoxVMSettingsSerial.h"263 #include " VBoxVMSettingsSystem.h"264 #include " VBoxVMSettingsUSB.h"265 #include " VBoxVMSettingsUSBFilterDetails.h"254 #include "UIMachineSettingsAudio.h" 255 #include "UIMachineSettingsDisplay.h" 256 #include "UIMachineSettingsGeneral.h" 257 #include "UIMachineSettingsStorage.h" 258 #include "UIMachineSettingsNetwork.h" 259 #include "UIMachineSettingsParallel.h" 260 #include "UIMachineSettingsSF.h" 261 #include "UIMachineSettingsSFDetails.h" 262 #include "UIMachineSettingsSerial.h" 263 #include "UIMachineSettingsSystem.h" 264 #include "UIMachineSettingsUSB.h" 265 #include "UIMachineSettingsUSBFilterDetails.h" 266 266 267 267 #ifdef Q_WS_X11 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r33712 r33882 38 38 #include "VBoxTakeSnapshotDlg.h" 39 39 #include "VBoxVMInformationDlg.h" 40 #include " VBoxVMSettingsNetwork.h"41 #include " VBoxVMSettingsSF.h"40 #include "UIMachineSettingsNetwork.h" 41 #include "UIMachineSettingsSF.h" 42 42 #ifdef Q_WS_MAC 43 43 # include "DockIconPreview.h" … … 112 112 113 113 /* Setup settings layout */ 114 m_pSettings = new VBoxVMSettingsNetworkPage(true);114 m_pSettings = new UIMachineSettingsNetworkPage(true); 115 115 m_pSettings->setOrderAfter(this); 116 116 VBoxGlobal::setLayoutMargin(m_pSettings->layout(), 0); … … 160 160 private: 161 161 162 VBoxVMSettingsNetworkPage *m_pSettings;162 UIMachineSettingsNetworkPage *m_pSettings; 163 163 CSession &m_session; 164 164 }; … … 186 186 187 187 /* Setup settings layout */ 188 m_pSettings = new VBoxVMSettingsSF;188 m_pSettings = new UIMachineSettingsSF; 189 189 VBoxGlobal::setLayoutMargin(m_pSettings->layout(), 0); 190 190 m_pSettings->loadDirectlyFrom(m_session.GetConsole()); … … 234 234 private: 235 235 236 VBoxVMSettingsSF *m_pSettings;236 UIMachineSettingsSF *m_pSettings; 237 237 CSession &m_session; 238 238 }; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r33689 r33882 32 32 #include "VBoxSettingsSelector.h" 33 33 34 #include " VBoxGLSettingsGeneral.h"35 #include " VBoxGLSettingsInput.h"36 #include " VBoxGLSettingsUpdate.h"37 #include " VBoxGLSettingsLanguage.h"38 #include " VBoxGLSettingsNetwork.h"39 40 #include " VBoxVMSettingsGeneral.h"41 #include " VBoxVMSettingsSystem.h"42 #include " VBoxVMSettingsDisplay.h"43 #include " VBoxVMSettingsHD.h"44 #include " VBoxVMSettingsAudio.h"45 #include " VBoxVMSettingsNetwork.h"46 #include " VBoxVMSettingsSerial.h"47 #include " VBoxVMSettingsParallel.h"48 #include " VBoxVMSettingsUSB.h"49 #include " VBoxVMSettingsSF.h"34 #include "UIGlobalSettingsGeneral.h" 35 #include "UIGlobalSettingsInput.h" 36 #include "UIGlobalSettingsUpdate.h" 37 #include "UIGlobalSettingsLanguage.h" 38 #include "UIGlobalSettingsNetwork.h" 39 40 #include "UIMachineSettingsGeneral.h" 41 #include "UIMachineSettingsSystem.h" 42 #include "UIMachineSettingsDisplay.h" 43 #include "UIMachineSettingsStorage.h" 44 #include "UIMachineSettingsAudio.h" 45 #include "UIMachineSettingsNetwork.h" 46 #include "UIMachineSettingsSerial.h" 47 #include "UIMachineSettingsParallel.h" 48 #include "UIMachineSettingsUSB.h" 49 #include "UIMachineSettingsSF.h" 50 50 51 51 #if 0 /* Global USB filters are DISABLED now: */ … … 303 303 case GLSettingsPage_General: 304 304 { 305 UISettingsPage *pSettingsPage = new VBoxGLSettingsGeneral;305 UISettingsPage *pSettingsPage = new UIGlobalSettingsGeneral; 306 306 pSettingsPage->setId(i); 307 307 addItem(":/machine_32px.png", ":/machine_disabled_32px.png", … … 313 313 case GLSettingsPage_Input: 314 314 { 315 UISettingsPage *pSettingsPage = new VBoxGLSettingsInput;315 UISettingsPage *pSettingsPage = new UIGlobalSettingsInput; 316 316 pSettingsPage->setId(i); 317 317 addItem(":/hostkey_32px.png", ":/hostkey_disabled_32px.png", … … 323 323 case GLSettingsPage_Update: 324 324 { 325 UISettingsPage *pSettingsPage = new VBoxGLSettingsUpdate;325 UISettingsPage *pSettingsPage = new UIGlobalSettingsUpdate; 326 326 pSettingsPage->setId(i); 327 327 addItem(":/refresh_32px.png", ":/refresh_disabled_32px.png", … … 333 333 case GLSettingsPage_Language: 334 334 { 335 UISettingsPage *pSettingsPage = new VBoxGLSettingsLanguage;335 UISettingsPage *pSettingsPage = new UIGlobalSettingsLanguage; 336 336 pSettingsPage->setId(i); 337 337 addItem(":/site_32px.png", ":/site_disabled_32px.png", … … 343 343 case GLSettingsPage_USB: 344 344 { 345 UISettingsPage *pSettingsPage = new VBoxVMSettingsUSB(UISettingsPageType_Global);345 UISettingsPage *pSettingsPage = new UIMachineSettingsUSB(UISettingsPageType_Global); 346 346 pSettingsPage->setId(i); 347 347 addItem(":/usb_32px.png", ":/usb_disabled_32px.png", … … 353 353 case GLSettingsPage_Network: 354 354 { 355 UISettingsPage *pSettingsPage = new VBoxGLSettingsNetwork;355 UISettingsPage *pSettingsPage = new UIGlobalSettingsNetwork; 356 356 pSettingsPage->setId(i); 357 357 addItem(":/nw_32px.png", ":/nw_disabled_32px.png", … … 518 518 case VMSettingsPage_General: 519 519 { 520 UISettingsPage *pSettingsPage = new VBoxVMSettingsGeneral;520 UISettingsPage *pSettingsPage = new UIMachineSettingsGeneral; 521 521 pSettingsPage->setId(i); 522 522 addItem(":/machine_32px.png", ":/machine_disabled_32px.png", … … 528 528 case VMSettingsPage_System: 529 529 { 530 UISettingsPage *pSettingsPage = new VBoxVMSettingsSystem;530 UISettingsPage *pSettingsPage = new UIMachineSettingsSystem; 531 531 pSettingsPage->setId(i); 532 532 connect(pSettingsPage, SIGNAL(tableChanged()), this, SLOT(sltResetFirstRunFlag())); … … 539 539 case VMSettingsPage_Display: 540 540 { 541 UISettingsPage *pSettingsPage = new VBoxVMSettingsDisplay;541 UISettingsPage *pSettingsPage = new UIMachineSettingsDisplay; 542 542 pSettingsPage->setId(i); 543 543 addItem(":/vrdp_32px.png", ":/vrdp_disabled_32px.png", … … 549 549 case VMSettingsPage_Storage: 550 550 { 551 UISettingsPage *pSettingsPage = new VBoxVMSettingsHD;551 UISettingsPage *pSettingsPage = new UIMachineSettingsStorage; 552 552 pSettingsPage->setId(i); 553 553 connect(pSettingsPage, SIGNAL(storageChanged()), this, SLOT(sltResetFirstRunFlag())); … … 560 560 case VMSettingsPage_Audio: 561 561 { 562 UISettingsPage *pSettingsPage = new VBoxVMSettingsAudio;562 UISettingsPage *pSettingsPage = new UIMachineSettingsAudio; 563 563 pSettingsPage->setId(i); 564 564 addItem(":/sound_32px.png", ":/sound_disabled_32px.png", … … 570 570 case VMSettingsPage_Network: 571 571 { 572 UISettingsPage *pSettingsPage = new VBoxVMSettingsNetworkPage;572 UISettingsPage *pSettingsPage = new UIMachineSettingsNetworkPage; 573 573 pSettingsPage->setId(i); 574 574 addItem(":/nw_32px.png", ":/nw_disabled_32px.png", … … 588 588 case VMSettingsPage_Serial: 589 589 { 590 UISettingsPage *pSettingsPage = new VBoxVMSettingsSerialPage;590 UISettingsPage *pSettingsPage = new UIMachineSettingsSerialPage; 591 591 pSettingsPage->setId(i); 592 592 addItem(":/serial_port_32px.png", ":/serial_port_disabled_32px.png", … … 598 598 case VMSettingsPage_Parallel: 599 599 { 600 UISettingsPage *pSettingsPage = new VBoxVMSettingsParallelPage;600 UISettingsPage *pSettingsPage = new UIMachineSettingsParallelPage; 601 601 pSettingsPage->setId(i); 602 602 addItem(":/parallel_port_32px.png", ":/parallel_port_disabled_32px.png", … … 608 608 case VMSettingsPage_USB: 609 609 { 610 UISettingsPage *pSettingsPage = new VBoxVMSettingsUSB(UISettingsPageType_Machine);610 UISettingsPage *pSettingsPage = new UIMachineSettingsUSB(UISettingsPageType_Machine); 611 611 pSettingsPage->setId(i); 612 612 addItem(":/usb_32px.png", ":/usb_disabled_32px.png", … … 618 618 case VMSettingsPage_SF: 619 619 { 620 UISettingsPage *pSettingsPage = new VBoxVMSettingsSF;620 UISettingsPage *pSettingsPage = new UIMachineSettingsSF; 621 621 pSettingsPage->setId(i); 622 622 addItem(":/shared_folder_32px.png", ":/shared_folder_disabled_32px.png", … … 709 709 710 710 /* Guest OS type & VT-x/AMD-V option correlation auto-fix: */ 711 VBoxVMSettingsGeneral *pGeneralPage =712 qobject_cast< VBoxVMSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General));713 VBoxVMSettingsSystem *pSystemPage =714 qobject_cast< VBoxVMSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System));711 UIMachineSettingsGeneral *pGeneralPage = 712 qobject_cast<UIMachineSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General)); 713 UIMachineSettingsSystem *pSystemPage = 714 qobject_cast<UIMachineSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System)); 715 715 if (pGeneralPage && pSystemPage && 716 716 pGeneralPage->is64BitOSTypeSelected() && !pSystemPage->isHWVirtExEnabled()) … … 721 721 if (pGeneralPage && !pGeneralPage->isWindowsOSTypeSelected()) 722 722 { 723 VBoxVMSettingsDisplay *pDisplayPage =724 qobject_cast< VBoxVMSettingsDisplay*>(m_pSelector->idToPage(VMSettingsPage_Display));723 UIMachineSettingsDisplay *pDisplayPage = 724 qobject_cast<UIMachineSettingsDisplay*>(m_pSelector->idToPage(VMSettingsPage_Display)); 725 725 if (pDisplayPage && pDisplayPage->isAcceleration2DVideoSelected()) 726 726 m_machine.SetAccelerate2DVideoEnabled(false); … … 825 825 { 826 826 /* Get General & System pages: */ 827 VBoxVMSettingsGeneral *pGeneralPage =828 qobject_cast< VBoxVMSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General));829 VBoxVMSettingsSystem *pSystemPage =830 qobject_cast< VBoxVMSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System));827 UIMachineSettingsGeneral *pGeneralPage = 828 qobject_cast<UIMachineSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General)); 829 UIMachineSettingsSystem *pSystemPage = 830 qobject_cast<UIMachineSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System)); 831 831 832 832 /* Guest OS type & VT-x/AMD-V option correlation test: */ … … 847 847 { 848 848 /* Get General & Display pages: */ 849 VBoxVMSettingsGeneral *pGeneralPage =850 qobject_cast< VBoxVMSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General));851 VBoxVMSettingsDisplay *pDisplayPage =852 qobject_cast< VBoxVMSettingsDisplay*>(m_pSelector->idToPage(VMSettingsPage_Display));849 UIMachineSettingsGeneral *pGeneralPage = 850 qobject_cast<UIMachineSettingsGeneral*>(m_pSelector->idToPage(VMSettingsPage_General)); 851 UIMachineSettingsDisplay *pDisplayPage = 852 qobject_cast<UIMachineSettingsDisplay*>(m_pSelector->idToPage(VMSettingsPage_Display)); 853 853 #ifdef VBOX_WITH_CRHGSMI 854 854 if (pGeneralPage && pDisplayPage) … … 875 875 { 876 876 /* Get System & USB pages: */ 877 VBoxVMSettingsSystem *pSystemPage =878 qobject_cast< VBoxVMSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System));879 VBoxVMSettingsUSB *pUsbPage =880 qobject_cast< VBoxVMSettingsUSB*>(m_pSelector->idToPage(VMSettingsPage_USB));877 UIMachineSettingsSystem *pSystemPage = 878 qobject_cast<UIMachineSettingsSystem*>(m_pSelector->idToPage(VMSettingsPage_System)); 879 UIMachineSettingsUSB *pUsbPage = 880 qobject_cast<UIMachineSettingsUSB*>(m_pSelector->idToPage(VMSettingsPage_USB)); 881 881 if (pSystemPage && pUsbPage && 882 882 pSystemPage->isHIDEnabled() && !pUsbPage->isOHCIEnabled()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsGeneral class implementation5 * UIGlobalSettingsGeneral class implementation 6 6 */ 7 7 … … 22 22 23 23 /* Local includes */ 24 #include " VBoxGLSettingsGeneral.h"24 #include "UIGlobalSettingsGeneral.h" 25 25 #include "VBoxGlobal.h" 26 26 27 VBoxGLSettingsGeneral::VBoxGLSettingsGeneral()27 UIGlobalSettingsGeneral::UIGlobalSettingsGeneral() 28 28 { 29 29 /* Apply UI decorations */ 30 Ui:: VBoxGLSettingsGeneral::setupUi (this);30 Ui::UIGlobalSettingsGeneral::setupUi (this); 31 31 32 32 #ifndef VBOX_GUI_WITH_SYSTRAY … … 58 58 /* Load data to cashe from corresponding external object(s), 59 59 * this task COULD be performed in other than GUI thread: */ 60 void VBoxGLSettingsGeneral::loadToCacheFrom(QVariant &data)60 void UIGlobalSettingsGeneral::loadToCacheFrom(QVariant &data) 61 61 { 62 62 /* Fetch data to properties & settings: */ … … 78 78 /* Load data to corresponding widgets from cache, 79 79 * this task SHOULD be performed in GUI thread only: */ 80 void VBoxGLSettingsGeneral::getFromCache()80 void UIGlobalSettingsGeneral::getFromCache() 81 81 { 82 82 /* Fetch from cache: */ … … 92 92 /* Save data from corresponding widgets to cache, 93 93 * this task SHOULD be performed in GUI thread only: */ 94 void VBoxGLSettingsGeneral::putToCache()94 void UIGlobalSettingsGeneral::putToCache() 95 95 { 96 96 /* Upload to cache: */ … … 106 106 /* Save data from cache to corresponding external object(s), 107 107 * this task COULD be performed in other than GUI thread: */ 108 void VBoxGLSettingsGeneral::saveFromCacheTo(QVariant &data)108 void UIGlobalSettingsGeneral::saveFromCacheTo(QVariant &data) 109 109 { 110 110 /* Fetch data to properties & settings: */ … … 126 126 } 127 127 128 void VBoxGLSettingsGeneral::setOrderAfter (QWidget *aWidget)128 void UIGlobalSettingsGeneral::setOrderAfter (QWidget *aWidget) 129 129 { 130 130 setTabOrder (aWidget, mPsMach); … … 135 135 } 136 136 137 void VBoxGLSettingsGeneral::retranslateUi()137 void UIGlobalSettingsGeneral::retranslateUi() 138 138 { 139 139 /* Translate uic generated strings */ 140 Ui:: VBoxGLSettingsGeneral::retranslateUi (this);140 Ui::UIGlobalSettingsGeneral::retranslateUi (this); 141 141 142 142 mPsMach->setWhatsThis (tr ("Displays the path to the default virtual " -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsGeneral class declaration4 * UIGlobalSettingsGeneral class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsGeneral_h__20 #define __ VBoxGLSettingsGeneral_h__19 #ifndef __UIGlobalSettingsGeneral_h__ 20 #define __UIGlobalSettingsGeneral_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxGLSettingsGeneral.gen.h"23 #include "UIGlobalSettingsGeneral.gen.h" 24 24 25 25 /* Global settings / General page / Cache: */ … … 36 36 37 37 /* Global settings / General page: */ 38 class VBoxGLSettingsGeneral : public UISettingsPageGlobal,39 public Ui:: VBoxGLSettingsGeneral38 class UIGlobalSettingsGeneral : public UISettingsPageGlobal, 39 public Ui::UIGlobalSettingsGeneral 40 40 { 41 41 Q_OBJECT; … … 43 43 public: 44 44 45 VBoxGLSettingsGeneral();45 UIGlobalSettingsGeneral(); 46 46 47 47 protected: … … 71 71 }; 72 72 73 #endif // __ VBoxGLSettingsGeneral_h__73 #endif // __UIGlobalSettingsGeneral_h__ 74 74 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui
r33879 r33882 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 </comment> 16 <class> VBoxGLSettingsGeneral</class>17 <widget class="QWidget" name=" VBoxGLSettingsGeneral">16 <class>UIGlobalSettingsGeneral</class> 17 <widget class="QWidget" name="UIGlobalSettingsGeneral"> 18 18 <property name="geometry"> 19 19 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsInput class implementation5 * UIGlobalSettingsInput class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxGLSettingsInput.h"20 #include "UIGlobalSettingsInput.h" 21 21 #include "VBoxGlobalSettings.h" 22 22 23 VBoxGLSettingsInput::VBoxGLSettingsInput()23 UIGlobalSettingsInput::UIGlobalSettingsInput() 24 24 { 25 25 /* Apply UI decorations */ 26 Ui:: VBoxGLSettingsInput::setupUi (this);26 Ui::UIGlobalSettingsInput::setupUi (this); 27 27 28 28 /* Applying language settings */ … … 32 32 /* Load data to cashe from corresponding external object(s), 33 33 * this task COULD be performed in other than GUI thread: */ 34 void VBoxGLSettingsInput::loadToCacheFrom(QVariant &data)34 void UIGlobalSettingsInput::loadToCacheFrom(QVariant &data) 35 35 { 36 36 /* Fetch data to properties & settings: */ … … 47 47 /* Load data to corresponding widgets from cache, 48 48 * this task SHOULD be performed in GUI thread only: */ 49 void VBoxGLSettingsInput::getFromCache()49 void UIGlobalSettingsInput::getFromCache() 50 50 { 51 51 /* Fetch from cache: */ … … 56 56 /* Save data from corresponding widgets to cache, 57 57 * this task SHOULD be performed in GUI thread only: */ 58 void VBoxGLSettingsInput::putToCache()58 void UIGlobalSettingsInput::putToCache() 59 59 { 60 60 /* Upload to cache: */ … … 65 65 /* Save data from cache to corresponding external object(s), 66 66 * this task COULD be performed in other than GUI thread: */ 67 void VBoxGLSettingsInput::saveFromCacheTo(QVariant &data)67 void UIGlobalSettingsInput::saveFromCacheTo(QVariant &data) 68 68 { 69 69 /* Fetch data to properties & settings: */ … … 78 78 } 79 79 80 void VBoxGLSettingsInput::setOrderAfter (QWidget *aWidget)80 void UIGlobalSettingsInput::setOrderAfter (QWidget *aWidget) 81 81 { 82 82 setTabOrder (aWidget, mHeHostKey); … … 85 85 } 86 86 87 void VBoxGLSettingsInput::retranslateUi()87 void UIGlobalSettingsInput::retranslateUi() 88 88 { 89 89 /* Translate uic generated strings */ 90 Ui:: VBoxGLSettingsInput::retranslateUi (this);90 Ui::UIGlobalSettingsInput::retranslateUi (this); 91 91 } 92 92 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsInput class declaration4 * UIGlobalSettingsInput class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsInput_h__20 #define __ VBoxGLSettingsInput_h__19 #ifndef __UIGlobalSettingsInput_h__ 20 #define __UIGlobalSettingsInput_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxGLSettingsInput.gen.h"23 #include "UIGlobalSettingsInput.gen.h" 24 24 25 25 /* Global settings / Input page / Cache: */ … … 31 31 32 32 /* Global settings / Input page: */ 33 class VBoxGLSettingsInput : public UISettingsPageGlobal,34 public Ui:: VBoxGLSettingsInput33 class UIGlobalSettingsInput : public UISettingsPageGlobal, 34 public Ui::UIGlobalSettingsInput 35 35 { 36 36 Q_OBJECT; … … 38 38 public: 39 39 40 VBoxGLSettingsInput();40 UIGlobalSettingsInput(); 41 41 42 42 protected: … … 66 66 }; 67 67 68 #endif // __ VBoxGLSettingsInput_h__68 #endif // __UIGlobalSettingsInput_h__ 69 69 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.ui
r33879 r33882 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 </comment> 16 <class> VBoxGLSettingsInput</class>17 <widget class="QWidget" name=" VBoxGLSettingsInput">16 <class>UIGlobalSettingsInput</class> 17 <widget class="QWidget" name="UIGlobalSettingsInput"> 18 18 <property name="geometry"> 19 19 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsLanguage class implementation5 * UIGlobalSettingsLanguage class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxGLSettingsLanguage.h"20 #include "UIGlobalSettingsLanguage.h" 21 21 #include "VBoxGlobalSettings.h" 22 22 #include "VBoxGlobal.h" … … 86 86 else 87 87 { 88 itemName += VBoxGLSettingsLanguage::tr (" (built-in)", "Language");89 langName += VBoxGLSettingsLanguage::tr (" (built-in)", "Language");88 itemName += UIGlobalSettingsLanguage::tr (" (built-in)", "Language"); 89 langName += UIGlobalSettingsLanguage::tr (" (built-in)", "Language"); 90 90 } 91 91 … … 113 113 setText (0, QString ("<%1>").arg (aId)); 114 114 setText (1, aId); 115 setText (2, VBoxGLSettingsLanguage::tr ("<unavailable>", "Language"));116 setText (3, VBoxGLSettingsLanguage::tr ("<unknown>", "Author(s)"));115 setText (2, UIGlobalSettingsLanguage::tr ("<unavailable>", "Language")); 116 setText (3, UIGlobalSettingsLanguage::tr ("<unknown>", "Author(s)")); 117 117 118 118 /* Invalid language appears in italic */ … … 127 127 : QTreeWidgetItem (aParent, LanguageItemType), mBuiltIn (false) 128 128 { 129 setText (0, VBoxGLSettingsLanguage::tr ("Default", "Language"));129 setText (0, UIGlobalSettingsLanguage::tr ("Default", "Language")); 130 130 setText (1, QString::null); 131 131 /* Empty strings of some reasonable length to prevent the info part … … 168 168 169 169 170 VBoxGLSettingsLanguage::VBoxGLSettingsLanguage()170 UIGlobalSettingsLanguage::UIGlobalSettingsLanguage() 171 171 : mLanguageChanged(false) 172 172 { 173 173 /* Apply UI decorations */ 174 Ui:: VBoxGLSettingsLanguage::setupUi (this);174 Ui::UIGlobalSettingsLanguage::setupUi (this); 175 175 176 176 /* Setup dialog */ … … 192 192 /* Load data to cashe from corresponding external object(s), 193 193 * this task COULD be performed in other than GUI thread: */ 194 void VBoxGLSettingsLanguage::loadToCacheFrom(QVariant &data)194 void UIGlobalSettingsLanguage::loadToCacheFrom(QVariant &data) 195 195 { 196 196 /* Fetch data to properties & settings: */ … … 206 206 /* Load data to corresponding widgets from cache, 207 207 * this task SHOULD be performed in GUI thread only: */ 208 void VBoxGLSettingsLanguage::getFromCache()208 void UIGlobalSettingsLanguage::getFromCache() 209 209 { 210 210 /* Fetch from cache: */ … … 215 215 /* Save data from corresponding widgets to cache, 216 216 * this task SHOULD be performed in GUI thread only: */ 217 void VBoxGLSettingsLanguage::putToCache()217 void UIGlobalSettingsLanguage::putToCache() 218 218 { 219 219 /* Upload to cache: */ … … 226 226 /* Save data from cache to corresponding external object(s), 227 227 * this task COULD be performed in other than GUI thread: */ 228 void VBoxGLSettingsLanguage::saveFromCacheTo(QVariant &data)228 void UIGlobalSettingsLanguage::saveFromCacheTo(QVariant &data) 229 229 { 230 230 /* Fetch data to properties & settings: */ … … 242 242 } 243 243 244 void VBoxGLSettingsLanguage::setOrderAfter (QWidget *aWidget)244 void UIGlobalSettingsLanguage::setOrderAfter (QWidget *aWidget) 245 245 { 246 246 setTabOrder (aWidget, mTwLanguage); 247 247 } 248 248 249 void VBoxGLSettingsLanguage::reload (const QString &aLangId)249 void UIGlobalSettingsLanguage::reload (const QString &aLangId) 250 250 { 251 251 /* Clear languages list */ … … 320 320 } 321 321 322 void VBoxGLSettingsLanguage::retranslateUi()322 void UIGlobalSettingsLanguage::retranslateUi() 323 323 { 324 324 /* Translate uic generated strings */ 325 Ui:: VBoxGLSettingsLanguage::retranslateUi (this);325 Ui::UIGlobalSettingsLanguage::retranslateUi (this); 326 326 reload (VBoxGlobal::languageId()); 327 327 } 328 328 329 void VBoxGLSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter)329 void UIGlobalSettingsLanguage::mTwItemPainted (QTreeWidgetItem *aItem, QPainter *aPainter) 330 330 { 331 331 if (aItem && aItem->type() == LanguageItem::LanguageItemType) … … 342 342 } 343 343 344 void VBoxGLSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem)344 void UIGlobalSettingsLanguage::mTwLanguageChanged (QTreeWidgetItem *aItem) 345 345 { 346 346 if (!aItem) return; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsLanguage class declaration4 * UIGlobalSettingsLanguage class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsLanguage_h__20 #define __ VBoxGLSettingsLanguage_h__19 #ifndef __UIGlobalSettingsLanguage_h__ 20 #define __UIGlobalSettingsLanguage_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxGLSettingsLanguage.gen.h"23 #include "UIGlobalSettingsLanguage.gen.h" 24 24 25 25 /* Global settings / Language page / Cache: */ … … 30 30 31 31 /* Global settings / Language page: */ 32 class VBoxGLSettingsLanguage : public UISettingsPageGlobal,33 public Ui:: VBoxGLSettingsLanguage32 class UIGlobalSettingsLanguage : public UISettingsPageGlobal, 33 public Ui::UIGlobalSettingsLanguage 34 34 { 35 35 Q_OBJECT; … … 37 37 public: 38 38 39 VBoxGLSettingsLanguage();39 UIGlobalSettingsLanguage(); 40 40 41 41 protected: … … 74 74 }; 75 75 76 #endif // __ VBoxGLSettingsLanguage_h__76 #endif // __UIGlobalSettingsLanguage_h__ 77 77 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxGLSettingsLanguage</class>16 <widget class="QWidget" name=" VBoxGLSettingsLanguage" >15 <class>UIGlobalSettingsLanguage</class> 16 <widget class="QWidget" name="UIGlobalSettingsLanguage" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsNetwork class implementation5 * UIGlobalSettingsNetwork class implementation 6 6 */ 7 7 … … 21 21 #include "QIWidgetValidator.h" 22 22 #include "UIIconPool.h" 23 #include " VBoxGLSettingsNetwork.h"24 #include " VBoxGLSettingsNetworkDetails.h"23 #include "UIGlobalSettingsNetwork.h" 24 #include "UIGlobalSettingsNetworkDetails.h" 25 25 #include "VBoxGlobal.h" 26 26 #include "VBoxProblemReporter.h" … … 59 59 QHostAddress (m_data.m_interface.m_strInterfaceAddress).protocol() != QAbstractSocket::IPv4Protocol)) 60 60 { 61 aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0));61 aWarning = UIGlobalSettingsNetwork::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0)); 62 62 return false; 63 63 } … … 66 66 QHostAddress (m_data.m_interface.m_strInterfaceMask).protocol() != QAbstractSocket::IPv4Protocol)) 67 67 { 68 aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0));68 aWarning = UIGlobalSettingsNetwork::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0)); 69 69 return false; 70 70 } … … 75 75 QHostAddress (m_data.m_interface.m_strInterfaceAddress6).protocol() != QAbstractSocket::IPv6Protocol)) 76 76 { 77 aWarning = VBoxGLSettingsNetwork::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0));77 aWarning = UIGlobalSettingsNetwork::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0)); 78 78 return false; 79 79 } … … 87 87 QHostAddress (m_data.m_dhcpserver.m_strDhcpServerAddress).protocol() != QAbstractSocket::IPv4Protocol) 88 88 { 89 aWarning = VBoxGLSettingsNetwork::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0));89 aWarning = UIGlobalSettingsNetwork::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0)); 90 90 return false; 91 91 } … … 93 93 QHostAddress (m_data.m_dhcpserver.m_strDhcpServerMask).protocol() != QAbstractSocket::IPv4Protocol) 94 94 { 95 aWarning = VBoxGLSettingsNetwork::tr ("DHCP server network mask of <b>%1</b> is wrong").arg (text (0));95 aWarning = UIGlobalSettingsNetwork::tr ("DHCP server network mask of <b>%1</b> is wrong").arg (text (0)); 96 96 return false; 97 97 } … … 99 99 QHostAddress (m_data.m_dhcpserver.m_strDhcpLowerAddress).protocol() != QAbstractSocket::IPv4Protocol) 100 100 { 101 aWarning = VBoxGLSettingsNetwork::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0));101 aWarning = UIGlobalSettingsNetwork::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0)); 102 102 return false; 103 103 } … … 105 105 QHostAddress (m_data.m_dhcpserver.m_strDhcpUpperAddress).protocol() != QAbstractSocket::IPv4Protocol) 106 106 { 107 aWarning = VBoxGLSettingsNetwork::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0));107 aWarning = UIGlobalSettingsNetwork::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0)); 108 108 return false; 109 109 } … … 125 125 126 126 /* Host-only Interface information */ 127 buffer = hdr.arg ( VBoxGLSettingsNetwork::tr ("Adapter"))128 .arg (m_data.m_interface.m_fDhcpClientEnabled ? VBoxGLSettingsNetwork::tr ("Automatically configured", "interface")129 : VBoxGLSettingsNetwork::tr ("Manually configured", "interface"));127 buffer = hdr.arg (UIGlobalSettingsNetwork::tr ("Adapter")) 128 .arg (m_data.m_interface.m_fDhcpClientEnabled ? UIGlobalSettingsNetwork::tr ("Automatically configured", "interface") 129 : UIGlobalSettingsNetwork::tr ("Manually configured", "interface")); 130 130 data += buffer; 131 131 tip += buffer; … … 133 133 if (!m_data.m_interface.m_fDhcpClientEnabled) 134 134 { 135 buffer = sub.arg ( VBoxGLSettingsNetwork::tr ("IPv4 Address"))136 .arg (m_data.m_interface.m_strInterfaceAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")135 buffer = sub.arg (UIGlobalSettingsNetwork::tr ("IPv4 Address")) 136 .arg (m_data.m_interface.m_strInterfaceAddress.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "address") 137 137 : m_data.m_interface.m_strInterfaceAddress) + 138 sub.arg ( VBoxGLSettingsNetwork::tr ("IPv4 Network Mask"))139 .arg (m_data.m_interface.m_strInterfaceMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")138 sub.arg (UIGlobalSettingsNetwork::tr ("IPv4 Network Mask")) 139 .arg (m_data.m_interface.m_strInterfaceMask.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "mask") 140 140 : m_data.m_interface.m_strInterfaceMask); 141 141 tip += buffer; … … 143 143 if (m_data.m_interface.m_fIpv6Supported) 144 144 { 145 buffer = sub.arg ( VBoxGLSettingsNetwork::tr ("IPv6 Address"))146 .arg (m_data.m_interface.m_strInterfaceAddress6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")145 buffer = sub.arg (UIGlobalSettingsNetwork::tr ("IPv6 Address")) 146 .arg (m_data.m_interface.m_strInterfaceAddress6.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "address") 147 147 : m_data.m_interface.m_strInterfaceAddress6) + 148 sub.arg ( VBoxGLSettingsNetwork::tr ("IPv6 Network Mask Length"))149 .arg (m_data.m_interface.m_strInterfaceMaskLength6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "length")148 sub.arg (UIGlobalSettingsNetwork::tr ("IPv6 Network Mask Length")) 149 .arg (m_data.m_interface.m_strInterfaceMaskLength6.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "length") 150 150 : m_data.m_interface.m_strInterfaceMaskLength6); 151 151 tip += buffer; … … 154 154 155 155 /* DHCP Server information */ 156 buffer = hdr.arg ( VBoxGLSettingsNetwork::tr ("DHCP Server"))157 .arg (m_data.m_dhcpserver.m_fDhcpServerEnabled ? VBoxGLSettingsNetwork::tr ("Enabled", "server")158 : VBoxGLSettingsNetwork::tr ("Disabled", "server"));156 buffer = hdr.arg (UIGlobalSettingsNetwork::tr ("DHCP Server")) 157 .arg (m_data.m_dhcpserver.m_fDhcpServerEnabled ? UIGlobalSettingsNetwork::tr ("Enabled", "server") 158 : UIGlobalSettingsNetwork::tr ("Disabled", "server")); 159 159 data += buffer; 160 160 tip += buffer; … … 162 162 if (m_data.m_dhcpserver.m_fDhcpServerEnabled) 163 163 { 164 buffer = sub.arg ( VBoxGLSettingsNetwork::tr ("Address"))165 .arg (m_data.m_dhcpserver.m_strDhcpServerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")164 buffer = sub.arg (UIGlobalSettingsNetwork::tr ("Address")) 165 .arg (m_data.m_dhcpserver.m_strDhcpServerAddress.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "address") 166 166 : m_data.m_dhcpserver.m_strDhcpServerAddress) + 167 sub.arg ( VBoxGLSettingsNetwork::tr ("Network Mask"))168 .arg (m_data.m_dhcpserver.m_strDhcpServerMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")167 sub.arg (UIGlobalSettingsNetwork::tr ("Network Mask")) 168 .arg (m_data.m_dhcpserver.m_strDhcpServerMask.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "mask") 169 169 : m_data.m_dhcpserver.m_strDhcpServerMask) + 170 sub.arg ( VBoxGLSettingsNetwork::tr ("Lower Bound"))171 .arg (m_data.m_dhcpserver.m_strDhcpLowerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound")170 sub.arg (UIGlobalSettingsNetwork::tr ("Lower Bound")) 171 .arg (m_data.m_dhcpserver.m_strDhcpLowerAddress.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "bound") 172 172 : m_data.m_dhcpserver.m_strDhcpLowerAddress) + 173 sub.arg ( VBoxGLSettingsNetwork::tr ("Upper Bound"))174 .arg (m_data.m_dhcpserver.m_strDhcpUpperAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound")173 sub.arg (UIGlobalSettingsNetwork::tr ("Upper Bound")) 174 .arg (m_data.m_dhcpserver.m_strDhcpUpperAddress.isEmpty() ? UIGlobalSettingsNetwork::tr ("Not set", "bound") 175 175 : m_data.m_dhcpserver.m_strDhcpUpperAddress); 176 176 tip += buffer; … … 182 182 } 183 183 184 VBoxGLSettingsNetwork::VBoxGLSettingsNetwork()184 UIGlobalSettingsNetwork::UIGlobalSettingsNetwork() 185 185 : mValidator(0) 186 186 , mAddInterface(0), mRemInterface(0), mEditInterface(0) … … 188 188 { 189 189 /* Apply UI decorations */ 190 Ui:: VBoxGLSettingsNetwork::setupUi (this);190 Ui::UIGlobalSettingsNetwork::setupUi (this); 191 191 192 192 #ifdef Q_WS_MAC … … 252 252 /* Load data to cashe from corresponding external object(s), 253 253 * this task COULD be performed in other than GUI thread: */ 254 void VBoxGLSettingsNetwork::loadToCacheFrom(QVariant &data)254 void UIGlobalSettingsNetwork::loadToCacheFrom(QVariant &data) 255 255 { 256 256 /* Fetch data to properties & settings: */ … … 295 295 /* Load data to corresponding widgets from cache, 296 296 * this task SHOULD be performed in GUI thread only: */ 297 void VBoxGLSettingsNetwork::getFromCache()297 void UIGlobalSettingsNetwork::getFromCache() 298 298 { 299 299 /* Fetch from cache: */ … … 318 318 /* Save data from corresponding widgets to cache, 319 319 * this task SHOULD be performed in GUI thread only: */ 320 void VBoxGLSettingsNetwork::putToCache()320 void UIGlobalSettingsNetwork::putToCache() 321 321 { 322 322 /* Upload to cache: */ … … 333 333 /* Save data from cache to corresponding external object(s), 334 334 * this task COULD be performed in other than GUI thread: */ 335 void VBoxGLSettingsNetwork::saveFromCacheTo(QVariant &data)335 void UIGlobalSettingsNetwork::saveFromCacheTo(QVariant &data) 336 336 { 337 337 /* Ensure settings were changed: */ … … 450 450 } 451 451 452 void VBoxGLSettingsNetwork::setValidator (QIWidgetValidator *aValidator)452 void UIGlobalSettingsNetwork::setValidator (QIWidgetValidator *aValidator) 453 453 { 454 454 mValidator = aValidator; 455 455 } 456 456 457 bool VBoxGLSettingsNetwork::revalidate (QString &aWarning, QString &aTitle)457 bool UIGlobalSettingsNetwork::revalidate (QString &aWarning, QString &aTitle) 458 458 { 459 459 NetworkItem *item = static_cast <NetworkItem*> (mTwInterfaces->currentItem()); … … 461 461 } 462 462 463 void VBoxGLSettingsNetwork::setOrderAfter (QWidget *aWidget)463 void UIGlobalSettingsNetwork::setOrderAfter (QWidget *aWidget) 464 464 { 465 465 setTabOrder (aWidget, mTwInterfaces); 466 466 } 467 467 468 void VBoxGLSettingsNetwork::retranslateUi()468 void UIGlobalSettingsNetwork::retranslateUi() 469 469 { 470 470 /* Translate uic generated strings */ 471 Ui:: VBoxGLSettingsNetwork::retranslateUi (this);471 Ui::UIGlobalSettingsNetwork::retranslateUi (this); 472 472 473 473 /* Translate action tool-tips */ … … 484 484 } 485 485 486 void VBoxGLSettingsNetwork::addInterface()486 void UIGlobalSettingsNetwork::addInterface() 487 487 { 488 488 /* Creating interface item: */ … … 507 507 } 508 508 509 void VBoxGLSettingsNetwork::remInterface()509 void UIGlobalSettingsNetwork::remInterface() 510 510 { 511 511 /* Get interface item: */ … … 523 523 } 524 524 525 void VBoxGLSettingsNetwork::editInterface()525 void UIGlobalSettingsNetwork::editInterface() 526 526 { 527 527 /* Check interface presence */ … … 529 529 AssertMsg (item, ("Current item should be selected!\n")); 530 530 /* Edit current item data */ 531 VBoxGLSettingsNetworkDetails details (this);531 UIGlobalSettingsNetworkDetails details (this); 532 532 details.getFromItem (item); 533 533 if (details.exec() == QDialog::Accepted) … … 542 542 } 543 543 544 void VBoxGLSettingsNetwork::updateCurrentItem()544 void UIGlobalSettingsNetwork::updateCurrentItem() 545 545 { 546 546 /* Get current item */ … … 553 553 } 554 554 555 void VBoxGLSettingsNetwork::showContextMenu (const QPoint &aPos)555 void UIGlobalSettingsNetwork::showContextMenu (const QPoint &aPos) 556 556 { 557 557 QMenu menu; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsNetwork class declaration4 * UIGlobalSettingsNetwork class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsNetwork_h__20 #define __ VBoxGLSettingsNetwork_h__19 #ifndef __UIGlobalSettingsNetwork_h__ 20 #define __UIGlobalSettingsNetwork_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxGLSettingsNetwork.gen.h"23 #include "UIGlobalSettingsNetwork.gen.h" 24 24 25 25 /* Host interface data: */ … … 109 109 110 110 /* Global settings / Network page: */ 111 class VBoxGLSettingsNetwork : public UISettingsPageGlobal,112 public Ui:: VBoxGLSettingsNetwork111 class UIGlobalSettingsNetwork : public UISettingsPageGlobal, 112 public Ui::UIGlobalSettingsNetwork 113 113 { 114 114 Q_OBJECT; … … 116 116 public: 117 117 118 VBoxGLSettingsNetwork();118 UIGlobalSettingsNetwork(); 119 119 120 120 protected: … … 163 163 }; 164 164 165 #endif // __ VBoxGLSettingsNetwork_h__165 #endif // __UIGlobalSettingsNetwork_h__ 166 166 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui
r33879 r33882 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 </comment> 16 <class> VBoxGLSettingsNetwork</class>17 <widget class="QWidget" name=" VBoxGLSettingsNetwork">16 <class>UIGlobalSettingsNetwork</class> 17 <widget class="QWidget" name="UIGlobalSettingsNetwork"> 18 18 <property name="geometry"> 19 19 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetails.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsNetworkDetails class implementation5 * UIGlobalSettingsNetworkDetails class implementation 6 6 */ 7 7 … … 19 19 20 20 /* VBox Includes */ 21 #include " VBoxGLSettingsNetwork.h"22 #include " VBoxGLSettingsNetworkDetails.h"21 #include "UIGlobalSettingsNetwork.h" 22 #include "UIGlobalSettingsNetworkDetails.h" 23 23 24 24 /* Qt Includes */ … … 26 26 #include <QRegExpValidator> 27 27 28 VBoxGLSettingsNetworkDetails::VBoxGLSettingsNetworkDetails (QWidget *aParent)28 UIGlobalSettingsNetworkDetails::UIGlobalSettingsNetworkDetails (QWidget *aParent) 29 29 : QIWithRetranslateUI2 <QIDialog> (aParent 30 30 #ifdef Q_WS_MAC … … 35 35 { 36 36 /* Apply UI decorations */ 37 Ui:: VBoxGLSettingsNetworkDetails::setupUi (this);37 Ui::UIGlobalSettingsNetworkDetails::setupUi (this); 38 38 39 39 /* Setup dialog */ … … 99 99 } 100 100 101 void VBoxGLSettingsNetworkDetails::getFromItem (NetworkItem *aItem)101 void UIGlobalSettingsNetworkDetails::getFromItem (NetworkItem *aItem) 102 102 { 103 103 mItem = aItem; … … 117 117 } 118 118 119 void VBoxGLSettingsNetworkDetails::putBackToItem()119 void UIGlobalSettingsNetworkDetails::putBackToItem() 120 120 { 121 121 /* Host-only Interface */ … … 143 143 } 144 144 145 void VBoxGLSettingsNetworkDetails::retranslateUi()145 void UIGlobalSettingsNetworkDetails::retranslateUi() 146 146 { 147 147 /* Translate uic generated strings */ 148 Ui:: VBoxGLSettingsNetworkDetails::retranslateUi (this);149 } 150 151 void VBoxGLSettingsNetworkDetails::dhcpClientStatusChanged()148 Ui::UIGlobalSettingsNetworkDetails::retranslateUi (this); 149 } 150 151 void UIGlobalSettingsNetworkDetails::dhcpClientStatusChanged() 152 152 { 153 153 bool isManual = mCbManual->isChecked(); … … 180 180 } 181 181 182 void VBoxGLSettingsNetworkDetails::dhcpServerStatusChanged()182 void UIGlobalSettingsNetworkDetails::dhcpServerStatusChanged() 183 183 { 184 184 bool isEnabled = mCbDhcpServerEnabled->isChecked(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetails.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsNetworkDetails class declaration4 * UIGlobalSettingsNetworkDetails class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsNetworkDetails_h__20 #define __ VBoxGLSettingsNetworkDetails_h__19 #ifndef __UIGlobalSettingsNetworkDetails_h__ 20 #define __UIGlobalSettingsNetworkDetails_h__ 21 21 22 22 /* VBox includes */ 23 23 #include "QIDialog.h" 24 24 #include "QIWithRetranslateUI.h" 25 #include " VBoxGLSettingsNetworkDetails.gen.h"25 #include "UIGlobalSettingsNetworkDetails.gen.h" 26 26 27 27 /* VBox forwards */ 28 28 class NetworkItem; 29 29 30 class VBoxGLSettingsNetworkDetails : public QIWithRetranslateUI2 <QIDialog>,31 public Ui:: VBoxGLSettingsNetworkDetails30 class UIGlobalSettingsNetworkDetails : public QIWithRetranslateUI2 <QIDialog>, 31 public Ui::UIGlobalSettingsNetworkDetails 32 32 { 33 33 Q_OBJECT; … … 35 35 public: 36 36 37 VBoxGLSettingsNetworkDetails (QWidget *aParent);37 UIGlobalSettingsNetworkDetails (QWidget *aParent); 38 38 39 39 void getFromItem (NetworkItem *aItem); … … 54 54 }; 55 55 56 #endif // __ VBoxGLSettingsNetworkDetails_h__56 #endif // __UIGlobalSettingsNetworkDetails_h__ 57 57 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetails.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxGLSettingsNetworkDetails</class>16 <widget class="QWidget" name=" VBoxGLSettingsNetworkDetails" >15 <class>UIGlobalSettingsNetworkDetails</class> 16 <widget class="QWidget" name="UIGlobalSettingsNetworkDetails" > 17 17 <property name="geometry" > 18 18 <rect> … … 342 342 <sender>mButtonBox</sender> 343 343 <signal>accepted()</signal> 344 <receiver> VBoxGLSettingsNetworkDetails</receiver>344 <receiver>UIGlobalSettingsNetworkDetails</receiver> 345 345 <slot>accept()</slot> 346 346 <hints> … … 358 358 <sender>mButtonBox</sender> 359 359 <signal>rejected()</signal> 360 <receiver> VBoxGLSettingsNetworkDetails</receiver>360 <receiver>UIGlobalSettingsNetworkDetails</receiver> 361 361 <slot>reject()</slot> 362 362 <hints> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxGLSettingsUpdate class implementation5 * UIGlobalSettingsUpdate class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxGLSettingsUpdate.h"20 #include "UIGlobalSettingsUpdate.h" 21 21 #include "VBoxGlobal.h" 22 22 23 VBoxGLSettingsUpdate::VBoxGLSettingsUpdate()23 UIGlobalSettingsUpdate::UIGlobalSettingsUpdate() 24 24 : mSettingsChanged(false) 25 25 , mLastChosen(0) 26 26 { 27 27 /* Apply UI decorations */ 28 Ui:: VBoxGLSettingsUpdate::setupUi (this);28 Ui::UIGlobalSettingsUpdate::setupUi (this); 29 29 30 30 /* Setup connections */ … … 41 41 /* Load data to cashe from corresponding external object(s), 42 42 * this task COULD be performed in other than GUI thread: */ 43 void VBoxGLSettingsUpdate::loadToCacheFrom(QVariant &data)43 void UIGlobalSettingsUpdate::loadToCacheFrom(QVariant &data) 44 44 { 45 45 /* Fetch data to properties & settings: */ … … 59 59 /* Load data to corresponding widgets from cache, 60 60 * this task SHOULD be performed in GUI thread only: */ 61 void VBoxGLSettingsUpdate::getFromCache()61 void UIGlobalSettingsUpdate::getFromCache() 62 62 { 63 63 /* Apply internal variables data to QWidget(s): */ … … 81 81 /* Save data from corresponding widgets to cache, 82 82 * this task SHOULD be performed in GUI thread only: */ 83 void VBoxGLSettingsUpdate::putToCache()83 void UIGlobalSettingsUpdate::putToCache() 84 84 { 85 85 /* Gather internal variables data from QWidget(s): */ … … 90 90 /* Save data from cache to corresponding external object(s), 91 91 * this task COULD be performed in other than GUI thread: */ 92 void VBoxGLSettingsUpdate::saveFromCacheTo(QVariant &data)92 void UIGlobalSettingsUpdate::saveFromCacheTo(QVariant &data) 93 93 { 94 94 /* Test settings altering flag: */ … … 107 107 } 108 108 109 void VBoxGLSettingsUpdate::setOrderAfter (QWidget *aWidget)109 void UIGlobalSettingsUpdate::setOrderAfter (QWidget *aWidget) 110 110 { 111 111 setTabOrder (aWidget, mCbCheck); … … 116 116 } 117 117 118 void VBoxGLSettingsUpdate::retranslateUi()118 void UIGlobalSettingsUpdate::retranslateUi() 119 119 { 120 120 /* Translate uic generated strings */ 121 Ui:: VBoxGLSettingsUpdate::retranslateUi (this);121 Ui::UIGlobalSettingsUpdate::retranslateUi (this); 122 122 123 123 /* Retranslate mCbOncePer combobox */ … … 129 129 } 130 130 131 void VBoxGLSettingsUpdate::toggleUpdater (bool aOn)131 void UIGlobalSettingsUpdate::toggleUpdater (bool aOn) 132 132 { 133 133 /* Enable/disable the sub widget */ … … 158 158 } 159 159 160 void VBoxGLSettingsUpdate::activatedPeriod (int /*aIndex*/)160 void UIGlobalSettingsUpdate::activatedPeriod (int /*aIndex*/) 161 161 { 162 162 VBoxUpdateData data (periodType(), branchType()); … … 165 165 } 166 166 167 void VBoxGLSettingsUpdate::toggledBranch()167 void UIGlobalSettingsUpdate::toggledBranch() 168 168 { 169 169 mSettingsChanged = true; 170 170 } 171 171 172 void VBoxGLSettingsUpdate::showEvent (QShowEvent *aEvent)172 void UIGlobalSettingsUpdate::showEvent (QShowEvent *aEvent) 173 173 { 174 174 UISettingsPage::showEvent (aEvent); … … 181 181 } 182 182 183 VBoxUpdateData::PeriodType VBoxGLSettingsUpdate::periodType() const183 VBoxUpdateData::PeriodType UIGlobalSettingsUpdate::periodType() const 184 184 { 185 185 VBoxUpdateData::PeriodType result = mCbCheck->isChecked() ? … … 188 188 } 189 189 190 VBoxUpdateData::BranchType VBoxGLSettingsUpdate::branchType() const190 VBoxUpdateData::BranchType UIGlobalSettingsUpdate::branchType() const 191 191 { 192 192 if (mRbWithBetas->isChecked()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxGLSettingsUpdate class declaration4 * UIGlobalSettingsUpdate class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxGLSettingsUpdate_h__20 #define __ VBoxGLSettingsUpdate_h__19 #ifndef __UIGlobalSettingsUpdate_h__ 20 #define __UIGlobalSettingsUpdate_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxGLSettingsUpdate.gen.h"23 #include "UIGlobalSettingsUpdate.gen.h" 24 24 #include "VBoxUpdateDlg.h" 25 25 … … 34 34 35 35 /* Global settings / Update page: */ 36 class VBoxGLSettingsUpdate : public UISettingsPageGlobal,37 public Ui:: VBoxGLSettingsUpdate36 class UIGlobalSettingsUpdate : public UISettingsPageGlobal, 37 public Ui::UIGlobalSettingsUpdate 38 38 { 39 39 Q_OBJECT; … … 41 41 public: 42 42 43 VBoxGLSettingsUpdate();43 UIGlobalSettingsUpdate(); 44 44 45 45 protected: … … 83 83 }; 84 84 85 #endif // __ VBoxGLSettingsUpdate_h__85 #endif // __UIGlobalSettingsUpdate_h__ 86 86 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxGLSettingsUpdate</class>16 <widget class="QWidget" name=" VBoxGLSettingsUpdate" >15 <class>UIGlobalSettingsUpdate</class> 16 <widget class="QWidget" name="UIGlobalSettingsUpdate" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsAudio class implementation5 * UIMachineSettingsAudio class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsAudio.h"20 #include "UIMachineSettingsAudio.h" 21 21 #include "VBoxGlobal.h" 22 22 23 VBoxVMSettingsAudio::VBoxVMSettingsAudio()23 UIMachineSettingsAudio::UIMachineSettingsAudio() 24 24 { 25 25 /* Apply UI decorations */ 26 Ui:: VBoxVMSettingsAudio::setupUi (this);26 Ui::UIMachineSettingsAudio::setupUi (this); 27 27 /* Applying language settings */ 28 28 retranslateUi(); … … 31 31 /* Load data to cashe from corresponding external object(s), 32 32 * this task COULD be performed in other than GUI thread: */ 33 void VBoxVMSettingsAudio::loadToCacheFrom(QVariant &data)33 void UIMachineSettingsAudio::loadToCacheFrom(QVariant &data) 34 34 { 35 35 /* Fetch data to machine: */ … … 48 48 /* Load data to corresponding widgets from cache, 49 49 * this task SHOULD be performed in GUI thread only: */ 50 void VBoxVMSettingsAudio::getFromCache()50 void UIMachineSettingsAudio::getFromCache() 51 51 { 52 52 /* Apply internal variables data to QWidget(s): */ … … 58 58 /* Save data from corresponding widgets to cache, 59 59 * this task SHOULD be performed in GUI thread only: */ 60 void VBoxVMSettingsAudio::putToCache()60 void UIMachineSettingsAudio::putToCache() 61 61 { 62 62 /* Gather internal variables data from QWidget(s): */ … … 68 68 /* Save data from cache to corresponding external object(s), 69 69 * this task COULD be performed in other than GUI thread: */ 70 void VBoxVMSettingsAudio::saveFromCacheTo(QVariant &data)70 void UIMachineSettingsAudio::saveFromCacheTo(QVariant &data) 71 71 { 72 72 /* Fetch data to machine: */ … … 83 83 } 84 84 85 void VBoxVMSettingsAudio::setOrderAfter (QWidget *aWidget)85 void UIMachineSettingsAudio::setOrderAfter (QWidget *aWidget) 86 86 { 87 87 setTabOrder (aWidget, mGbAudio); … … 90 90 } 91 91 92 void VBoxVMSettingsAudio::retranslateUi()92 void UIMachineSettingsAudio::retranslateUi() 93 93 { 94 94 /* Translate uic generated strings */ 95 Ui:: VBoxVMSettingsAudio::retranslateUi (this);95 Ui::UIMachineSettingsAudio::retranslateUi (this); 96 96 /* Fill the comboboxes */ 97 97 prepareComboboxes(); 98 98 } 99 99 100 void VBoxVMSettingsAudio::prepareComboboxes()100 void UIMachineSettingsAudio::prepareComboboxes() 101 101 { 102 102 /* Save the current selected value */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsAudio class declaration4 * UIMachineSettingsAudio class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsAudio_h__20 #define __ VBoxVMSettingsAudio_h__19 #ifndef __UIMachineSettingsAudio_h__ 20 #define __UIMachineSettingsAudio_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxVMSettingsAudio.gen.h"23 #include "UIMachineSettingsAudio.gen.h" 24 24 #include "COMDefs.h" 25 25 … … 33 33 34 34 /* Machine settings / Audio page: */ 35 class VBoxVMSettingsAudio : public UISettingsPageMachine,36 public Ui:: VBoxVMSettingsAudio35 class UIMachineSettingsAudio : public UISettingsPageMachine, 36 public Ui::UIMachineSettingsAudio 37 37 { 38 38 Q_OBJECT; … … 40 40 public: 41 41 42 VBoxVMSettingsAudio();42 UIMachineSettingsAudio(); 43 43 44 44 protected: … … 70 70 }; 71 71 72 #endif // __ VBoxVMSettingsAudio_h__72 #endif // __UIMachineSettingsAudio_h__ 73 73 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsAudio</class>16 <widget class="QWidget" name=" VBoxVMSettingsAudio" >15 <class>UIMachineSettingsAudio</class> 16 <widget class="QWidget" name="UIMachineSettingsAudio" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsDisplay class implementation5 * UIMachineSettingsDisplay class implementation 6 6 */ 7 7 … … 19 19 20 20 #include "QIWidgetValidator.h" 21 #include " VBoxVMSettingsDisplay.h"21 #include "UIMachineSettingsDisplay.h" 22 22 #include "VBoxGlobal.h" 23 23 #include "VBoxProblemReporter.h" … … 45 45 } 46 46 47 VBoxVMSettingsDisplay::VBoxVMSettingsDisplay()47 UIMachineSettingsDisplay::UIMachineSettingsDisplay() 48 48 : mValidator(0) 49 49 , m_minVRAM(0) … … 56 56 { 57 57 /* Apply UI decorations */ 58 Ui:: VBoxVMSettingsDisplay::setupUi (this);58 Ui::UIMachineSettingsDisplay::setupUi (this); 59 59 60 60 /* Setup constants */ … … 129 129 130 130 #ifdef VBOX_WITH_VIDEOHWACCEL 131 bool VBoxVMSettingsDisplay::isAcceleration2DVideoSelected() const131 bool UIMachineSettingsDisplay::isAcceleration2DVideoSelected() const 132 132 { 133 133 return mCb2DVideo->isChecked(); … … 136 136 137 137 #ifdef VBOX_WITH_CRHGSMI 138 void VBoxVMSettingsDisplay::setWddmMode(bool bWddm)138 void UIMachineSettingsDisplay::setWddmMode(bool bWddm) 139 139 { 140 140 if (bWddm == m_bWddmMode) … … 148 148 /* Load data to cashe from corresponding external object(s), 149 149 * this task COULD be performed in other than GUI thread: */ 150 void VBoxVMSettingsDisplay::loadToCacheFrom(QVariant &data)150 void UIMachineSettingsDisplay::loadToCacheFrom(QVariant &data) 151 151 { 152 152 /* Fetch data to machine: */ … … 177 177 /* Load data to corresponding widgets from cache, 178 178 * this task SHOULD be performed in GUI thread only: */ 179 void VBoxVMSettingsDisplay::getFromCache()179 void UIMachineSettingsDisplay::getFromCache() 180 180 { 181 181 /* Apply internal variables data to QWidget(s): */ … … 206 206 /* Save data from corresponding widgets to cache, 207 207 * this task SHOULD be performed in GUI thread only: */ 208 void VBoxVMSettingsDisplay::putToCache()208 void UIMachineSettingsDisplay::putToCache() 209 209 { 210 210 /* Gather internal variables data from QWidget(s): */ … … 227 227 /* Save data from cache to corresponding external object(s), 228 228 * this task COULD be performed in other than GUI thread: */ 229 void VBoxVMSettingsDisplay::saveFromCacheTo(QVariant &data)229 void UIMachineSettingsDisplay::saveFromCacheTo(QVariant &data) 230 230 { 231 231 /* Fetch data to machine: */ … … 253 253 } 254 254 255 void VBoxVMSettingsDisplay::setValidator (QIWidgetValidator *aVal)255 void UIMachineSettingsDisplay::setValidator (QIWidgetValidator *aVal) 256 256 { 257 257 mValidator = aVal; … … 270 270 } 271 271 272 bool VBoxVMSettingsDisplay::revalidate (QString &aWarning, QString & /* aTitle */)272 bool UIMachineSettingsDisplay::revalidate (QString &aWarning, QString & /* aTitle */) 273 273 { 274 274 /* Video RAM amount test */ … … 319 319 } 320 320 321 void VBoxVMSettingsDisplay::setOrderAfter (QWidget *aWidget)321 void UIMachineSettingsDisplay::setOrderAfter (QWidget *aWidget) 322 322 { 323 323 /* Video tab-order */ … … 342 342 } 343 343 344 void VBoxVMSettingsDisplay::retranslateUi()344 void UIMachineSettingsDisplay::retranslateUi() 345 345 { 346 346 /* Translate uic generated strings */ 347 Ui:: VBoxVMSettingsDisplay::retranslateUi (this);347 Ui::UIMachineSettingsDisplay::retranslateUi (this); 348 348 349 349 CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties(); … … 361 361 } 362 362 363 void VBoxVMSettingsDisplay::valueChangedVRAM (int aVal)363 void UIMachineSettingsDisplay::valueChangedVRAM (int aVal) 364 364 { 365 365 mLeMemory->setText (QString().setNum (aVal)); 366 366 } 367 367 368 void VBoxVMSettingsDisplay::textChangedVRAM (const QString &aText)368 void UIMachineSettingsDisplay::textChangedVRAM (const QString &aText) 369 369 { 370 370 mSlMemory->setValue (aText.toInt()); 371 371 } 372 372 373 void VBoxVMSettingsDisplay::valueChangedMonitors (int aVal)373 void UIMachineSettingsDisplay::valueChangedMonitors (int aVal) 374 374 { 375 375 mLeMonitors->setText (QString().setNum (aVal)); … … 377 377 } 378 378 379 void VBoxVMSettingsDisplay::textChangedMonitors (const QString &aText)379 void UIMachineSettingsDisplay::textChangedMonitors (const QString &aText) 380 380 { 381 381 mSlMonitors->setValue (aText.toInt()); 382 382 } 383 383 384 void VBoxVMSettingsDisplay::checkVRAMRequirements()384 void UIMachineSettingsDisplay::checkVRAMRequirements() 385 385 { 386 386 int cVal = mSlMonitors->value(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsDisplay class declaration4 * UIMachineSettingsDisplay class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsDisplay_h__20 #define __ VBoxVMSettingsDisplay_h__19 #ifndef __UIMachineSettingsDisplay_h__ 20 #define __UIMachineSettingsDisplay_h__ 21 21 22 22 #include "COMDefs.h" 23 23 #include "UISettingsPage.h" 24 #include " VBoxVMSettingsDisplay.gen.h"24 #include "UIMachineSettingsDisplay.gen.h" 25 25 26 26 /* Machine settings / Display page / Cache: */ … … 40 40 41 41 /* Machine settings / Display page: */ 42 class VBoxVMSettingsDisplay : public UISettingsPageMachine,43 public Ui:: VBoxVMSettingsDisplay42 class UIMachineSettingsDisplay : public UISettingsPageMachine, 43 public Ui::UIMachineSettingsDisplay 44 44 { 45 45 Q_OBJECT; … … 47 47 public: 48 48 49 VBoxVMSettingsDisplay();49 UIMachineSettingsDisplay(); 50 50 51 51 #ifdef VBOX_WITH_VIDEOHWACCEL … … 111 111 }; 112 112 113 #endif // __ VBoxVMSettingsDisplay_h__113 #endif // __UIMachineSettingsDisplay_h__ 114 114 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui
r33879 r33882 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 </comment> 16 <class> VBoxVMSettingsDisplay</class>17 <widget class="QWidget" name=" VBoxVMSettingsDisplay">16 <class>UIMachineSettingsDisplay</class> 17 <widget class="QWidget" name="UIMachineSettingsDisplay"> 18 18 <property name="geometry"> 19 19 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsGeneral class implementation5 * UIMachineSettingsGeneral class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsGeneral.h"20 #include "UIMachineSettingsGeneral.h" 21 21 #include "VBoxGlobal.h" 22 22 #include "VBoxProblemReporter.h" … … 25 25 #include <QDir> 26 26 27 VBoxVMSettingsGeneral::VBoxVMSettingsGeneral()27 UIMachineSettingsGeneral::UIMachineSettingsGeneral() 28 28 : mValidator(0) 29 29 { 30 30 /* Apply UI decorations */ 31 Ui:: VBoxVMSettingsGeneral::setupUi (this);31 Ui::UIMachineSettingsGeneral::setupUi (this); 32 32 33 33 /* Setup validators */ … … 48 48 } 49 49 50 bool VBoxVMSettingsGeneral::is64BitOSTypeSelected() const50 bool UIMachineSettingsGeneral::is64BitOSTypeSelected() const 51 51 { 52 52 return mOSTypeSelector->type().GetIs64Bit(); … … 54 54 55 55 #ifdef VBOX_WITH_VIDEOHWACCEL 56 bool VBoxVMSettingsGeneral::isWindowsOSTypeSelected() const56 bool UIMachineSettingsGeneral::isWindowsOSTypeSelected() const 57 57 { 58 58 return mOSTypeSelector->type().GetFamilyId() == "Windows"; … … 61 61 62 62 #ifdef VBOX_WITH_CRHGSMI 63 bool VBoxVMSettingsGeneral::isWddmSupportedForOSType() const63 bool UIMachineSettingsGeneral::isWddmSupportedForOSType() const 64 64 { 65 65 const QString &strOsId = mOSTypeSelector->type().GetId(); … … 70 70 /* Load data to cashe from corresponding external object(s), 71 71 * this task COULD be performed in other than GUI thread: */ 72 void VBoxVMSettingsGeneral::loadToCacheFrom(QVariant &data)72 void UIMachineSettingsGeneral::loadToCacheFrom(QVariant &data) 73 73 { 74 74 /* Fetch data to machine: */ … … 95 95 /* Load data to corresponding widgets from cache, 96 96 * this task SHOULD be performed in GUI thread only: */ 97 void VBoxVMSettingsGeneral::getFromCache()97 void UIMachineSettingsGeneral::getFromCache() 98 98 { 99 99 /* Apply internal variables data to QWidget(s): */ … … 115 115 /* Save data from corresponding widgets to cache, 116 116 * this task SHOULD be performed in GUI thread only: */ 117 void VBoxVMSettingsGeneral::putToCache()117 void UIMachineSettingsGeneral::putToCache() 118 118 { 119 119 /* Gather internal variables data from QWidget(s): */ … … 131 131 /* Save data from cache to corresponding external object(s), 132 132 * this task COULD be performed in other than GUI thread: */ 133 void VBoxVMSettingsGeneral::saveFromCacheTo(QVariant &data)133 void UIMachineSettingsGeneral::saveFromCacheTo(QVariant &data) 134 134 { 135 135 /* Fetch data to machine: */ … … 150 150 } 151 151 152 void VBoxVMSettingsGeneral::setValidator (QIWidgetValidator *aVal)152 void UIMachineSettingsGeneral::setValidator (QIWidgetValidator *aVal) 153 153 { 154 154 mValidator = aVal; … … 156 156 } 157 157 158 void VBoxVMSettingsGeneral::setOrderAfter (QWidget *aWidget)158 void UIMachineSettingsGeneral::setOrderAfter (QWidget *aWidget) 159 159 { 160 160 /* Basic tab-order */ … … 174 174 } 175 175 176 void VBoxVMSettingsGeneral::retranslateUi()176 void UIMachineSettingsGeneral::retranslateUi() 177 177 { 178 178 /* Translate uic generated strings */ 179 Ui:: VBoxVMSettingsGeneral::retranslateUi (this);179 Ui::UIMachineSettingsGeneral::retranslateUi (this); 180 180 181 181 /* Path selector */ … … 192 192 } 193 193 194 void VBoxVMSettingsGeneral::showEvent (QShowEvent *aEvent)194 void UIMachineSettingsGeneral::showEvent (QShowEvent *aEvent) 195 195 { 196 196 QCoreApplication::sendPostedEvents(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsGeneral class declaration4 * UIMachineSettingsGeneral class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsGeneral_h__20 #define __ VBoxVMSettingsGeneral_h__19 #ifndef __UIMachineSettingsGeneral_h__ 20 #define __UIMachineSettingsGeneral_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxVMSettingsGeneral.gen.h"23 #include "UIMachineSettingsGeneral.gen.h" 24 24 #include "COMDefs.h" 25 25 … … 39 39 40 40 /* Machine settings / General page: */ 41 class VBoxVMSettingsGeneral : public UISettingsPageMachine,42 public Ui:: VBoxVMSettingsGeneral41 class UIMachineSettingsGeneral : public UISettingsPageMachine, 42 public Ui::UIMachineSettingsGeneral 43 43 { 44 44 Q_OBJECT; … … 46 46 public: 47 47 48 VBoxVMSettingsGeneral();48 UIMachineSettingsGeneral(); 49 49 50 50 bool is64BitOSTypeSelected() const; … … 90 90 }; 91 91 92 #endif // __ VBoxVMSettingsGeneral_h__92 #endif // __UIMachineSettingsGeneral_h__ 93 93 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsGeneral</class>16 <widget class="QWidget" name=" VBoxVMSettingsGeneral" >15 <class>UIMachineSettingsGeneral</class> 16 <widget class="QWidget" name="UIMachineSettingsGeneral" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsNetwork class implementation5 * UIMachineSettingsNetwork class implementation 6 6 */ 7 7 … … 27 27 #include "QIArrowButtonSwitch.h" 28 28 #include "VBoxGlobal.h" 29 #include " VBoxVMSettingsNetwork.h"29 #include "UIMachineSettingsNetwork.h" 30 30 #include "QITabWidget.h" 31 31 … … 37 37 const char *emptyItemCode = "#empty#"; 38 38 39 /* VBoxVMSettingsNetwork Stuff */40 VBoxVMSettingsNetwork::VBoxVMSettingsNetwork (VBoxVMSettingsNetworkPage *aParent, bool aDisableStaticControls)39 /* UIMachineSettingsNetwork Stuff */ 40 UIMachineSettingsNetwork::UIMachineSettingsNetwork (UIMachineSettingsNetworkPage *aParent, bool aDisableStaticControls) 41 41 : QIWithRetranslateUI <QWidget> (0) 42 42 , mParent (aParent) … … 47 47 { 48 48 /* Apply UI decorations */ 49 Ui:: VBoxVMSettingsNetwork::setupUi (this);49 Ui::UIMachineSettingsNetwork::setupUi (this); 50 50 51 51 /* Setup widgets */ … … 79 79 } 80 80 81 void VBoxVMSettingsNetwork::fetchAdapterData(const UINetworkAdapterData &data)81 void UIMachineSettingsNetwork::fetchAdapterData(const UINetworkAdapterData &data) 82 82 { 83 83 /* Load adapter & slot number: */ … … 130 130 } 131 131 132 void VBoxVMSettingsNetwork::uploadAdapterData(UINetworkAdapterData &data)132 void UIMachineSettingsNetwork::uploadAdapterData(UINetworkAdapterData &data) 133 133 { 134 134 /* Save adapter activity state: */ … … 172 172 } 173 173 174 void VBoxVMSettingsNetwork::setValidator (QIWidgetValidator *aValidator)174 void UIMachineSettingsNetwork::setValidator (QIWidgetValidator *aValidator) 175 175 { 176 176 mValidator = aValidator; … … 190 190 } 191 191 192 bool VBoxVMSettingsNetwork::revalidate (QString &aWarning, QString &aTitle)192 bool UIMachineSettingsNetwork::revalidate (QString &aWarning, QString &aTitle) 193 193 { 194 194 /* 'True' for disabled adapter */ … … 231 231 } 232 232 233 QWidget* VBoxVMSettingsNetwork::setOrderAfter (QWidget *aAfter)233 QWidget* UIMachineSettingsNetwork::setOrderAfter (QWidget *aAfter) 234 234 { 235 235 setTabOrder (aAfter, mCbEnableAdapter); … … 245 245 } 246 246 247 QString VBoxVMSettingsNetwork::pageTitle() const247 QString UIMachineSettingsNetwork::pageTitle() const 248 248 { 249 249 return VBoxGlobal::tr("Adapter %1", "network").arg(QString("&%1").arg(m_iSlot + 1));; 250 250 } 251 251 252 KNetworkAttachmentType VBoxVMSettingsNetwork::attachmentType() const252 KNetworkAttachmentType UIMachineSettingsNetwork::attachmentType() const 253 253 { 254 254 return (KNetworkAttachmentType) mCbAttachmentType->itemData ( … … 256 256 } 257 257 258 QString VBoxVMSettingsNetwork::alternativeName (int aType) const258 QString UIMachineSettingsNetwork::alternativeName (int aType) const 259 259 { 260 260 if (aType == -1) aType = attachmentType(); … … 283 283 } 284 284 285 void VBoxVMSettingsNetwork::showEvent (QShowEvent *aEvent)285 void UIMachineSettingsNetwork::showEvent (QShowEvent *aEvent) 286 286 { 287 287 if (!mPolished) … … 312 312 } 313 313 314 void VBoxVMSettingsNetwork::retranslateUi()314 void UIMachineSettingsNetwork::retranslateUi() 315 315 { 316 316 /* Translate uic generated strings */ 317 Ui:: VBoxVMSettingsNetwork::retranslateUi (this);317 Ui::UIMachineSettingsNetwork::retranslateUi (this); 318 318 319 319 /* Translate combo-boxes content */ … … 324 324 } 325 325 326 void VBoxVMSettingsNetwork::updateAttachmentAlternative()326 void UIMachineSettingsNetwork::updateAttachmentAlternative() 327 327 { 328 328 /* Blocking signals to change content manually */ … … 421 421 } 422 422 423 void VBoxVMSettingsNetwork::updateAlternativeName()423 void UIMachineSettingsNetwork::updateAlternativeName() 424 424 { 425 425 switch (attachmentType()) … … 483 483 } 484 484 485 void VBoxVMSettingsNetwork::toggleAdvanced()485 void UIMachineSettingsNetwork::toggleAdvanced() 486 486 { 487 487 mLbAdapterType->setVisible (mAbsAdvanced->isExpanded()); … … 494 494 } 495 495 496 void VBoxVMSettingsNetwork::generateMac()496 void UIMachineSettingsNetwork::generateMac() 497 497 { 498 498 m_adapter.SetMACAddress(QString::null); … … 500 500 } 501 501 502 void VBoxVMSettingsNetwork::sltOpenPortForwardingDlg()503 { 504 VBoxVMSettingsPortForwardingDlg dlg(this, mPortForwardingRules);502 void UIMachineSettingsNetwork::sltOpenPortForwardingDlg() 503 { 504 UIMachineSettingsPortForwardingDlg dlg(this, mPortForwardingRules); 505 505 if (dlg.exec() == QDialog::Accepted) 506 506 mPortForwardingRules = dlg.rules(); 507 507 } 508 508 509 void VBoxVMSettingsNetwork::populateComboboxes()509 void UIMachineSettingsNetwork::populateComboboxes() 510 510 { 511 511 /* Save the current selected adapter */ … … 616 616 } 617 617 618 /* VBoxVMSettingsNetworkPage Stuff */619 VBoxVMSettingsNetworkPage::VBoxVMSettingsNetworkPage(bool aDisableStaticControls)618 /* UIMachineSettingsNetworkPage Stuff */ 619 UIMachineSettingsNetworkPage::UIMachineSettingsNetworkPage(bool aDisableStaticControls) 620 620 : mValidator(0) 621 621 , mTwAdapters(0) … … 636 636 } 637 637 638 void VBoxVMSettingsNetworkPage::loadDirectlyFrom(const CMachine &machine)638 void UIMachineSettingsNetworkPage::loadDirectlyFrom(const CMachine &machine) 639 639 { 640 640 qRegisterMetaType<UISettingsDataMachine>(); … … 645 645 } 646 646 647 void VBoxVMSettingsNetworkPage::saveDirectlyTo(CMachine &machine)647 void UIMachineSettingsNetworkPage::saveDirectlyTo(CMachine &machine) 648 648 { 649 649 qRegisterMetaType<UISettingsDataMachine>(); … … 654 654 } 655 655 656 QStringList VBoxVMSettingsNetworkPage::brgList (bool aRefresh)656 QStringList UIMachineSettingsNetworkPage::brgList (bool aRefresh) 657 657 { 658 658 if (aRefresh) … … 673 673 } 674 674 675 QStringList VBoxVMSettingsNetworkPage::intList (bool aRefresh)675 QStringList UIMachineSettingsNetworkPage::intList (bool aRefresh) 676 676 { 677 677 if (aRefresh) … … 699 699 } 700 700 701 QStringList VBoxVMSettingsNetworkPage::fullIntList (bool aRefresh)701 QStringList UIMachineSettingsNetworkPage::fullIntList (bool aRefresh) 702 702 { 703 703 QStringList list (intList (aRefresh)); … … 705 705 for (int index = 0; index < mTwAdapters->count(); ++ index) 706 706 { 707 VBoxVMSettingsNetwork *page =708 qobject_cast < VBoxVMSettingsNetwork*> (mTwAdapters->widget (index));707 UIMachineSettingsNetwork *page = 708 qobject_cast <UIMachineSettingsNetwork*> (mTwAdapters->widget (index)); 709 709 if (page) 710 710 { … … 717 717 } 718 718 719 QStringList VBoxVMSettingsNetworkPage::hoiList (bool aRefresh)719 QStringList UIMachineSettingsNetworkPage::hoiList (bool aRefresh) 720 720 { 721 721 if (aRefresh) … … 738 738 /* Load data to cashe from corresponding external object(s), 739 739 * this task COULD be performed in other than GUI thread: */ 740 void VBoxVMSettingsNetworkPage::loadToCacheFrom(QVariant &data)740 void UIMachineSettingsNetworkPage::loadToCacheFrom(QVariant &data) 741 741 { 742 742 /* Fetch data to machine: */ … … 816 816 /* Load data to corresponding widgets from cache, 817 817 * this task SHOULD be performed in GUI thread only: */ 818 void VBoxVMSettingsNetworkPage::getFromCache()818 void UIMachineSettingsNetworkPage::getFromCache() 819 819 { 820 820 /* Setup tab order: */ … … 827 827 { 828 828 /* Creating adapter's page: */ 829 VBoxVMSettingsNetwork *pPage = new VBoxVMSettingsNetwork(this, mDisableStaticControls);829 UIMachineSettingsNetwork *pPage = new UIMachineSettingsNetwork(this, mDisableStaticControls); 830 830 831 831 /* Loading adapter's data into page: */ … … 855 855 /* Save data from corresponding widgets to cache, 856 856 * this task SHOULD be performed in GUI thread only: */ 857 void VBoxVMSettingsNetworkPage::putToCache()857 void UIMachineSettingsNetworkPage::putToCache() 858 858 { 859 859 /* Gather internal variables data from QWidget(s): */ … … 861 861 { 862 862 /* Getting adapter's page: */ 863 VBoxVMSettingsNetwork *pPage = qobject_cast<VBoxVMSettingsNetwork*>(mTwAdapters->widget(iSlot));863 UIMachineSettingsNetwork *pPage = qobject_cast<UIMachineSettingsNetwork*>(mTwAdapters->widget(iSlot)); 864 864 865 865 /* Loading Adapter's data from page: */ … … 870 870 /* Save data from cache to corresponding external object(s), 871 871 * this task COULD be performed in other than GUI thread: */ 872 void VBoxVMSettingsNetworkPage::saveFromCacheTo(QVariant &data)872 void UIMachineSettingsNetworkPage::saveFromCacheTo(QVariant &data) 873 873 { 874 874 /* Fetch data to machine: */ … … 939 939 } 940 940 941 void VBoxVMSettingsNetworkPage::setValidator (QIWidgetValidator *aVal)941 void UIMachineSettingsNetworkPage::setValidator (QIWidgetValidator *aVal) 942 942 { 943 943 mValidator = aVal; 944 944 } 945 945 946 bool VBoxVMSettingsNetworkPage::revalidate (QString &aWarning, QString &aTitle)946 bool UIMachineSettingsNetworkPage::revalidate (QString &aWarning, QString &aTitle) 947 947 { 948 948 bool valid = true; … … 950 950 for (int i = 0; i < mTwAdapters->count(); ++ i) 951 951 { 952 VBoxVMSettingsNetwork *page =953 qobject_cast < VBoxVMSettingsNetwork*> (mTwAdapters->widget (i));952 UIMachineSettingsNetwork *page = 953 qobject_cast <UIMachineSettingsNetwork*> (mTwAdapters->widget (i)); 954 954 Assert (page); 955 955 valid = page->revalidate (aWarning, aTitle); … … 960 960 } 961 961 962 void VBoxVMSettingsNetworkPage::retranslateUi()962 void UIMachineSettingsNetworkPage::retranslateUi() 963 963 { 964 964 for (int i = 0; i < mTwAdapters->count(); ++ i) 965 965 { 966 VBoxVMSettingsNetwork *page =967 qobject_cast < VBoxVMSettingsNetwork*> (mTwAdapters->widget (i));966 UIMachineSettingsNetwork *page = 967 qobject_cast <UIMachineSettingsNetwork*> (mTwAdapters->widget (i)); 968 968 Assert (page); 969 969 mTwAdapters->setTabText (i, page->pageTitle()); … … 971 971 } 972 972 973 void VBoxVMSettingsNetworkPage::updatePages()973 void UIMachineSettingsNetworkPage::updatePages() 974 974 { 975 975 for (int i = 0; i < mTwAdapters->count(); ++ i) 976 976 { 977 977 /* Get the iterated page */ 978 VBoxVMSettingsNetwork *page =979 qobject_cast < VBoxVMSettingsNetwork*> (mTwAdapters->widget (i));978 UIMachineSettingsNetwork *page = 979 qobject_cast <UIMachineSettingsNetwork*> (mTwAdapters->widget (i)); 980 980 Assert (page); 981 981 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsNetwork class declaration4 * UIMachineSettingsNetwork class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsNetwork_h__20 #define __ VBoxVMSettingsNetwork_h__19 #ifndef __UIMachineSettingsNetwork_h__ 20 #define __UIMachineSettingsNetwork_h__ 21 21 22 22 /* VBox Includes */ 23 23 #include "COMDefs.h" 24 24 #include "UISettingsPage.h" 25 #include " VBoxVMSettingsNetwork.gen.h"26 #include " VBoxVMSettingsPortForwardingDlg.h"25 #include "UIMachineSettingsNetwork.gen.h" 26 #include "UIMachineSettingsPortForwardingDlg.h" 27 27 28 28 /* VBox Forwards */ 29 class VBoxVMSettingsNetworkPage;29 class UIMachineSettingsNetworkPage; 30 30 class QITabWidget; 31 31 … … 56 56 }; 57 57 58 class VBoxVMSettingsNetwork : public QIWithRetranslateUI <QWidget>,59 public Ui:: VBoxVMSettingsNetwork58 class UIMachineSettingsNetwork : public QIWithRetranslateUI <QWidget>, 59 public Ui::UIMachineSettingsNetwork 60 60 { 61 61 Q_OBJECT; … … 63 63 public: 64 64 65 VBoxVMSettingsNetwork (VBoxVMSettingsNetworkPage *aParent, bool aDisableStaticControls = false);65 UIMachineSettingsNetwork (UIMachineSettingsNetworkPage *aParent, bool aDisableStaticControls = false); 66 66 67 67 void fetchAdapterData(const UINetworkAdapterData &data); … … 95 95 void populateComboboxes(); 96 96 97 VBoxVMSettingsNetworkPage *mParent;97 UIMachineSettingsNetworkPage *mParent; 98 98 QIWidgetValidator *mValidator; 99 99 int m_iSlot; … … 113 113 114 114 /* Machine settings / Network page: */ 115 class VBoxVMSettingsNetworkPage : public UISettingsPageMachine115 class UIMachineSettingsNetworkPage : public UISettingsPageMachine 116 116 { 117 117 Q_OBJECT; … … 119 119 public: 120 120 121 VBoxVMSettingsNetworkPage (bool aDisableStaticControls = false);121 UIMachineSettingsNetworkPage (bool aDisableStaticControls = false); 122 122 123 123 void loadDirectlyFrom(const CMachine &machine); … … 169 169 }; 170 170 171 #endif // __ VBoxVMSettingsNetwork_h__171 #endif // __UIMachineSettingsNetwork_h__ 172 172 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsNetwork</class>16 <widget class="QWidget" name=" VBoxVMSettingsNetwork" >15 <class>UIMachineSettingsNetwork</class> 16 <widget class="QWidget" name="UIMachineSettingsNetwork" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsParallel class implementation5 * UIMachineSettingsParallel class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsParallel.h"20 #include "UIMachineSettingsParallel.h" 21 21 #include "QIWidgetValidator.h" 22 22 #include "VBoxGlobal.h" … … 25 25 #include <QDir> 26 26 27 /* VBoxVMSettingsParallel stuff */28 VBoxVMSettingsParallel::VBoxVMSettingsParallel()27 /* UIMachineSettingsParallel stuff */ 28 UIMachineSettingsParallel::UIMachineSettingsParallel() 29 29 : QIWithRetranslateUI<QWidget> (0) 30 30 , mValidator(0) … … 32 32 { 33 33 /* Apply UI decorations */ 34 Ui:: VBoxVMSettingsParallel::setupUi (this);34 Ui::UIMachineSettingsParallel::setupUi (this); 35 35 36 36 /* Setup validation */ … … 58 58 } 59 59 60 void VBoxVMSettingsParallel::fetchPortData(const UIParallelPortData &data)60 void UIMachineSettingsParallel::fetchPortData(const UIParallelPortData &data) 61 61 { 62 62 /* Load port slot number: */ … … 74 74 } 75 75 76 void VBoxVMSettingsParallel::uploadPortData(UIParallelPortData &data)76 void UIMachineSettingsParallel::uploadPortData(UIParallelPortData &data) 77 77 { 78 78 /* Upload port data: */ … … 83 83 } 84 84 85 void VBoxVMSettingsParallel::setValidator (QIWidgetValidator *aVal)85 void UIMachineSettingsParallel::setValidator (QIWidgetValidator *aVal) 86 86 { 87 87 Assert (aVal); … … 96 96 } 97 97 98 QWidget* VBoxVMSettingsParallel::setOrderAfter (QWidget *aAfter)98 QWidget* UIMachineSettingsParallel::setOrderAfter (QWidget *aAfter) 99 99 { 100 100 setTabOrder (aAfter, mGbParallel); … … 106 106 } 107 107 108 QString VBoxVMSettingsParallel::pageTitle() const108 QString UIMachineSettingsParallel::pageTitle() const 109 109 { 110 110 return QString(tr("Port %1", "parallel ports")).arg(QString("&%1").arg(m_iSlot + 1)); 111 111 } 112 112 113 bool VBoxVMSettingsParallel::isUserDefined()113 bool UIMachineSettingsParallel::isUserDefined() 114 114 { 115 115 ulong a, b; … … 117 117 } 118 118 119 void VBoxVMSettingsParallel::retranslateUi()119 void UIMachineSettingsParallel::retranslateUi() 120 120 { 121 121 /* Translate uic generated strings */ 122 Ui:: VBoxVMSettingsParallel::retranslateUi (this);122 Ui::UIMachineSettingsParallel::retranslateUi (this); 123 123 124 124 mCbNumber->setItemText (mCbNumber->count() - 1, vboxGlobal().toCOMPortName (0, 0)); 125 125 } 126 126 127 void VBoxVMSettingsParallel::mGbParallelToggled (bool aOn)127 void UIMachineSettingsParallel::mGbParallelToggled (bool aOn) 128 128 { 129 129 if (aOn) … … 133 133 } 134 134 135 void VBoxVMSettingsParallel::mCbNumberActivated (const QString &aText)135 void UIMachineSettingsParallel::mCbNumberActivated (const QString &aText) 136 136 { 137 137 ulong IRQ, IOBase; … … 148 148 149 149 150 /* VBoxVMSettingsParallelPage stuff */151 VBoxVMSettingsParallelPage::VBoxVMSettingsParallelPage()150 /* UIMachineSettingsParallelPage stuff */ 151 UIMachineSettingsParallelPage::UIMachineSettingsParallelPage() 152 152 : mValidator(0) 153 153 , mTabWidget(0) … … 162 162 /* Load data to cashe from corresponding external object(s), 163 163 * this task COULD be performed in other than GUI thread: */ 164 void VBoxVMSettingsParallelPage::loadToCacheFrom(QVariant &data)164 void UIMachineSettingsParallelPage::loadToCacheFrom(QVariant &data) 165 165 { 166 166 /* Fetch data to machine: */ … … 194 194 /* Load data to corresponding widgets from cache, 195 195 * this task SHOULD be performed in GUI thread only: */ 196 void VBoxVMSettingsParallelPage::getFromCache()196 void UIMachineSettingsParallelPage::getFromCache() 197 197 { 198 198 Assert(m_pFirstWidget); … … 204 204 { 205 205 /* Creating port's page: */ 206 VBoxVMSettingsParallel *pPage = new VBoxVMSettingsParallel;206 UIMachineSettingsParallel *pPage = new UIMachineSettingsParallel; 207 207 208 208 /* Loading port's data into page: */ … … 228 228 /* Save data from corresponding widgets to cache, 229 229 * this task SHOULD be performed in GUI thread only: */ 230 void VBoxVMSettingsParallelPage::putToCache()230 void UIMachineSettingsParallelPage::putToCache() 231 231 { 232 232 /* Gather internal variables data from QWidget(s): */ … … 234 234 { 235 235 /* Getting adapter's page: */ 236 VBoxVMSettingsParallel *pPage = qobject_cast<VBoxVMSettingsParallel*>(mTabWidget->widget(iSlot));236 UIMachineSettingsParallel *pPage = qobject_cast<UIMachineSettingsParallel*>(mTabWidget->widget(iSlot)); 237 237 238 238 /* Loading Adapter's data from page: */ … … 243 243 /* Save data from cache to corresponding external object(s), 244 244 * this task COULD be performed in other than GUI thread: */ 245 void VBoxVMSettingsParallelPage::saveFromCacheTo(QVariant &data)245 void UIMachineSettingsParallelPage::saveFromCacheTo(QVariant &data) 246 246 { 247 247 /* Fetch data to machine: */ … … 268 268 } 269 269 270 void VBoxVMSettingsParallelPage::setValidator (QIWidgetValidator *aVal)270 void UIMachineSettingsParallelPage::setValidator (QIWidgetValidator *aVal) 271 271 { 272 272 mValidator = aVal; 273 273 } 274 274 275 bool VBoxVMSettingsParallelPage::revalidate (QString &aWarning, QString &aTitle)275 bool UIMachineSettingsParallelPage::revalidate (QString &aWarning, QString &aTitle) 276 276 { 277 277 bool valid = true; … … 283 283 { 284 284 QWidget *tab = mTabWidget->widget (index); 285 VBoxVMSettingsParallel *page =286 static_cast< VBoxVMSettingsParallel*> (tab);285 UIMachineSettingsParallel *page = 286 static_cast<UIMachineSettingsParallel*> (tab); 287 287 288 288 /* Check the predefined port number unicity */ … … 322 322 } 323 323 324 void VBoxVMSettingsParallelPage::retranslateUi()324 void UIMachineSettingsParallelPage::retranslateUi() 325 325 { 326 326 for (int i = 0; i < mTabWidget->count(); ++ i) 327 327 { 328 VBoxVMSettingsParallel *page =329 static_cast< VBoxVMSettingsParallel*> (mTabWidget->widget (i));328 UIMachineSettingsParallel *page = 329 static_cast<UIMachineSettingsParallel*> (mTabWidget->widget (i)); 330 330 mTabWidget->setTabText (i, page->pageTitle()); 331 331 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsParallel class declaration4 * UIMachineSettingsParallel class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsParallel_h__20 #define __ VBoxVMSettingsParallel_h__19 #ifndef __UIMachineSettingsParallel_h__ 20 #define __UIMachineSettingsParallel_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxVMSettingsParallel.gen.h"23 #include "UIMachineSettingsParallel.gen.h" 24 24 #include "COMDefs.h" 25 25 … … 41 41 }; 42 42 43 class VBoxVMSettingsParallel : public QIWithRetranslateUI<QWidget>,44 public Ui:: VBoxVMSettingsParallel43 class UIMachineSettingsParallel : public QIWithRetranslateUI<QWidget>, 44 public Ui::UIMachineSettingsParallel 45 45 { 46 46 Q_OBJECT; … … 48 48 public: 49 49 50 VBoxVMSettingsParallel();50 UIMachineSettingsParallel(); 51 51 52 52 void fetchPortData(const UIParallelPortData &data); … … 76 76 77 77 /* Machine settings / Parallel page: */ 78 class VBoxVMSettingsParallelPage : public UISettingsPageMachine78 class UIMachineSettingsParallelPage : public UISettingsPageMachine 79 79 { 80 80 Q_OBJECT; … … 82 82 public: 83 83 84 VBoxVMSettingsParallelPage();84 UIMachineSettingsParallelPage(); 85 85 86 86 protected: … … 114 114 }; 115 115 116 #endif // __ VBoxVMSettingsParallel_h__116 #endif // __UIMachineSettingsParallel_h__ 117 117 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsParallel</class>16 <widget class="QWidget" name=" VBoxVMSettingsParallel" >15 <class>UIMachineSettingsParallel</class> 16 <widget class="QWidget" name="UIMachineSettingsParallel" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsPortForwardingDlg class implementation5 * UIMachineSettingsPortForwardingDlg class implementation 6 6 */ 7 7 … … 30 30 31 31 /* Local includes */ 32 #include " VBoxVMSettingsPortForwardingDlg.h"32 #include "UIMachineSettingsPortForwardingDlg.h" 33 33 #include "VBoxGlobal.h" 34 34 #include "VBoxProblemReporter.h" … … 414 414 415 415 /* Port forwarding dialog constructor: */ 416 VBoxVMSettingsPortForwardingDlg::VBoxVMSettingsPortForwardingDlg(QWidget *pParent,416 UIMachineSettingsPortForwardingDlg::UIMachineSettingsPortForwardingDlg(QWidget *pParent, 417 417 const UIPortForwardingDataList &rules) 418 418 : QIWithRetranslateUI<QIDialog>(pParent) … … 537 537 538 538 /* Port forwarding dialog destructor: */ 539 VBoxVMSettingsPortForwardingDlg::~VBoxVMSettingsPortForwardingDlg()540 { 541 } 542 543 const UIPortForwardingDataList& VBoxVMSettingsPortForwardingDlg::rules() const539 UIMachineSettingsPortForwardingDlg::~UIMachineSettingsPortForwardingDlg() 540 { 541 } 542 543 const UIPortForwardingDataList& UIMachineSettingsPortForwardingDlg::rules() const 544 544 { 545 545 return m_pModel->rules(); … … 547 547 548 548 /* Add rule slot: */ 549 void VBoxVMSettingsPortForwardingDlg::sltAddRule()549 void UIMachineSettingsPortForwardingDlg::sltAddRule() 550 550 { 551 551 m_pModel->addRule(QModelIndex()); … … 557 557 558 558 /* Copy rule slot: */ 559 void VBoxVMSettingsPortForwardingDlg::sltCopyRule()559 void UIMachineSettingsPortForwardingDlg::sltCopyRule() 560 560 { 561 561 m_pModel->addRule(m_pTableView->currentIndex()); … … 567 567 568 568 /* Del rule slot: */ 569 void VBoxVMSettingsPortForwardingDlg::sltDelRule()569 void UIMachineSettingsPortForwardingDlg::sltDelRule() 570 570 { 571 571 m_pModel->delRule(m_pTableView->currentIndex()); … … 576 576 577 577 /* Table data change handler: */ 578 void VBoxVMSettingsPortForwardingDlg::sltTableDataChanged()578 void UIMachineSettingsPortForwardingDlg::sltTableDataChanged() 579 579 { 580 580 fIsTableDataChanged = true; … … 582 582 583 583 /* Table index-change handler: */ 584 void VBoxVMSettingsPortForwardingDlg::sltCurrentChanged()584 void UIMachineSettingsPortForwardingDlg::sltCurrentChanged() 585 585 { 586 586 bool fTableFocused = m_pTableView->hasFocus(); … … 592 592 593 593 /* Table context-menu handler: */ 594 void VBoxVMSettingsPortForwardingDlg::sltShowTableContexMenu(const QPoint &pos)594 void UIMachineSettingsPortForwardingDlg::sltShowTableContexMenu(const QPoint &pos) 595 595 { 596 596 /* Prepare context menu: */ … … 611 611 612 612 /* Adjusts table column's sizes: */ 613 void VBoxVMSettingsPortForwardingDlg::sltAdjustTable()613 void UIMachineSettingsPortForwardingDlg::sltAdjustTable() 614 614 { 615 615 m_pTableView->horizontalHeader()->setStretchLastSection(false); … … 635 635 } 636 636 637 void VBoxVMSettingsPortForwardingDlg::accept()637 void UIMachineSettingsPortForwardingDlg::accept() 638 638 { 639 639 /* Validate table: */ … … 651 651 } 652 652 653 void VBoxVMSettingsPortForwardingDlg::reject()653 void UIMachineSettingsPortForwardingDlg::reject() 654 654 { 655 655 /* Check if table data was changed: */ … … 661 661 662 662 /* UI Retranslation slot: */ 663 void VBoxVMSettingsPortForwardingDlg::retranslateUi()663 void UIMachineSettingsPortForwardingDlg::retranslateUi() 664 664 { 665 665 /* Set window title: */ … … 680 680 681 681 /* Extended event-handler: */ 682 bool VBoxVMSettingsPortForwardingDlg::eventFilter(QObject *pObj, QEvent *pEvent)682 bool UIMachineSettingsPortForwardingDlg::eventFilter(QObject *pObj, QEvent *pEvent) 683 683 { 684 684 /* Process table: */ … … 710 710 } 711 711 712 #include " VBoxVMSettingsPortForwardingDlg.moc"713 712 #include "UIMachineSettingsPortForwardingDlg.moc" 713 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsPortForwardingDlg class declaration4 * UIMachineSettingsPortForwardingDlg class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsPortForwardingDlg_h__20 #define __ VBoxVMSettingsPortForwardingDlg_h__19 #ifndef __UIMachineSettingsPortForwardingDlg_h__ 20 #define __UIMachineSettingsPortForwardingDlg_h__ 21 21 22 22 /* Local includes */ … … 88 88 89 89 /* Port forwarding dialog: */ 90 class VBoxVMSettingsPortForwardingDlg : public QIWithRetranslateUI<QIDialog>90 class UIMachineSettingsPortForwardingDlg : public QIWithRetranslateUI<QIDialog> 91 91 { 92 92 Q_OBJECT; … … 95 95 96 96 /* Port forwarding dialog constructor: */ 97 VBoxVMSettingsPortForwardingDlg(QWidget *pParent = 0,97 UIMachineSettingsPortForwardingDlg(QWidget *pParent = 0, 98 98 const UIPortForwardingDataList &rules = UIPortForwardingDataList()); 99 99 /* Port forwarding dialog destructor: */ 100 ~ VBoxVMSettingsPortForwardingDlg();100 ~UIMachineSettingsPortForwardingDlg(); 101 101 102 102 /* The list of chosen rules: */ … … 145 145 }; 146 146 147 #endif // __ VBoxVMSettingsPortForwardingDlg_h__147 #endif // __UIMachineSettingsPortForwardingDlg_h__ 148 148 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsSF class implementation5 * UIMachineSettingsSF class implementation 6 6 */ 7 7 … … 23 23 #include "VBoxProblemReporter.h" 24 24 #include "VBoxUtils.h" 25 #include " VBoxVMSettingsSF.h"26 #include " VBoxVMSettingsSFDetails.h"25 #include "UIMachineSettingsSF.h" 26 #include "UIMachineSettingsSFDetails.h" 27 27 28 28 /* Global includes */ … … 165 165 }; 166 166 167 VBoxVMSettingsSF::VBoxVMSettingsSF()167 UIMachineSettingsSF::UIMachineSettingsSF() 168 168 : m_type(WrongType) 169 169 , mNewAction(0), mEdtAction(0), mDelAction(0) … … 171 171 { 172 172 /* Apply UI decorations */ 173 Ui:: VBoxVMSettingsSF::setupUi (this);173 Ui::UIMachineSettingsSF::setupUi (this); 174 174 175 175 /* Prepare actions */ … … 212 212 } 213 213 214 void VBoxVMSettingsSF::loadDirectlyFrom(const CConsole &console)214 void UIMachineSettingsSF::loadDirectlyFrom(const CConsole &console) 215 215 { 216 216 loadToCacheFromMachine(console.GetMachine()); … … 219 219 } 220 220 221 void VBoxVMSettingsSF::saveDirectlyTo(CConsole &console)221 void UIMachineSettingsSF::saveDirectlyTo(CConsole &console) 222 222 { 223 223 putToCache(); … … 227 227 } 228 228 229 void VBoxVMSettingsSF::resizeEvent (QResizeEvent *aEvent)229 void UIMachineSettingsSF::resizeEvent (QResizeEvent *aEvent) 230 230 { 231 231 NOREF(aEvent); … … 235 235 /* Load data to cashe from corresponding external object(s), 236 236 * this task COULD be performed in other than GUI thread: */ 237 void VBoxVMSettingsSF::loadToCacheFrom(QVariant &data)237 void UIMachineSettingsSF::loadToCacheFrom(QVariant &data) 238 238 { 239 239 /* Fetch data to machine: */ … … 247 247 } 248 248 249 void VBoxVMSettingsSF::loadToCacheFromMachine(const CMachine &machine)249 void UIMachineSettingsSF::loadToCacheFromMachine(const CMachine &machine) 250 250 { 251 251 /* Update dialog type: */ … … 256 256 } 257 257 258 void VBoxVMSettingsSF::loadToCacheFromConsole(const CConsole &console)258 void UIMachineSettingsSF::loadToCacheFromConsole(const CConsole &console) 259 259 { 260 260 /* Update dialog type: */ … … 265 265 } 266 266 267 void VBoxVMSettingsSF::loadToCacheFromVector(const CSharedFolderVector &vector, UISharedFolderType type)267 void UIMachineSettingsSF::loadToCacheFromVector(const CSharedFolderVector &vector, UISharedFolderType type) 268 268 { 269 269 /* Cache shared folders in internal variables: */ … … 283 283 /* Load data to corresponding widgets from cache, 284 284 * this task SHOULD be performed in GUI thread only: */ 285 void VBoxVMSettingsSF::getFromCache()285 void UIMachineSettingsSF::getFromCache() 286 286 { 287 287 /* Apply internal variables data to QWidget(s): */ … … 313 313 /* Save data from corresponding widgets to cache, 314 314 * this task SHOULD be performed in GUI thread only: */ 315 void VBoxVMSettingsSF::putToCache()315 void UIMachineSettingsSF::putToCache() 316 316 { 317 317 /* Reset cache: */ … … 342 342 /* Save data from cache to corresponding external object(s), 343 343 * this task COULD be performed in other than GUI thread: */ 344 void VBoxVMSettingsSF::saveFromCacheTo(QVariant &data)344 void UIMachineSettingsSF::saveFromCacheTo(QVariant &data) 345 345 { 346 346 /* Fetch data to machine: */ … … 354 354 } 355 355 356 void VBoxVMSettingsSF::saveFromCacheToMachine(CMachine &machine)356 void UIMachineSettingsSF::saveFromCacheToMachine(CMachine &machine) 357 357 { 358 358 /* Save machine items from internal cache: */ … … 392 392 } 393 393 394 void VBoxVMSettingsSF::saveFromCacheToConsole(CConsole &console)394 void UIMachineSettingsSF::saveFromCacheToConsole(CConsole &console) 395 395 { 396 396 /* Save console items from internal cache: */ … … 430 430 } 431 431 432 void VBoxVMSettingsSF::setOrderAfter (QWidget *aWidget)432 void UIMachineSettingsSF::setOrderAfter (QWidget *aWidget) 433 433 { 434 434 setTabOrder (aWidget, mTwFolders); 435 435 } 436 436 437 void VBoxVMSettingsSF::retranslateUi()437 void UIMachineSettingsSF::retranslateUi() 438 438 { 439 439 /* Translate uic generated strings */ 440 Ui:: VBoxVMSettingsSF::retranslateUi (this);440 Ui::UIMachineSettingsSF::retranslateUi (this); 441 441 442 442 mNewAction->setText (tr ("&Add Shared Folder")); … … 460 460 } 461 461 462 void VBoxVMSettingsSF::addTriggered()462 void UIMachineSettingsSF::addTriggered() 463 463 { 464 464 /* Invoke Add-Box Dialog */ 465 VBoxVMSettingsSFDetails dlg (VBoxVMSettingsSFDetails::AddType, m_type == ConsoleType, usedList (true), this);465 UIMachineSettingsSFDetails dlg (UIMachineSettingsSFDetails::AddType, m_type == ConsoleType, usedList (true), this); 466 466 if (dlg.exec() == QDialog::Accepted) 467 467 { … … 491 491 } 492 492 493 void VBoxVMSettingsSF::edtTriggered()493 void UIMachineSettingsSF::edtTriggered() 494 494 { 495 495 /* Check selected item */ … … 501 501 502 502 /* Invoke Edit-Box Dialog */ 503 VBoxVMSettingsSFDetails dlg (VBoxVMSettingsSFDetails::EditType, m_type == ConsoleType, usedList (false), this);503 UIMachineSettingsSFDetails dlg (UIMachineSettingsSFDetails::EditType, m_type == ConsoleType, usedList (false), this); 504 504 dlg.setPath (item->getText (1)); 505 505 dlg.setName (item->getText (0)); … … 540 540 } 541 541 542 void VBoxVMSettingsSF::delTriggered()542 void UIMachineSettingsSF::delTriggered() 543 543 { 544 544 QTreeWidgetItem *selectedItem = mTwFolders->selectedItems().size() == 1 ? mTwFolders->selectedItems() [0] : 0; … … 549 549 } 550 550 551 void VBoxVMSettingsSF::processCurrentChanged (QTreeWidgetItem *aCurrentItem)551 void UIMachineSettingsSF::processCurrentChanged (QTreeWidgetItem *aCurrentItem) 552 552 { 553 553 if (aCurrentItem && aCurrentItem->parent() && !aCurrentItem->isSelected()) … … 562 562 } 563 563 564 void VBoxVMSettingsSF::processDoubleClick (QTreeWidgetItem *aItem)564 void UIMachineSettingsSF::processDoubleClick (QTreeWidgetItem *aItem) 565 565 { 566 566 bool editEnabled = aItem && aItem->parent(); … … 569 569 } 570 570 571 void VBoxVMSettingsSF::showContextMenu (const QPoint &aPos)571 void UIMachineSettingsSF::showContextMenu (const QPoint &aPos) 572 572 { 573 573 QMenu menu; … … 585 585 } 586 586 587 void VBoxVMSettingsSF::adjustList()587 void UIMachineSettingsSF::adjustList() 588 588 { 589 589 /* … … 616 616 } 617 617 618 void VBoxVMSettingsSF::adjustFields()618 void UIMachineSettingsSF::adjustFields() 619 619 { 620 620 QTreeWidgetItem *mainRoot = mTwFolders->invisibleRootItem(); … … 633 633 } 634 634 635 void VBoxVMSettingsSF::showEvent (QShowEvent *aEvent)635 void UIMachineSettingsSF::showEvent (QShowEvent *aEvent) 636 636 { 637 637 QWidget::showEvent (aEvent); … … 644 644 } 645 645 646 SFTreeViewItem* VBoxVMSettingsSF::root(UISharedFolderType type)646 SFTreeViewItem* UIMachineSettingsSF::root(UISharedFolderType type) 647 647 { 648 648 /* Prepare empty item: */ … … 692 692 } 693 693 694 SFoldersNameList VBoxVMSettingsSF::usedList (bool aIncludeSelected)694 SFoldersNameList UIMachineSettingsSF::usedList (bool aIncludeSelected) 695 695 { 696 696 /* Make the used names list: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsSF class declaration4 * UIMachineSettingsSF class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsSF_h__20 #define __ VBoxVMSettingsSF_h__19 #ifndef __UIMachineSettingsSF_h__ 20 #define __UIMachineSettingsSF_h__ 21 21 22 22 /* Local includes */ 23 23 #include "UISettingsPage.h" 24 #include " VBoxVMSettingsSF.gen.h"24 #include "UIMachineSettingsSF.gen.h" 25 25 26 26 /* Local forwards */ … … 53 53 }; 54 54 55 class VBoxVMSettingsSF : public UISettingsPageMachine,56 public Ui:: VBoxVMSettingsSF55 class UIMachineSettingsSF : public UISettingsPageMachine, 56 public Ui::UIMachineSettingsSF 57 57 { 58 58 Q_OBJECT; … … 60 60 public: 61 61 62 VBoxVMSettingsSF();62 UIMachineSettingsSF(); 63 63 64 64 void loadDirectlyFrom(const CConsole &console); … … 126 126 }; 127 127 128 #endif // __ VBoxVMSettingsSF_h__128 #endif // __UIMachineSettingsSF_h__ 129 129 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsSF</class>16 <widget class="QWidget" name=" VBoxVMSettingsSF">15 <class>UIMachineSettingsSF</class> 16 <widget class="QWidget" name="UIMachineSettingsSF"> 17 17 <property name="geometry"> 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsSFDetails class implementation5 * UIMachineSettingsSFDetails class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsSFDetails.h"20 #include "UIMachineSettingsSFDetails.h" 21 21 #include "VBoxGlobal.h" 22 22 … … 25 25 #include <QPushButton> 26 26 27 VBoxVMSettingsSFDetails::VBoxVMSettingsSFDetails (DialogType aType,27 UIMachineSettingsSFDetails::UIMachineSettingsSFDetails (DialogType aType, 28 28 bool aEnableSelector, /* for "permanent" checkbox */ 29 29 const SFoldersNameList &aUsedNames, … … 35 35 { 36 36 /* Apply UI decorations */ 37 Ui:: VBoxVMSettingsSFDetails::setupUi (this);37 Ui::UIMachineSettingsSFDetails::setupUi (this); 38 38 39 39 mCbPermanent->setHidden (!aEnableSelector); … … 70 70 } 71 71 72 void VBoxVMSettingsSFDetails::setPath (const QString &aPath)72 void UIMachineSettingsSFDetails::setPath (const QString &aPath) 73 73 { 74 74 mPsPath->setPath (aPath); 75 75 } 76 76 77 QString VBoxVMSettingsSFDetails::path() const77 QString UIMachineSettingsSFDetails::path() const 78 78 { 79 79 return mPsPath->path(); 80 80 } 81 81 82 void VBoxVMSettingsSFDetails::setName (const QString &aName)82 void UIMachineSettingsSFDetails::setName (const QString &aName) 83 83 { 84 84 mLeName->setText (aName); 85 85 } 86 86 87 QString VBoxVMSettingsSFDetails::name() const87 QString UIMachineSettingsSFDetails::name() const 88 88 { 89 89 return mLeName->text(); 90 90 } 91 91 92 void VBoxVMSettingsSFDetails::setWriteable (bool aWritable)92 void UIMachineSettingsSFDetails::setWriteable (bool aWritable) 93 93 { 94 94 mCbReadonly->setChecked (!aWritable); 95 95 } 96 96 97 bool VBoxVMSettingsSFDetails::isWriteable() const97 bool UIMachineSettingsSFDetails::isWriteable() const 98 98 { 99 99 return !mCbReadonly->isChecked(); 100 100 } 101 101 102 void VBoxVMSettingsSFDetails::setAutoMount (bool aAutoMount)102 void UIMachineSettingsSFDetails::setAutoMount (bool aAutoMount) 103 103 { 104 104 mCbAutoMount->setChecked (aAutoMount); 105 105 } 106 106 107 bool VBoxVMSettingsSFDetails::isAutoMounted() const107 bool UIMachineSettingsSFDetails::isAutoMounted() const 108 108 { 109 109 return mCbAutoMount->isChecked(); 110 110 } 111 111 112 void VBoxVMSettingsSFDetails::setPermanent (bool aPermanent)112 void UIMachineSettingsSFDetails::setPermanent (bool aPermanent) 113 113 { 114 114 mCbPermanent->setChecked (aPermanent); 115 115 } 116 116 117 bool VBoxVMSettingsSFDetails::isPermanent() const117 bool UIMachineSettingsSFDetails::isPermanent() const 118 118 { 119 119 return mUsePermanent ? mCbPermanent->isChecked() : true; 120 120 } 121 121 122 void VBoxVMSettingsSFDetails::retranslateUi()122 void UIMachineSettingsSFDetails::retranslateUi() 123 123 { 124 124 /* Translate uic generated strings */ 125 Ui:: VBoxVMSettingsSFDetails::retranslateUi (this);125 Ui::UIMachineSettingsSFDetails::retranslateUi (this); 126 126 127 127 switch (mType) … … 138 138 } 139 139 140 void VBoxVMSettingsSFDetails::validate()140 void UIMachineSettingsSFDetails::validate() 141 141 { 142 142 UISharedFolderType resultType = … … 151 151 } 152 152 153 void VBoxVMSettingsSFDetails::onSelectPath()153 void UIMachineSettingsSFDetails::onSelectPath() 154 154 { 155 155 if (!mPsPath->isPathSelected()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsSFDetails class declaration4 * UIMachineSettingsSFDetails class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsSFDetails_h__20 #define __ VBoxVMSettingsSFDetails_h__19 #ifndef __UIMachineSettingsSFDetails_h__ 20 #define __UIMachineSettingsSFDetails_h__ 21 21 22 #include " VBoxVMSettingsSFDetails.gen.h"22 #include "UIMachineSettingsSFDetails.gen.h" 23 23 #include "QIDialog.h" 24 24 #include "QIWithRetranslateUI.h" 25 #include " VBoxVMSettingsSF.h"25 #include "UIMachineSettingsSF.h" 26 26 27 class VBoxVMSettingsSFDetails : public QIWithRetranslateUI2<QIDialog>,28 public Ui:: VBoxVMSettingsSFDetails27 class UIMachineSettingsSFDetails : public QIWithRetranslateUI2<QIDialog>, 28 public Ui::UIMachineSettingsSFDetails 29 29 { 30 30 Q_OBJECT; … … 38 38 }; 39 39 40 VBoxVMSettingsSFDetails (DialogType aType,40 UIMachineSettingsSFDetails (DialogType aType, 41 41 bool aEnableSelector, /* for "permanent" checkbox */ 42 42 const SFoldersNameList &aUsedNames, … … 75 75 }; 76 76 77 #endif // __ VBoxVMSettingsSFDetails_h__77 #endif // __UIMachineSettingsSFDetails_h__ 78 78 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsSFDetails</class>16 <widget class="QDialog" name=" VBoxVMSettingsSFDetails" >15 <class>UIMachineSettingsSFDetails</class> 16 <widget class="QDialog" name="UIMachineSettingsSFDetails" > 17 17 <property name="geometry" > 18 18 <rect> … … 127 127 <sender>mButtonBox</sender> 128 128 <signal>accepted()</signal> 129 <receiver> VBoxVMSettingsSFDetails</receiver>129 <receiver>UIMachineSettingsSFDetails</receiver> 130 130 <slot>accept()</slot> 131 131 <hints> … … 143 143 <sender>mButtonBox</sender> 144 144 <signal>rejected()</signal> 145 <receiver> VBoxVMSettingsSFDetails</receiver>145 <receiver>UIMachineSettingsSFDetails</receiver> 146 146 <slot>reject()</slot> 147 147 <hints> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsSerial class implementation5 * UIMachineSettingsSerial class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsSerial.h"20 #include "UIMachineSettingsSerial.h" 21 21 #include "QIWidgetValidator.h" 22 22 #include "VBoxGlobal.h" … … 25 25 #include <QDir> 26 26 27 /* VBoxVMSettingsSerial stuff */28 VBoxVMSettingsSerial::VBoxVMSettingsSerial()27 /* UIMachineSettingsSerial stuff */ 28 UIMachineSettingsSerial::UIMachineSettingsSerial() 29 29 : QIWithRetranslateUI<QWidget> (0) 30 30 , mValidator(0) … … 32 32 { 33 33 /* Apply UI decorations */ 34 Ui:: VBoxVMSettingsSerial::setupUi (this);34 Ui::UIMachineSettingsSerial::setupUi (this); 35 35 36 36 /* Setup validation */ … … 65 65 } 66 66 67 void VBoxVMSettingsSerial::fetchPortData(const UISerialPortData &data)67 void UIMachineSettingsSerial::fetchPortData(const UISerialPortData &data) 68 68 { 69 69 /* Load port slot number: */ … … 83 83 } 84 84 85 void VBoxVMSettingsSerial::uploadPortData(UISerialPortData &data)85 void UIMachineSettingsSerial::uploadPortData(UISerialPortData &data) 86 86 { 87 87 /* Upload port data: */ … … 94 94 } 95 95 96 void VBoxVMSettingsSerial::setValidator (QIWidgetValidator *aVal)96 void UIMachineSettingsSerial::setValidator (QIWidgetValidator *aVal) 97 97 { 98 98 Assert (aVal); … … 107 107 } 108 108 109 QWidget* VBoxVMSettingsSerial::setOrderAfter (QWidget *aAfter)109 QWidget* UIMachineSettingsSerial::setOrderAfter (QWidget *aAfter) 110 110 { 111 111 setTabOrder (aAfter, mGbSerial); … … 119 119 } 120 120 121 QString VBoxVMSettingsSerial::pageTitle() const121 QString UIMachineSettingsSerial::pageTitle() const 122 122 { 123 123 return QString(tr("Port %1", "serial ports")).arg(QString("&%1").arg(m_iSlot + 1)); 124 124 } 125 125 126 bool VBoxVMSettingsSerial::isUserDefined()126 bool UIMachineSettingsSerial::isUserDefined() 127 127 { 128 128 ulong a, b; … … 130 130 } 131 131 132 void VBoxVMSettingsSerial::retranslateUi()132 void UIMachineSettingsSerial::retranslateUi() 133 133 { 134 134 /* Translate uic generated strings */ 135 Ui:: VBoxVMSettingsSerial::retranslateUi (this);135 Ui::UIMachineSettingsSerial::retranslateUi (this); 136 136 137 137 mCbNumber->setItemText (mCbNumber->count() - 1, vboxGlobal().toCOMPortName (0, 0)); … … 143 143 } 144 144 145 void VBoxVMSettingsSerial::mGbSerialToggled (bool aOn)145 void UIMachineSettingsSerial::mGbSerialToggled (bool aOn) 146 146 { 147 147 if (aOn) … … 154 154 } 155 155 156 void VBoxVMSettingsSerial::mCbNumberActivated (const QString &aText)156 void UIMachineSettingsSerial::mCbNumberActivated (const QString &aText) 157 157 { 158 158 ulong IRQ, IOBase; … … 168 168 } 169 169 170 void VBoxVMSettingsSerial::mCbModeActivated (const QString &aText)170 void UIMachineSettingsSerial::mCbModeActivated (const QString &aText) 171 171 { 172 172 KPortMode mode = vboxGlobal().toPortMode (aText); … … 179 179 180 180 181 /* VBoxVMSettingsSerialPage stuff */182 VBoxVMSettingsSerialPage::VBoxVMSettingsSerialPage()181 /* UIMachineSettingsSerialPage stuff */ 182 UIMachineSettingsSerialPage::UIMachineSettingsSerialPage() 183 183 : mValidator(0) 184 184 , mTabWidget(0) … … 196 196 /* Load data to cashe from corresponding external object(s), 197 197 * this task COULD be performed in other than GUI thread: */ 198 void VBoxVMSettingsSerialPage::loadToCacheFrom(QVariant &data)198 void UIMachineSettingsSerialPage::loadToCacheFrom(QVariant &data) 199 199 { 200 200 /* Fetch data to machine: */ … … 230 230 /* Load data to corresponding widgets from cache, 231 231 * this task SHOULD be performed in GUI thread only: */ 232 void VBoxVMSettingsSerialPage::getFromCache()232 void UIMachineSettingsSerialPage::getFromCache() 233 233 { 234 234 Assert(m_pFirstWidget); … … 240 240 { 241 241 /* Creating port's page: */ 242 VBoxVMSettingsSerial *pPage = new VBoxVMSettingsSerial;242 UIMachineSettingsSerial *pPage = new UIMachineSettingsSerial; 243 243 244 244 /* Loading port's data into page: */ … … 264 264 /* Save data from corresponding widgets to cache, 265 265 * this task SHOULD be performed in GUI thread only: */ 266 void VBoxVMSettingsSerialPage::putToCache()266 void UIMachineSettingsSerialPage::putToCache() 267 267 { 268 268 /* Gather internal variables data from QWidget(s): */ … … 270 270 { 271 271 /* Getting adapter's page: */ 272 VBoxVMSettingsSerial *pPage = qobject_cast<VBoxVMSettingsSerial*>(mTabWidget->widget(iSlot));272 UIMachineSettingsSerial *pPage = qobject_cast<UIMachineSettingsSerial*>(mTabWidget->widget(iSlot)); 273 273 274 274 /* Loading Adapter's data from page: */ … … 279 279 /* Save data from cache to corresponding external object(s), 280 280 * this task COULD be performed in other than GUI thread: */ 281 void VBoxVMSettingsSerialPage::saveFromCacheTo(QVariant &data)281 void UIMachineSettingsSerialPage::saveFromCacheTo(QVariant &data) 282 282 { 283 283 /* Fetch data to machine: */ … … 309 309 } 310 310 311 void VBoxVMSettingsSerialPage::setValidator (QIWidgetValidator * aVal)311 void UIMachineSettingsSerialPage::setValidator (QIWidgetValidator * aVal) 312 312 { 313 313 mValidator = aVal; 314 314 } 315 315 316 bool VBoxVMSettingsSerialPage::revalidate (QString &aWarning, QString &aTitle)316 bool UIMachineSettingsSerialPage::revalidate (QString &aWarning, QString &aTitle) 317 317 { 318 318 bool valid = true; … … 324 324 { 325 325 QWidget *tab = mTabWidget->widget (index); 326 VBoxVMSettingsSerial *page =327 static_cast< VBoxVMSettingsSerial*> (tab);326 UIMachineSettingsSerial *page = 327 static_cast<UIMachineSettingsSerial*> (tab); 328 328 329 329 if (!page->mGbSerial->isChecked()) … … 373 373 } 374 374 375 void VBoxVMSettingsSerialPage::retranslateUi()375 void UIMachineSettingsSerialPage::retranslateUi() 376 376 { 377 377 for (int i = 0; i < mTabWidget->count(); ++ i) 378 378 { 379 VBoxVMSettingsSerial *page =380 static_cast< VBoxVMSettingsSerial*> (mTabWidget->widget (i));379 UIMachineSettingsSerial *page = 380 static_cast<UIMachineSettingsSerial*> (mTabWidget->widget (i)); 381 381 mTabWidget->setTabText (i, page->pageTitle()); 382 382 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsSerial class declaration4 * UIMachineSettingsSerial class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsSerial_h__20 #define __ VBoxVMSettingsSerial_h__19 #ifndef __UIMachineSettingsSerial_h__ 20 #define __UIMachineSettingsSerial_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxVMSettingsSerial.gen.h"23 #include "UIMachineSettingsSerial.gen.h" 24 24 #include "COMDefs.h" 25 25 … … 44 44 }; 45 45 46 class VBoxVMSettingsSerial : public QIWithRetranslateUI<QWidget>,47 public Ui:: VBoxVMSettingsSerial46 class UIMachineSettingsSerial : public QIWithRetranslateUI<QWidget>, 47 public Ui::UIMachineSettingsSerial 48 48 { 49 49 Q_OBJECT; … … 51 51 public: 52 52 53 VBoxVMSettingsSerial();53 UIMachineSettingsSerial(); 54 54 55 55 void fetchPortData(const UISerialPortData &data); … … 80 80 81 81 /* Machine settings / Serial page: */ 82 class VBoxVMSettingsSerialPage : public UISettingsPageMachine82 class UIMachineSettingsSerialPage : public UISettingsPageMachine 83 83 { 84 84 Q_OBJECT; … … 86 86 public: 87 87 88 VBoxVMSettingsSerialPage();88 UIMachineSettingsSerialPage(); 89 89 90 90 protected: … … 118 118 }; 119 119 120 #endif // __ VBoxVMSettingsSerial_h__120 #endif // __UIMachineSettingsSerial_h__ 121 121 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsSerial</class>16 <widget class="QWidget" name=" VBoxVMSettingsSerial" >15 <class>UIMachineSettingsSerial</class> 16 <widget class="QWidget" name="UIMachineSettingsSerial" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsHDclass implementation5 * UIMachineSettingsStorage class implementation 6 6 */ 7 7 … … 25 25 #include "QIFileDialog.h" 26 26 #include "VBoxProblemReporter.h" 27 #include " VBoxVMSettingsHD.h"27 #include "UIMachineSettingsStorage.h" 28 28 29 29 /* Global Includes */ … … 579 579 QString ControllerItem::tip() const 580 580 { 581 return VBoxVMSettingsHD::tr ("<nobr><b>%1</b></nobr><br>"581 return UIMachineSettingsStorage::tr ("<nobr><b>%1</b></nobr><br>" 582 582 "<nobr>Bus: %2</nobr><br>" 583 583 "<nobr>Type: %3</nobr>") … … 934 934 case ExpanderToolTip: 935 935 if (aIndex.child (0, 0).isValid()) 936 tip = VBoxVMSettingsHD::tr ("<nobr>Expand/Collapse Item</nobr>");936 tip = UIMachineSettingsStorage::tr ("<nobr>Expand/Collapse Item</nobr>"); 937 937 break; 938 938 case HDAdderToolTip: 939 tip = VBoxVMSettingsHD::tr ("<nobr>Add Hard Disk</nobr>");939 tip = UIMachineSettingsStorage::tr ("<nobr>Add Hard Disk</nobr>"); 940 940 break; 941 941 case CDAdderToolTip: 942 tip = VBoxVMSettingsHD::tr ("<nobr>Add CD/DVD Device</nobr>");942 tip = UIMachineSettingsStorage::tr ("<nobr>Add CD/DVD Device</nobr>"); 943 943 break; 944 944 case FDAdderToolTip: 945 tip = VBoxVMSettingsHD::tr ("<nobr>Add Floppy Device</nobr>");945 tip = UIMachineSettingsStorage::tr ("<nobr>Add Floppy Device</nobr>"); 946 946 break; 947 947 default: … … 1624 1624 * Used as HD Settings widget. 1625 1625 */ 1626 VBoxVMSettingsHD::VBoxVMSettingsHD()1626 UIMachineSettingsStorage::UIMachineSettingsStorage() 1627 1627 : mValidator(0) 1628 1628 , mStorageModel(0) … … 1636 1636 { 1637 1637 /* Apply UI decorations */ 1638 Ui:: VBoxVMSettingsHD::setupUi (this);1638 Ui::UIMachineSettingsStorage::setupUi (this); 1639 1639 1640 1640 /* Initialize pixmap pool */ … … 1790 1790 /* Load data to cashe from corresponding external object(s), 1791 1791 * this task COULD be performed in other than GUI thread: */ 1792 void VBoxVMSettingsHD::loadToCacheFrom(QVariant &data)1792 void UIMachineSettingsStorage::loadToCacheFrom(QVariant &data) 1793 1793 { 1794 1794 /* Fetch data to machine: */ … … 1834 1834 /* Load data to corresponding widgets from cache, 1835 1835 * this task SHOULD be performed in GUI thread only: */ 1836 void VBoxVMSettingsHD::getFromCache()1836 void UIMachineSettingsStorage::getFromCache() 1837 1837 { 1838 1838 /* Apply internal variables data to QWidget(s): */ … … 1871 1871 /* Save data from corresponding widgets to cache, 1872 1872 * this task SHOULD be performed in GUI thread only: */ 1873 void VBoxVMSettingsHD::putToCache()1873 void UIMachineSettingsStorage::putToCache() 1874 1874 { 1875 1875 /* Gather internal variables data from QWidget(s): */ … … 1902 1902 /* Save data from cache to corresponding external object(s), 1903 1903 * this task COULD be performed in other than GUI thread: */ 1904 void VBoxVMSettingsHD::saveFromCacheTo(QVariant &data)1904 void UIMachineSettingsStorage::saveFromCacheTo(QVariant &data) 1905 1905 { 1906 1906 /* Fetch data to machine: */ … … 1966 1966 } 1967 1967 1968 void VBoxVMSettingsHD::setValidator (QIWidgetValidator *aVal)1968 void UIMachineSettingsStorage::setValidator (QIWidgetValidator *aVal) 1969 1969 { 1970 1970 mValidator = aVal; 1971 1971 } 1972 1972 1973 bool VBoxVMSettingsHD::revalidate (QString &aWarning, QString &)1973 bool UIMachineSettingsStorage::revalidate (QString &aWarning, QString &) 1974 1974 { 1975 1975 QModelIndex rootIndex = mStorageModel->root(); … … 2005 2005 } 2006 2006 2007 void VBoxVMSettingsHD::retranslateUi()2007 void UIMachineSettingsStorage::retranslateUi() 2008 2008 { 2009 2009 /* Translate uic generated strings */ 2010 Ui:: VBoxVMSettingsHD::retranslateUi (this);2010 Ui::UIMachineSettingsStorage::retranslateUi (this); 2011 2011 2012 2012 mAddCtrAction->setShortcut (QKeySequence ("Ins")); … … 2048 2048 } 2049 2049 2050 void VBoxVMSettingsHD::showEvent (QShowEvent *aEvent)2050 void UIMachineSettingsStorage::showEvent (QShowEvent *aEvent) 2051 2051 { 2052 2052 if (!mIsPolished) … … 2080 2080 } 2081 2081 2082 void VBoxVMSettingsHD::mediumUpdated (const VBoxMedium &aMedium)2082 void UIMachineSettingsStorage::mediumUpdated (const VBoxMedium &aMedium) 2083 2083 { 2084 2084 QModelIndex rootIndex = mStorageModel->root(); … … 2099 2099 } 2100 2100 2101 void VBoxVMSettingsHD::mediumRemoved (VBoxDefs::MediumType /* aType */, const QString &aMediumId)2101 void UIMachineSettingsStorage::mediumRemoved (VBoxDefs::MediumType /* aType */, const QString &aMediumId) 2102 2102 { 2103 2103 QModelIndex rootIndex = mStorageModel->root(); … … 2118 2118 } 2119 2119 2120 void VBoxVMSettingsHD::addController()2120 void UIMachineSettingsStorage::addController() 2121 2121 { 2122 2122 QMenu menu; … … 2129 2129 } 2130 2130 2131 void VBoxVMSettingsHD::addIDEController()2131 void UIMachineSettingsStorage::addIDEController() 2132 2132 { 2133 2133 addControllerWrapper (generateUniqueName (tr ("IDE Controller")), KStorageBus_IDE, KStorageControllerType_PIIX4); 2134 2134 } 2135 2135 2136 void VBoxVMSettingsHD::addSATAController()2136 void UIMachineSettingsStorage::addSATAController() 2137 2137 { 2138 2138 addControllerWrapper (generateUniqueName (tr ("SATA Controller")), KStorageBus_SATA, KStorageControllerType_IntelAhci); 2139 2139 } 2140 2140 2141 void VBoxVMSettingsHD::addSCSIController()2141 void UIMachineSettingsStorage::addSCSIController() 2142 2142 { 2143 2143 addControllerWrapper (generateUniqueName (tr ("SCSI Controller")), KStorageBus_SCSI, KStorageControllerType_LsiLogic); 2144 2144 } 2145 2145 2146 void VBoxVMSettingsHD::addFloppyController()2146 void UIMachineSettingsStorage::addFloppyController() 2147 2147 { 2148 2148 addControllerWrapper (generateUniqueName (tr ("Floppy Controller")), KStorageBus_Floppy, KStorageControllerType_I82078); 2149 2149 } 2150 2150 2151 void VBoxVMSettingsHD::addSASController()2151 void UIMachineSettingsStorage::addSASController() 2152 2152 { 2153 2153 addControllerWrapper (generateUniqueName (tr ("SAS Controller")), KStorageBus_SAS, KStorageControllerType_LsiLogicSas); 2154 2154 } 2155 2155 2156 void VBoxVMSettingsHD::delController()2156 void UIMachineSettingsStorage::delController() 2157 2157 { 2158 2158 QModelIndex index = mTwStorageTree->currentIndex(); … … 2164 2164 } 2165 2165 2166 void VBoxVMSettingsHD::addAttachment()2166 void UIMachineSettingsStorage::addAttachment() 2167 2167 { 2168 2168 QModelIndex index = mTwStorageTree->currentIndex(); … … 2203 2203 } 2204 2204 2205 void VBoxVMSettingsHD::addHDAttachment()2205 void UIMachineSettingsStorage::addHDAttachment() 2206 2206 { 2207 2207 addAttachmentWrapper (KDeviceType_HardDisk); 2208 2208 } 2209 2209 2210 void VBoxVMSettingsHD::addCDAttachment()2210 void UIMachineSettingsStorage::addCDAttachment() 2211 2211 { 2212 2212 addAttachmentWrapper (KDeviceType_DVD); 2213 2213 } 2214 2214 2215 void VBoxVMSettingsHD::addFDAttachment()2215 void UIMachineSettingsStorage::addFDAttachment() 2216 2216 { 2217 2217 addAttachmentWrapper (KDeviceType_Floppy); 2218 2218 } 2219 2219 2220 void VBoxVMSettingsHD::delAttachment()2220 void UIMachineSettingsStorage::delAttachment() 2221 2221 { 2222 2222 QModelIndex index = mTwStorageTree->currentIndex(); … … 2243 2243 } 2244 2244 2245 void VBoxVMSettingsHD::getInformation()2245 void UIMachineSettingsStorage::getInformation() 2246 2246 { 2247 2247 mIsLoadingInProgress = true; … … 2354 2354 } 2355 2355 2356 void VBoxVMSettingsHD::setInformation()2356 void UIMachineSettingsStorage::setInformation() 2357 2357 { 2358 2358 QModelIndex index = mTwStorageTree->currentIndex(); … … 2407 2407 } 2408 2408 2409 void VBoxVMSettingsHD::sltOpenMedium()2409 void UIMachineSettingsStorage::sltOpenMedium() 2410 2410 { 2411 2411 QString id = vboxGlobal().openMediumWithFileOpenDialog(mCbVdi->type(), this); … … 2414 2414 } 2415 2415 2416 void VBoxVMSettingsHD::sltNewMedium()2416 void UIMachineSettingsStorage::sltNewMedium() 2417 2417 { 2418 2418 QString id = getWithNewHDWizard(); … … 2421 2421 } 2422 2422 2423 void VBoxVMSettingsHD::updateActionsState()2423 void UIMachineSettingsStorage::updateActionsState() 2424 2424 { 2425 2425 QModelIndex index = mTwStorageTree->currentIndex(); … … 2451 2451 } 2452 2452 2453 void VBoxVMSettingsHD::onRowInserted (const QModelIndex &aParent, int aPosition)2453 void UIMachineSettingsStorage::onRowInserted (const QModelIndex &aParent, int aPosition) 2454 2454 { 2455 2455 QModelIndex index = mStorageModel->index (aPosition, 0, aParent); … … 2491 2491 } 2492 2492 2493 void VBoxVMSettingsHD::onRowRemoved()2493 void UIMachineSettingsStorage::onRowRemoved() 2494 2494 { 2495 2495 if (mStorageModel->rowCount (mStorageModel->root()) == 0) … … 2500 2500 } 2501 2501 2502 void VBoxVMSettingsHD::onCurrentItemChanged()2502 void UIMachineSettingsStorage::onCurrentItemChanged() 2503 2503 { 2504 2504 updateActionsState(); … … 2506 2506 } 2507 2507 2508 void VBoxVMSettingsHD::onContextMenuRequested (const QPoint &aPosition)2508 void UIMachineSettingsStorage::onContextMenuRequested (const QPoint &aPosition) 2509 2509 { 2510 2510 QModelIndex index = mTwStorageTree->indexAt (aPosition); … … 2549 2549 } 2550 2550 2551 void VBoxVMSettingsHD::onDrawItemBranches (QPainter *aPainter, const QRect &aRect, const QModelIndex &aIndex)2551 void UIMachineSettingsStorage::onDrawItemBranches (QPainter *aPainter, const QRect &aRect, const QModelIndex &aIndex) 2552 2552 { 2553 2553 if (!aIndex.parent().isValid() || !aIndex.parent().parent().isValid()) return; … … 2570 2570 } 2571 2571 2572 void VBoxVMSettingsHD::onMouseMoved (QMouseEvent *aEvent)2572 void UIMachineSettingsStorage::onMouseMoved (QMouseEvent *aEvent) 2573 2573 { 2574 2574 QModelIndex index = mTwStorageTree->indexAt (aEvent->pos()); … … 2657 2657 } 2658 2658 2659 void VBoxVMSettingsHD::onMouseClicked (QMouseEvent *aEvent)2659 void UIMachineSettingsStorage::onMouseClicked (QMouseEvent *aEvent) 2660 2660 { 2661 2661 QModelIndex index = mTwStorageTree->indexAt (aEvent->pos()); … … 2718 2718 } 2719 2719 2720 void VBoxVMSettingsHD::addControllerWrapper (const QString &aName, KStorageBus aBus, KStorageControllerType aType)2720 void UIMachineSettingsStorage::addControllerWrapper (const QString &aName, KStorageBus aBus, KStorageControllerType aType) 2721 2721 { 2722 2722 QModelIndex index = mTwStorageTree->currentIndex(); … … 2746 2746 } 2747 2747 2748 void VBoxVMSettingsHD::addAttachmentWrapper (KDeviceType aDevice)2748 void UIMachineSettingsStorage::addAttachmentWrapper (KDeviceType aDevice) 2749 2749 { 2750 2750 QModelIndex index = mTwStorageTree->currentIndex(); … … 2758 2758 } 2759 2759 2760 QString VBoxVMSettingsHD::getWithNewHDWizard()2760 QString UIMachineSettingsStorage::getWithNewHDWizard() 2761 2761 { 2762 2762 /* Run New HD Wizard */ … … 2772 2772 } 2773 2773 2774 void VBoxVMSettingsHD::updateAdditionalObjects (KDeviceType aType)2774 void UIMachineSettingsStorage::updateAdditionalObjects (KDeviceType aType) 2775 2775 { 2776 2776 mCbShowDiffs->setVisible (aType == KDeviceType_HardDisk); … … 2790 2790 } 2791 2791 2792 QString VBoxVMSettingsHD::generateUniqueName (const QString &aTemplate) const2792 QString UIMachineSettingsStorage::generateUniqueName (const QString &aTemplate) const 2793 2793 { 2794 2794 int maxNumber = 0; … … 2809 2809 } 2810 2810 2811 uint32_t VBoxVMSettingsHD::deviceCount (KDeviceType aType) const2811 uint32_t UIMachineSettingsStorage::deviceCount (KDeviceType aType) const 2812 2812 { 2813 2813 uint32_t cDevices = 0; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsHDclass declaration4 * UIMachineSettingsStorage class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsHD_h__20 #define __ VBoxVMSettingsHD_h__19 #ifndef __UIMachineSettingsStorage_h__ 20 #define __UIMachineSettingsStorage_h__ 21 21 22 22 /* Global includes */ … … 33 33 /* Local includes */ 34 34 #include "UISettingsPage.h" 35 #include " VBoxVMSettingsHD.gen.h"35 #include "UIMachineSettingsStorage.gen.h" 36 36 #include "COMDefs.h" 37 37 … … 558 558 559 559 /* Machine settings / Storage page: */ 560 class VBoxVMSettingsHD: public UISettingsPageMachine,561 public Ui:: VBoxVMSettingsHD560 class UIMachineSettingsStorage : public UISettingsPageMachine, 561 public Ui::UIMachineSettingsStorage 562 562 { 563 563 Q_OBJECT; … … 565 565 public: 566 566 567 VBoxVMSettingsHD();567 UIMachineSettingsStorage(); 568 568 569 569 signals: … … 671 671 }; 672 672 673 #endif // __ VBoxVMSettingsHD_h__674 673 #endif // __UIMachineSettingsStorage_h__ 674 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsHD</class>16 <widget class="QWidget" name=" VBoxVMSettingsHD" >15 <class>UIMachineSettingsStorage</class> 16 <widget class="QWidget" name="UIMachineSettingsStorage" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsSystem class implementation5 * UIMachineSettingsSystem class implementation 6 6 */ 7 7 … … 22 22 #include "UIIconPool.h" 23 23 #include "VBoxGlobal.h" 24 #include " VBoxVMSettingsSystem.h"24 #include "UIMachineSettingsSystem.h" 25 25 26 26 /* Global includes */ … … 30 30 #define ITEM_TYPE_ROLE Qt::UserRole + 1 31 31 32 VBoxVMSettingsSystem::VBoxVMSettingsSystem()32 UIMachineSettingsSystem::UIMachineSettingsSystem() 33 33 : mValidator(0) 34 34 , mMinGuestCPU(0), mMaxGuestCPU(0) 35 35 { 36 36 /* Apply UI decorations */ 37 Ui:: VBoxVMSettingsSystem::setupUi (this);37 Ui::UIMachineSettingsSystem::setupUi (this); 38 38 39 39 /* Setup constants */ … … 145 145 } 146 146 147 bool VBoxVMSettingsSystem::isHWVirtExEnabled() const147 bool UIMachineSettingsSystem::isHWVirtExEnabled() const 148 148 { 149 149 return mCbVirt->isChecked(); 150 150 } 151 151 152 int VBoxVMSettingsSystem::cpuCount() const152 int UIMachineSettingsSystem::cpuCount() const 153 153 { 154 154 return mSlCPU->value(); 155 155 } 156 156 157 bool VBoxVMSettingsSystem::isHIDEnabled() const157 bool UIMachineSettingsSystem::isHIDEnabled() const 158 158 { 159 159 return mCbUseAbsHID->isChecked(); … … 162 162 /* Load data to cashe from corresponding external object(s), 163 163 * this task COULD be performed in other than GUI thread: */ 164 void VBoxVMSettingsSystem::loadToCacheFrom(QVariant &data)164 void UIMachineSettingsSystem::loadToCacheFrom(QVariant &data) 165 165 { 166 166 /* Fetch data to machine: */ … … 213 213 /* Load data to corresponding widgets from cache, 214 214 * this task SHOULD be performed in GUI thread only: */ 215 void VBoxVMSettingsSystem::getFromCache()215 void UIMachineSettingsSystem::getFromCache() 216 216 { 217 217 /* Apply internal variables data to QWidget(s): */ … … 251 251 /* Save data from corresponding widgets to cache, 252 252 * this task SHOULD be performed in GUI thread only: */ 253 void VBoxVMSettingsSystem::putToCache()253 void UIMachineSettingsSystem::putToCache() 254 254 { 255 255 /* Gather internal variables data from QWidget(s): */ … … 278 278 /* Save data from cache to corresponding external object(s), 279 279 * this task COULD be performed in other than GUI thread: */ 280 void VBoxVMSettingsSystem::saveFromCacheTo(QVariant &data)280 void UIMachineSettingsSystem::saveFromCacheTo(QVariant &data) 281 281 { 282 282 /* Fetch data to machine: */ … … 312 312 } 313 313 314 void VBoxVMSettingsSystem::setValidator (QIWidgetValidator *aVal)314 void UIMachineSettingsSystem::setValidator (QIWidgetValidator *aVal) 315 315 { 316 316 mValidator = aVal; … … 321 321 } 322 322 323 bool VBoxVMSettingsSystem::revalidate (QString &aWarning, QString & /* aTitle */)323 bool UIMachineSettingsSystem::revalidate (QString &aWarning, QString & /* aTitle */) 324 324 { 325 325 ulong fullSize = vboxGlobal().virtualBox().GetHost().GetMemorySize(); … … 403 403 } 404 404 405 void VBoxVMSettingsSystem::setOrderAfter (QWidget *aWidget)405 void UIMachineSettingsSystem::setOrderAfter (QWidget *aWidget) 406 406 { 407 407 /* Motherboard tab-order */ … … 427 427 } 428 428 429 void VBoxVMSettingsSystem::retranslateUi()429 void UIMachineSettingsSystem::retranslateUi() 430 430 { 431 431 /* Translate uic generated strings */ 432 Ui:: VBoxVMSettingsSystem::retranslateUi (this);432 Ui::UIMachineSettingsSystem::retranslateUi (this); 433 433 434 434 /* Adjust the boot order tree widget */ … … 459 459 } 460 460 461 void VBoxVMSettingsSystem::valueChangedRAM (int aVal)461 void UIMachineSettingsSystem::valueChangedRAM (int aVal) 462 462 { 463 463 mLeMemory->setText (QString().setNum (aVal)); 464 464 } 465 465 466 void VBoxVMSettingsSystem::textChangedRAM (const QString &aText)466 void UIMachineSettingsSystem::textChangedRAM (const QString &aText) 467 467 { 468 468 mSlMemory->setValue (aText.toInt()); 469 469 } 470 470 471 void VBoxVMSettingsSystem::moveBootItemUp()471 void UIMachineSettingsSystem::moveBootItemUp() 472 472 { 473 473 QTreeWidgetItem *item = mTwBootOrder->currentItem(); … … 486 486 } 487 487 488 void VBoxVMSettingsSystem::moveBootItemDown()488 void UIMachineSettingsSystem::moveBootItemDown() 489 489 { 490 490 QTreeWidgetItem *item = mTwBootOrder->currentItem(); … … 503 503 } 504 504 505 void VBoxVMSettingsSystem::onCurrentBootItemChanged (QTreeWidgetItem *aItem,505 void UIMachineSettingsSystem::onCurrentBootItemChanged (QTreeWidgetItem *aItem, 506 506 QTreeWidgetItem *) 507 507 { … … 515 515 } 516 516 517 void VBoxVMSettingsSystem::adjustBootOrderTWSize()517 void UIMachineSettingsSystem::adjustBootOrderTWSize() 518 518 { 519 519 /* Calculate the optimal size of the tree widget & set it as fixed … … 544 544 } 545 545 546 void VBoxVMSettingsSystem::valueChangedCPU (int aVal)546 void UIMachineSettingsSystem::valueChangedCPU (int aVal) 547 547 { 548 548 mLeCPU->setText (QString().setNum (aVal)); 549 549 } 550 550 551 void VBoxVMSettingsSystem::textChangedCPU (const QString &aText)551 void UIMachineSettingsSystem::textChangedCPU (const QString &aText) 552 552 { 553 553 mSlCPU->setValue (aText.toInt()); 554 554 } 555 555 556 bool VBoxVMSettingsSystem::eventFilter (QObject *aObject, QEvent *aEvent)556 bool UIMachineSettingsSystem::eventFilter (QObject *aObject, QEvent *aEvent) 557 557 { 558 558 if (!aObject->isWidgetType()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsSystem class declaration4 * UIMachineSettingsSystem class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsSystem_h__20 #define __ VBoxVMSettingsSystem_h__19 #ifndef __UIMachineSettingsSystem_h__ 20 #define __UIMachineSettingsSystem_h__ 21 21 22 22 #include "COMDefs.h" 23 23 #include "UISettingsPage.h" 24 #include " VBoxVMSettingsSystem.gen.h"24 #include "UIMachineSettingsSystem.gen.h" 25 25 26 26 /* Machine settings / System page / Boot item: */ … … 50 50 51 51 /* Machine settings / System page: */ 52 class VBoxVMSettingsSystem : public UISettingsPageMachine,53 public Ui:: VBoxVMSettingsSystem52 class UIMachineSettingsSystem : public UISettingsPageMachine, 53 public Ui::UIMachineSettingsSystem 54 54 { 55 55 Q_OBJECT; … … 57 57 public: 58 58 59 VBoxVMSettingsSystem();59 UIMachineSettingsSystem(); 60 60 61 61 bool isHWVirtExEnabled() const; … … 120 120 }; 121 121 122 #endif // __ VBoxVMSettingsSystem_h__122 #endif // __UIMachineSettingsSystem_h__ 123 123 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.ui
r33879 r33882 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 </comment> 16 <class> VBoxVMSettingsSystem</class>17 <widget class="QWidget" name=" VBoxVMSettingsSystem">16 <class>UIMachineSettingsSystem</class> 17 <widget class="QWidget" name="UIMachineSettingsSystem"> 18 18 <property name="geometry"> 19 19 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsUSB class implementation5 * UIMachineSettingsUSB class implementation 6 6 */ 7 7 … … 23 23 #include "VBoxGlobal.h" 24 24 #include "UIToolBar.h" 25 #include " VBoxVMSettingsUSB.h"26 #include " VBoxVMSettingsUSBFilterDetails.h"25 #include "UIMachineSettingsUSB.h" 26 #include "UIMachineSettingsUSBFilterDetails.h" 27 27 28 28 /* Global includes */ 29 29 #include <QHeaderView> 30 30 31 VBoxVMSettingsUSB::VBoxVMSettingsUSB(UISettingsPageType type)31 UIMachineSettingsUSB::UIMachineSettingsUSB(UISettingsPageType type) 32 32 : UISettingsPage(type) 33 33 , mValidator(0) … … 38 38 { 39 39 /* Apply UI decorations */ 40 Ui:: VBoxVMSettingsUSB::setupUi (this);40 Ui::UIMachineSettingsUSB::setupUi (this); 41 41 42 42 /* Prepare actions */ … … 135 135 } 136 136 137 bool VBoxVMSettingsUSB::isOHCIEnabled() const137 bool UIMachineSettingsUSB::isOHCIEnabled() const 138 138 { 139 139 return mGbUSB->isChecked(); … … 142 142 /* Load data to cashe from corresponding external object(s), 143 143 * this task COULD be performed in other than GUI thread: */ 144 void VBoxVMSettingsUSB::loadToCacheFrom(QVariant &data)144 void UIMachineSettingsUSB::loadToCacheFrom(QVariant &data) 145 145 { 146 146 /* Fetch data to properties & settings or machine: */ … … 228 228 /* Load data to corresponding widgets from cache, 229 229 * this task SHOULD be performed in GUI thread only: */ 230 void VBoxVMSettingsUSB::getFromCache()230 void UIMachineSettingsUSB::getFromCache() 231 231 { 232 232 /* Depending on page type: */ … … 266 266 /* Save data from corresponding widgets to cache, 267 267 * this task SHOULD be performed in GUI thread only: */ 268 void VBoxVMSettingsUSB::putToCache()268 void UIMachineSettingsUSB::putToCache() 269 269 { 270 270 /* Depending on page type: */ … … 285 285 /* Save data from cache to corresponding external object(s), 286 286 * this task COULD be performed in other than GUI thread: */ 287 void VBoxVMSettingsUSB::saveFromCacheTo(QVariant &data)287 void UIMachineSettingsUSB::saveFromCacheTo(QVariant &data) 288 288 { 289 289 /* Fetch data to properties & settings or machine: */ … … 367 367 } 368 368 369 void VBoxVMSettingsUSB::setValidator (QIWidgetValidator *aVal)369 void UIMachineSettingsUSB::setValidator (QIWidgetValidator *aVal) 370 370 { 371 371 mValidator = aVal; … … 373 373 } 374 374 375 void VBoxVMSettingsUSB::setOrderAfter (QWidget *aWidget)375 void UIMachineSettingsUSB::setOrderAfter (QWidget *aWidget) 376 376 { 377 377 setTabOrder (aWidget, mGbUSB); … … 380 380 } 381 381 382 void VBoxVMSettingsUSB::retranslateUi()382 void UIMachineSettingsUSB::retranslateUi() 383 383 { 384 384 /* Translate uic generated strings */ 385 Ui:: VBoxVMSettingsUSB::retranslateUi (this);385 Ui::UIMachineSettingsUSB::retranslateUi (this); 386 386 387 387 mNewAction->setText (tr ("&Add Empty Filter")); … … 420 420 } 421 421 422 void VBoxVMSettingsUSB::usbAdapterToggled (bool aOn)422 void UIMachineSettingsUSB::usbAdapterToggled (bool aOn) 423 423 { 424 424 mGbUSBFilters->setEnabled (aOn); 425 425 } 426 426 427 void VBoxVMSettingsUSB::currentChanged (QTreeWidgetItem *aItem,427 void UIMachineSettingsUSB::currentChanged (QTreeWidgetItem *aItem, 428 428 QTreeWidgetItem *) 429 429 { … … 446 446 } 447 447 448 void VBoxVMSettingsUSB::newClicked()448 void UIMachineSettingsUSB::newClicked() 449 449 { 450 450 /* Search for the max available filter index */ … … 486 486 } 487 487 488 void VBoxVMSettingsUSB::addClicked()488 void UIMachineSettingsUSB::addClicked() 489 489 { 490 490 mUSBDevicesMenu->exec (QCursor::pos()); 491 491 } 492 492 493 void VBoxVMSettingsUSB::addConfirmed (QAction *aAction)493 void UIMachineSettingsUSB::addConfirmed (QAction *aAction) 494 494 { 495 495 /* Get USB device: */ … … 541 541 } 542 542 543 void VBoxVMSettingsUSB::edtClicked()543 void UIMachineSettingsUSB::edtClicked() 544 544 { 545 545 /* Get current USB filter item: */ … … 549 549 550 550 /* Configure USB filter details dialog: */ 551 VBoxVMSettingsUSBFilterDetails dlgFilterDetails(type(), this);551 UIMachineSettingsUSBFilterDetails dlgFilterDetails(type(), this); 552 552 dlgFilterDetails.mLeName->setText(data.m_strName); 553 553 dlgFilterDetails.mLeVendorID->setText(data.m_strVendorId); … … 624 624 } 625 625 626 void VBoxVMSettingsUSB::delClicked()626 void UIMachineSettingsUSB::delClicked() 627 627 { 628 628 /* Get current USB filter item: */ … … 649 649 } 650 650 651 void VBoxVMSettingsUSB::mupClicked()651 void UIMachineSettingsUSB::mupClicked() 652 652 { 653 653 QTreeWidgetItem *item = mTwFilters->currentItem(); … … 664 664 } 665 665 666 void VBoxVMSettingsUSB::mdnClicked()666 void UIMachineSettingsUSB::mdnClicked() 667 667 { 668 668 QTreeWidgetItem *item = mTwFilters->currentItem(); … … 679 679 } 680 680 681 void VBoxVMSettingsUSB::showContextMenu (const QPoint &aPos)681 void UIMachineSettingsUSB::showContextMenu (const QPoint &aPos) 682 682 { 683 683 mMenu->exec (mTwFilters->mapToGlobal (aPos)); 684 684 } 685 685 686 void VBoxVMSettingsUSB::sltUpdateActivityState(QTreeWidgetItem *pChangedItem)686 void UIMachineSettingsUSB::sltUpdateActivityState(QTreeWidgetItem *pChangedItem) 687 687 { 688 688 /* Check changed USB filter item: */ … … 696 696 } 697 697 698 void VBoxVMSettingsUSB::markSettingsChanged()698 void UIMachineSettingsUSB::markSettingsChanged() 699 699 { 700 700 mUSBFilterListModified = true; 701 701 } 702 702 703 void VBoxVMSettingsUSB::addUSBFilter(const UIUSBFilterData &data, bool fIsNew)703 void UIMachineSettingsUSB::addUSBFilter(const UIUSBFilterData &data, bool fIsNew) 704 704 { 705 705 /* Append tree-widget with item: */ … … 716 716 717 717 /* Fetch data to m_properties & m_settings or m_machine: */ 718 void VBoxVMSettingsUSB::fetchData(const QVariant &data)718 void UIMachineSettingsUSB::fetchData(const QVariant &data) 719 719 { 720 720 switch (type()) … … 737 737 738 738 /* Upload m_properties & m_settings or m_machine to data: */ 739 void VBoxVMSettingsUSB::uploadData(QVariant &data) const739 void UIMachineSettingsUSB::uploadData(QVariant &data) const 740 740 { 741 741 switch (type()) … … 756 756 } 757 757 758 /* static */ QString VBoxVMSettingsUSB::toolTipFor(const UIUSBFilterData &data)758 /* static */ QString UIMachineSettingsUSB::toolTipFor(const UIUSBFilterData &data) 759 759 { 760 760 /* Prepare tool-tip: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsUSB class declaration4 * UIMachineSettingsUSB class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsUSB_h__20 #define __ VBoxVMSettingsUSB_h__19 #ifndef __UIMachineSettingsUSB_h__ 20 #define __UIMachineSettingsUSB_h__ 21 21 22 22 #include "UISettingsPage.h" 23 #include " VBoxVMSettingsUSB.gen.h"23 #include "UIMachineSettingsUSB.gen.h" 24 24 #include "COMDefs.h" 25 25 … … 56 56 57 57 /* Common settings / USB page: */ 58 class VBoxVMSettingsUSB : public UISettingsPage,59 public Ui:: VBoxVMSettingsUSB58 class UIMachineSettingsUSB : public UISettingsPage, 59 public Ui::UIMachineSettingsUSB 60 60 { 61 61 Q_OBJECT; … … 70 70 }; 71 71 72 VBoxVMSettingsUSB(UISettingsPageType type);72 UIMachineSettingsUSB(UISettingsPageType type); 73 73 74 74 bool isOHCIEnabled() const; … … 150 150 }; 151 151 152 #endif // __ VBoxVMSettingsUSB_h__152 #endif // __UIMachineSettingsUSB_h__ 153 153 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsUSB</class>16 <widget class="QWidget" name=" VBoxVMSettingsUSB" >15 <class>UIMachineSettingsUSB</class> 16 <widget class="QWidget" name="UIMachineSettingsUSB" > 17 17 <property name="geometry" > 18 18 <rect> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp
r33879 r33882 3 3 * 4 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * VBoxVMSettingsUSBFilterDetails class implementation5 * UIMachineSettingsUSBFilterDetails class implementation 6 6 */ 7 7 … … 18 18 */ 19 19 20 #include " VBoxVMSettingsUSBFilterDetails.h"20 #include "UIMachineSettingsUSBFilterDetails.h" 21 21 #include "VBoxGlobal.h" 22 22 23 VBoxVMSettingsUSBFilterDetails::VBoxVMSettingsUSBFilterDetails(UISettingsPageType type, QWidget *pParent /* = 0 */)23 UIMachineSettingsUSBFilterDetails::UIMachineSettingsUSBFilterDetails(UISettingsPageType type, QWidget *pParent /* = 0 */) 24 24 : QIWithRetranslateUI2<QIDialog>(pParent, Qt::Sheet) 25 25 , m_type(type) 26 26 { 27 27 /* Apply UI decorations */ 28 Ui:: VBoxVMSettingsUSBFilterDetails::setupUi (this);28 Ui::UIMachineSettingsUSBFilterDetails::setupUi (this); 29 29 30 mCbRemote->insertItem ( VBoxVMSettingsUSB::ModeAny, ""); /* Any */31 mCbRemote->insertItem ( VBoxVMSettingsUSB::ModeOn, ""); /* Yes */32 mCbRemote->insertItem ( VBoxVMSettingsUSB::ModeOff, ""); /* No */30 mCbRemote->insertItem (UIMachineSettingsUSB::ModeAny, ""); /* Any */ 31 mCbRemote->insertItem (UIMachineSettingsUSB::ModeOn, ""); /* Yes */ 32 mCbRemote->insertItem (UIMachineSettingsUSB::ModeOff, ""); /* No */ 33 33 mLbRemote->setHidden (m_type != UISettingsPageType_Machine); 34 34 mCbRemote->setHidden (m_type != UISettingsPageType_Machine); … … 52 52 } 53 53 54 void VBoxVMSettingsUSBFilterDetails::retranslateUi()54 void UIMachineSettingsUSBFilterDetails::retranslateUi() 55 55 { 56 56 /* Translate uic generated strings */ 57 Ui:: VBoxVMSettingsUSBFilterDetails::retranslateUi (this);57 Ui::UIMachineSettingsUSBFilterDetails::retranslateUi (this); 58 58 59 mCbRemote->setItemText ( VBoxVMSettingsUSB::ModeAny, tr ("Any", "remote"));60 mCbRemote->setItemText ( VBoxVMSettingsUSB::ModeOn, tr ("Yes", "remote"));61 mCbRemote->setItemText ( VBoxVMSettingsUSB::ModeOff, tr ("No", "remote"));59 mCbRemote->setItemText (UIMachineSettingsUSB::ModeAny, tr ("Any", "remote")); 60 mCbRemote->setItemText (UIMachineSettingsUSB::ModeOn, tr ("Yes", "remote")); 61 mCbRemote->setItemText (UIMachineSettingsUSB::ModeOff, tr ("No", "remote")); 62 62 63 63 mCbAction->setItemText (0, -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSBFilterDetails.h
r33879 r33882 2 2 * 3 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * VBoxVMSettingsUSBFilterDetails class declaration4 * UIMachineSettingsUSBFilterDetails class declaration 5 5 */ 6 6 … … 17 17 */ 18 18 19 #ifndef __ VBoxVMSettingsUSBFilterDetails_h__20 #define __ VBoxVMSettingsUSBFilterDetails_h__19 #ifndef __UIMachineSettingsUSBFilterDetails_h__ 20 #define __UIMachineSettingsUSBFilterDetails_h__ 21 21 22 #include " VBoxVMSettingsUSBFilterDetails.gen.h"22 #include "UIMachineSettingsUSBFilterDetails.gen.h" 23 23 #include "QIWithRetranslateUI.h" 24 24 #include "QIDialog.h" 25 #include " VBoxVMSettingsUSB.h"25 #include "UIMachineSettingsUSB.h" 26 26 27 class VBoxVMSettingsUSBFilterDetails : public QIWithRetranslateUI2<QIDialog>,28 public Ui:: VBoxVMSettingsUSBFilterDetails27 class UIMachineSettingsUSBFilterDetails : public QIWithRetranslateUI2<QIDialog>, 28 public Ui::UIMachineSettingsUSBFilterDetails 29 29 { 30 30 Q_OBJECT; … … 32 32 public: 33 33 34 VBoxVMSettingsUSBFilterDetails(UISettingsPageType type, QWidget *pParent = 0);34 UIMachineSettingsUSBFilterDetails(UISettingsPageType type, QWidget *pParent = 0); 35 35 36 36 protected: … … 44 44 }; 45 45 46 #endif /* __ VBoxVMSettingsUSBFilterDetails_h__ */46 #endif /* __UIMachineSettingsUSBFilterDetails_h__ */ 47 47 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSBFilterDetails.ui
r33879 r33882 13 13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 14 14 </comment> 15 <class> VBoxVMSettingsUSBFilterDetails</class>16 <widget class="QDialog" name=" VBoxVMSettingsUSBFilterDetails" >15 <class>UIMachineSettingsUSBFilterDetails</class> 16 <widget class="QDialog" name="UIMachineSettingsUSBFilterDetails" > 17 17 <property name="geometry" > 18 18 <rect> … … 279 279 <sender>mButtonBox</sender> 280 280 <signal>accepted()</signal> 281 <receiver> VBoxVMSettingsUSBFilterDetails</receiver>281 <receiver>UIMachineSettingsUSBFilterDetails</receiver> 282 282 <slot>accept()</slot> 283 283 <hints> … … 295 295 <sender>mButtonBox</sender> 296 296 <signal>rejected()</signal> 297 <receiver> VBoxVMSettingsUSBFilterDetails</receiver>297 <receiver>UIMachineSettingsUSBFilterDetails</receiver> 298 298 <slot>reject()</slot> 299 299 <hints> -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzd.cpp
r33712 r33882 23 23 #include "VBoxGlobal.h" 24 24 #include "VBoxProblemReporter.h" 25 #include "VBoxVMSettingsHD.h"26 25 27 26 UIFirstRunWzd::UIFirstRunWzd(QWidget *pParent, const CMachine &machine) : QIWizard(pParent) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r33712 r33882 27 27 #include "QIFileDialog.h" 28 28 #include "VBoxProblemReporter.h" 29 #include " VBoxVMSettingsHD.h"29 #include "UIMachineSettingsStorage.h" 30 30 31 31 /* Globals */ … … 878 878 case KStorageBus_IDE: 879 879 { 880 strControllerName = VBoxVMSettingsHD::tr("IDE Controller");880 strControllerName = UIMachineSettingsStorage::tr("IDE Controller"); 881 881 ++m_iIDECount; 882 882 if (m_iIDECount > 1) … … 886 886 case KStorageBus_SATA: 887 887 { 888 strControllerName = VBoxVMSettingsHD::tr("SATA Controller");888 strControllerName = UIMachineSettingsStorage::tr("SATA Controller"); 889 889 ++m_iSATACount; 890 890 if (m_iSATACount > 1) … … 894 894 case KStorageBus_SCSI: 895 895 { 896 strControllerName = VBoxVMSettingsHD::tr("SCSI Controller");896 strControllerName = UIMachineSettingsStorage::tr("SCSI Controller"); 897 897 ++m_iSCSICount; 898 898 if (m_iSCSICount > 1) … … 902 902 case KStorageBus_Floppy: 903 903 { 904 strControllerName = VBoxVMSettingsHD::tr("Floppy Controller");904 strControllerName = UIMachineSettingsStorage::tr("Floppy Controller"); 905 905 ++m_iFloppyCount; 906 906 if (m_iFloppyCount > 1) … … 910 910 case KStorageBus_SAS: 911 911 { 912 strControllerName = VBoxVMSettingsHD::tr("SAS Controller");912 strControllerName = UIMachineSettingsStorage::tr("SAS Controller"); 913 913 ++m_iSASCount; 914 914 if (m_iSASCount > 1)
Note:
See TracChangeset
for help on using the changeset viewer.