00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef SCIMBRIDGECLIENTKEYEVENTUTILITYQT_H_
00027 #define SCIMBRIDGECLIENTKEYEVENTUTILITYQT_H_
00028
00029 #include "scim-bridge.h"
00030 #include "scim-bridge-key-code.h"
00031 #include "scim-bridge-key-event.h"
00032
00033 #include "scim-bridge-client-common-qt.h"
00034
00035 #ifdef Q_WS_X11
00036 #include <X11/Xlib.h>
00037 #include <X11/keysym.h>
00038 #include <X11/Xutil.h>
00039 static const int XKeyPress = KeyPress;
00040 static const int XKeyRelease = KeyRelease;
00041 #undef KeyPress
00042 #undef KeyRelease
00043 #endif
00044
00045 class QKeyEvent;
00046
00053 QKeyEvent *scim_bridge_key_event_bridge_to_qt (const ScimBridgeKeyEvent *bridge_key_event);
00054
00061 ScimBridgeKeyEvent *scim_bridge_key_event_qt_to_bridge (const QKeyEvent *qt_key_event);
00062
00063 #ifdef Q_WS_X11
00064
00072 XEvent *scim_bridge_key_event_bridge_to_x11 (const ScimBridgeKeyEvent *bridge_key_event, Display *display, WId window_id);
00073
00074
00081 ScimBridgeKeyEvent* scim_bridge_key_event_x11_to_bridge (const XEvent *x11_event);
00082 #endif
00083
00084 #endif