VirtualBox

Changeset 5654 in vbox


Ignore:
Timestamp:
Nov 9, 2007 3:06:29 PM (17 years ago)
Author:
vboxsync
Message:

2480: Add USB 2.0 UI: Checkbox to enable USB 2.0 support implemented.

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

Legend:

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

    r5370 r5654  
    22972297                        <property name="whatsThis" stdset="0">
    22982298                            <string>When checked, enables the virtual USB controller of this machine.</string>
     2299                        </property>
     2300                    </widget>
     2301                    <widget class="QCheckBox">
     2302                        <property name="name">
     2303                            <cstring>cbEnableUSBEhci</cstring>
     2304                        </property>
     2305                        <property name="text">
     2306                            <string>Enable USB &amp;EHCI Controller</string>
     2307                        </property>
     2308                        <property name="whatsThis" stdset="0">
     2309                            <string>When checked, enables the virtual USB EHCI controller of this machine providing USB2.0 support.</string>
    22992310                        </property>
    23002311                    </widget>
     
    31663177    <slot>tbResetSavedStateFolder_clicked()</slot>
    31673178    <slot>tbSelectSavedStateFolder_clicked()</slot>
     3179    <slot>usbAdapterToggled( bool aOn )</slot>
    31683180    <slot>addUSBFilter( const CUSBDeviceFilter &amp; aFilter, bool isNew )</slot>
    31693181    <slot>lvUSBFilters_currentChanged( QListViewItem * item )</slot>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r5483 r5654  
    717717
    718718    /* USB Page */
     719
     720    connect (cbEnableUSBController, SIGNAL (toggled (bool)),
     721             this, SLOT (usbAdapterToggled (bool)));
    719722
    720723    lvUSBFilters->header()->hide();
     
    18411844        {
    18421845            cbEnableUSBController->setChecked (ctl.GetEnabled());
     1846            cbEnableUSBEhci->setChecked (ctl.GetEnabledEhci());
     1847            usbAdapterToggled (cbEnableUSBController->isChecked());
    18431848
    18441849            CUSBDeviceFilterEnumerator en = ctl.GetDeviceFilters().Enumerate();
     
    21082113
    21092114            ctl.SetEnabled (cbEnableUSBController->isChecked());
     2115            ctl.SetEnabledEhci (cbEnableUSBEhci->isChecked());
    21102116
    21112117            /*
     
    23522358////////////////////////////////////////////////////////////////////////////////
    23532359
     2360void VBoxVMSettingsDlg::usbAdapterToggled (bool aOn)
     2361{
     2362    if (!aOn)
     2363        cbEnableUSBEhci->setChecked (aOn);
     2364    cbEnableUSBEhci->setEnabled (aOn);
     2365}
     2366
    23542367void VBoxVMSettingsDlg::addUSBFilter (const CUSBDeviceFilter &aFilter, bool isNew)
    23552368{
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