KDEUI
fixx11h.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include <QtCore/QtGlobal>
00030
00031 #ifdef Q_WS_X11
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 namespace X
00061 {
00062
00063
00064
00065 #ifdef Unsorted
00066 #ifndef FIXX11H_Unsorted
00067 #define FIXX11H_Unsorted
00068 const int XUnsorted = Unsorted;
00069 #undef Unsorted
00070 const int Unsorted = XUnsorted;
00071 #endif
00072 #undef Unsorted
00073 #endif
00074
00075
00076
00077 #ifdef None
00078 #ifndef FIXX11H_None
00079 #define FIXX11H_None
00080 const XID XNone = None;
00081 #undef None
00082 const XID None = XNone;
00083 #endif
00084 #undef None
00085 #endif
00086
00087
00088
00089 #ifdef Bool
00090 #ifndef FIXX11H_Bool
00091 #define FIXX11H_Bool
00092 #ifdef _XTYPEDEF_BOOL
00093 #undef Bool
00094 #else
00095 typedef Bool XBool;
00096 #undef Bool
00097 typedef XBool Bool;
00098 #endif
00099 #endif
00100 #undef Bool
00101 #define _XTYPEDEF_BOOL
00102 #endif
00103
00104
00105
00106 #ifdef KeyPress
00107 #ifndef FIXX11H_KeyPress
00108 #define FIXX11H_KeyPress
00109 const int XKeyPress = KeyPress;
00110 #undef KeyPress
00111 const int KeyPress = XKeyPress;
00112 #endif
00113 #undef KeyPress
00114 #endif
00115
00116
00117 #ifdef KeyRelease
00118 #ifndef FIXX11H_KeyRelease
00119 #define FIXX11H_KeyRelease
00120 const int XKeyRelease = KeyRelease;
00121 #undef KeyRelease
00122 const int KeyRelease = XKeyRelease;
00123 #endif
00124 #undef KeyRelease
00125 #endif
00126
00127
00128 #ifdef Above
00129 #ifndef FIXX11H_Above
00130 #define FIXX11H_Above
00131 const int XAbove = Above;
00132 #undef Above
00133 const int Above = XAbove;
00134 #endif
00135 #undef Above
00136 #endif
00137
00138
00139 #ifdef Below
00140 #ifndef FIXX11H_Below
00141 #define FIXX11H_Below
00142 const int XBelow = Below;
00143 #undef Below
00144 const int Below = XBelow;
00145 #endif
00146 #undef Below
00147 #endif
00148
00149
00150 #ifdef FocusIn
00151 #ifndef FIXX11H_FocusIn
00152 #define FIXX11H_FocusIn
00153 const int XFocusIn = FocusIn;
00154 #undef FocusIn
00155 const int FocusIn = XFocusIn;
00156 #endif
00157 #undef FocusIn
00158 #endif
00159
00160
00161 #ifdef FocusOut
00162 #ifndef FIXX11H_FocusOut
00163 #define FIXX11H_FocusOut
00164 const int XFocusOut = FocusOut;
00165 #undef FocusOut
00166 const int FocusOut = XFocusOut;
00167 #endif
00168 #undef FocusOut
00169 #endif
00170
00171
00172 #ifdef Always
00173 #ifndef FIXX11H_Always
00174 #define FIXX11H_Always
00175 const int XAlways = Always;
00176 #undef Always
00177 const int Always = XAlways;
00178 #endif
00179 #undef Always
00180 #endif
00181
00182
00183 #ifdef Success
00184 #ifndef FIXX11H_Success
00185 #define FIXX11H_Success
00186 const int XSuccess = Success;
00187 #undef Success
00188 const int Success = XSuccess;
00189 #endif
00190 #undef Success
00191 #endif
00192
00193
00194 #ifdef GrayScale
00195 #ifndef FIXX11H_GrayScale
00196 #define FIXX11H_GrayScale
00197 const int XGrayScale = GrayScale;
00198 #undef GrayScale
00199 const int GrayScale = XGrayScale;
00200 #endif
00201 #undef GrayScale
00202 #endif
00203
00204
00205 #ifdef Status
00206 #ifndef FIXX11H_Status
00207 #define FIXX11H_Status
00208 typedef Status XStatus;
00209 #undef Status
00210 typedef XStatus Status;
00211 #endif
00212 #undef Status
00213 #endif
00214
00215
00216 #ifdef CursorShape
00217 #ifndef FIXX11H_CursorShape
00218 #define FIXX11H_CursorShape
00219 const int XCursorShape = CursorShape;
00220 #undef CursorShape
00221 const int CursorShape = CursorShape;
00222 #endif
00223 #undef CursorShape
00224 #endif
00225
00226
00227
00228 #ifdef CursorShape
00229 #ifndef FIXX11H_CursorShape
00230 #define FIXX11H_CursorShape
00231 const int XCursorShape = CursorShape;
00232 #undef CursorShape
00233 const int CursorShape = XCursorShape;
00234 #endif
00235 #undef CursorShape
00236 #endif
00237
00238
00239
00240
00241 #ifdef FontChange
00242 #ifndef FIXX11H_FontChange
00243 #define FIXX11H_FontChange
00244 const int XFontChange = FontChange;
00245 #undef FontChange
00246 const int FontChange = XFontChange;
00247 #endif
00248 #undef FontChange
00249 #endif
00250
00251
00252
00253 #ifdef NormalState
00254 #ifndef FIXX11H_NormalState
00255 #define FIXX11H_NormalState
00256 const XID XNormalState = NormalState;
00257 #undef NormalState
00258 const XID NormalState = XNormalState;
00259 #endif
00260 #undef NormalState
00261 #endif
00262
00263
00264
00265 #ifdef index
00266 #ifndef FIXX11H_index
00267 #define FIXX11H_index
00268 inline
00269 const char* Xindex( const char* s, int c )
00270 {
00271 return index( s, c );
00272 }
00273 #undef index
00274 inline
00275 const char* index( const char* s, int c )
00276 {
00277 return Xindex( s, c );
00278 }
00279 #endif
00280 #undef index
00281 #endif
00282
00283
00284 #ifdef rindex
00285
00286 #ifndef FIXX11H_rindex
00287 #define FIXX11H_rindex
00288 inline
00289 const char* Xrindex( const char* s, int c )
00290 {
00291 return rindex( s, c );
00292 }
00293 #undef rindex
00294 inline
00295 const char* rindex( const char* s, int c )
00296 {
00297 return Xrindex( s, c );
00298 }
00299 #endif
00300 #undef rindex
00301 #endif
00302 }
00303
00304 using namespace X;
00305
00306 #endif