VirtualBox

Changeset 59346 in vbox


Ignore:
Timestamp:
Jan 14, 2016 1:21:25 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Qt5 migration (part 53): Reworking keyboard-handler: Some of doxy stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h

    r59345 r59346  
    100100
    101101#ifdef Q_WS_WIN
     102    /** Tells the keyboard event handler to skip host keyboard events.
     103      * Used for HID LEDs sync when on Windows host a keyboard event
     104      * is generated in order to change corresponding LED. */
    102105    void winSkipKeyboardEvents(bool fSkip);
    103106#endif /* Q_WS_WIN */
     
    105108#if QT_VERSION < 0x050000
    106109# if defined(Q_WS_WIN)
     110    /** Qt4: Win: Performs final pre-processing of all the native events. */
    107111    bool winEventFilter(MSG *pMsg, ulong uScreenId);
    108112# elif defined(Q_WS_X11)
     113    /** Qt4: X11: Performs final pre-processing of all the native events. */
    109114    bool x11EventFilter(XEvent *pEvent, ulong uScreenId);
    110115# endif /* Q_WS_X11 */
    111116#else /* QT_VERSION >= 0x050000 */
     117    /** Qt5: Performs final pre-processing of all the native events. */
    112118    bool nativeEventFilter(void *pMessage, ulong uScreenId);
    113119#endif /* QT_VERSION >= 0x050000 */
     
    144150
    145151#if defined(Q_WS_MAC)
     152    /** Mac: Installs/deinstalls low level keyboard hook. */
    146153    void darwinGrabKeyboardEvents(bool fGrab);
     154    /** Mac: Performs initial pre-processing of all the native keyboard events. */
    147155    static bool darwinEventHandlerProc(const void *pvCocoaEvent, const void *pvCarbonEvent, void *pvUser);
     156    /** Mac: Performs initial pre-processing of all the native keyboard events. */
    148157    bool darwinKeyboardEvent(const void *pvCocoaEvent, EventRef inEvent);
    149158#elif defined(Q_WS_WIN)
     159    /** Win: Performs initial pre-processing of all the native keyboard events. */
    150160    static LRESULT CALLBACK lowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam);
     161    /** Win: Performs initial pre-processing of all the native keyboard events. */
    151162    bool winLowKeyboardEvent(UINT msg, const KBDLLHOOKSTRUCT &event);
    152163#endif /* Q_WS_WIN */
     
    201212
    202213#if defined(Q_WS_MAC)
    203     /* The current modifier key mask. Used to figure out which modifier
    204      * key was pressed when we get a kEventRawKeyModifiersChanged event. */
     214    /** Holds the current modifiers key mask. */
    205215    UInt32 m_darwinKeyModifiers;
     216    /** Holds whether the keyboard is grabbed. */
    206217    bool m_fKeyboardGrabbed;
     218    /** Holds the keyboard hook view index. */
    207219    int m_iKeyboardGrabViewIndex;
    208220#elif defined(Q_WS_WIN)
    209221    /* Currently this is used in winLowKeyboardEvent() only: */
    210222    bool m_bIsHostkeyInCapture;
    211     /* Keyboard hook required to capture keyboard event under windows. */
     223    /** Holds the keyboard handler reference to be accessible from the keyboard hook. */
    212224    static UIKeyboardHandler *m_spKeyboardHandler;
     225    /** Holds the keyboard hook instance. */
    213226    HHOOK m_keyboardHook;
     227    /** Holds the keyboard hook view index. */
    214228    int m_iKeyboardHookViewIndex;
    215     /* A flag that used to tell kbd event filter to ignore keyboard events */
     229    /** Holds whether the keyboard event filter should ignore keyboard events. */
    216230    bool m_fSkipKeyboardEvents;
    217231    /** Holds the object monitoring key event stream for problematic AltGr events. */
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