Changeset 49596 in vbox
- Timestamp:
- Nov 21, 2013 10:11:36 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r49158 r49596 123 123 VirtualBox_DEFS += VBOX_GUI_USE_QGL 124 124 endif 125 ifdef VBOX_WITH_LIBCURL 126 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER 127 VBOX_GUI_WITH_NETWORK_MANAGER := 1 128 endif 125 129 ifdef VBOX_BLEEDING_EDGE 126 130 VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \ … … 141 145 ./src/extensions/graphics \ 142 146 ./src/globals \ 143 ./src/net \144 147 ./src/medium \ 145 148 ./src/platform \ … … 169 172 ./src/wizards/firstrun 170 173 174 ifdef VBOX_GUI_WITH_NETWORK_MANAGER 175 VBOX_GUI_INC_DIRS += \ 176 ./src/net 177 endif 178 171 179 VirtualBox_INCS = \ 172 180 $(VBOX_GUI_INC_DIRS) \ … … 279 287 src/globals/VBoxGlobal.h \ 280 288 src/globals/VBoxUtils.h \ 281 src/net/UINetworkManager.h \282 src/net/UINetworkManagerDialog.h \283 src/net/UINetworkManagerIndicator.h \284 src/net/UINetworkRequest.h \285 src/net/UINetworkRequestWidget.h \286 src/net/UINetworkReply.h \287 src/net/UINetworkCustomer.h \288 src/net/UIUpdateManager.h \289 src/net/UIDownloader.h \290 src/net/UIDownloaderAdditions.h \291 src/net/UIDownloaderExtensionPack.h \292 src/net/UIDownloaderUserManual.h \293 289 src/medium/UIMediumEnumerator.h \ 294 290 src/medium/UIMediumManager.h \ … … 358 354 src/settings/global/UIGlobalSettingsNetworkDetailsHost.h \ 359 355 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \ 360 src/settings/global/UIGlobalSettingsProxy.h \361 src/settings/global/UIGlobalSettingsUpdate.h \362 356 src/settings/machine/UIMachineSettingsAudio.h \ 363 357 src/settings/machine/UIMachineSettingsDisplay.h \ … … 438 432 src/wizards/firstrun/UIWizardFirstRunPageBasic.h 439 433 434 ifdef VBOX_GUI_WITH_NETWORK_MANAGER 435 VirtualBox_QT_MOCHDRS += \ 436 src/net/UINetworkManager.h \ 437 src/net/UINetworkManagerDialog.h \ 438 src/net/UINetworkManagerIndicator.h \ 439 src/net/UINetworkRequest.h \ 440 src/net/UINetworkRequestWidget.h \ 441 src/net/UINetworkReply.h \ 442 src/net/UINetworkCustomer.h \ 443 src/net/UIUpdateManager.h \ 444 src/net/UIDownloader.h \ 445 src/net/UIDownloaderAdditions.h \ 446 src/net/UIDownloaderExtensionPack.h \ 447 src/net/UIDownloaderUserManual.h \ 448 src/settings/global/UIGlobalSettingsProxy.h \ 449 src/settings/global/UIGlobalSettingsUpdate.h 450 endif 451 440 452 VirtualBox_QT_MOCHDRS.darwin += \ 441 453 src/platform/darwin/UIWindowMenuManager.h … … 451 463 src/medium/UIMediumEnumerator.cpp \ 452 464 src/medium/UIMediumManager.cpp \ 453 src/net/UINetworkReply.cpp \454 src/net/UIUpdateManager.cpp \455 465 src/runtime/UIActionPoolRuntime.cpp \ 456 466 src/runtime/UIIndicatorsPool.cpp \ … … 465 475 src/widgets/UIPortForwardingTable.cpp \ 466 476 src/wizards/importappliance/UIWizardImportApp.cpp 477 478 ifdef VBOX_GUI_WITH_NETWORK_MANAGER 479 VirtualBox_QT_MOCSRCS += \ 480 src/net/UINetworkReply.cpp \ 481 src/net/UIUpdateManager.cpp 482 endif 467 483 468 484 VirtualBox_QT_MOCSRCS.darwin += \ … … 533 549 src/medium/UIMediumEnumerator.cpp \ 534 550 src/medium/UIMediumManager.cpp \ 535 src/net/UINetworkManager.cpp \536 src/net/UINetworkManagerDialog.cpp \537 src/net/UINetworkManagerIndicator.cpp \538 src/net/UINetworkRequest.cpp \539 src/net/UINetworkRequestWidget.cpp \540 src/net/UINetworkReply.cpp \541 src/net/UINetworkCustomer.cpp \542 src/net/UIDownloader.cpp \543 src/net/UIDownloaderAdditions.cpp \544 src/net/UIDownloaderExtensionPack.cpp \545 src/net/UIDownloaderUserManual.cpp \546 src/net/UIUpdateDefs.cpp \547 src/net/UIUpdateManager.cpp \548 551 src/runtime/UIActionPoolRuntime.cpp \ 549 552 src/runtime/UIConsoleEventHandler.cpp \ … … 614 617 src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp \ 615 618 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \ 616 src/settings/global/UIGlobalSettingsProxy.cpp \617 src/settings/global/UIGlobalSettingsUpdate.cpp \618 619 src/settings/machine/UIMachineSettingsAudio.cpp \ 619 620 src/settings/machine/UIMachineSettingsDisplay.cpp \ … … 695 696 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp 696 697 698 ifdef VBOX_GUI_WITH_NETWORK_MANAGER 699 VirtualBox_SOURCES += \ 700 src/net/UINetworkManager.cpp \ 701 src/net/UINetworkManagerDialog.cpp \ 702 src/net/UINetworkManagerIndicator.cpp \ 703 src/net/UINetworkRequest.cpp \ 704 src/net/UINetworkRequestWidget.cpp \ 705 src/net/UINetworkReply.cpp \ 706 src/net/UINetworkCustomer.cpp \ 707 src/net/UIDownloader.cpp \ 708 src/net/UIDownloaderAdditions.cpp \ 709 src/net/UIDownloaderExtensionPack.cpp \ 710 src/net/UIDownloaderUserManual.cpp \ 711 src/net/UIUpdateDefs.cpp \ 712 src/net/UIUpdateManager.cpp \ 713 src/settings/global/UIGlobalSettingsProxy.cpp \ 714 src/settings/global/UIGlobalSettingsUpdate.cpp 715 endif 716 697 717 VirtualBox_SOURCES.darwin += \ 698 718 src/platform/darwin/UIAbstractDockIconPreview.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r48983 r49596 517 517 case GlobalSettingsPageType_General: strResult = "General"; break; 518 518 case GlobalSettingsPageType_Input: strResult = "Input"; break; 519 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 519 520 case GlobalSettingsPageType_Update: strResult = "Update"; break; 521 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 520 522 case GlobalSettingsPageType_Language: strResult = "Language"; break; 521 523 case GlobalSettingsPageType_Display: strResult = "Display"; break; 522 524 case GlobalSettingsPageType_Network: strResult = "Network"; break; 523 525 case GlobalSettingsPageType_Extensions: strResult = "Extensions"; break; 526 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 524 527 case GlobalSettingsPageType_Proxy: strResult = "Proxy"; break; 528 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 525 529 default: 526 530 { … … 540 544 keys << "General"; values << GlobalSettingsPageType_General; 541 545 keys << "Input"; values << GlobalSettingsPageType_Input; 546 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 542 547 keys << "Update"; values << GlobalSettingsPageType_Update; 548 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 543 549 keys << "Language"; values << GlobalSettingsPageType_Language; 544 550 keys << "Display"; values << GlobalSettingsPageType_Display; 545 551 keys << "Network"; values << GlobalSettingsPageType_Network; 546 552 keys << "Extensions"; values << GlobalSettingsPageType_Extensions; 553 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 547 554 keys << "Proxy"; values << GlobalSettingsPageType_Proxy; 555 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 548 556 /* Invalid type for unknown words: */ 549 557 if (!keys.contains(strGlobalSettingsPageType, Qt::CaseInsensitive)) … … 560 568 case GlobalSettingsPageType_General: return QPixmap(":/machine_warning_16px.png"); 561 569 case GlobalSettingsPageType_Input: return QPixmap(":/hostkey_warning_16px.png"); 570 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 562 571 case GlobalSettingsPageType_Update: return QPixmap(":/refresh_warning_16px.png"); 572 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 563 573 case GlobalSettingsPageType_Language: return QPixmap(":/site_warning_16px.png"); 564 574 case GlobalSettingsPageType_Display: return QPixmap(":/vrdp_warning_16px.png"); 565 575 case GlobalSettingsPageType_Network: return QPixmap(":/nw_warning_16px.png"); 566 576 case GlobalSettingsPageType_Extensions: return QPixmap(":/extension_pack_warning_16px.png"); 577 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 567 578 case GlobalSettingsPageType_Proxy: return QPixmap(":/proxy_warning_16px.png"); 579 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 568 580 default: AssertMsgFailed(("No pixmap for %d", type)); break; 569 581 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r48577 r49596 432 432 }; 433 433 434 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 434 435 class UIActionSimpleNetworkAccessManager : public UIActionSimple 435 436 { … … 484 485 } 485 486 }; 487 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 486 488 487 489 class UIActionSimpleAbout : public UIActionSimple … … 650 652 m_pool[UIActionIndex_Simple_WebSite] = new UIActionSimpleWebSite(this); 651 653 m_pool[UIActionIndex_Simple_ResetWarnings] = new UIActionSimpleResetWarnings(this); 654 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 652 655 m_pool[UIActionIndex_Simple_NetworkAccessManager] = new UIActionSimpleNetworkAccessManager(this); 653 656 m_pool[UIActionIndex_Simple_CheckForUpdates] = new UIActionSimpleCheckForUpdates(this); 657 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 654 658 m_pool[UIActionIndex_Simple_About] = new UIActionSimpleAbout(this); 655 659 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r44710 r49596 58 58 UIActionIndex_Simple_WebSite, 59 59 UIActionIndex_Simple_ResetWarnings, 60 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 60 61 UIActionIndex_Simple_NetworkAccessManager, 61 62 UIActionIndex_Simple_CheckForUpdates, 63 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 62 64 UIActionIndex_Simple_About, 63 65 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
r47478 r49596 32 32 const char* UIDefs::GUI_RecentListCD = "GUI/RecentListCD"; 33 33 const char* UIDefs::GUI_RecentListFD = "GUI/RecentListFD"; 34 const char* UIDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate";35 34 36 35 /* Selector-window definitions: */ … … 97 96 const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; 98 97 98 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 99 99 /* Update manager definitions: */ 100 const char* UIDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate"; 100 101 const char* UIDefs::GUI_UpdateDate = "GUI/UpdateDate"; 101 102 const char* UIDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount"; 103 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 102 104 103 105 /* Information dialog definitions: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r49505 r49596 101 101 extern const char* GUI_RecentListCD; 102 102 extern const char* GUI_RecentListFD; 103 extern const char* GUI_PreventApplicationUpdate;104 103 105 104 /* Selector-window declarations: */ … … 166 165 extern const char* GUI_InvertMessageOption; 167 166 167 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 168 168 /* Update manager declarations: */ 169 extern const char* GUI_PreventApplicationUpdate; 169 170 extern const char* GUI_UpdateDate; 170 171 extern const char* GUI_UpdateCheckCount; 172 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 171 173 172 174 /* Information dialog declarations: */ … … 300 302 GlobalSettingsPageType_General, 301 303 GlobalSettingsPageType_Input, 304 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 302 305 GlobalSettingsPageType_Update, 306 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 303 307 GlobalSettingsPageType_Language, 304 308 GlobalSettingsPageType_Display, 305 309 GlobalSettingsPageType_Network, 306 310 GlobalSettingsPageType_Extensions, 311 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 307 312 GlobalSettingsPageType_Proxy, 313 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 308 314 GlobalSettingsPageType_Max 309 315 }; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r49333 r49596 35 35 #include "UISelectorWindow.h" 36 36 #include "UIProgressDialog.h" 37 #include "UINetworkManager.h" 38 #include "UINetworkManagerDialog.h" 37 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 38 # include "UINetworkManager.h" 39 # include "UINetworkManagerDialog.h" 40 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 39 41 #include "UIModalWindowManager.h" 40 42 #include "UIMedium.h" … … 1982 1984 } 1983 1985 1986 void UIMessageCenter::cannotMountGuestAdditions(const QString &strMachineName) const 1987 { 1988 alert(0, MessageType_Error, 1989 tr("<p>Could not insert the <b>VirtualBox Guest Additions</b> disk image file into the virtual machine <b>%1</b>, " 1990 "as the machine has no CD/DVD drives. Please add a drive using the storage page of the " 1991 "virtual machine settings window.</p>") 1992 .arg(strMachineName)); 1993 } 1994 1995 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1984 1996 bool UIMessageCenter::confirmCancelingAllNetworkRequests() const 1985 1997 { … … 2053 2065 } 2054 2066 2055 void UIMessageCenter::cannotMountGuestAdditions(const QString &strMachineName) const2056 {2057 alert(0, MessageType_Error,2058 tr("<p>Could not insert the <b>VirtualBox Guest Additions</b> disk image file into the virtual machine <b>%1</b>, "2059 "as the machine has no CD/DVD drives. Please add a drive using the storage page of the "2060 "virtual machine settings window.</p>")2061 .arg(strMachineName));2062 }2063 2064 2067 void UIMessageCenter::cannotUpdateGuestAdditions(const CProgress &progress) const 2065 2068 { … … 2150 2153 tr("Install", "extension pack")); 2151 2154 } 2155 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 2152 2156 2153 2157 bool UIMessageCenter::confirmInstallExtensionPack(const QString &strPackName, const QString &strPackVersion, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r49333 r49596 300 300 void cannotToggleVideoCapture(const CMachine &machine, bool fEnable); 301 301 void remindAboutGuestAdditionsAreNotActive() const; 302 302 void cannotMountGuestAdditions(const QString &strMachineName) const; 303 304 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 303 305 /* API: Network management warnings: */ 304 306 bool confirmCancelingAllNetworkRequests() const; … … 312 314 void cannotSaveGuestAdditions(const QString &strURL, const QString &strTarget) const; 313 315 bool proposeMountGuestAdditions(const QString &strUrl, const QString &strSrc) const; 314 void cannotMountGuestAdditions(const QString &strMachineName) const;315 316 void cannotUpdateGuestAdditions(const CProgress &progress) const; 316 317 bool cannotFindUserManual(const QString &strMissedLocation) const; … … 322 323 void cannotSaveExtensionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo) const; 323 324 bool proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo) const; 325 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 326 327 /* API: Extension-pack warnings: */ 324 328 bool confirmInstallExtensionPack(const QString &strPackName, const QString &strPackVersion, const QString &strPackDescription, QWidget *pParent = 0) const; 325 329 bool confirmReplaceExtensionPack(const QString &strPackName, const QString &strPackVersionNew, const QString &strPackVersionOld, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIModalWindowManager.cpp
r48534 r49596 20 20 /* GUI includes: */ 21 21 #include "UIModalWindowManager.h" 22 #include "UINetworkManagerDialog.h" 23 #include "UINetworkManager.h" 22 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 23 # include "UINetworkManagerDialog.h" 24 # include "UINetworkManager.h" 25 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 24 26 #include "UISelectorWindow.h" 25 27 #include "UIProgressDialog.h" … … 101 103 } 102 104 105 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 103 106 QWidget* UIModalWindowManager::networkManagerOrMainWindowShown() const 104 107 { … … 107 110 return gNetworkManager && gNetworkManager->window()->isVisible() ? gNetworkManager->window() : mainWindowShown(); 108 111 } 112 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 109 113 110 114 QWidget* UIModalWindowManager::realParentWindow(QWidget *pWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIModalWindowManager.h
r47612 r49596 48 48 /* API: Main application window stuff: */ 49 49 QWidget* mainWindowShown() const; 50 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 50 51 QWidget* networkManagerOrMainWindowShown() const; 52 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 51 53 52 54 private slots: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r49553 r49596 34 34 #include <QDir> 35 35 #include <QLocale> 36 #include <QNetworkProxy> 36 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 37 # include <QNetworkProxy> 38 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 37 39 #include <QSpinBox> 38 40 #include <QStyleOptionSpinBox> … … 66 68 #include "UIExtraDataEventHandler.h" 67 69 #include "QIFileDialog.h" 68 #include "UINetworkManager.h" 69 #include "UIUpdateManager.h" 70 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 71 # include "UINetworkManager.h" 72 # include "UIUpdateManager.h" 73 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 70 74 #include "UIMachine.h" 71 75 #include "UISession.h" … … 1682 1686 } 1683 1687 1688 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1684 1689 void VBoxGlobal::reloadProxySettings() 1685 1690 { … … 1713 1718 } 1714 1719 } 1720 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1715 1721 1716 1722 void VBoxGlobal::createMedium(const UIMedium &medium) … … 3409 3415 } 3410 3416 3417 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 3411 3418 /* static */ 3412 3419 bool VBoxGlobal::shouldWeAllowApplicationUpdate(CVirtualBox &vbox) … … 3415 3422 return !isApprovedByExtraData(vbox, GUI_PreventApplicationUpdate); 3416 3423 } 3424 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 3417 3425 3418 3426 /* static */ … … 3795 3803 void VBoxGlobal::sltProcessGlobalSettingChange() 3796 3804 { 3805 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 3797 3806 /* Reload proxy settings: */ 3798 3807 reloadProxySettings(); 3808 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 3799 3809 } 3800 3810 … … 4384 4394 } 4385 4395 4396 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 4386 4397 /* Create network manager: */ 4387 4398 UINetworkManager::create(); … … 4389 4400 /* Schedule update manager: */ 4390 4401 UIUpdateManager::schedule(); 4402 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 4391 4403 } 4392 4404 … … 4397 4409 m_sfCleanupInProgress = true; 4398 4410 4411 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 4399 4412 /* Shutdown update manager: */ 4400 4413 UIUpdateManager::shutdown(); … … 4402 4415 /* Destroy network manager: */ 4403 4416 UINetworkManager::destroy(); 4417 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 4404 4418 4405 4419 /* Destroy action pool: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r49553 r49596 248 248 CSession openExistingSession(const QString &aId) { return openSession(aId, KLockType_Shared); } 249 249 250 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 250 251 void reloadProxySettings(); 252 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 251 253 252 254 /* API: Medium-processing stuff: */ … … 349 351 static bool isApprovedByExtraData(CVirtualBox &vbox, const QString &strExtraDataKey); 350 352 static bool isApprovedByExtraData(CMachine &machine, const QString &strExtraDataKey); 353 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 351 354 static bool shouldWeAllowApplicationUpdate(CVirtualBox &vbox); 355 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 352 356 static bool shouldWeShowMachine(CMachine &machine); 353 357 static bool shouldWeAllowMachineReconfiguration(CMachine &machine, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r49506 r49596 31 31 #include "QIFileDialog.h" 32 32 #include "UIActionPoolRuntime.h" 33 #include "UINetworkManager.h" 34 #include "UIDownloaderAdditions.h" 33 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 34 # include "UINetworkManager.h" 35 # include "UIDownloaderAdditions.h" 36 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 35 37 #include "UIIconPool.h" 36 38 #include "UIKeyboardHandler.h" … … 2163 2165 } 2164 2166 2167 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 2165 2168 /* If downloader is running already: */ 2166 2169 if (UIDownloaderAdditions::current()) … … 2179 2182 pDl->start(); 2180 2183 } 2184 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 2181 2185 } 2182 2186 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineMenuBar.cpp
r49466 r49596 29 29 #include "UIMessageCenter.h" 30 30 #include "UIImageTools.h" 31 #include "UINetworkManager.h" 31 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 32 # include "UINetworkManager.h" 33 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 32 34 33 35 /* COM includes: */ … … 303 305 pMenu->addAction(gActionPool->action(UIActionIndex_Simple_ResetWarnings)); 304 306 pMenu->addSeparator(); 307 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 305 308 pMenu->addAction(gActionPool->action(UIActionIndex_Simple_NetworkAccessManager)); 309 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 306 310 #ifndef Q_WS_MAC 307 311 pMenu->addSeparator(); … … 316 320 VBoxGlobal::connect(gActionPool->action(UIActionIndex_Simple_ResetWarnings), SIGNAL(triggered()), 317 321 &msgCenter(), SLOT(sltResetSuppressedMessages())); 322 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 318 323 VBoxGlobal::connect(gActionPool->action(UIActionIndex_Simple_NetworkAccessManager), SIGNAL(triggered()), 319 324 gNetworkManager, SLOT(show())); 325 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 320 326 VBoxGlobal::connect(gActionPool->action(UIActionIndex_Simple_About), SIGNAL(triggered()), 321 327 &msgCenter(), SLOT(sltShowHelpAboutDialog())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r49506 r49596 26 26 #include "UIMachineLogicNormal.h" 27 27 #include "UIMachineWindow.h" 28 #include "UIDownloaderAdditions.h"29 #include "UIDownloaderUserManual.h"30 #include "UIDownloaderExtensionPack.h"31 28 #ifdef Q_WS_MAC 32 29 #include "VBoxUtils.h" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r49505 r49596 23 23 #include "UIMachineLogicScale.h" 24 24 #include "UIMachineWindow.h" 25 #include "UIDownloaderAdditions.h"26 #include "UIDownloaderExtensionPack.h"27 25 #ifdef Q_WS_MAC 28 26 #include "VBoxUtils.h" -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r49586 r49596 34 34 #include "QIFileDialog.h" 35 35 #include "UIBar.h" 36 #include "UINetworkManager.h" 37 #include "UINetworkManagerIndicator.h" 38 #include "UIUpdateManager.h" 39 #include "UIDownloaderUserManual.h" 40 #include "UIDownloaderExtensionPack.h" 36 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 37 # include "UINetworkManager.h" 38 # include "UINetworkManagerIndicator.h" 39 # include "UIUpdateManager.h" 40 # include "UIDownloaderUserManual.h" 41 # include "UIDownloaderExtensionPack.h" 42 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 41 43 #include "UIIconPool.h" 42 44 #include "UIWizardCloneVM.h" … … 1322 1324 m_pResetWarningsAction = gActionPool->action(UIActionIndex_Simple_ResetWarnings); 1323 1325 pMenu->addAction(m_pResetWarningsAction); 1326 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1324 1327 pMenu->addSeparator(); 1325 1328 m_pNetworkAccessManager = gActionPool->action(UIActionIndex_Simple_NetworkAccessManager); … … 1331 1334 else 1332 1335 m_pUpdateAction->setEnabled(false); 1336 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1333 1337 #ifndef Q_WS_MAC 1334 1338 pMenu->addSeparator(); … … 1340 1344 void UISelectorWindow::prepareStatusBar() 1341 1345 { 1346 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1342 1347 /* Setup statusbar policy: */ 1343 1348 statusBar()->setContextMenuPolicy(Qt::CustomContextMenu); … … 1347 1352 statusBar()->addPermanentWidget(pIndicator); 1348 1353 pIndicator->updateAppearance(); 1354 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1349 1355 } 1350 1356 … … 1462 1468 connect(m_pWebAction, SIGNAL(triggered()), &msgCenter(), SLOT(sltShowHelpWebDialog())); 1463 1469 connect(m_pResetWarningsAction, SIGNAL(triggered()), &msgCenter(), SLOT(sltResetSuppressedMessages())); 1470 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1464 1471 connect(m_pNetworkAccessManager, SIGNAL(triggered()), gNetworkManager, SLOT(show())); 1465 1472 connect(m_pUpdateAction, SIGNAL(triggered()), gUpdateManager, SLOT(sltForceCheck())); 1473 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1466 1474 connect(m_pAboutAction, SIGNAL(triggered()), &msgCenter(), SLOT(sltShowHelpAboutDialog())); 1467 1475 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r48316 r49596 26 26 /* GUI includes: */ 27 27 #include "QIWithRetranslateUI.h" 28 #include "UINetworkDefs.h"29 28 30 29 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r48577 r49596 36 36 #include "UIGlobalSettingsGeneral.h" 37 37 #include "UIGlobalSettingsInput.h" 38 #include "UIGlobalSettingsUpdate.h" 38 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 39 # include "UIGlobalSettingsUpdate.h" 40 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 39 41 #include "UIGlobalSettingsLanguage.h" 40 42 #include "UIGlobalSettingsDisplay.h" 41 43 #include "UIGlobalSettingsNetwork.h" 42 44 #include "UIGlobalSettingsExtension.h" 43 #include "UIGlobalSettingsProxy.h" 45 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 46 # include "UIGlobalSettingsProxy.h" 47 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 44 48 45 49 #include "UIMachineSettingsGeneral.h" … … 355 359 break; 356 360 } 361 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 357 362 /* Update page: */ 358 363 case GlobalSettingsPageType_Update: … … 364 369 break; 365 370 } 371 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 366 372 /* Language page: */ 367 373 case GlobalSettingsPageType_Language: … … 400 406 break; 401 407 } 408 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 402 409 /* Proxy page: */ 403 410 case GlobalSettingsPageType_Proxy: … … 409 416 break; 410 417 } 418 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 411 419 default: 412 420 break; … … 490 498 m_pSelector->setItemText(GlobalSettingsPageType_Input, tr("Input")); 491 499 500 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 492 501 /* Update page: */ 493 502 m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update")); 503 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 494 504 495 505 /* Language page: */ … … 505 515 m_pSelector->setItemText(GlobalSettingsPageType_Extensions, tr("Extensions")); 506 516 517 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 507 518 /* Proxy page: */ 508 519 m_pSelector->setItemText(GlobalSettingsPageType_Proxy, tr("Proxy")); 520 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 509 521 510 522 /* Polish the selector: */
Note:
See TracChangeset
for help on using the changeset viewer.