VirtualBox

Ignore:
Timestamp:
Apr 9, 2013 8:21:25 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Message-center: Parent-usage cleanup; Progress-dialog error-handling unification.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r45377 r45424  
    349349void UIMessageCenter::warnAboutWrongUSBMounted() const
    350350{
    351     alert(mainWindowShown(), MessageType_Warning,
     351    alert(0, MessageType_Warning,
    352352          tr("You seem to have the USBFS filesystem mounted at /sys/bus/usb/drivers. "
    353353             "We strongly recommend that you change this, as it is a severe mis-configuration of "
    354354             "your system which could cause USB devices to fail in unexpected ways."),
    355           "checkForMountedWrongUSB");
     355          "warnAboutWrongUSBMounted");
    356356}
    357357#endif /* RT_OS_LINUX */
     
    411411          tr("<p>Could not find a language file for the language <b>%1</b> in the directory <b><nobr>%2</nobr></b>.</p>"
    412412             "<p>The language will be temporarily reset to the system default language. "
    413              "Please go to the <b>Preferences</b> dialog which you can open from the <b>File</b> menu "
    414              "of the main VirtualBox window, and select one of the existing languages on the <b>Language</b> page.</p>")
     413             "Please go to the <b>Preferences</b> dialog which you can open from the <b>File</b> menu of the "
     414             "VirtualBox Manager window, and select one of the existing languages on the <b>Language</b> page.</p>")
    415415             .arg(strLangId).arg(strNlsPath));
    416416}
     
    421421          tr("<p>Could not load the language file <b><nobr>%1</nobr></b>. "
    422422             "<p>The language will be temporarily reset to English (built-in). "
    423              "Please go to the <b>Preferences</b> dialog which you can open from the <b>File</b> menu "
    424              "of the main VirtualBox window, and select one of the existing languages on the <b>Language</b> page.</p>")
     423             "Please go to the <b>Preferences</b> dialog which you can open from the <b>File</b> menu of the "
     424             "VirtualBox Manager window, and select one of the existing languages on the <b>Language</b> page.</p>")
    425425             .arg(strLangFile));
    426426}
     
    428428void UIMessageCenter::cannotLoadGlobalConfig(const CVirtualBox &vbox, const QString &strError) const
    429429{
    430     /* Preserve error-info: */
    431     COMResult res(vbox);
    432     /* Show the error: */
    433430    error(0, MessageType_Critical,
    434431          tr("<p>Failed to load the global GUI configuration from <b><nobr>%1</nobr></b>.</p>"
    435432             "<p>The application will now terminate.</p>")
    436              .arg(vbox.GetSettingsFilePath()),
    437           !res.isOk() ? formatErrorInfo(res) : QString("<!--EOM--><p>%1</p>").arg(vboxGlobal().emphasize(strError)));
     433             .arg(CVirtualBox(vbox).GetSettingsFilePath()),
     434          !vbox.isOk() ? formatErrorInfo(vbox) : QString("<!--EOM--><p>%1</p>").arg(vboxGlobal().emphasize(strError)));
    438435}
    439436
    440437void UIMessageCenter::cannotSaveGlobalConfig(const CVirtualBox &vbox) const
    441438{
    442     /* Preserve error-info: */
    443     COMResult res(vbox);
    444     /* Show the error: */
    445439    error(0, MessageType_Critical,
    446440          tr("<p>Failed to save the global GUI configuration to <b><nobr>%1</nobr></b>.</p>"
    447441             "<p>The application will now terminate.</p>")
    448              .arg(vbox.GetSettingsFilePath()),
    449           formatErrorInfo(res));
     442             .arg(CVirtualBox(vbox).GetSettingsFilePath()),
     443          formatErrorInfo(vbox));
    450444}
    451445
     
    468462void UIMessageCenter::cannotOpenSession(const CSession &session) const
    469463{
    470     error(mainWindowShown(), MessageType_Error,
     464    error(0, MessageType_Error,
    471465          tr("Failed to create a new session."),
    472466          formatErrorInfo(session));
     
    475469void UIMessageCenter::cannotOpenSession(const CMachine &machine) const
    476470{
    477     /* Preserve error-info: */
    478     QString strErrorInfo = formatErrorInfo(machine);
    479     /* Show the error: */
    480     error(mainWindowShown(), MessageType_Error,
     471    error(0, MessageType_Error,
    481472          tr("Failed to open a session for the virtual machine <b>%1</b>.")
    482              .arg(machine.GetName()),
    483           strErrorInfo);
     473             .arg(CMachine(machine).GetName()),
     474          formatErrorInfo(machine));
    484475}
    485476
    486477void UIMessageCenter::cannotOpenSession(const CProgress &progress, const QString &strMachineName) const
    487478{
    488     error(mainWindowShown(), MessageType_Error,
     479    error(0, MessageType_Error,
    489480          tr("Failed to open a session for the virtual machine <b>%1</b>.")
    490481             .arg(strMachineName),
    491           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     482          formatErrorInfo(progress));
    492483}
    493484
    494485void UIMessageCenter::cannotGetMediaAccessibility(const UIMedium &medium) const
    495486{
    496     error(mainWindowShown(), MessageType_Error,
     487    error(0, MessageType_Error,
    497488          tr("Failed to determine the accessibility state of the medium <nobr><b>%1</b></nobr>.")
    498489             .arg(medium.location()),
     
    502493void UIMessageCenter::cannotOpenURL(const QString &strUrl) const
    503494{
    504     alert(mainWindowShown(), MessageType_Error,
     495    alert(0, MessageType_Error,
    505496          tr("Failed to open <tt>%1</tt>. "
    506497             "Make sure your desktop environment can properly handle URLs of this type.")
     
    510501void UIMessageCenter::cannotOpenMachine(const CVirtualBox &vbox, const QString &strMachinePath) const
    511502{
    512     error(mainWindowShown(), MessageType_Error,
     503    error(0, MessageType_Error,
    513504          tr("Failed to open virtual machine located in %1.")
    514505             .arg(strMachinePath),
     
    518509void UIMessageCenter::cannotReregisterExistingMachine(const QString &strMachinePath, const QString &strMachineName) const
    519510{
    520     alert(mainWindowShown(), MessageType_Error,
     511    alert(0, MessageType_Error,
    521512          tr("Failed to add virtual machine <b>%1</b> located in <i>%2</i> because its already present.")
    522              .arg(strMachineName).arg(strMachinePath));
    523 }
    524 
    525 void UIMessageCenter::cannotResolveCollisionAutomatically(const QString &strName, const QString &strGroupName) const
    526 {
    527     alert(mainWindowShown(), MessageType_Error,
     513             .arg(strMachineName, strMachinePath));
     514}
     515
     516void UIMessageCenter::cannotResolveCollisionAutomatically(const QString &strCollisionName, const QString &strGroupName) const
     517{
     518    alert(0, MessageType_Error,
    528519          tr("<p>You are trying to move machine <nobr><b>%1</b></nobr> "
    529520             "to group <nobr><b>%2</b></nobr> which already have sub-group <nobr><b>%1</b></nobr>.</p>"
    530521             "<p>Please resolve this name-conflict and try again.</p>")
    531              .arg(strName, strGroupName));
     522             .arg(strCollisionName, strGroupName));
    532523}
    533524
    534525bool UIMessageCenter::confirmAutomaticCollisionResolve(const QString &strName, const QString &strGroupName) const
    535526{
    536     return questionBinary(mainWindowShown(), MessageType_Question,
     527    return questionBinary(0, MessageType_Question,
    537528                          tr("<p>You are trying to move group <nobr><b>%1</b></nobr> "
    538529                             "to group <nobr><b>%2</b></nobr> which already have another item with the same name.</p>"
     
    545536void UIMessageCenter::cannotSetGroups(const CMachine &machine) const
    546537{
    547     /* Preserve error-info: */
    548     COMResult res(machine);
    549538    /* Compose machine name: */
    550     QString strName = machine.GetName();
     539    QString strName = CMachine(machine).GetName();
    551540    if (strName.isEmpty())
    552         strName = QFileInfo(machine.GetSettingsFilePath()).baseName();
     541        strName = QFileInfo(CMachine(machine).GetSettingsFilePath()).baseName();
    553542    /* Show the error: */
    554     error(mainWindowShown(), MessageType_Error,
     543    error(0, MessageType_Error,
    555544          tr("Failed to set groups of the virtual machine <b>%1</b>.")
    556545             .arg(strName),
    557           formatErrorInfo(res));
     546          formatErrorInfo(machine));
    558547}
    559548
    560549bool UIMessageCenter::confirmMachineItemRemoval(const QStringList &names) const
    561550{
    562     return questionBinary(mainWindowShown(), MessageType_Question,
     551    return questionBinary(0, MessageType_Question,
    563552                          tr("<p>You are about to remove following virtual machine items from the machine list:</p>"
    564553                             "<p><b>%1</b></p><p>Do you wish to proceed?</p>")
     
    632621    /* Prepare message itself: */
    633622    return cInacessibleMachineCount == machines.size() ?
    634            message(mainWindowShown(), MessageType_Question,
     623           message(0, MessageType_Question,
    635624                   strText, QString(),
    636625                   0 /* auto-confirm id */,
     
    639628                   0,
    640629                   tr("Remove")) :
    641            message(mainWindowShown(), MessageType_Question,
     630           message(0, MessageType_Question,
    642631                   strText, QString(),
    643632                   0 /* auto-confirm id */,
     
    651640void UIMessageCenter::cannotRemoveMachine(const CMachine &machine) const
    652641{
    653     /* Preserve error-info: */
    654     COMResult res(machine);
    655     /* Show the error: */
    656     error(mainWindowShown(), MessageType_Error,
     642    error(0, MessageType_Error,
    657643          tr("Failed to remove the virtual machine <b>%1</b>.")
    658              .arg(machine.GetName()),
    659           !machine.isOk() ? formatErrorInfo(machine) : formatErrorInfo(res));
     644             .arg(CMachine(machine).GetName()),
     645          formatErrorInfo(machine));
    660646}
    661647
    662648void UIMessageCenter::cannotRemoveMachine(const CMachine &machine, const CProgress &progress) const
    663649{
    664     error(mainWindowShown(), MessageType_Error,
     650    error(0, MessageType_Error,
    665651          tr("Failed to remove the virtual machine <b>%1</b>.")
    666              .arg(machine.GetName()),
    667           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     652             .arg(CMachine(machine).GetName()),
     653          formatErrorInfo(progress));
    668654}
    669655
    670656bool UIMessageCenter::warnAboutInaccessibleMedia() const
    671657{
    672     return questionBinary(mainWindowShown(), MessageType_Warning,
     658    return questionBinary(0, MessageType_Warning,
    673659                          tr("<p>One or more virtual hard disks, CD/DVD or "
    674660                             "floppy media are not currently accessible. As a result, you will "
     
    684670bool UIMessageCenter::confirmDiscardSavedState(const QString &strNames) const
    685671{
    686     return questionBinary(mainWindowShown(), MessageType_Question,
     672    return questionBinary(0, MessageType_Question,
    687673                          tr("<p>Are you sure you want to discard the saved state of "
    688674                             "the following virtual machines?</p><p><b>%1</b></p>"
     
    696682bool UIMessageCenter::confirmResetMachine(const QString &strNames) const
    697683{
    698     return questionBinary(mainWindowShown(), MessageType_Question,
     684    return questionBinary(0, MessageType_Question,
    699685                          tr("<p>Do you really want to reset the following virtual machines?</p>"
    700686                             "<p><b>%1</b></p><p>This will cause any unsaved data "
     
    707693bool UIMessageCenter::confirmACPIShutdownMachine(const QString &strNames) const
    708694{
    709     return questionBinary(mainWindowShown(), MessageType_Question,
     695    return questionBinary(0, MessageType_Question,
    710696                          tr("<p>Do you really want to send an ACPI shutdown signal "
    711697                             "to the following virtual machines?</p><p><b>%1</b></p>")
     
    717703bool UIMessageCenter::confirmPowerOffMachine(const QString &strNames) const
    718704{
    719     return questionBinary(mainWindowShown(), MessageType_Question,
     705    return questionBinary(0, MessageType_Question,
    720706                          tr("<p>Do you really want to power off the following virtual machines?</p>"
    721707                             "<p><b>%1</b></p><p>This will cause any unsaved data in applications "
     
    728714void UIMessageCenter::cannotPauseMachine(const CConsole &console) const
    729715{
    730     /* Preserve error-info: */
    731     COMResult res(console);
    732     /* Show the error: */
    733     error(mainWindowShown(), MessageType_Error,
     716    error(0, MessageType_Error,
    734717          tr("Failed to pause the execution of the virtual machine <b>%1</b>.")
    735              .arg(console.GetMachine().GetName()),
    736           formatErrorInfo(res));
     718             .arg(CConsole(console).GetMachine().GetName()),
     719          formatErrorInfo(console));
    737720}
    738721
    739722void UIMessageCenter::cannotResumeMachine(const CConsole &console) const
    740723{
    741     /* Preserve error-info: */
    742     COMResult res(console);
    743     /* Show the error: */
    744     error(mainWindowShown(), MessageType_Error,
     724    error(0, MessageType_Error,
    745725          tr("Failed to resume the execution of the virtual machine <b>%1</b>.")
    746              .arg(console.GetMachine().GetName()),
    747           formatErrorInfo(res));
     726             .arg(CConsole(console).GetMachine().GetName()),
     727          formatErrorInfo(console));
    748728}
    749729
    750730void UIMessageCenter::cannotDiscardSavedState(const CConsole &console) const
    751731{
    752     /* Preserve error-info: */
    753     COMResult res(console);
    754     /* Show the error: */
    755     error(mainWindowShown(), MessageType_Error,
     732    error(0, MessageType_Error,
    756733          tr("Failed to discard the saved state of the virtual machine <b>%1</b>.")
    757              .arg(console.GetMachine().GetName()),
    758           formatErrorInfo(res));
     734             .arg(CConsole(console).GetMachine().GetName()),
     735          formatErrorInfo(console));
    759736}
    760737
    761738void UIMessageCenter::cannotSaveMachineState(const CConsole &console)
    762739{
    763     /* Preserve error-info: */
    764     COMResult res(console);
    765     /* Show the error: */
    766     error(mainWindowShown(), MessageType_Error,
     740    error(0, MessageType_Error,
    767741          tr("Failed to save the state of the virtual machine <b>%1</b>.")
    768              .arg(console.GetMachine().GetName()),
    769           formatErrorInfo(res));
    770 }
    771 
    772 void UIMessageCenter::cannotSaveMachineState(const CProgress &progress, const QString &strName)
    773 {
    774     error(mainWindowShown(), MessageType_Error,
     742             .arg(CConsole(console).GetMachine().GetName()),
     743          formatErrorInfo(console));
     744}
     745
     746void UIMessageCenter::cannotSaveMachineState(const CProgress &progress, const QString &strMachineName)
     747{
     748    error(0, MessageType_Error,
    775749          tr("Failed to save the state of the virtual machine <b>%1</b>.")
    776              .arg(strName),
    777           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     750             .arg(strMachineName),
     751          formatErrorInfo(progress));
    778752}
    779753
    780754void UIMessageCenter::cannotACPIShutdownMachine(const CConsole &console) const
    781755{
    782     /* Preserve error-info: */
    783     COMResult res(console);
    784     /* Show the error: */
    785     error(mainWindowShown(), MessageType_Error,
    786           tr("Failed to send the ACPI Power Button press event to the "
    787              "virtual machine <b>%1</b>.")
    788              .arg(console.GetMachine().GetName()),
    789           formatErrorInfo(res));
     756    error(0, MessageType_Error,
     757          tr("Failed to send the ACPI Power Button press event to the virtual machine <b>%1</b>.")
     758             .arg(CConsole(console).GetMachine().GetName()),
     759          formatErrorInfo(console));
    790760}
    791761
    792762void UIMessageCenter::cannotPowerDownMachine(const CConsole &console) const
    793763{
    794     /* Preserve error-info: */
    795     COMResult res(console);
    796     /* Show the error: */
    797     error(mainWindowShown(), MessageType_Error,
     764    error(0, MessageType_Error,
    798765          tr("Failed to stop the virtual machine <b>%1</b>.")
    799              .arg(console.GetMachine().GetName()),
    800           formatErrorInfo(res));
    801 }
    802 
    803 void UIMessageCenter::cannotPowerDownMachine(const CProgress &progress, const QString &strName) const
    804 {
    805     error(mainWindowShown(), MessageType_Error,
     766             .arg(CConsole(console).GetMachine().GetName()),
     767          formatErrorInfo(console));
     768}
     769
     770void UIMessageCenter::cannotPowerDownMachine(const CProgress &progress, const QString &strMachineName) const
     771{
     772    error(0, MessageType_Error,
    806773          tr("Failed to stop the virtual machine <b>%1</b>.")
    807               .arg(strName),
    808           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     774             .arg(strMachineName),
     775          formatErrorInfo(progress));
    809776}
    810777
     
    812779{
    813780    return fAlsoCreateNewSnapshot ?
    814            messageWithOption(mainWindowShown(), MessageType_Question,
     781           messageWithOption(0, MessageType_Question,
    815782                             tr("<p>You are about to restore snapshot <nobr><b>%1</b></nobr>.</p>"
    816783                                "<p>You can create a snapshot of the current state of the virtual machine first by checking the box below; "
     
    823790                             0 /* 3rd button */,
    824791                             tr("Restore"), tr("Cancel"), QString() /* 3rd button text */) :
    825            message(mainWindowShown(), MessageType_Question,
     792           message(0, MessageType_Question,
    826793                   tr("<p>Are you sure you want to restore snapshot <nobr><b>%1</b></nobr>?</p>")
    827794                      .arg(strSnapshotName),
     
    836803bool UIMessageCenter::confirmSnapshotRemoval(const QString &strSnapshotName) const
    837804{
    838     return questionBinary(mainWindowShown(), MessageType_Question,
     805    return questionBinary(0, MessageType_Question,
    839806                          tr("<p>Deleting the snapshot will cause the state information saved in it to be lost, and disk data spread over "
    840807                             "several image files that VirtualBox has created together with the snapshot will be merged into one file. "
     
    851818                                                        const QString &strTargetFileSystemFree) const
    852819{
    853     return questionBinary(mainWindowShown(), MessageType_Question,
     820    return questionBinary(0, MessageType_Question,
    854821                          tr("<p>Deleting the snapshot %1 will temporarily need more disk space. In the worst case the size of image %2 will grow by %3, "
    855822                              "however on this filesystem there is only %4 free.</p><p>Running out of disk space during the merge operation can result in "
     
    874841          tr("Failed to create a snapshot of the virtual machine <b>%1</b>.")
    875842             .arg(strMachineName),
    876           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
    877 }
    878 
    879 void UIMessageCenter::cannotRestoreSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName, QWidget *pParent /*= 0*/) const
    880 {
    881     error(pParent, MessageType_Error,
     843          formatErrorInfo(progress));
     844}
     845
     846void UIMessageCenter::cannotRestoreSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName) const
     847{
     848    error(0, MessageType_Error,
    882849          tr("Failed to restore the snapshot <b>%1</b> of the virtual machine <b>%2</b>.")
    883850             .arg(strSnapshotName, strMachineName),
     
    885852}
    886853
    887 void UIMessageCenter::cannotRestoreSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName, QWidget *pParent /*= 0*/) const
    888 {
    889     error(pParent, MessageType_Error,
     854void UIMessageCenter::cannotRestoreSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName) const
     855{
     856    error(0, MessageType_Error,
    890857          tr("Failed to restore the snapshot <b>%1</b> of the virtual machine <b>%2</b>.")
    891858             .arg(strSnapshotName, strMachineName),
    892           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     859          formatErrorInfo(progress));
    893860}
    894861
    895862void UIMessageCenter::cannotRemoveSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName) const
    896863{
    897     error(mainWindowShown(), MessageType_Error,
     864    error(0, MessageType_Error,
    898865          tr("Failed to delete the snapshot <b>%1</b> of the virtual machine <b>%2</b>.")
    899866             .arg(strSnapshotName, strMachineName),
     
    903870void UIMessageCenter::cannotRemoveSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName) const
    904871{
    905     error(mainWindowShown(), MessageType_Error,
     872    error(0, MessageType_Error,
    906873          tr("Failed to delete the snapshot <b>%1</b> of the virtual machine <b>%2</b>.")
    907874             .arg(strSnapshotName).arg(strMachineName),
    908           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     875          formatErrorInfo(progress));
    909876}
    910877
     
    936903    error(pParent, MessageType_Error,
    937904          tr("Failed to create the host network interface."),
    938           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
    939 }
    940 
    941 void UIMessageCenter::cannotRemoveHostInterface(const CHost &host, const QString &strName, QWidget *pParent /*= 0*/)
     905          formatErrorInfo(progress));
     906}
     907
     908void UIMessageCenter::cannotRemoveHostInterface(const CHost &host, const QString &strInterfaceName, QWidget *pParent /*= 0*/)
    942909{
    943910    error(pParent, MessageType_Error,
    944911          tr("Failed to remove the host network interface <b>%1</b>.")
    945              .arg(strName),
     912             .arg(strInterfaceName),
    946913          formatErrorInfo(host));
    947914}
    948915
    949 void UIMessageCenter::cannotRemoveHostInterface(const CProgress &progress, const QString &strName, QWidget *pParent /*= 0*/)
     916void UIMessageCenter::cannotRemoveHostInterface(const CProgress &progress, const QString &strInterfaceName, QWidget *pParent /*= 0*/)
    950917{
    951918    error(pParent, MessageType_Error,
    952919          tr("Failed to remove the host network interface <b>%1</b>.")
    953              .arg(strName),
    954           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     920             .arg(strInterfaceName),
     921          formatErrorInfo(progress));
    955922}
    956923
     
    977944}
    978945
    979 void UIMessageCenter::warnAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent)
     946void UIMessageCenter::warnAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent /*= 0*/)
    980947{
    981948    if (warningShown("warnAboutUnsupportedUSB2"))
     
    996963void UIMessageCenter::warnAboutStateChange(QWidget *pParent /*= 0*/) const
    997964{
    998     /* Do not show this async warning more than one at time: */
    999965    if (warningShown("warnAboutStateChange"))
    1000966        return;
    1001967    setWarningShown("warnAboutStateChange", true);
    1002     /* Show the error: */
     968
    1003969    alert(pParent, MessageType_Warning,
    1004970          tr("The virtual machine that you are changing has been started. "
    1005971             "Only certain settings can be changed while a machine is running. "
    1006972             "All other changes will be lost if you close this window now."));
    1007     /* Allow to show this async warning: */
     973
    1008974    setWarningShown("warnAboutStateChange", false);
    1009975}
     
    1026992                              .arg(strControllerName),
    1027993                           0 /* auto-confirm id */,
    1028                            tr("Create &new disk", "add attachment routine"),
    1029                            tr("&Choose existing disk", "add attachment routine"));
     994                           tr("Create &new disk"), tr("&Choose existing disk"));
    1030995}
    1031996
     
    10381003                              .arg(strControllerName),
    10391004                           0 /* auto-confirm id */,
    1040                            tr("Leave &empty", "add attachment routine"),
    1041                            tr("&Choose disk", "add attachment routine"));
     1005                           tr("Leave &empty"), tr("&Choose disk"));
    10421006}
    10431007
     
    10501014                              .arg(strControllerName),
    10511015                           0 /* auto-confirm id */,
    1052                            tr("Leave &empty", "add attachment routine"),
    1053                            tr("&Choose disk", "add attachment routine"));
     1016                           tr("Leave &empty"), tr("&Choose disk"));
    10541017}
    10551018
     
    10741037        {
    10751038            strMessage = tr("Failed to attach the hard disk (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
    1076                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
     1039                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
    10771040            break;
    10781041        }
     
    10801043        {
    10811044            strMessage = tr("Failed to attach the CD/DVD device (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
    1082                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
     1045                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
    10831046            break;
    10841047        }
     
    10861049        {
    10871050            strMessage = tr("Failed to attach the floppy device (<nobr><b>%1</b></nobr>) to the slot <i>%2</i> of the machine <b>%3</b>.")
    1088                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
     1051                            .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(CMachine(machine).GetName());
    10891052            break;
    10901053        }
     
    11101073}
    11111074
    1112 void UIMessageCenter::cannotCreateSharedFolder(const CMachine &machine, const QString &strMachineName,
    1113                                                const QString &strName, const QString &strPath,
    1114                                                QWidget *pParent /*= 0*/)
     1075void UIMessageCenter::cannotCreateSharedFolder(const CMachine &machine, const QString &strName, const QString &strPath, QWidget *pParent /*= 0*/)
    11151076{
    11161077    error(pParent, MessageType_Error,
    11171078          tr("Failed to create the shared folder <b>%1</b> (pointing to "
    11181079             "<nobr><b>%2</b></nobr>) for the virtual machine <b>%3</b>.")
    1119              .arg(strName, strPath, strMachineName),
     1080          .arg(strName, strPath, CMachine(machine).GetName()),
    11201081          formatErrorInfo(machine));
    11211082}
    11221083
    1123 void UIMessageCenter::cannotCreateSharedFolder(const CConsole &console, const QString &strMachineName,
    1124                                                const QString &strName, const QString &strPath,
    1125                                                QWidget *pParent /*= 0*/)
     1084void UIMessageCenter::cannotCreateSharedFolder(const CConsole &console, const QString &strName, const QString &strPath, QWidget *pParent /*= 0*/)
    11261085{
    11271086    error(pParent, MessageType_Error,
    11281087          tr("Failed to create the shared folder <b>%1</b> (pointing to "
    11291088             "<nobr><b>%2</b></nobr>) for the virtual machine <b>%3</b>.")
    1130              .arg(strName, strPath, strMachineName),
     1089             .arg(strName, strPath, CConsole(console).GetMachine().GetName()),
    11311090          formatErrorInfo(console));
    11321091}
    11331092
    1134 void UIMessageCenter::cannotRemoveSharedFolder(const CMachine &machine, const QString &strMachineName,
    1135                                                const QString &strName, const QString &strPath,
    1136                                                QWidget *pParent /*= 0*/)
     1093void UIMessageCenter::cannotRemoveSharedFolder(const CMachine &machine, const QString &strName, const QString &strPath, QWidget *pParent /*= 0*/)
    11371094{
    11381095    error(pParent, MessageType_Error,
     
    11411098             "<p>Please close all programs in the guest OS that "
    11421099             "may be using this shared folder and try again.</p>")
    1143              .arg(strName, strPath, strMachineName),
     1100             .arg(strName, strPath, CMachine(machine).GetName()),
    11441101          formatErrorInfo(machine));
    11451102}
    11461103
    1147 void UIMessageCenter::cannotRemoveSharedFolder(const CConsole &console, const QString &strMachineName,
    1148                                                const QString &strName, const QString &strPath,
    1149                                                QWidget *pParent /*= 0*/)
     1104void UIMessageCenter::cannotRemoveSharedFolder(const CConsole &console, const QString &strName, const QString &strPath, QWidget *pParent /*= 0*/)
    11501105{
    11511106    error(pParent, MessageType_Error,
     
    11541109             "<p>Please close all programs in the guest OS that "
    11551110             "may be using this shared folder and try again.</p>")
    1156              .arg(strName, strPath, strMachineName),
     1111             .arg(strName, strPath, CConsole(console).GetMachine().GetName()),
    11571112          formatErrorInfo(console));
    11581113}
     
    11601115void UIMessageCenter::cannotSaveMachineSettings(const CMachine &machine, QWidget *pParent /*= 0*/) const
    11611116{
    1162     /* Preserve error-info: */
    1163     COMResult res(machine);
    1164     /* Show the error: */
    11651117    error(pParent, MessageType_Error,
    11661118          tr("Failed to save the settings of the virtual machine <b>%1</b> to <b><nobr>%2</nobr></b>.")
    1167              .arg(machine.GetName(), machine.GetSettingsFilePath()),
    1168           formatErrorInfo(res));
    1169 }
    1170 
    1171 void UIMessageCenter::cannotChangeMediumType(const CMedium &medium, KMediumType oldMediumType, KMediumType newMediumType,
    1172                                              QWidget *pParent /*= 0*/) const
     1119             .arg(machine.GetName(), CMachine(machine).GetSettingsFilePath()),
     1120          formatErrorInfo(machine));
     1121}
     1122
     1123void UIMessageCenter::cannotChangeMediumType(const CMedium &medium, KMediumType oldMediumType, KMediumType newMediumType, QWidget *pParent /*= 0*/) const
    11731124{
    11741125    error(pParent, MessageType_Error,
     
    12081159    return questionBinary(pParent, MessageType_Question,
    12091160                          strMessage.arg(medium.location(), strUsage),
    1210                           0 /* auto-confirm id */, tr("Release", "detach medium"));
     1161                          0 /* auto-confirm id */,
     1162                          tr("Release", "detach medium"));
    12111163}
    12121164
     
    12581210    return questionBinary(pParent, MessageType_Question,
    12591211                          strMessage.arg(medium.location()),
    1260                           "confirmMediumRemoval" /* auto-confirm id */, tr("Remove", "medium"));
     1212                          "confirmMediumRemoval" /* auto-confirm id */,
     1213                          tr("Remove", "medium"));
    12611214}
    12621215
     
    12921245          tr("Failed to delete the storage unit of the hard disk <b>%1</b>.")
    12931246             .arg(strLocation),
    1294           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1247          formatErrorInfo(progress));
    12951248}
    12961249
    12971250void UIMessageCenter::cannotDetachDevice(const CMachine &machine, UIMediumType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent /*= 0*/) const
    12981251{
    1299     /* Preserve error-info: */
    1300     QString strErrorInfo = formatErrorInfo(machine);
    13011252    /* Prepare the message: */
    13021253    QString strMessage;
     
    13061257        {
    13071258            strMessage = tr("Failed to detach the hard disk (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
    1308                             .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(machine.GetName());
     1259                            .arg(strLocation, gpConverter->toString(storageSlot), CMachine(machine).GetName());
    13091260            break;
    13101261        }
     
    13121263        {
    13131264            strMessage = tr("Failed to detach the CD/DVD device (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
    1314                             .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(machine.GetName());
     1265                            .arg(strLocation, gpConverter->toString(storageSlot), CMachine(machine).GetName());
    13151266            break;
    13161267        }
     
    13181269        {
    13191270            strMessage = tr("Failed to detach the floppy device (<nobr><b>%1</b></nobr>) from the slot <i>%2</i> of the machine <b>%3</b>.")
    1320                             .arg(strLocation).arg(gpConverter->toString(storageSlot)).arg(machine.GetName());
     1271                            .arg(strLocation, gpConverter->toString(storageSlot), CMachine(machine).GetName());
    13211272            break;
    13221273        }
     
    13251276    }
    13261277    /* Show the error: */
    1327     error(pParent, MessageType_Error,
    1328           strMessage, strErrorInfo);
     1278    error(pParent, MessageType_Error, strMessage, formatErrorInfo(machine));
    13291279}
    13301280
    13311281bool UIMessageCenter::cannotRemountMedium(const CMachine &machine, const UIMedium &medium, bool fMount, bool fRetry, QWidget *pParent /*= 0*/) const
    13321282{
    1333     /* Preserve error-info: */
    1334     QString strErrorInfo = formatErrorInfo(machine);
    13351283    /* Compose the message: */
    13361284    QString strMessage;
     
    13751323    if (fRetry)
    13761324        return errorWithQuestion(pParent, MessageType_Question,
    1377                                  strMessage.arg(medium.isHostDrive() ? medium.name() : medium.location()).arg(machine.GetName()),
    1378                                  strErrorInfo,
     1325                                 strMessage.arg(medium.isHostDrive() ? medium.name() : medium.location(), CMachine(machine).GetName()),
     1326                                 formatErrorInfo(machine),
    13791327                                 0 /* Auto Confirm ID */,
    13801328                                 tr("Force Unmount"));
    13811329    error(pParent, MessageType_Error,
    1382           strMessage.arg(medium.isHostDrive() ? medium.name() : medium.location()).arg(machine.GetName()),
    1383           strErrorInfo);
     1330          strMessage.arg(medium.isHostDrive() ? medium.name() : medium.location(), CMachine(machine).GetName()),
     1331          formatErrorInfo(machine));
    13841332    return false;
    13851333}
     
    14721420void UIMessageCenter::cannotCreateClone(const CMachine &machine, QWidget *pParent /*= 0*/) const
    14731421{
    1474     /* Preserve error-info: */
    1475     QString strErrorInfo = formatErrorInfo(machine);
    1476     /* Show the error: */
    14771422    error(pParent, MessageType_Error,
    14781423          tr("Failed to clone the virtual machine <b>%1</b>.")
    1479              .arg(machine.GetName()),
    1480           strErrorInfo);
     1424             .arg(CMachine(machine).GetName()),
     1425          formatErrorInfo(machine));
    14811426}
    14821427
     
    14861431          tr("Failed to clone the virtual machine <b>%1</b>.")
    14871432             .arg(strMachineName),
    1488           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1433          formatErrorInfo(progress));
    14891434}
    14901435
     
    15201465          tr("Failed to create the hard disk storage <nobr><b>%1</b>.</nobr>")
    15211466             .arg(strLocation),
    1522           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1467          formatErrorInfo(progress));
    15231468}
    15241469
    15251470void UIMessageCenter::cannotRemoveMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const
    15261471{
    1527     QFileInfo fi(strFolderName);
    15281472    alert(pParent, MessageType_Critical,
    15291473          tr("<p>Cannot remove the machine folder <nobr><b>%1</b>.</nobr></p>"
    15301474             "<p>Please check that this folder really exists and that you have permissions to remove it.</p>")
    1531              .arg(fi.fileName()));
     1475             .arg(QFileInfo(strFolderName).fileName()));
    15321476}
    15331477
     
    15721516          tr("Failed to import appliance <b>%1</b>.")
    15731517             .arg(strPath),
    1574           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1518          formatErrorInfo(progress));
    15751519}
    15761520
     
    15791523    error(pParent, MessageType_Error,
    15801524          tr("Failed to check files."),
    1581           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1525          formatErrorInfo(progress));
    15821526}
    15831527
     
    15861530    error(pParent, MessageType_Error,
    15871531          tr("Failed to remove file."),
    1588           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1532          formatErrorInfo(progress));
    15891533}
    15901534
     
    16051549void UIMessageCenter::cannotExportAppliance(const CAppliance &appliance, QWidget *pParent /*= 0*/) const
    16061550{
    1607     /* Preserve error-info: */
    1608     QString strErrorInfo = formatErrorInfo(appliance);
    1609     /* Show the error: */
    16101551    error(pParent, MessageType_Error,
    16111552          tr("Failed to prepare the export of the appliance <b>%1</b>.")
    1612              .arg(appliance.GetPath()),
    1613           strErrorInfo);
     1553             .arg(CAppliance(appliance).GetPath()),
     1554          formatErrorInfo(appliance));
    16141555}
    16151556
     
    16271568          tr("Failed to export appliance <b>%1</b>.")
    16281569             .arg(strPath),
    1629           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1570          formatErrorInfo(progress));
    16301571}
    16311572
     
    16991640    if (type == MessageType_Critical)
    17001641    {
    1701         error(mainWindowShown(), type,
     1642        error(0, type,
    17021643              tr("<p>A fatal error has occurred during virtual machine execution! "
    17031644                 "The virtual machine will be powered off. Please copy the following error message "
     
    17071648    else if (type == MessageType_Error)
    17081649    {
    1709         error(mainWindowShown(), type,
     1650        error(0, type,
    17101651              tr("<p>An error has occurred during virtual machine execution! "
    17111652                 "The error details are shown below. You may try to correct the error "
     
    17151656    else
    17161657    {
    1717         error(mainWindowShown(), type,
     1658        error(0, type,
    17181659              tr("<p>The virtual machine execution may run into an error condition as described below. "
    17191660                 "We suggest that you take an appropriate action to avert the error.</p>"),
     
    17321673bool UIMessageCenter::remindAboutGuruMeditation(const QString &strLogFolder)
    17331674{
    1734     return questionBinary(mainWindowShown(), MessageType_GuruMeditation,
     1675    return questionBinary(0, MessageType_GuruMeditation,
    17351676                          tr("<p>A critical error has occurred while running the virtual "
    17361677                             "machine and the machine execution has been stopped.</p>"
     
    17591700{
    17601701    if (fHWVirtExSupported)
    1761         return questionBinary(mainWindowShown(), MessageType_Error,
     1702        return questionBinary(0, MessageType_Error,
    17621703                              tr("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
    17631704                                 "not operational. Your 64-bit guest will fail to detect a "
     
    17681709                              tr("Close VM"), tr("Continue"));
    17691710    else
    1770         return questionBinary(mainWindowShown(), MessageType_Error,
     1711        return questionBinary(0, MessageType_Error,
    17711712                              tr("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
    17721713                                 "Your 64-bit guest will fail to detect a 64-bit CPU and will "
     
    17791720{
    17801721    if (fHWVirtExSupported)
    1781         return questionBinary(mainWindowShown(), MessageType_Error,
     1722        return questionBinary(0, MessageType_Error,
    17821723                              tr("<p>VT-x/AMD-V hardware acceleration has been enabled, but is not operational. "
    17831724                                 "Certain guests (e.g. OS/2 and QNX) require this feature.</p>"
     
    17861727                              tr("Close VM"), tr("Continue"));
    17871728    else
    1788         return questionBinary(mainWindowShown(), MessageType_Error,
     1729        return questionBinary(0, MessageType_Error,
    17891730                              tr("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
    17901731                                 "Certain guests (e.g. OS/2 and QNX) require this feature and will fail to boot without it.</p>"),
     
    17951736bool UIMessageCenter::cannotStartWithoutNetworkIf(const QString &strMachineName, const QString &strIfNames) const
    17961737{
    1797     return questionBinary(mainWindowShown(), MessageType_Error,
     1738    return questionBinary(0, MessageType_Error,
    17981739                          tr("<p>Could not start the machine <b>%1</b> because the following "
    17991740                             "physical network interfaces were not found:</p><p><b>%2</b></p>"
     
    18061747void UIMessageCenter::cannotStartMachine(const CConsole &console, const QString &strName) const
    18071748{
    1808     error(mainWindowShown(), MessageType_Error,
     1749    error(0, MessageType_Error,
    18091750          tr("Failed to start the virtual machine <b>%1</b>.")
    18101751             .arg(strName),
     
    18141755void UIMessageCenter::cannotStartMachine(const CProgress &progress, const QString &strName) const
    18151756{
    1816     error(mainWindowShown(), MessageType_Error,
     1757    error(0, MessageType_Error,
    18171758          tr("Failed to start the virtual machine <b>%1</b>.")
    18181759             .arg(strName),
    1819           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1760          formatErrorInfo(progress));
    18201761}
    18211762
    18221763void UIMessageCenter::cannotSendACPIToMachine() const
    18231764{
    1824     alert(mainWindowShown(),  MessageType_Warning,
     1765    alert(0,  MessageType_Warning,
    18251766          tr("You are trying to shut down the guest with the ACPI power button. "
    18261767             "This is currently not possible because the guest does not support software shutdown."));
     
    18291770bool UIMessageCenter::confirmInputCapture(bool &fAutoConfirmed) const
    18301771{
    1831     int rc = question(mainWindowShown(), MessageType_Info,
     1772    int rc = question(0, MessageType_Info,
    18321773                      tr("<p>You have <b>clicked the mouse</b> inside the Virtual Machine display or pressed the <b>host key</b>. "
    18331774                         "This will cause the Virtual Machine to <b>capture</b> the host mouse pointer (only if the mouse pointer "
     
    18541795void UIMessageCenter::remindAboutAutoCapture() const
    18551796{
    1856     alert(mainWindowShown(), MessageType_Info,
     1797    alert(0, MessageType_Info,
    18571798          tr("<p>You have the <b>Auto capture keyboard</b> option turned on. "
    18581799             "This will cause the Virtual Machine to automatically <b>capture</b> "
     
    18761817void UIMessageCenter::remindAboutMouseIntegration(bool fSupportsAbsolute) const
    18771818{
    1878     /* Do not show this async warning more than one at time: */
    18791819    if (warningShown("remindAboutMouseIntegration"))
    18801820        return;
     
    18891829    if (fSupportsAbsolute)
    18901830    {
    1891         alert(mainWindowShown(), MessageType_Info,
     1831        alert(0, MessageType_Info,
    18921832              tr("<p>The Virtual Machine reports that the guest OS supports <b>mouse pointer integration</b>. "
    18931833                 "This means that you do not need to <i>capture</i> the mouse pointer to be able to use it in your guest OS -- "
     
    19031843    else
    19041844    {
    1905         alert(mainWindowShown(), MessageType_Info,
     1845        alert(0, MessageType_Info,
    19061846              tr("<p>The Virtual Machine reports that the guest OS does not support <b>mouse pointer integration</b> "
    19071847                 "in the current video mode. You need to capture the mouse (by clicking over the VM display "
     
    19101850    }
    19111851
    1912     /* Allow to show this async warning: */
    19131852    setWarningShown("remindAboutMouseIntegration", false);
    19141853}
     
    19161855void UIMessageCenter::remindAboutPausedVMInput() const
    19171856{
    1918     alert(mainWindowShown(), MessageType_Info,
     1857    alert(0, MessageType_Info,
    19191858          tr("<p>The Virtual Machine is currently in the <b>Paused</b> state and "
    19201859             "not able to see any keyboard or mouse input. If you want to "
     
    19261865bool UIMessageCenter::confirmGoingFullscreen(const QString &strHotKey) const
    19271866{
    1928     return questionBinary(mainWindowShown(), MessageType_Info,
     1867    return questionBinary(0, MessageType_Info,
    19291868                          tr("<p>The virtual machine window will be now switched to <b>fullscreen</b> mode. "
    19301869                             "You can go back to windowed mode at any time by pressing <b>%1</b>.</p>"
     
    19391878bool UIMessageCenter::confirmGoingSeamless(const QString &strHotKey) const
    19401879{
    1941     return questionBinary(mainWindowShown(), MessageType_Info,
     1880    return questionBinary(0, MessageType_Info,
    19421881                          tr("<p>The virtual machine window will be now switched to <b>Seamless</b> mode. "
    19431882                             "You can go back to windowed mode at any time by pressing <b>%1</b>.</p>"
     
    19521891bool UIMessageCenter::confirmGoingScale(const QString &strHotKey) const
    19531892{
    1954     return questionBinary(mainWindowShown(), MessageType_Info,
     1893    return questionBinary(0, MessageType_Info,
    19551894                          tr("<p>The virtual machine window will be now switched to <b>Scale</b> mode. "
    19561895                             "You can go back to windowed mode at any time by pressing <b>%1</b>.</p>"
     
    19651904bool UIMessageCenter::cannotEnterFullscreenMode(ULONG /* uWidth */, ULONG /* uHeight */, ULONG /* uBpp */, ULONG64 uMinVRAM) const
    19661905{
    1967     return questionBinary(mainWindowShown(), MessageType_Warning,
     1906    return questionBinary(0, MessageType_Warning,
    19681907                          tr("<p>Could not switch the guest display to fullscreen mode due to insufficient guest video memory.</p>"
    19691908                             "<p>You should configure the virtual machine to have at least <b>%1</b> of video memory.</p>"
     
    19761915void UIMessageCenter::cannotEnterSeamlessMode(ULONG /* uWidth */, ULONG /* uHeight */, ULONG /* uBpp */, ULONG64 uMinVRAM) const
    19771916{
    1978     alert(mainWindowShown(), MessageType_Error,
     1917    alert(0, MessageType_Error,
    19791918          tr("<p>Could not enter seamless mode due to insufficient guest "
    19801919             "video memory.</p>"
     
    19861925bool UIMessageCenter::cannotSwitchScreenInFullscreen(quint64 uMinVRAM) const
    19871926{
    1988     return questionBinary(mainWindowShown(), MessageType_Warning,
     1927    return questionBinary(0, MessageType_Warning,
    19891928                          tr("<p>Could not change the guest screen to this host screen due to insufficient guest video memory.</p>"
    19901929                             "<p>You should configure the virtual machine to have at least <b>%1</b> of video memory.</p>"
     
    19971936void UIMessageCenter::cannotSwitchScreenInSeamless(quint64 uMinVRAM) const
    19981937{
    1999     alert(mainWindowShown(), MessageType_Error,
     1938    alert(0, MessageType_Error,
    20001939          tr("<p>Could not change the guest screen to this host screen "
    20011940             "due to insufficient guest video memory.</p>"
     
    20071946void UIMessageCenter::cannotAttachUSBDevice(const CConsole &console, const QString &strDevice) const
    20081947{
    2009     /* Preserve error-info: */
    2010     QString strErrorInfo = formatErrorInfo(console);
    2011     /* Show the error: */
    2012     error(mainWindowShown(), MessageType_Error,
     1948    error(0, MessageType_Error,
    20131949          tr("Failed to attach the USB device <b>%1</b> to the virtual machine <b>%2</b>.")
    2014              .arg(strDevice, console.GetMachine().GetName()),
    2015           strErrorInfo);
     1950             .arg(strDevice, CConsole(console).GetMachine().GetName()),
     1951          formatErrorInfo(console));
    20161952}
    20171953
    20181954void UIMessageCenter::cannotAttachUSBDevice(const CVirtualBoxErrorInfo &errorInfo, const QString &strDevice, const QString &strMachineName) const
    20191955{
    2020     error(mainWindowShown(), MessageType_Error,
     1956    error(0, MessageType_Error,
    20211957          tr("Failed to attach the USB device <b>%1</b> to the virtual machine <b>%2</b>.")
    20221958             .arg(strDevice, strMachineName),
     
    20261962void UIMessageCenter::cannotDetachUSBDevice(const CConsole &console, const QString &strDevice) const
    20271963{
    2028     /* Preserve error-info: */
    2029     QString strErrorInfo = formatErrorInfo(console);
    2030     /* Show the error: */
    2031     error(mainWindowShown(), MessageType_Error,
     1964    error(0, MessageType_Error,
    20321965          tr("Failed to detach the USB device <b>%1</b> from the virtual machine <b>%2</b>.")
    2033              .arg(strDevice, console.GetMachine().GetName()),
    2034           strErrorInfo);
     1966             .arg(strDevice, CConsole(console).GetMachine().GetName()),
     1967          formatErrorInfo(console));
    20351968}
    20361969
    20371970void UIMessageCenter::cannotDetachUSBDevice(const CVirtualBoxErrorInfo &errorInfo, const QString &strDevice, const QString &strMachineName) const
    20381971{
    2039     error(mainWindowShown(), MessageType_Error,
     1972    error(0, MessageType_Error,
    20401973          tr("Failed to detach the USB device <b>%1</b> from the virtual machine <b>%2</b>.")
    20411974             .arg(strDevice, strMachineName),
     
    20431976}
    20441977
    2045 void UIMessageCenter::remindAboutGuestAdditionsAreNotActive(QWidget *pParent /*= 0*/) const
    2046 {
    2047     alert(pParent, MessageType_Warning,
     1978void UIMessageCenter::remindAboutGuestAdditionsAreNotActive() const
     1979{
     1980    alert(0, MessageType_Warning,
    20481981          tr("<p>The VirtualBox Guest Additions do not appear to be available on this virtual machine, "
    20491982             "and shared folders cannot be used without them. To use shared folders inside the virtual machine, "
     
    20782011void UIMessageCenter::askUserToDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion) const
    20792012{
    2080     alert(mainWindowShown(), MessageType_Info,
     2013    alert(networkManagerOrMainWindowShown(), MessageType_Info,
    20812014          tr("<p>You have version %1 of the <b><nobr>%2</nobr></b> installed.</p>"
    20822015             "<p>You should download and install version %3 of this extension pack from Oracle!</p>")
    2083              .arg(strExtPackVersion).arg(strExtPackName).arg(strVBoxVersion),
    2084           0 /* auto-confirm id */);
     2016             .arg(strExtPackVersion).arg(strExtPackName).arg(strVBoxVersion));
    20852017}
    20862018
    20872019bool UIMessageCenter::cannotFindGuestAdditions() const
    20882020{
    2089     return questionBinary(mainWindowShown(), MessageType_Question,
     2021    return questionBinary(0, MessageType_Question,
    20902022                          tr("<p>Could not find the <b>VirtualBox Guest Additions</b> CD image.</p>"
    20912023                             "<p>Do you wish to download this CD image from the Internet?</p>"),
     
    20962028bool UIMessageCenter::confirmDownloadGuestAdditions(const QString &strUrl, qulonglong uSize) const
    20972029{
    2098     QLocale loc(VBoxGlobal::languageId());
    20992030    return questionBinary(networkManagerOrMainWindowShown(), MessageType_Question,
    21002031                          tr("<p>Are you sure you want to download the <b>VirtualBox Guest Additions</b> CD image "
    21012032                             "from <nobr><a href=\"%1\">%1</a></nobr> (size %2 bytes)?</p>")
    2102                              .arg(strUrl, loc.toString(uSize)),
     2033                             .arg(strUrl, QLocale(VBoxGlobal::languageId()).toString(uSize)),
    21032034                          0 /* auto-confirm id */,
    21042035                          tr("Download"));
     
    21292060void UIMessageCenter::cannotMountGuestAdditions(const QString &strMachineName) const
    21302061{
    2131     alert(mainWindowShown(), MessageType_Error,
     2062    alert(0, MessageType_Error,
    21322063          tr("<p>Could not insert the <b>VirtualBox Guest Additions</b> CD image into the virtual machine <b>%1</b>, "
    21332064             "as the machine has no CD/DVD-ROM drives. Please add a drive using the storage page of the "
     
    21382069void UIMessageCenter::cannotUpdateGuestAdditions(const CProgress &progress) const
    21392070{
    2140     error(mainWindowShown(), MessageType_Error,
     2071    error(0, MessageType_Error,
    21412072          tr("Failed to update Guest Additions. "
    21422073             "The Guest Additions installation image will be mounted to provide a manual installation."),
    2143           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     2074          formatErrorInfo(progress));
    21442075}
    21452076
    21462077bool UIMessageCenter::cannotFindUserManual(const QString &strMissedLocation) const
    21472078{
    2148     return questionBinary(mainWindowShown(), MessageType_Question,
     2079    return questionBinary(0, MessageType_Question,
    21492080                          tr("<p>Could not find the <b>VirtualBox User Manual</b> <nobr><b>%1</b>.</nobr></p>"
    21502081                             "<p>Do you wish to download this file from the Internet?</p>")
     
    21562087bool UIMessageCenter::confirmDownloadUserManual(const QString &strURL, qulonglong uSize) const
    21572088{
    2158     QLocale loc(VBoxGlobal::languageId());
    21592089    return questionBinary(networkManagerOrMainWindowShown(), MessageType_Question,
    21602090                          tr("<p>Are you sure you want to download the <b>VirtualBox User Manual</b> "
    21612091                             "from <nobr><a href=\"%1\">%1</a></nobr> (size %2 bytes)?</p>")
    2162                              .arg(strURL, loc.toString(uSize)),
     2092                             .arg(strURL, QLocale(VBoxGlobal::languageId()).toString(uSize)),
    21632093                          0 /* auto-confirm id */,
    21642094                          tr("Download"));
     
    21862116bool UIMessageCenter::warAboutOutdatedExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion) const
    21872117{
    2188     return questionBinary(mainWindowShown(),
    2189                           MessageType_Question,
     2118    return questionBinary(networkManagerOrMainWindowShown(), MessageType_Question,
    21902119                          tr("<p>You have an old version (%1) of the <b><nobr>%2</nobr></b> installed.</p>"
    21912120                             "<p>Do you wish to download latest one from the Internet?</p>")
     
    21972126bool UIMessageCenter::confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize) const
    21982127{
    2199     QLocale loc(VBoxGlobal::languageId());
    22002128    return questionBinary(networkManagerOrMainWindowShown(), MessageType_Question,
    22012129                          tr("<p>Are you sure you want to download the <b><nobr>%1</nobr></b> "
    22022130                             "from <nobr><a href=\"%2\">%2</a></nobr> (size %3 bytes)?</p>")
    2203                              .arg(strExtPackName, strURL, loc.toString(uSize)),
     2131                             .arg(strExtPackName, strURL, QLocale(VBoxGlobal::languageId()).toString(uSize)),
    22042132                          0 /* auto-confirm id */,
    22052133                          tr("Download"));
     
    22422170                             "</table></p>")
    22432171                             .arg(strPackName).arg(strPackVersion).arg(strPackDescription),
    2244                           0,
     2172                          0 /* auto-confirm id */,
    22452173                          tr("Install", "extension pack"));
    22462174}
     
    22742202                                "</table></p>")
    22752203                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
    2276                              0,
     2204                             0 /* auto-confirm id */,
    22772205                             tr("&Upgrade"));
    22782206    else if (iVerCmp < 0)
     
    22872215                                "</table></p>")
    22882216                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
    2289                              0,
     2217                             0 /* auto-confirm id */,
    22902218                             tr("&Downgrade"));
    22912219    else
     
    22992227                                "</table></p>")
    23002228                                .arg(strBelehrung).arg(strPackName).arg(strPackVersionOld).arg(strPackDescription),
    2301                              0,
     2229                             0 /* auto-confirm id */,
    23022230                             tr("&Reinstall"));
    23032231    return fRc;
     
    23102238                             "<p>Are you sure you want to proceed?</p>")
    23112239                             .arg(strPackName),
    2312                           0,
     2240                          0 /* auto-confirm id */,
    23132241                          tr("&Remove"));
    23142242}
     
    23412269          tr("Failed to install the Extension Pack <b>%1</b>.")
    23422270             .arg(strFilename),
    2343           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     2271          formatErrorInfo(progress));
    23442272}
    23452273
     
    23572285          tr("Failed to uninstall the Extension Pack <b>%1</b>.")
    23582286             .arg(strPackName),
    2359           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     2287          formatErrorInfo(progress));
    23602288}
    23612289
     
    23792307    error(pParent, MessageType_Error,
    23802308          tr("Failed to drop data."),
    2381           !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     2309          formatErrorInfo(progress));
    23822310}
    23832311#endif /* VBOX_WITH_DRAG_AND_DROP */
     
    24792407
    24802408    return str;
     2409}
     2410
     2411/* static */
     2412QString UIMessageCenter::formatErrorInfo(const CProgress &progress)
     2413{
     2414    return !progress.isOk() ? formatErrorInfo(static_cast<COMBaseWithEI>(progress)) : formatErrorInfo(progress.GetErrorInfo());
    24812415}
    24822416
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r45371 r45424  
    186186    void cannotOpenMachine(const CVirtualBox &vbox, const QString &strMachinePath) const;
    187187    void cannotReregisterExistingMachine(const QString &strMachinePath, const QString &strMachineName) const;
    188     void cannotResolveCollisionAutomatically(const QString &strName, const QString &strGroupName) const;
     188    void cannotResolveCollisionAutomatically(const QString &strCollisionName, const QString &strGroupName) const;
    189189    bool confirmAutomaticCollisionResolve(const QString &strName, const QString &strGroupName) const;
    190190    void cannotSetGroups(const CMachine &machine) const;
     
    202202    void cannotDiscardSavedState(const CConsole &console) const;
    203203    void cannotSaveMachineState(const CConsole &console);
    204     void cannotSaveMachineState(const CProgress &progress, const QString &strName);
     204    void cannotSaveMachineState(const CProgress &progress, const QString &strMachineName);
    205205    void cannotACPIShutdownMachine(const CConsole &console) const;
    206206    void cannotPowerDownMachine(const CConsole &console) const;
    207     void cannotPowerDownMachine(const CProgress &progress, const QString &strName) const;
     207    void cannotPowerDownMachine(const CProgress &progress, const QString &strMachineName) const;
    208208
    209209    /* API: Snapshot warnings: */
     
    214214    void cannotTakeSnapshot(const CConsole &console, const QString &strMachineName, QWidget *pParent = 0) const;
    215215    void cannotTakeSnapshot(const CProgress &progress, const QString &strMachineName, QWidget *pParent = 0) const;
    216     void cannotRestoreSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName, QWidget *pParent = 0) const;
    217     void cannotRestoreSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName, QWidget *pParent = 0) const;
     216    void cannotRestoreSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName) const;
     217    void cannotRestoreSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName) const;
    218218    void cannotRemoveSnapshot(const CConsole &console, const QString &strSnapshotName, const QString &strMachineName) const;
    219219    void cannotRemoveSnapshot(const CProgress &progress, const QString &strSnapshotName, const QString &strMachineName) const;
     
    223223    void cannotCreateHostInterface(const CHost &host, QWidget *pParent = 0);
    224224    void cannotCreateHostInterface(const CProgress &progress, QWidget *pParent = 0);
    225     void cannotRemoveHostInterface(const CHost &host, const QString &strName, QWidget *pParent = 0);
    226     void cannotRemoveHostInterface(const CProgress &progress, const QString &strName, QWidget *pParent = 0);
     225    void cannotRemoveHostInterface(const CHost &host, const QString &strInterfaceName, QWidget *pParent = 0);
     226    void cannotRemoveHostInterface(const CProgress &progress, const QString &strInterfaceName, QWidget *pParent = 0);
    227227    void cannotSetSystemProperties(const CSystemProperties &properties, QWidget *pParent = 0) const;
    228228
     
    239239    void warnAboutIncorrectPort(QWidget *pParent = 0) const;
    240240    bool confirmCancelingPortForwardingDialog(QWidget *pParent = 0) const;
    241     void cannotCreateSharedFolder(const CMachine &machine, const QString &strMachineName, const QString &strName, const QString &strPath, QWidget *pParent = 0);
    242     void cannotCreateSharedFolder(const CConsole &console, const QString &strMachineName, const QString &strName, const QString &strPath, QWidget *pParent = 0);
    243     void cannotRemoveSharedFolder(const CMachine &machine, const QString &strMachineName, const QString &strName, const QString &strPath, QWidget *pParent = 0);
    244     void cannotRemoveSharedFolder(const CConsole &console, const QString &strMachineName, const QString &strName, const QString &strPath, QWidget *pParent = 0);
     241    void cannotCreateSharedFolder(const CMachine &machine, const QString &strName, const QString &strPath, QWidget *pParent = 0);
     242    void cannotCreateSharedFolder(const CConsole &console, const QString &strName, const QString &strPath, QWidget *pParent = 0);
     243    void cannotRemoveSharedFolder(const CMachine &machine, const QString &strName, const QString &strPath, QWidget *pParent = 0);
     244    void cannotRemoveSharedFolder(const CConsole &console, const QString &strName, const QString &strPath, QWidget *pParent = 0);
    245245    void cannotSaveMachineSettings(const CMachine &machine, QWidget *pParent = 0) const;
    246246
     
    304304    void cannotDetachUSBDevice(const CConsole &console, const QString &strDevice) const;
    305305    void cannotDetachUSBDevice(const CVirtualBoxErrorInfo &errorInfo, const QString &strDevice, const QString &strMachineName) const;
    306     void remindAboutGuestAdditionsAreNotActive(QWidget *pParent = 0) const;
     306    void remindAboutGuestAdditionsAreNotActive() const;
    307307
    308308    /* API: Network management warnings: */
     
    356356    /* API: Static helpers: */
    357357    static QString formatRC(HRESULT rc);
     358    static QString formatErrorInfo(const CProgress &progress);
    358359    static QString formatErrorInfo(const COMErrorInfo &info, HRESULT wrapperRC = S_OK);
    359360    static QString formatErrorInfo(const CVirtualBoxErrorInfo &info);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r45402 r45424  
    48094809     * otherwise we better show the progress... */
    48104810    int iSpawningDuration = 60000;
    4811     msgCenter().showModalProgressDialog(progress, machine.GetName(), "", msgCenter().mainWindowShown(), iSpawningDuration);
     4811    msgCenter().showModalProgressDialog(progress, machine.GetName(),
     4812                                        ":/progress_start_90px.png", 0, iSpawningDuration);
    48124813    if (!progress.isOk() || progress.GetResultCode() != 0)
    48134814        msgCenter().cannotOpenSession(progress, machine.GetName());
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r45368 r45424  
    330330                {
    331331                    /* Show machine power down progress: */
    332                     msgCenter().showModalProgressDialog(progress, strMachineName, ":/progress_poweroff_90px.png", activeMachineWindow());
     332                    msgCenter().showModalProgressDialog(progress, strMachineName, ":/progress_poweroff_90px.png");
    333333                    if (!progress.isOk() || progress.GetResultCode() != 0)
    334334                        msgCenter().cannotPowerDownMachine(progress, strMachineName);
     
    10341034            {
    10351035                /* Show the take-snapshot progress: */
    1036                 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_snapshot_create_90px.png", activeMachineWindow());
     1036                msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_snapshot_create_90px.png");
    10371037                if (!progress.isOk() || progress.GetResultCode() != 0)
    1038                     msgCenter().cannotTakeSnapshot(progress, machine.GetName(), activeMachineWindow());
     1038                    msgCenter().cannotTakeSnapshot(progress, machine.GetName());
    10391039            }
    10401040            else
    1041                 msgCenter().cannotTakeSnapshot(console, machine.GetName(), activeMachineWindow());
     1041                msgCenter().cannotTakeSnapshot(console, machine.GetName());
    10421042        }
    10431043    }
     
    12261226    /* Do not process if additions are not loaded! */
    12271227    if (!uisession()->isGuestAdditionsActive())
    1228         msgCenter().remindAboutGuestAdditionsAreNotActive(activeMachineWindow());
     1228        msgCenter().remindAboutGuestAdditionsAreNotActive();
    12291229
    12301230    /* Open VM settings : Shared folders page: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r45371 r45424  
    221221    if (isSaved())
    222222    {
    223         msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_restore_90px.png", mainMachineWindow(), 0);
     223        msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_restore_90px.png", 0, 0);
    224224        /* If restoring from saved state, guest MachineView
    225225           should be notified about host MachineWindow geometry change */
     
    227227    }
    228228    else
    229         msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_start_90px.png", mainMachineWindow());
     229        msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_start_90px.png");
    230230
    231231    /* Check for a progress failure: */
     
    280280                    uimachine()->machineLogic()->setPreventAutoClose(true);
    281281                /* Show the power down progress dialog */
    282                 msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_poweroff_90px.png", mainMachineWindow());
     282                msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_poweroff_90px.png");
    283283                if (!progress.isOk() || progress.GetResultCode() != 0)
    284284                    msgCenter().cannotPowerDownMachine(progress, machine.GetName());
     
    320320    {
    321321        /* Show the saving progress: */
    322         msgCenter().showModalProgressDialog(progress, machine.GetName(),
    323                                             ":/progress_state_save_90px.png",
    324                                             machineLogic()->activeMachineWindow());
     322        msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_state_save_90px.png");
    325323        if (!progress.isOk() || progress.GetResultCode() != 0)
    326324        {
     
    370368    {
    371369        /* Show the power-off progress: */
    372         msgCenter().showModalProgressDialog(progress, machine.GetName(),
    373                                             ":/progress_poweroff_90px.png",
    374                                             machineLogic()->activeMachineWindow());
     370        msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_poweroff_90px.png");
    375371        if (progress.GetResultCode() == 0)
    376372        {
     
    384380                {
    385381                    /* Show the snapshot-discard progress: */
    386                     msgCenter().showModalProgressDialog(progress, machine.GetName(),
    387                                                         ":/progress_snapshot_discard_90px.png",
    388                                                         machineLogic()->activeMachineWindow());
     382                    msgCenter().showModalProgressDialog(progress, machine.GetName(), ":/progress_snapshot_discard_90px.png");
    389383                    if (progress.GetResultCode() != 0)
    390384                    {
    391385                        /* Failed in progress: */
    392                         msgCenter().cannotRestoreSnapshot(progress, snapshot.GetName(), machine.GetName(), machineLogic()->activeMachineWindow());
     386                        msgCenter().cannotRestoreSnapshot(progress, snapshot.GetName(), machine.GetName());
    393387                        return false;
    394388                    }
     
    397391                {
    398392                    /* Failed in console: */
    399                     msgCenter().cannotRestoreSnapshot(console, snapshot.GetName(), machine.GetName(), machineLogic()->activeMachineWindow());
     393                    msgCenter().cannotRestoreSnapshot(console, snapshot.GetName(), machine.GetName());
    400394                    return false;
    401395                }
     
    505499    if (fResult)
    506500    {
    507         msgCenter().showModalProgressDialog(progressInstall, tr("Updating Guest Additions"), ":/progress_install_guest_additions_90px.png",
    508                                             machineLogic()->activeMachineWindow(), 500 /* 500ms delay. */);
     501        msgCenter().showModalProgressDialog(progressInstall, tr("Updating Guest Additions"),
     502                                            ":/progress_install_guest_additions_90px.png",
     503                                            0, 500 /* 500ms delay. */);
    509504        if (progressInstall.GetCanceled())
    510505            return;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r45358 r45424  
    750750    if (!sharedFolder.isNull())
    751751    {
    752         /* Get machine-name: */
    753         QString strMachineName(m_machine.GetName());
    754752        /* Remove existing shared folder: */
    755753        switch(sharedFoldersType)
     
    763761                    setFailed(true);
    764762                    /* Show error message: */
    765                     msgCenter().cannotRemoveSharedFolder(m_machine, strMachineName, strName, strPath, this);
     763                    msgCenter().cannotRemoveSharedFolder(m_machine, strName, strPath, this);
    766764                    /* Finish early: */
    767765                    return false;
     
    777775                    setFailed(true);
    778776                    /* Show error message: */
    779                     msgCenter().cannotRemoveSharedFolder(m_console, strMachineName, strName, strPath, this);
     777                    msgCenter().cannotRemoveSharedFolder(m_console, strName, strPath, this);
    780778                    /* Finish early: */
    781779                    return false;
     
    809807    if (sharedFolder.isNull())
    810808    {
    811         /* Get machine-name: */
    812         QString strMachineName(m_machine.GetName());
    813809        /* Create new shared folder: */
    814810        switch(sharedFoldersType)
     
    822818                    setFailed(true);
    823819                    /* Show error message: */
    824                     msgCenter().cannotCreateSharedFolder(m_machine, strMachineName, strName, strPath, this);
     820                    msgCenter().cannotCreateSharedFolder(m_machine, strName, strPath, this);
    825821                    /* Finish early: */
    826822                    return false;
     
    837833                    setFailed(true);
    838834                    /* Show error message: */
    839                     msgCenter().cannotCreateSharedFolder(m_console, strMachineName, strName, strPath, this);
     835                    msgCenter().cannotCreateSharedFolder(m_console, strName, strPath, this);
    840836                    /* Finish early: */
    841837                    return false;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp

    r45325 r45424  
    6767            {
    6868                /* Show some progress, so the user know whats going on */
    69                 msgCenter().showModalProgressDialog(progress, tr("Reading Appliance ..."), "", this);
     69                msgCenter().showModalProgressDialog(progress, tr("Reading Appliance ..."), ":/shared_folder_32px.png", this);
    7070                if (!progress.isOk() || progress.GetResultCode() != 0)
    7171                    fResult = false;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r45358 r45424  
    8686    {
    8787        /* Show some progress, so the user know whats going on: */
    88         msgCenter().showModalProgressDialog(progress, QApplication::translate("UIWizardExportApp", "Checking files ..."), "", this);
     88        msgCenter().showModalProgressDialog(progress, QApplication::translate("UIWizardExportApp", "Checking files ..."),
     89                                            ":/refresh_32px.png", this);
    8990        if (progress.GetCanceled())
    9091            return false;
     
    107108        {
    108109            /* Show some progress, so the user know whats going on: */
    109             msgCenter().showModalProgressDialog(progress1, QApplication::translate("UIWizardExportApp", "Removing files ..."), "", this);
     110            msgCenter().showModalProgressDialog(progress1, QApplication::translate("UIWizardExportApp", "Removing files ..."),
     111                                                ":/vm_delete_32px.png", this);
    110112            if (progress1.GetCanceled())
    111113                return false;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette