41 #ifndef QKEYMAPPER_P_H 42 #define QKEYMAPPER_P_H 56 #include <private/qobject_p.h> 63 #if defined (Q_WS_MAC64) 64 # include <private/qt_mac_p.h> 83 bool *unusedExceptForCocoa = 0);
116 # if !defined(tagMSG) 117 typedef struct tagMSG
MSG;
119 #elif defined(Q_WS_MAC) 121 # include <private/qt_mac_p.h> 123 #elif defined(Q_WS_X11) 133 int keysyms_per_keycode;
152 void clearMappings();
158 #if defined(Q_OS_WIN) 159 void clearRecordedKeys();
160 void updateKeyMap(
const MSG &msg);
161 bool translateKeyEvent(
QWidget *receiver,
const MSG &msg,
bool grab);
162 void updatePossibleKeyCodes(
unsigned char *kbdBuffer,
quint32 scancode,
quint32 vk_key);
163 bool isADeadKey(
unsigned int vk_key,
unsigned int modifiers);
164 void deleteLayouts();
168 #elif defined(Q_WS_X11) 178 Qt::KeyboardModifiers& modifiers,
181 bool statefulTranslation =
true);
182 bool translateKeyEvent(
QWidget *keywidget,
186 int xkb_currentGroup;
189 #elif defined(Q_WS_MAC) 190 bool updateKeyboard();
193 void deleteLayouts();
195 enum { NullMode, UnicodeMode, OtherMode } keyboard_mode;
197 const UCKeyboardLayout *unicode;
199 } keyboard_layout_format;
203 KeyboardLayoutRef currentKeyboardLayout;
205 KeyboardLayoutKind keyboard_kind;
206 UInt32 keyboard_dead;
208 #elif defined(Q_WS_QWS) 209 #elif defined(Q_OS_SYMBIAN) 211 QString translateKeyEvent(
int keySym, Qt::KeyboardModifiers modifiers);
212 int mapS60KeyToQt(TUint s60key);
213 int mapS60ScanCodesToQt(TUint s60key);
214 int mapQtToS60Key(
int qtKey);
215 int mapQtToS60ScanCodes(
int qtKey);
216 int mapS60RemConIdToS60Key(
int s60RemConId);
217 int mapS60RemConIdToS60ScanCodes(
int s60RemConId);
218 void updateInputLanguage();
226 #endif // QKEYMAPPER_P_H
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
~QKeyMapper()
Destroys the key mapper.
#define QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QLocale keyboardInputLocale
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
static QList< int > possibleKeys(QKeyEvent *e)
struct __TISInputSource * TISInputSourceRef
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool translateKeyEventInternal(EventHandlerCallRef er, EventRef keyEvent, int *qtKey, QChar *outChar, Qt::KeyboardModifiers *outModifiers, bool *outHandled)
static QKeyMapper * instance()
Returns the pointer to the single instance of QKeyMapper in the application.
struct OpaqueEventRef * EventRef
#define Q_DECLARE_PUBLIC(Class)
Type
This enum type defines the valid event types in Qt.
static void changeKeyboard()
#define QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE.
static bool sendKeyEvent(QWidget *widget, bool grab, QEvent::Type type, int code, Qt::KeyboardModifiers modifiers, const QString &text, bool autorepeat, int count, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, bool *unusedExceptForCocoa=0)
struct OpaqueEventHandlerCallRef * EventHandlerCallRef
#define Q_DECLARE_PRIVATE(Class)
static QString qtKey(CFStringRef cfkey)
Qt::LayoutDirection keyboardInputDirection
friend QKeyMapperPrivate * qt_keymapper_private()
QKeyMapper()
Constructs a new key mapper.