- Timestamp:
- Mar 26, 2013 2:00:34 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r45192 r45193 410 410 const QString &strImage /* = "" */, 411 411 QWidget *pParent /* = 0 */, 412 bool fSheetOnDarwin /* = false */,413 412 int cMinDuration /* = 2000 */) 414 413 { … … 420 419 /* Create progress-dialog: */ 421 420 QWidget *pDlgParent = mwManager().realParentWindow(pParent); 422 QPointer<UIProgressDialog> pProgressDlg = new UIProgressDialog(progress, strTitle, pPixmap, fSheetOnDarwin,cMinDuration, pDlgParent);421 QPointer<UIProgressDialog> pProgressDlg = new UIProgressDialog(progress, strTitle, pPixmap, cMinDuration, pDlgParent); 423 422 mwManager().registerNewParent(pProgressDlg, pDlgParent); 424 423 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r45183 r45193 160 160 bool showModalProgressDialog(CProgress &progress, const QString &strTitle, 161 161 const QString &strImage = "", QWidget *pParent = 0, 162 bool fSheetOnDarwin = false,int cMinDuration = 2000);162 int cMinDuration = 2000); 163 163 164 164 QWidget* mainWindowShown() const; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r45192 r45193 5004 5004 /* I hope 1 minute will be enough to spawn any running VM silently, isn't it? */ 5005 5005 int iSpawningDuration = 60000; 5006 msgCenter().showModalProgressDialog(progress, machine.GetName(), "", 0, false, iSpawningDuration);5006 msgCenter().showModalProgressDialog(progress, machine.GetName(), "", mainWindow(), iSpawningDuration); 5007 5007 if (progress.GetResultCode() != 0) 5008 5008 msgCenter().cannotOpenSession(vbox, machine, progress); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r44528 r45193 1166 1166 if (hardDisk.isOk()) 1167 1167 { 1168 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_delete_90px.png", this , true);1168 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_delete_90px.png", this); 1169 1169 if (!(progress.isOk() && progress.GetResultCode() == S_OK)) 1170 1170 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r42261 r45193 97 97 && !progress.isNull()) 98 98 { 99 msgCenter().showModalProgressDialog(progress, tr("Dropping data ..."), ":/progress_dnd_hg_90px.png", pParent , true);99 msgCenter().showModalProgressDialog(progress, tr("Dropping data ..."), ":/progress_dnd_hg_90px.png", pParent); 100 100 if (!progress.GetCanceled() && progress.isOk() && progress.GetResultCode() != 0) 101 101 { … … 188 188 && !progress.isNull()) 189 189 { 190 msgCenter().showModalProgressDialog(progress, tr("Dropping data ..."), ":/progress_dnd_gh_90px.png", m_pParent , true);190 msgCenter().showModalProgressDialog(progress, tr("Dropping data ..."), ":/progress_dnd_gh_90px.png", m_pParent); 191 191 if (!progress.GetCanceled() && progress.isOk() && progress.GetResultCode() != 0) 192 192 msgCenter().cannotDropData(progress, m_pParent); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r45192 r45193 1024 1024 { 1025 1025 /* Show the take-snapshot progress: */ 1026 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_snapshot_create_90px.png", 0, true);1026 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_snapshot_create_90px.png", activeMachineWindow()); 1027 1027 if (progress.GetResultCode() != 0) 1028 1028 msgCenter().cannotTakeSnapshot(progress); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r45192 r45193 416 416 { 417 417 /* Show the saving progress dialog: */ 418 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_state_save_90px.png", this , true);418 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_state_save_90px.png", this); 419 419 if (progress.GetResultCode() == 0) 420 420 fSuccess = true; … … 449 449 { 450 450 /* Show the power down progress: */ 451 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_poweroff_90px.png", this , true);451 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_poweroff_90px.png", this); 452 452 if (progress.GetResultCode() == 0) 453 453 fSuccess = true; … … 475 475 { 476 476 /* Show the snapshot discard progress: */ 477 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_snapshot_discard_90px.png", this , true);477 msgCenter().showModalProgressDialog(progress, m.GetName(), ":/progress_snapshot_discard_90px.png", this); 478 478 if (progress.GetResultCode() != 0) 479 479 msgCenter().cannotRestoreSnapshot(progress, snapshot.GetName()); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r45050 r45193 221 221 if (isSaved()) 222 222 { 223 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_restore_90px.png", mainMachineWindow(), true,0);223 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_restore_90px.png", mainMachineWindow(), 0); 224 224 /* If restoring from saved state, guest MachineView 225 225 should be notified about host MachineWindow geometry change */ … … 228 228 } 229 229 else 230 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_start_90px.png", mainMachineWindow() , true);230 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_start_90px.png", mainMachineWindow()); 231 231 232 232 /* Check for a progress failure: */ … … 281 281 uimachine()->machineLogic()->setPreventAutoClose(true); 282 282 /* Show the power down progress dialog */ 283 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_poweroff_90px.png", mainMachineWindow() , true);283 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_poweroff_90px.png", mainMachineWindow()); 284 284 if (progress.GetResultCode() != 0) 285 285 msgCenter().cannotStopMachine(progress); … … 389 389 { 390 390 msgCenter().showModalProgressDialog(progressInstall, tr("Updating Guest Additions"), ":/progress_install_guest_additions_90px.png", 391 mainMachineWindow(), true,500 /* 500ms delay. */);391 mainMachineWindow(), 500 /* 500ms delay. */); 392 392 if (progressInstall.GetCanceled()) 393 393 return; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r45050 r45193 1 /* $Id$ */ 1 2 /** @file 2 3 * … … 621 622 /* Show the "VM saving" progress dialog: */ 622 623 CMachine machine = session.GetMachine(); 623 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_save_90px.png", 0, true);624 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_save_90px.png", this); 624 625 if (progress.GetResultCode() != 0) 625 626 msgCenter().cannotSaveMachineState(progress); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r45068 r45193 1470 1470 if (machine.isOk()) 1471 1471 { 1472 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_delete_90px.png", 0, true);1472 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_delete_90px.png", msgCenter().mainWindowShown()); 1473 1473 if (progress.GetResultCode() != 0) 1474 1474 msgCenter().cannotDeleteMachine(machine, progress); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r44528 r45193 206 206 else 207 207 { 208 msgCenter().showModalProgressDialog(progress, tr("Extensions") );208 msgCenter().showModalProgressDialog(progress, tr("Extensions"), "", pParent); 209 209 if (!progress.GetCanceled()) 210 210 { … … 425 425 if (!progress.isNull()) 426 426 { 427 msgCenter().showModalProgressDialog(progress, tr("Extensions") );427 msgCenter().showModalProgressDialog(progress, tr("Extensions"), "", window()); 428 428 fOk = progress.isOk() && progress.GetResultCode() == 0; 429 429 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r43459 r45193 423 423 { 424 424 msgCenter().showModalProgressDialog(progress, tr("Networking"), 425 ":/nw_32px.png", this, true, 0);425 ":/nw_32px.png", window(), 0); 426 426 if (progress.GetResultCode() == 0) 427 427 { … … 476 476 { 477 477 msgCenter().showModalProgressDialog(progress, tr("Networking"), 478 ":/nw_32px.png", this, true, 0);478 ":/nw_32px.png", window(), 0); 479 479 if (progress.GetResultCode() == 0) 480 480 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp
r44528 r45193 147 147 { 148 148 /* Show some progress, so the user know whats going on */ 149 msgCenter().showModalProgressDialog(progress, tr("Importing Appliance ..."), ":/progress_import_90px.png", this , true);149 msgCenter().showModalProgressDialog(progress, tr("Importing Appliance ..."), ":/progress_import_90px.png", this); 150 150 if (progress.GetCanceled()) 151 151 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp
r45192 r45193 45 45 const QString &strTitle, 46 46 QPixmap *pImage /* = 0 */, 47 bool fSheetOnDarwin /* = false */,48 47 int cMinDuration /* = 2000 */, 49 48 QWidget *pParent /* = 0 */) … … 71 70 pMainLayout->setContentsMargins(6, 6, 6, 6); 72 71 #endif /* Q_WS_MAC */ 73 NOREF(fSheetOnDarwin);74 72 75 73 /* Create image: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h
r45192 r45193 52 52 /* Constructor/destructor: */ 53 53 UIProgressDialog(CProgress &progress, const QString &strTitle, 54 QPixmap *pImage = 0, bool fSheetOnDarwin = false, 55 int cMinDuration = 2000, QWidget *pParent = 0); 54 QPixmap *pImage = 0, int cMinDuration = 2000, QWidget *pParent = 0); 56 55 57 56 /* API: Run stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp
r44528 r45193 89 89 90 90 /* Show creation progress: */ 91 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_create_90px.png", this , true);91 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_create_90px.png", this); 92 92 if (progress.GetCanceled()) 93 93 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp
r44528 r45193 84 84 { 85 85 /* Show the "Taking Snapshot" progress dialog: */ 86 msgCenter().showModalProgressDialog(progress, m_machine.GetName(), ":/progress_snapshot_create_90px.png", this , true);86 msgCenter().showModalProgressDialog(progress, m_machine.GetName(), ":/progress_snapshot_create_90px.png", this); 87 87 88 88 if (!progress.isOk() || progress.GetResultCode() != 0) … … 137 137 138 138 /* Wait until done. */ 139 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_clone_90px.png", this , true);139 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_clone_90px.png", this); 140 140 if (progress.GetCanceled()) 141 141 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r41689 r45193 144 144 /* Show some progress, so the user know whats going on: */ 145 145 msgCenter().showModalProgressDialog(progress, QApplication::translate("UIWizardExportApp", "Exporting Appliance ..."), 146 ":/progress_export_90px.png", this , true);146 ":/progress_export_90px.png", this); 147 147 if (progress.GetCanceled()) 148 148 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r44528 r45193 93 93 94 94 /* Show creation progress: */ 95 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_create_90px.png", this , true);95 msgCenter().showModalProgressDialog(progress, windowTitle(), ":/progress_media_create_90px.png", this); 96 96 if (progress.GetCanceled()) 97 97 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r43424 r45193 113 113 if (fSuccess) 114 114 { 115 msgCenter().showModalProgressDialog(progress, thisImp()->windowTitle(), ":/progress_media_delete_90px.png", thisImp() , true);115 msgCenter().showModalProgressDialog(progress, thisImp()->windowTitle(), ":/progress_media_delete_90px.png", thisImp()); 116 116 fSuccess = progress.isOk() && progress.GetResultCode() == S_OK; 117 117 }
Note:
See TracChangeset
for help on using the changeset viewer.