VirtualBox

Changeset 19117 in vbox


Ignore:
Timestamp:
Apr 22, 2009 5:59:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46316
Message:

FE/Qt4: Global Settings / Network page: unlocked add/remove interface functionality. Need to be supported from side of Main API!

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

Legend:

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

    r18402 r19117  
    267267    void cannotGetMediaAccessibility (const VBoxMedium &aMedium);
    268268
    269 #if defined Q_WS_WIN
    270269    int confirmDeletingHostInterface (const QString &aName, QWidget *aParent = 0);
    271270    void cannotCreateHostInterface (const CHost &aHost, QWidget *aParent = 0);
     
    277276                                    const CHostNetworkInterface &aIface,
    278277                                    QWidget *aParent = 0);
    279 #endif
    280278
    281279    void cannotAttachUSBDevice (const CConsole &console, const QString &device);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSettingsNetwork.cpp

    r18415 r19117  
    393393    /* Allow the started helper process to make itself the foreground window */
    394394    AllowSetForegroundWindow (ASFW_ANY);
    395 
     395#endif
    396396    /* Creating interface */
    397397    CHostNetworkInterface iface;
     
    415415    else
    416416        vboxProblem().cannotCreateHostInterface (host, this);
    417 
     417#if defined (Q_WS_WIN32)
    418418    /* Allow the started helper process to make itself the foreground window */
    419419    AllowSetForegroundWindow (ASFW_ANY);
     
    426426    /* Allow the started helper process to make itself the foreground window */
    427427    AllowSetForegroundWindow (ASFW_ANY);
    428 
     428#endif
    429429    /* Check interface presence & name */
    430430    NetworkItem *item = static_cast <NetworkItem*> (mTwInterfaces->currentItem());
     
    455455    if (!host.isOk())
    456456        vboxProblem().cannotRemoveHostInterface (host, iface, this);
    457 
     457#if defined (Q_WS_WIN32)
    458458    /* Allow the started helper process to make itself the foreground window */
    459459    AllowSetForegroundWindow (ASFW_ANY);
     
    490490    mRemInterface->setEnabled (item);
    491491    mEditInterface->setEnabled (item);
    492 #if !defined (Q_WS_WIN32)
    493     /* Disable add/remove for all except win for now */
    494     mAddInterface->setEnabled (false);
    495     mRemInterface->setEnabled (false);
    496 #endif
    497492}
    498493
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r19100 r19117  
    12201220}
    12211221
    1222 #if defined Q_WS_WIN
    1223 
    12241222int VBoxProblemReporter::confirmDeletingHostInterface (const QString &aName,
    12251223                                                       QWidget *aParent)
     
    12721270        formatErrorInfo (progress.GetErrorInfo()));
    12731271}
    1274 
    1275 #endif
    12761272
    12771273void VBoxProblemReporter::cannotAttachUSBDevice (const CConsole &console,
Note: See TracChangeset for help on using the changeset viewer.

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