- Timestamp:
- Jan 26, 2007 5:17:55 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17933
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r364 r368 1931 1931 </property> 1932 1932 <property name="textLabel"> 1933 <string>Add </string>1933 <string>Add Empty (Ins)</string> 1934 1934 </property> 1935 1935 <property name="autoRaise"> … … 1937 1937 </property> 1938 1938 <property name="whatsThis" stdset="0"> 1939 <string>Adds a new USB filter.</string> 1939 <string>Adds a new USB filter with 1940 all fields initially set to empty strings. Note that such a filter will match any attached 1941 USB device.</string> 1940 1942 </property> 1941 1943 </widget> … … 1951 1953 </property> 1952 1954 <property name="accel"> 1953 <string> Ins</string>1955 <string>Alt+Ins</string> 1954 1956 </property> 1955 1957 <property name="iconSet"> … … 1957 1959 </property> 1958 1960 <property name="textLabel"> 1959 <string>Add existing</string>1961 <string>Add From (Alt+Ins)</string> 1960 1962 </property> 1961 1963 <property name="autoRaise"> … … 1963 1965 </property> 1964 1966 <property name="whatsThis" stdset="0"> 1965 <string>Adds a new USB filter from an existing USB device.</string> 1967 <string>Adds a new USB filter 1968 with all fields set to the values of the selected USB device attached to a host PC.</string> 1966 1969 </property> 1967 1970 </widget> … … 1983 1986 </property> 1984 1987 <property name="textLabel"> 1985 <string>Remove </string>1988 <string>Remove (Del)</string> 1986 1989 </property> 1987 1990 <property name="autoRaise"> … … 2009 2012 </property> 2010 2013 <property name="textLabel"> 2011 <string> Up</string>2014 <string>Move Up (Ctrl+Up)</string> 2012 2015 </property> 2013 2016 <property name="autoRaise"> … … 2035 2038 </property> 2036 2039 <property name="textLabel"> 2037 <string> Down</string>2040 <string>Move Down (Ctrl+Down)</string> 2038 2041 </property> 2039 2042 <property name="autoRaise"> … … 2692 2695 <variable access="private">QPopupMenu *usbDevicesMenu;</variable> 2693 2696 <variable access="private">QMap<int, CUSBDevice> usbDevicesMap;</variable> 2694 <variable access="private"> int mUsbDevicesMenuNoDevicesId;</variable>2697 <variable access="private">enum { USBDevicesMenuNoDevicesId = 1 };</variable> 2695 2698 </variables> 2696 2699 <slots> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r365 r368 445 445 446 446 /* setup iconsets -- qdesigner is not capable... */ 447 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet ("usb_ add_16px.png",448 "usb_ add_disabled_16px.png"));449 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet ("usb_ read_16px.png",450 "usb_ read_16px.png"));447 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet ("usb_16px.png", 448 "usb_disabled_16px.png")); 449 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet ("usb_add_16px.png", 450 "usb_add_disabled_16px.png")); 451 451 tbRemoveUSBFilter->setIconSet (VBoxGlobal::iconSet ("usb_remove_16px.png", 452 452 "usb_remove_disabled_16px.png")); … … 460 460 mLastUSBFilterNum = 0; 461 461 mUSBFilterListModified = false; 462 mUsbDevicesMenuNoDevicesId = -1;463 462 464 463 /* VRDP Page */ … … 1725 1724 if (isUSBEmpty) 1726 1725 { 1727 mUsbDevicesMenuNoDevicesId = usbDevicesMenu->insertItem ( 1728 tr ("<no available devices>", "USB devices")); 1729 usbDevicesMenu->setItemEnabled (mUsbDevicesMenuNoDevicesId, false); 1726 usbDevicesMenu->insertItem ( 1727 tr ("<no available devices>", "USB devices"), 1728 USBDevicesMenuNoDevicesId); 1729 usbDevicesMenu->setItemEnabled (USBDevicesMenuNoDevicesId, false); 1730 1730 } 1731 1731 else 1732 1732 { 1733 mUsbDevicesMenuNoDevicesId = -1;1734 1733 CHostUSBDeviceEnumerator en = host.GetUSBDevices().Enumerate(); 1735 1734 while (en.HasMore()) … … 1741 1740 } 1742 1741 } 1742 1743 1743 usbDevicesMenu->exec (QCursor::pos()); 1744 1744 } … … 1747 1747 { 1748 1748 /* the <no available devices> item is highlighted */ 1749 if (aIndex == mUsbDevicesMenuNoDevicesId)1749 if (aIndex == USBDevicesMenuNoDevicesId) 1750 1750 { 1751 1751 QToolTip::add (usbDevicesMenu, … … 1775 1775 1776 1776 CUSBDeviceFilter filter = cmachine.GetUSBController() 1777 .CreateDeviceFilter (tr ("New Filter %1", "usb") 1778 .arg (++ mLastUSBFilterNum)); 1777 .CreateDeviceFilter (vboxGlobal().details (usb)); 1779 1778 1780 1779 filter.SetVendorId (QString().sprintf ("%04hX", usb.GetVendorId()));
Note:
See TracChangeset
for help on using the changeset viewer.