VirtualBox

Changeset 11128 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 4, 2008 9:50:20 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt3: Host interface support on the mac.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h

    r10759 r11128  
    5656#endif
    5757
    58 #if defined Q_WS_WIN
     58#if defined Q_WS_WIN || defined Q_OS_MAC
    5959    /* disable unused interface name UI */
    6060    grbTAP->setHidden (true);
     
    8080     * (remove the relative code at all? -- just leave for some time...) */
    8181    frmTAPDescriptor->setHidden (true);
    82 
    83 #if defined Q_WS_MAC /** @todo hif on mac  */
    84     /* no Host Interface Networking on the Mac yet */
    85     grbTAP->setHidden (true);
    86 #endif
    8782}
    8883
     
    9590        return CheckPage_Ok;
    9691    else
    97 #if defined Q_WS_WIN
     92#if defined Q_WS_WIN || defined Q_OS_MAC
    9893    if (type == KNetworkAttachmentType_HostInterface &&
    9994        isInterfaceInvalid (aList, cbHostInterfaceName->currentText()))
     
    113108                                               const QString &aNillItem)
    114109{
    115 #if defined Q_WS_WIN
     110#if defined Q_WS_WIN || defined Q_OS_MAC
    116111    /* save current list item name */
    117112    QString currentListItemName = cbHostInterfaceName->currentText();
     
    166161    chbCableConnected->setChecked (adapter.GetCableConnected());
    167162
    168 #if defined Q_WS_WIN
     163#if defined Q_WS_WIN || defined Q_OS_MAC
    169164    if (!adapter.GetHostInterface().isEmpty())
    170165        cbHostInterfaceName->setCurrentText (adapter.GetHostInterface());
     
    215210    if (type == KNetworkAttachmentType_HostInterface)
    216211    {
    217 #if defined Q_WS_WIN
     212#if defined Q_WS_WIN || defined Q_OS_MAC
    218213        if (!cbHostInterfaceName->currentText().isEmpty())
    219214            cadapter.SetHostInterface (cbHostInterfaceName->currentText());
     
    246241void VBoxVMNetworkSettings::grbEnabledToggled (bool aOn)
    247242{
    248 #if defined Q_WS_WIN
     243#if defined Q_WS_WIN || defined Q_OS_MAC
    249244    cbNetworkAttachment_activated (cbNetworkAttachment->currentText());
    250245#else
     
    261256                        vboxGlobal().toNetworkAttachmentType (aString) ==
    262257                        KNetworkAttachmentType_Internal;
    263 #if defined Q_WS_WIN
     258#if defined Q_WS_WIN || defined Q_OS_MAC
    264259    txHostInterface_WIN->setEnabled (enableHostIf);
    265260    cbHostInterfaceName->setEnabled (enableHostIf);
     
    274269                                                const QString &aIface)
    275270{
    276 #if defined Q_WS_WIN
     271#if defined Q_WS_WIN || defined Q_OS_MAC
    277272    return aList.find (aIface) == aList.end();
    278273#else
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r8237 r11128  
    663663    /* Network Page */
    664664
    665 #ifndef Q_WS_WIN
     665#if !defined(Q_WS_WIN) && !defined Q_OS_MAC
    666666    gbInterfaceList->setHidden (true);
    667667#endif
     668#ifdef Q_OS_MAC
     669    pbHostAdd->setHidden (true);
     670    pbHostRemove->setHidden (true);
     671#endif
     672
    668673    /* setup tab widget */
    669674    mNoInterfaces = tr ("<No suitable interfaces>");
     
    973978void VBoxVMSettingsDlg::loadInterfacesList()
    974979{
    975 #if defined Q_WS_WIN
     980#if defined Q_WS_WIN || defined Q_OS_MAC
    976981    /* clear inner list */
    977982    mInterfaceList.clear();
     
    11491154{
    11501155    if (!aWidget) return;
    1151 #if defined Q_WS_WIN
     1156#if defined Q_WS_WIN || defined Q_OS_MAC
    11521157    VBoxVMNetworkSettings *set = static_cast<VBoxVMNetworkSettings*> (aWidget);
    11531158    set->loadInterfaceList (mInterfaceList, mNoInterfaces);
     
    21752180    page->revalidate();
    21762181
    2177 #ifdef Q_WS_WIN
     2182#ifdef Q_WS_WIN || defined Q_OS_MAC
    21782183
    21792184    /* fix focus order (make sure the Host Interface list UI goes after the
     
    21812186
    21822187    setTabOrder (page->chbCableConnected, lbHostInterface);
     2188# if defined Q_OS_WIN
    21832189    setTabOrder (lbHostInterface, pbHostAdd);
    21842190    setTabOrder (pbHostAdd, pbHostRemove);
     2191# endif
    21852192
    21862193#endif
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