VirtualBox

Changeset 45325 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2013 7:20:01 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Message-center cleanup (part 24): Another wizards stuff.

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

Legend:

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

    r45316 r45325  
    11911191}
    11921192
    1193 void UIMessageCenter::cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent /*= 0*/)
     1193bool UIMessageCenter::confirmHardDisklessMachine(QWidget *pParent /*= 0*/) const
     1194{
     1195    return messageOkCancel(pParent ? pParent : mainWindowShown(), MessageType_Warning,
     1196                           tr("You are about to create a new virtual machine without a hard drive. "
     1197                              "You will not be able to install an operating system on the machine "
     1198                              "until you add one. In the mean time you will only be able to start the "
     1199                              "machine using a virtual optical disk or from the network."),
     1200                           0 /* auto-confirm id */,
     1201                           tr("Continue", "no hard disk attached"),
     1202                           tr("Go Back", "no hard disk attached"));
     1203}
     1204
     1205void UIMessageCenter::cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent /*= 0*/) const
    11941206{
    11951207    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    11981210}
    11991211
    1200 void UIMessageCenter::cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent /*= 0*/)
     1212void UIMessageCenter::cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent /*= 0*/) const
    12011213{
    12021214    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    12061218}
    12071219
    1208 void UIMessageCenter::cannotCreateClone(const CMachine &machine, QWidget *pParent /*= 0*/)
     1220void UIMessageCenter::cannotCreateClone(const CMachine &machine, QWidget *pParent /*= 0*/) const
    12091221{
    12101222    /* Preserve error-info: */
     
    12171229}
    12181230
    1219 void UIMessageCenter::cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent /* = 0 */)
     1231void UIMessageCenter::cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent /*= 0*/) const
    12201232{
    12211233    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    12251237}
    12261238
    1227 void UIMessageCenter::cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent /*= 0*/)
     1239void UIMessageCenter::cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent /*= 0*/) const
    12281240{
    12291241    message(pParent ? pParent : mainWindowShown(), MessageType_Info,
     
    12351247}
    12361248
    1237 void UIMessageCenter::cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation, QWidget *pParent /*= 0*/)
     1249void UIMessageCenter::cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation, QWidget *pParent /*= 0*/) const
    12381250{
    12391251    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    12431255}
    12441256
    1245 void UIMessageCenter::cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent /*= 0*/)
     1257void UIMessageCenter::cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent /*= 0*/) const
    12461258{
    12471259    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    12511263}
    12521264
    1253 void UIMessageCenter::cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent /*= 0*/)
     1265void UIMessageCenter::cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent /*= 0*/) const
    12541266{
    12551267    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     
    12591271}
    12601272
    1261 void UIMessageCenter::warnAboutCannotRemoveMachineFolder(QWidget *pParent, const QString &strFolderName)
     1273void UIMessageCenter::cannotRemoveMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const
    12621274{
    12631275    QFileInfo fi(strFolderName);
     
    12681280}
    12691281
    1270 void UIMessageCenter::warnAboutCannotRewriteMachineFolder(QWidget *pParent, const QString &strFolderName)
     1282void UIMessageCenter::cannotRewriteMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const
    12711283{
    12721284    QFileInfo fi(strFolderName);
     
    12771289}
    12781290
    1279 void UIMessageCenter::warnAboutCannotCreateMachineFolder(QWidget *pParent, const QString &strFolderName)
     1291void UIMessageCenter::cannotCreateMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const
    12801292{
    12811293    QFileInfo fi(strFolderName);
     
    12861298}
    12871299
    1288 bool UIMessageCenter::confirmHardDisklessMachine(QWidget *pParent)
    1289 {
    1290     return message(pParent, MessageType_Warning,
    1291         tr("You are about to create a new virtual machine without a hard drive. "
    1292            "You will not be able to install an operating system on the machine "
    1293            "until you add one. In the mean time you will only be able to start the "
    1294            "machine using a virtual optical disk or from the network."),
    1295         0 /* auto-confirm id */,
    1296         AlertButton_Ok | AlertButtonOption_Default,
    1297         AlertButton_Cancel | AlertButtonOption_Escape,
    1298         0,
    1299         tr("Continue", "no hard disk attached"),
    1300         tr("Go Back", "no hard disk attached")) == AlertButton_Ok;
    1301 }
    1302 
    1303 void UIMessageCenter::cannotImportAppliance(CAppliance *pAppliance,
    1304                                             QWidget *pParent /* = NULL */) const
    1305 {
    1306     if (pAppliance->isNull())
    1307     {
    1308         message(pParent ? pParent : mainWindowShown(),
    1309                 MessageType_Error,
    1310                 tr("Failed to open appliance."));
    1311     }
    1312     else
    1313     {
    1314         /* Preserve the current error info before calling the object again */
    1315         COMResult res(*pAppliance);
    1316 
    1317         /* Add the warnings in the case of an early error */
    1318         QVector<QString> w = pAppliance->GetWarnings();
    1319         QString wstr;
    1320         foreach(const QString &str, w)
    1321             wstr += QString("<br />Warning: %1").arg(str);
    1322         if (!wstr.isEmpty())
    1323             wstr = "<br />" + wstr;
    1324 
    1325         message(pParent ? pParent : mainWindowShown(),
    1326                 MessageType_Error,
    1327                 tr("Failed to open/interpret appliance <b>%1</b>.").arg(pAppliance->GetPath()),
    1328                 wstr +
    1329                 formatErrorInfo(res));
    1330     }
    1331 }
    1332 
    1333 void UIMessageCenter::cannotImportAppliance(const CProgress &progress,
    1334                                             CAppliance* pAppliance,
    1335                                             QWidget *pParent /* = NULL */) const
    1336 {
    1337     AssertWrapperOk(progress);
    1338 
    1339     message(pParent ? pParent : mainWindowShown(),
    1340             MessageType_Error,
    1341             tr("Failed to import appliance <b>%1</b>.").arg(pAppliance->GetPath()),
    1342             formatErrorInfo(progress.GetErrorInfo()));
    1343 }
    1344 
    1345 void UIMessageCenter::cannotCheckFiles(const CProgress &progress,
    1346                                        QWidget *pParent /* = NULL */) const
    1347 {
    1348     AssertWrapperOk(progress);
    1349 
    1350     message(pParent ? pParent : mainWindowShown(),
    1351             MessageType_Error,
     1300void UIMessageCenter::cannotImportAppliance(CAppliance &appliance, QWidget *pParent /*= 0*/) const
     1301{
     1302    /* Preserve error-info: */
     1303    QString strErrorInfo = formatErrorInfo(appliance);
     1304    /* Add the warnings in the case of an early error: */
     1305    QString strWarningInfo;
     1306    foreach(const QString &strWarning, appliance.GetWarnings())
     1307        strWarningInfo += QString("<br />Warning: %1").arg(strWarning);
     1308    if (!strWarningInfo.isEmpty())
     1309        strWarningInfo = "<br />" + strWarningInfo;
     1310    /* Show the message: */
     1311    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     1312            tr("Failed to open/interpret appliance <b>%1</b>.")
     1313               .arg(appliance.GetPath()),
     1314            strWarningInfo + strErrorInfo);
     1315}
     1316
     1317void UIMessageCenter::cannotImportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent /*= 0*/) const
     1318{
     1319    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     1320            tr("Failed to import appliance <b>%1</b>.")
     1321               .arg(strPath),
     1322            !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1323}
     1324
     1325void UIMessageCenter::cannotCheckFiles(const CProgress &progress, QWidget *pParent /*= 0*/) const
     1326{
     1327    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
    13521328            tr("Failed to check files."),
    1353             formatErrorInfo(progress.GetErrorInfo()));
    1354 }
    1355 
    1356 void UIMessageCenter::cannotRemoveFiles(const CProgress &progress,
    1357                                         QWidget *pParent /* = NULL */) const
    1358 {
    1359     AssertWrapperOk(progress);
    1360 
    1361     message(pParent ? pParent : mainWindowShown(),
    1362             MessageType_Error,
     1329            !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1330}
     1331
     1332void UIMessageCenter::cannotRemoveFiles(const CProgress &progress, QWidget *pParent /*= 0*/) const
     1333{
     1334    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
    13631335            tr("Failed to remove file."),
    1364             formatErrorInfo(progress.GetErrorInfo()));
    1365 }
    1366 
    1367 bool UIMessageCenter::confirmExportMachinesInSaveState(const QStringList &strMachineNames,
    1368                                                        QWidget *pParent /* = NULL */) const
     1336            !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1337}
     1338
     1339bool UIMessageCenter::confirmExportMachinesInSaveState(const QStringList &machineNames, QWidget *pParent /*= 0*/) const
    13691340{
    13701341    return messageOkCancel(pParent ? pParent : mainWindowShown(), MessageType_Warning,
    1371         tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>"
    1372            "<p>If you continue the runtime state of the exported machine(s) "
    1373            "will be discarded. The other machine(s) will not be changed.</p>", "This text is never used with n == 0.  Feel free to drop the %n where possible, we only included it because of problems with Qt Linguist (but the user can see how many machines are in the list and doesn't need to be told).",
    1374            strMachineNames.size()).arg(VBoxGlobal::toHumanReadableList(strMachineNames)),
    1375         0 /* auto-confirm id */,
    1376         tr("Continue"));
    1377 }
    1378 
    1379 void UIMessageCenter::cannotExportAppliance(CAppliance *pAppliance,
    1380                                             QWidget *pParent /* = NULL */) const
    1381 {
    1382     if (pAppliance->isNull())
    1383     {
    1384         message(pParent ? pParent : mainWindowShown(),
    1385                 MessageType_Error,
    1386                 tr("Failed to create appliance."));
    1387     }
    1388     else
    1389     {
    1390         /* Preserve the current error info before calling the object again */
    1391         COMResult res(*pAppliance);
    1392 
    1393         message(pParent ? pParent : mainWindowShown(),
    1394                 MessageType_Error,
    1395                 tr("Failed to prepare the export of the appliance <b>%1</b>.").arg(pAppliance->GetPath()),
    1396                 formatErrorInfo(res));
    1397     }
    1398 }
    1399 
    1400 void UIMessageCenter::cannotExportAppliance(const CMachine &machine,
    1401                                             CAppliance *pAppliance,
    1402                                             QWidget *pParent /* = NULL */) const
    1403 {
    1404     if (pAppliance->isNull() ||
    1405         machine.isNull())
    1406     {
    1407         message(pParent ? pParent : mainWindowShown(),
    1408                 MessageType_Error,
    1409                 tr("Failed to create an appliance."));
    1410     }
    1411     else
    1412     {
    1413         message(pParent ? pParent : mainWindowShown(),
    1414                 MessageType_Error,
    1415                 tr("Failed to prepare the export of the appliance <b>%1</b>.").arg(pAppliance->GetPath()),
    1416                 formatErrorInfo(machine));
    1417     }
    1418 }
    1419 
    1420 void UIMessageCenter::cannotExportAppliance(const CProgress &progress,
    1421                                             CAppliance* pAppliance,
    1422                                             QWidget *pParent /* = NULL */) const
    1423 {
    1424     AssertWrapperOk(progress);
    1425 
    1426     message(pParent ? pParent : mainWindowShown(),
    1427             MessageType_Error,
    1428             tr("Failed to export appliance <b>%1</b>.").arg(pAppliance->GetPath()),
    1429             formatErrorInfo(progress.GetErrorInfo()));
    1430 }
    1431 
    1432 void UIMessageCenter::cannotFindSnapshotByName(QWidget *pParent,
    1433                                                const CMachine &machine,
    1434                                                const QString &strName) const
     1342                           tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>"
     1343                              "<p>If you continue the runtime state of the exported machine(s) will be discarded. "
     1344                              "The other machine(s) will not be changed.</p>",
     1345                              "This text is never used with n == 0. Feel free to drop the %n where possible, "
     1346                              "we only included it because of problems with Qt Linguist "
     1347                              "(but the user can see how many machines are in the list and doesn't need to be told).",
     1348                              machineNames.size())
     1349                              .arg(machineNames.join(", ")),
     1350                           0 /* auto-confirm id */,
     1351                           tr("Continue"));
     1352}
     1353
     1354void UIMessageCenter::cannotExportAppliance(const CAppliance &appliance, QWidget *pParent /*= 0*/) const
     1355{
     1356    /* Preserve error-info: */
     1357    QString strErrorInfo = formatErrorInfo(appliance);
     1358    /* Show the message: */
     1359    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     1360            tr("Failed to prepare the export of the appliance <b>%1</b>.")
     1361               .arg(appliance.GetPath()),
     1362            strErrorInfo);
     1363}
     1364
     1365void UIMessageCenter::cannotExportAppliance(const CMachine &machine, const QString &strPath, QWidget *pParent /*= 0*/) const
     1366{
     1367    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     1368            tr("Failed to prepare the export of the appliance <b>%1</b>.")
     1369               .arg(strPath),
     1370            formatErrorInfo(machine));
     1371}
     1372
     1373void UIMessageCenter::cannotExportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent /*= 0*/) const
     1374{
     1375    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
     1376            tr("Failed to export appliance <b>%1</b>.")
     1377               .arg(strPath),
     1378            !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo()));
     1379}
     1380
     1381void UIMessageCenter::cannotFindSnapshotByName(const CMachine &machine, const QString &strName, QWidget *pParent /*= 0*/) const
    14351382{
    14361383    message(pParent ? pParent : mainWindowShown(), MessageType_Error,
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r45316 r45325  
    268268
    269269    /* API: Wizards warnings: */
    270     void cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent = 0);
    271     void cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent = 0);
    272     void cannotCreateClone(const CMachine &machine, QWidget *pParent = 0);
    273     void cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent = 0);
    274     void cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent = 0);
    275     void cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation,QWidget *pParent = 0);
    276     void cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent = 0);
    277     void cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent = 0);
    278     void warnAboutCannotRemoveMachineFolder(QWidget *pParent, const QString &strFolderName);
    279     void warnAboutCannotRewriteMachineFolder(QWidget *pParent, const QString &strFolderName);
    280     void warnAboutCannotCreateMachineFolder(QWidget *pParent, const QString &strFolderName);
    281     bool confirmHardDisklessMachine(QWidget *pParent);
    282     void cannotImportAppliance(CAppliance *pAppliance, QWidget *pParent = NULL) const;
    283     void cannotImportAppliance(const CProgress &progress, CAppliance *pAppliance, QWidget *pParent = NULL) const;
    284     void cannotCheckFiles(const CProgress &progress, QWidget *pParent = NULL) const;
    285     void cannotRemoveFiles(const CProgress &progress, QWidget *pParent = NULL) const;
    286     bool confirmExportMachinesInSaveState(const QStringList &strMachineNames, QWidget *pParent = NULL) const;
    287     void cannotExportAppliance(CAppliance *pAppliance, QWidget *pParent = NULL) const;
    288     void cannotExportAppliance(const CMachine &machine, CAppliance *pAppliance, QWidget *pParent = NULL) const;
    289     void cannotExportAppliance(const CProgress &progress, CAppliance *pAppliance, QWidget *pParent = NULL) const;
    290     void cannotFindSnapshotByName(QWidget *pParent, const CMachine &machine, const QString &strMachine) const;
     270    bool confirmHardDisklessMachine(QWidget *pParent = 0) const;
     271    void cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent = 0) const;
     272    void cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent = 0) const;
     273    void cannotCreateClone(const CMachine &machine, QWidget *pParent = 0) const;
     274    void cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent = 0) const;
     275    void cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent = 0) const;
     276    void cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation,QWidget *pParent = 0) const;
     277    void cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent = 0) const;
     278    void cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent = 0) const;
     279    void cannotRemoveMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const;
     280    void cannotRewriteMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const;
     281    void cannotCreateMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const;
     282    void cannotImportAppliance(CAppliance &appliance, QWidget *pParent = 0) const;
     283    void cannotImportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent = 0) const;
     284    void cannotCheckFiles(const CProgress &progress, QWidget *pParent = 0) const;
     285    void cannotRemoveFiles(const CProgress &progress, QWidget *pParent = 0) const;
     286    bool confirmExportMachinesInSaveState(const QStringList &machineNames, QWidget *pParent = 0) const;
     287    void cannotExportAppliance(const CAppliance &appliance, QWidget *pParent = 0) const;
     288    void cannotExportAppliance(const CMachine &machine, const QString &strPath, QWidget *pParent = 0) const;
     289    void cannotExportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent = 0) const;
     290    void cannotFindSnapshotByName(const CMachine &machine, const QString &strMachine, QWidget *pParent = 0) const;
    291291
    292292    /* API: Runtime UI warnings: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r45313 r45325  
    29682968            .arg (tr ("PB", "size suffix PBytes=1024 TBytes"));
    29692969    return regexp;
    2970 }
    2971 
    2972 /* static */
    2973 QString VBoxGlobal::toHumanReadableList(const QStringList &list)
    2974 {
    2975     QString strList;
    2976     for (int i = 0; i < list.size(); ++i)
    2977     {
    2978         strList += list.at(i);
    2979         if (i < list.size() - 1)
    2980             strList += + " ";
    2981     }
    2982     return strList;
    29832970}
    29842971
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r45269 r45325  
    318318    static QChar decimalSep();
    319319    static QString sizeRegexp();
    320 
    321     static QString toHumanReadableList(const QStringList &list);
    322320
    323321    static quint64 parseSize (const QString &);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp

    r45193 r45325  
    116116        {
    117117            if (progress.isNull())
    118                 msgCenter().cannotImportAppliance(m_pAppliance, this);
     118                msgCenter().cannotImportAppliance(*m_pAppliance, this);
    119119            else
    120                 msgCenter().cannotImportAppliance(progress, m_pAppliance, this);
     120                msgCenter().cannotImportAppliance(progress, m_pAppliance->GetPath(), this);
    121121            /* Delete the appliance in a case of an error */
    122122            delete m_pAppliance;
     
    152152            if (!progress.isOk() || progress.GetResultCode() != 0)
    153153            {
    154                 msgCenter().cannotImportAppliance(progress, m_pAppliance, this);
     154                msgCenter().cannotImportAppliance(progress, m_pAppliance->GetPath(), this);
    155155                return false;
    156156            }
     
    159159        }
    160160        if (!fResult)
    161             msgCenter().cannotImportAppliance(m_pAppliance, this);
     161            msgCenter().cannotImportAppliance(*m_pAppliance, this);
    162162    }
    163163    return false;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp

    r45316 r45325  
    105105        if (newSnapshot.isNull())
    106106        {
    107             msgCenter().cannotFindSnapshotByName(this, m_machine, strSnapshotName);
     107            msgCenter().cannotFindSnapshotByName(m_machine, strSnapshotName, this);
    108108            return false;
    109109        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r45220 r45325  
    148148        if (!progress.isOk() || progress.GetResultCode() != 0)
    149149        {
    150             msgCenter().cannotExportAppliance(progress, &appliance, this);
     150            msgCenter().cannotExportAppliance(progress, appliance.GetPath(), this);
    151151            return false;
    152152        }
     
    155155    }
    156156    if (!fResult)
    157         msgCenter().cannotExportAppliance(&appliance, this);
     157        msgCenter().cannotExportAppliance(appliance, this);
    158158    return false;
    159159}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp

    r45068 r45325  
    5959                if (!fResult)
    6060                {
    61                     msgCenter().cannotExportAppliance(machine, pAppliance, thisImp());
     61                    msgCenter().cannotExportAppliance(machine, pAppliance->GetPath(), thisImp());
    6262                    return;
    6363                }
     
    7777    }
    7878    if (!fResult)
    79         msgCenter().cannotExportAppliance(pAppliance, thisImp());
     79        msgCenter().cannotExportAppliance(*pAppliance, thisImp());
    8080}
    8181
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp

    r43644 r45325  
    176176    if (machineFolderCreated() && !cleanupMachineFolder())
    177177    {
    178         msgCenter().warnAboutCannotRemoveMachineFolder(thisImp(), m_strMachineFolder);
     178        msgCenter().cannotRemoveMachineFolder(m_strMachineFolder, thisImp());
    179179        return false;
    180180    }
     
    194194    if (QDir(strMachineFolder).exists())
    195195    {
    196         msgCenter().warnAboutCannotRewriteMachineFolder(thisImp(), strMachineFolder);
     196        msgCenter().cannotRewriteMachineFolder(strMachineFolder, thisImp());
    197197        return false;
    198198    }
     
    202202    if (!fMachineFolderCreated)
    203203    {
    204         msgCenter().warnAboutCannotCreateMachineFolder(thisImp(), strMachineFolder);
     204        msgCenter().cannotCreateMachineFolder(strMachineFolder, thisImp());
    205205        return false;
    206206    }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r45315 r45325  
    251251    {
    252252        /* Ask user about disk-less machine: */
    253         fResult = msgCenter().confirmHardDisklessMachine(this);
     253        fResult = msgCenter().confirmHardDisklessMachine(thisImp());
    254254    }
    255255    else if (m_pDiskCreate->isChecked())
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