VirtualBox

Changeset 17631 in vbox


Ignore:
Timestamp:
Mar 10, 2009 2:33:55 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 2869: Rework network adapter UI: Problem reporter updated with warning for deleting host interface confirmation (will be used soon).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r17475 r17631  
    299299
    300300#if defined Q_WS_WIN
    301     void cannotCreateHostInterface (const CHost &host, const QString &name,
    302                                     QWidget *parent = 0);
    303     void cannotCreateHostInterface (const CProgress &progress, const QString &name,
    304                                     QWidget *parent = 0);
    305     void cannotRemoveHostInterface (const CHost &host,
    306                                     const CHostNetworkInterface &iface,
    307                                     QWidget *parent = 0);
    308     void cannotRemoveHostInterface (const CProgress &progress,
    309                                     const CHostNetworkInterface &iface,
    310                                     QWidget *parent = 0);
     301    int confirmDeletingHostInterface (const QString &aName, QWidget *aParent = 0);
     302    void cannotCreateHostInterface (const CHost &aHost, const QString &aName,
     303                                    QWidget *aParent = 0);
     304    void cannotCreateHostInterface (const CProgress &aProgress, const QString &aName,
     305                                    QWidget *aParent = 0);
     306    void cannotRemoveHostInterface (const CHost &aHost,
     307                                    const CHostNetworkInterface &aIface,
     308                                    QWidget *aParent = 0);
     309    void cannotRemoveHostInterface (const CProgress &aProgress,
     310                                    const CHostNetworkInterface &aIface,
     311                                    QWidget *aParent = 0);
    311312#endif
    312313
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r17477 r17631  
    14221422#if defined Q_WS_WIN
    14231423
     1424int VBoxProblemReporter::confirmDeletingHostInterface (const QString &aName,
     1425                                                       QWidget *aParent)
     1426{
     1427    return vboxProblem().message (aParent, VBoxProblemReporter::Question,
     1428        tr ("<p>Do you want to remove the selected host network interface "
     1429            "<nobr><b>%1</b>?</nobr></p>"
     1430            "<p><b>Note:</b> This interface may be in use by one or more "
     1431            "network adapters of this or another VM. After it is removed, these "
     1432            "adapters will no longer work until you correct their settings by "
     1433            "either choosing a different interface name or a different adapter "
     1434            "attachment type.</p>").arg (aName),
     1435        0, /* autoConfirmId */
     1436        QIMessageBox::Ok | QIMessageBox::Default,
     1437        QIMessageBox::Cancel | QIMessageBox::Escape);
     1438}
     1439
    14241440void VBoxProblemReporter::cannotCreateHostInterface (
    14251441    const CHost &host, const QString &name, QWidget *parent)
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