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 typedef Bool XBool;
00093 #undef Bool
00094 typedef XBool Bool;
00095 #endif
00096 #undef Bool
00097 #endif
00098
00099
00100
00101 #ifdef KeyPress
00102 #ifndef FIXX11H_KeyPress
00103 #define FIXX11H_KeyPress
00104 const int XKeyPress = KeyPress;
00105 #undef KeyPress
00106 const int KeyPress = XKeyPress;
00107 #endif
00108 #undef KeyPress
00109 #endif
00110
00111
00112 #ifdef KeyRelease
00113 #ifndef FIXX11H_KeyRelease
00114 #define FIXX11H_KeyRelease
00115 const int XKeyRelease = KeyRelease;
00116 #undef KeyRelease
00117 const int KeyRelease = XKeyRelease;
00118 #endif
00119 #undef KeyRelease
00120 #endif
00121
00122
00123 #ifdef Above
00124 #ifndef FIXX11H_Above
00125 #define FIXX11H_Above
00126 const int XAbove = Above;
00127 #undef Above
00128 const int Above = XAbove;
00129 #endif
00130 #undef Above
00131 #endif
00132
00133
00134 #ifdef Below
00135 #ifndef FIXX11H_Below
00136 #define FIXX11H_Below
00137 const int XBelow = Below;
00138 #undef Below
00139 const int Below = XBelow;
00140 #endif
00141 #undef Below
00142 #endif
00143
00144
00145 #ifdef FocusIn
00146 #ifndef FIXX11H_FocusIn
00147 #define FIXX11H_FocusIn
00148 const int XFocusIn = FocusIn;
00149 #undef FocusIn
00150 const int FocusIn = XFocusIn;
00151 #endif
00152 #undef FocusIn
00153 #endif
00154
00155
00156 #ifdef FocusOut
00157 #ifndef FIXX11H_FocusOut
00158 #define FIXX11H_FocusOut
00159 const int XFocusOut = FocusOut;
00160 #undef FocusOut
00161 const int FocusOut = XFocusOut;
00162 #endif
00163 #undef FocusOut
00164 #endif
00165
00166
00167 #ifdef Always
00168 #ifndef FIXX11H_Always
00169 #define FIXX11H_Always
00170 const int XAlways = Always;
00171 #undef Always
00172 const int Always = XAlways;
00173 #endif
00174 #undef Always
00175 #endif
00176
00177
00178 #ifdef Success
00179 #ifndef FIXX11H_Success
00180 #define FIXX11H_Success
00181 const int XSuccess = Success;
00182 #undef Success
00183 const int Success = XSuccess;
00184 #endif
00185 #undef Success
00186 #endif
00187
00188
00189 #ifdef GrayScale
00190 #ifndef FIXX11H_GrayScale
00191 #define FIXX11H_GrayScale
00192 const int XGrayScale = GrayScale;
00193 #undef GrayScale
00194 const int GrayScale = XGrayScale;
00195 #endif
00196 #undef GrayScale
00197 #endif
00198
00199
00200 #ifdef Status
00201 #ifndef FIXX11H_Status
00202 #define FIXX11H_Status
00203 typedef Status XStatus;
00204 #undef Status
00205 typedef XStatus Status;
00206 #endif
00207 #undef Status
00208 #endif
00209
00210
00211 #ifdef CursorShape
00212 #ifndef FIXX11H_CursorShape
00213 #define FIXX11H_CursorShape
00214 const int XCursorShape = CursorShape;
00215 #undef CursorShape
00216 const int CursorShape = CursorShape;
00217 #endif
00218 #undef CursorShape
00219 #endif
00220
00221
00222
00223 #ifdef CursorShape
00224 #ifndef FIXX11H_CursorShape
00225 #define FIXX11H_CursorShape
00226 const int XCursorShape = CursorShape;
00227 #undef CursorShape
00228 const int CursorShape = XCursorShape;
00229 #endif
00230 #undef CursorShape
00231 #endif
00232
00233
00234
00235
00236 #ifdef FontChange
00237 #ifndef FIXX11H_FontChange
00238 #define FIXX11H_FontChange
00239 const int XFontChange = FontChange;
00240 #undef FontChange
00241 const int FontChange = XFontChange;
00242 #endif
00243 #undef FontChange
00244 #endif
00245
00246
00247
00248
00249
00250 #ifdef index
00251 #ifndef FIXX11H_index
00252 #define FIXX11H_index
00253 inline
00254 char* Xindex( const char* s, int c )
00255 {
00256 return index( s, c );
00257 }
00258 #undef index
00259 inline
00260 char* index( const char* s, int c )
00261 {
00262 return Xindex( s, c );
00263 }
00264 #endif
00265 #undef index
00266 #endif
00267
00268
00269 #ifdef rindex
00270
00271 #ifndef FIXX11H_rindex
00272 #define FIXX11H_rindex
00273 inline
00274 char* Xrindex( const char* s, int c )
00275 {
00276 return rindex( s, c );
00277 }
00278 #undef rindex
00279 inline
00280 char* rindex( const char* s, int c )
00281 {
00282 return Xrindex( s, c );
00283 }
00284 #endif
00285 #undef rindex
00286 #endif
00287 }
00288
00289 using namespace X;
00290
00291 #endif