VirtualBox

Changeset 47265 in vbox


Ignore:
Timestamp:
Jul 19, 2013 2:25:28 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: UI converter: Support for KPointingHIDType COM enum type.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h

    r46796 r47265  
    6969template<> bool canConvert<KClipboardMode>();
    7070template<> bool canConvert<KDragAndDropMode>();
     71template<> bool canConvert<KPointingHIDType>();
    7172template<> bool canConvert<KMediumType>();
    7273template<> bool canConvert<KMediumVariant>();
     
    111112template<> QString toString(const KClipboardMode &mode);
    112113template<> QString toString(const KDragAndDropMode &mode);
     114template<> QString toString(const KPointingHIDType &type);
    113115template<> QString toString(const KMediumType &type);
    114116template<> QString toString(const KMediumVariant &variant);
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp

    r47160 r47265  
    3535template<> bool canConvert<KClipboardMode>() { return true; }
    3636template<> bool canConvert<KDragAndDropMode>() { return true; }
     37template<> bool canConvert<KPointingHIDType>() { return true; }
    3738template<> bool canConvert<KMediumType>() { return true; }
    3839template<> bool canConvert<KMediumVariant>() { return true; }
     
    215216}
    216217
     218/* QString <= KPointingHIDType: */
     219template<> QString toString(const KPointingHIDType &type)
     220{
     221    switch (type)
     222    {
     223        case KPointingHIDType_PS2Mouse:      return QApplication::translate("VBoxGlobal", "PS/2 Mouse", "PointingHIDType");
     224        case KPointingHIDType_USBMouse:      return QApplication::translate("VBoxGlobal", "USB Mouse", "PointingHIDType");
     225        case KPointingHIDType_USBTablet:     return QApplication::translate("VBoxGlobal", "USB Mouse/Tablet", "PointingHIDType");
     226        case KPointingHIDType_ComboMouse:    return QApplication::translate("VBoxGlobal", "PS/2 and USB Mouse", "PointingHIDType");
     227        case KPointingHIDType_USBMultiTouch: return QApplication::translate("VBoxGlobal", "USB Multi-Touch Mouse/Tablet", "PointingHIDType");
     228        default: AssertMsgFailed(("No text for %d", type)); break;
     229    }
     230    return QString();
     231}
     232
    217233/* QString <= KMediumType: */
    218234template<> QString toString(const KMediumType &type)
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