VirtualBox

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


Ignore:
Timestamp:
Apr 30, 2010 12:43:58 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60902
Message:

GUI: Added absolute pointing device checkbox to the System settings. Still needs a validator.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.cpp

    r28800 r28932  
    171171    mCbTCUseUTC->setChecked (rtcUseUTC);
    172172
     173    /* USB tablet */
     174    KPointingHidType pointingHid = mMachine.GetPointingHidType ();
     175    mCbUseAbsHID->setChecked (pointingHid == KPointingHidType_USBTablet);
     176
    173177    /* CPU count */
    174178    bool fVTxAMDVSupported = vboxGlobal().virtualBox().GetHost()
     
    241245    /* RTC */
    242246    mMachine.SetRTCUseUTC (mCbTCUseUTC->isChecked());
     247
     248    /* USB tablet */
     249    mMachine.SetPointingHidType (mCbUseAbsHID->isChecked() ? KPointingHidType_USBTablet : KPointingHidType_PS2Mouse );
    243250
    244251    /* RAM size */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.ui

    r28800 r28932  
    355355        </widget>
    356356       </item>
    357        <item row="7" column="0" colspan="3">
     357       <item row="7" column="1" >
     358        <widget class="QCheckBox" name="mCbUseAbsHID" >
     359         <property name="sizePolicy" >
     360          <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
     361           <horstretch>0</horstretch>
     362           <verstretch>0</verstretch>
     363           </sizepolicy>
     364         </property>
     365         <property name="whatsThis" >
     366          <string>If checked, an absolute pointing device (a USB tablet) will be supported. Otherwise, only a standard PS/2 mouse will be emulated.</string>
     367         </property>
     368         <property name="text" >
     369          <string>Enable &amp;absolute pointing device</string>
     370         </property>
     371        </widget>
     372       </item>
     373       <item row="8" column="0" colspan="3">
    358374        <spacer name="mSpVer1">
    359375         <property name="orientation">
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