Changeset 27678 in vbox
- Timestamp:
- Mar 24, 2010 5:59:33 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r27621 r27678 1481 1481 connect(pDl, SIGNAL(downloadFinished(const QString&)), 1482 1482 uisession(), SLOT(sltInstallGuestAdditionsFrom(const QString&))); 1483 /* Some of the modes may show additional info of the download progress. */ 1484 foreach (UIMachineWindow *pWindow, machineWindows()) 1485 pWindow->prepareAdditionsDownloader(); 1483 /* Some of the modes may show additional info of the download progress: */ 1484 emit sigDownloaderAdditionsCreated(); 1486 1485 /* Start the download: */ 1487 1486 pDl->startDownload(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r27374 r27678 82 82 #endif /* Q_WS_MAC */ 83 83 84 signals: 85 86 /* Signal to notify listeners about additions downloader created: */ 87 void sigDownloaderAdditionsCreated(); 88 84 89 protected: 85 90 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r27624 r27678 391 391 } 392 392 393 void UIMachineWindow::prepareAdditionsDownloader()394 {395 }396 397 393 void UIMachineWindow::prepareMachineViewContainer() 398 394 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r27424 r27678 79 79 virtual void prepareWindowIcon(); 80 80 virtual void prepareConsoleConnections(); 81 virtual void prepareAdditionsDownloader();82 81 virtual void prepareMachineViewContainer(); 83 82 //virtual void loadWindowSettings() {} -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r27535 r27678 142 142 { 143 143 UIMachineWindow::sltTryClose(); 144 } 145 146 void UIMachineWindowNormal::sltDownloaderAdditionsEmbed() 147 { 148 /* If there is an additions download running show the process bar: */ 149 if (UIDownloaderAdditions *pDl = UIDownloaderAdditions::current()) 150 statusBar()->addWidget(pDl->processWidget(this), 0); 144 151 } 145 152 … … 411 418 statusBar()->addPermanentWidget(pIndicatorBox, 0); 412 419 413 /* Add the additions downloader progress bar to the status bar, if a414 * download is actually running.*/415 prepareAdditionsDownloader();420 /* Add the additions downloader progress bar to the status bar, 421 * if a download is actually running: */ 422 sltDownloaderAdditionsEmbed(); 416 423 417 424 /* Create & start timer to update LEDs: */ … … 426 433 } 427 434 428 void UIMachineWindowNormal::prepareAdditionsDownloader()429 {430 /* If there is an Additions download running show the process bar. */431 if (UIDownloaderAdditions *pDl = UIDownloaderAdditions::current())432 statusBar()->addWidget(pDl->processWidget(this), 0);433 }434 435 435 void UIMachineWindowNormal::prepareConnections() 436 436 { … … 438 438 connect(&vboxGlobal().settings(), SIGNAL(propertyChanged(const char *, const char *)), 439 439 this, SLOT(sltProcessGlobalSettingChange(const char *, const char *))); 440 /* Setup additions downloader listener: */ 441 connect(machineLogic(), SIGNAL(sigDownloaderAdditionsCreated()), this, SLOT(sltDownloaderAdditionsEmbed())); 440 442 } 441 443 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r27534 r27678 69 69 void sltTryClose(); 70 70 71 /* Downloader listeners: */ 72 void sltDownloaderAdditionsEmbed(); 73 71 74 private: 72 75 … … 91 94 void prepareMenu(); 92 95 void prepareStatusBar(); 93 void prepareAdditionsDownloader();94 96 void prepareConnections(); 95 97 void prepareMachineView();
Note:
See TracChangeset
for help on using the changeset viewer.