00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef Z760_IMETHOD_H
00016 #define Z760_IMETHOD_H
00017
00018 #ifndef __cplusplus
00019 #error "This is a C++ header file;it requires C++ to compile."
00020 #endif
00021
00022
00023 #include <quuid.h>
00024 #include <qmap.h>
00025 #include <qstring.h>
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef IMID_ENGLISH_KB
00038 # define IMID_ENGLISH_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x00)
00039 #endif
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef IMID_NUMBER_KB
00048 # define IMID_NUMBER_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x10)
00049 #endif
00050
00051
00052
00053
00054
00055
00056 #ifndef IMID_PINYIN_KB
00057 # define IMID_PINYIN_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x10)
00058 #endif
00059
00060
00061
00062
00063
00064
00065
00066 #ifndef IMID_ZHUYIN_KB
00067 # define IMID_ZHUYIN_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa0, 0x10)
00068 #endif
00069
00070
00071 # ifndef IMID_THAI_KB
00072 # define IMID_THAI_KB QUuid( 0x637a8a10, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x13)
00073 # endif
00074
00075
00076
00077
00078
00079
00080 #define HWRCLASS 0x6919720a
00081 #ifndef IMID_HANDWRITING_KB
00082 # define IMID_HANDWRITING_KB QUuid( HWRCLASS, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa4, 0x10)
00083 #endif
00084
00085
00086
00087
00088
00089
00090
00091
00092 #ifndef IMID_MMSOBJECT_KB
00093 # define IMID_MMSOBJECT_KB QUuid( 0x637a8a00, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x00)
00094 #endif
00095
00096
00097
00098
00099
00100
00101
00102 #ifndef IMID_EMSOBJECT_KB
00103 # define IMID_EMSOBJECT_KB QUuid( 0x637a8a00, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x10)
00104 #endif
00105
00106
00107 #ifndef IMID_UNDEFINED
00108 #define IMID_UNDEFINED QUuid()
00109 #endif
00110
00111 typedef QMap<QUuid, QString> QIMMap;
00112
00113 namespace ZGlobal
00114 {
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 void setInputMethod(const QUuid& inputMethod = IMID_UNDEFINED);
00128
00129
00130
00131
00132
00133
00134 void hideInputWidget();
00135
00136
00137
00138
00139
00140
00141
00142
00143 void showInputWidget(int mwId, int show, bool local = false);
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153 void setInputMethod(int mwId, const QUuid& inputMethod, bool local = false);
00154 };
00155
00156 #endif //Z760_IMETHOD_H
00157
00158
00159