author | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-01 00:10:42 (UTC) |
commit | 5042e3cf0d3514552769e441f5aad590c8eaf967 (patch) (unidiff) | |
tree | 4a5ea45f3519d981a172ab5275bf38c6fa778dec /qmake/include/qnamespace.h | |
parent | 108c1c753e74e989cc13923086996791428c9af4 (diff) | |
download | opie-5042e3cf0d3514552769e441f5aad590c8eaf967.zip opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.gz opie-5042e3cf0d3514552769e441f5aad590c8eaf967.tar.bz2 |
Adding qmake in preperation for new build system
-rw-r--r-- | qmake/include/qnamespace.h | 843 |
1 files changed, 843 insertions, 0 deletions
diff --git a/qmake/include/qnamespace.h b/qmake/include/qnamespace.h new file mode 100644 index 0000000..58b485f --- a/dev/null +++ b/qmake/include/qnamespace.h | |||
@@ -0,0 +1,843 @@ | |||
1 | /**************************************************************************** | ||
2 | ** $Id$ | ||
3 | ** | ||
4 | ** Definition of Qt namespace (as class for compiler compatibility) | ||
5 | ** | ||
6 | ** Created : 980927 | ||
7 | ** | ||
8 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. | ||
9 | ** | ||
10 | ** This file is part of the kernel module of the Qt GUI Toolkit. | ||
11 | ** | ||
12 | ** This file may be distributed under the terms of the Q Public License | ||
13 | ** as defined by Trolltech AS of Norway and appearing in the file | ||
14 | ** LICENSE.QPL included in the packaging of this file. | ||
15 | ** | ||
16 | ** This file may be distributed and/or modified under the terms of the | ||
17 | ** GNU General Public License version 2 as published by the Free Software | ||
18 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
19 | ** packaging of this file. | ||
20 | ** | ||
21 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition | ||
22 | ** licenses may use this file in accordance with the Qt Commercial License | ||
23 | ** Agreement provided with the Software. | ||
24 | ** | ||
25 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
26 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
27 | ** | ||
28 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for | ||
29 | ** information about Qt Commercial License Agreements. | ||
30 | ** See http://www.trolltech.com/qpl/ for QPL licensing information. | ||
31 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
32 | ** | ||
33 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
34 | ** not clear to you. | ||
35 | ** | ||
36 | **********************************************************************/ | ||
37 | |||
38 | #ifndef QNAMESPACE_H | ||
39 | #define QNAMESPACE_H | ||
40 | |||
41 | #ifndef QT_H | ||
42 | #include "qglobal.h" | ||
43 | #endif // QT_H | ||
44 | |||
45 | |||
46 | class QColor; | ||
47 | class QCursor; | ||
48 | |||
49 | |||
50 | class Q_EXPORT Qt { | ||
51 | public: | ||
52 | QT_STATIC_CONST QColor & color0; | ||
53 | QT_STATIC_CONST QColor & color1; | ||
54 | QT_STATIC_CONST QColor & black; | ||
55 | QT_STATIC_CONST QColor & white; | ||
56 | QT_STATIC_CONST QColor & darkGray; | ||
57 | QT_STATIC_CONST QColor & gray; | ||
58 | QT_STATIC_CONST QColor & lightGray; | ||
59 | QT_STATIC_CONST QColor & red; | ||
60 | QT_STATIC_CONST QColor & green; | ||
61 | QT_STATIC_CONST QColor & blue; | ||
62 | QT_STATIC_CONST QColor & cyan; | ||
63 | QT_STATIC_CONST QColor & magenta; | ||
64 | QT_STATIC_CONST QColor & yellow; | ||
65 | QT_STATIC_CONST QColor & darkRed; | ||
66 | QT_STATIC_CONST QColor & darkGreen; | ||
67 | QT_STATIC_CONST QColor & darkBlue; | ||
68 | QT_STATIC_CONST QColor & darkCyan; | ||
69 | QT_STATIC_CONST QColor & darkMagenta; | ||
70 | QT_STATIC_CONST QColor & darkYellow; | ||
71 | |||
72 | // documented in qevent.cpp | ||
73 | enum ButtonState { // mouse/keyboard state values | ||
74 | NoButton= 0x0000, | ||
75 | LeftButton= 0x0001, | ||
76 | RightButton= 0x0002, | ||
77 | MidButton= 0x0004, | ||
78 | MouseButtonMask = 0x0007, | ||
79 | ShiftButton= 0x0100, | ||
80 | ControlButton = 0x0200, | ||
81 | AltButton= 0x0400, | ||
82 | MetaButton= 0x0800, | ||
83 | KeyButtonMask= 0x0f00, | ||
84 | Keypad = 0x4000 | ||
85 | }; | ||
86 | |||
87 | // documented in qobject.cpp | ||
88 | // ideally would start at 1, as in QSizePolicy, but that breaks other things | ||
89 | enum Orientation { | ||
90 | Horizontal = 0, | ||
91 | Vertical | ||
92 | }; | ||
93 | |||
94 | // Text formatting flags for QPainter::drawText and QLabel | ||
95 | // the following four enums can be combined to one integer which | ||
96 | // is passed as textflag to drawText and qt_format_text. | ||
97 | |||
98 | // documented in qpainter.cpp | ||
99 | enum AlignmentFlags { | ||
100 | AlignAuto = 0x0000, // text alignment | ||
101 | AlignLeft = 0x0001, | ||
102 | AlignRight = 0x0002, | ||
103 | AlignHCenter = 0x0004, | ||
104 | AlignJustify = 0x0008, | ||
105 | AlignHorizontal_Mask= AlignLeft | AlignRight | AlignHCenter | AlignJustify, | ||
106 | AlignTop = 0x0010, | ||
107 | AlignBottom = 0x0020, | ||
108 | AlignVCenter = 0x0040, | ||
109 | AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter, | ||
110 | AlignCenter = AlignVCenter | AlignHCenter | ||
111 | }; | ||
112 | |||
113 | // documented in qpainter.cpp | ||
114 | enum TextFlags { | ||
115 | SingleLine = 0x0080, // misc. flags | ||
116 | DontClip= 0x0100, | ||
117 | ExpandTabs= 0x0200, | ||
118 | ShowPrefix= 0x0400, | ||
119 | WordBreak= 0x0800, | ||
120 | BreakAnywhere = 0x1000, | ||
121 | DontPrint = 0x2000, // internal | ||
122 | NoAccel = 0x4000 | ||
123 | }; | ||
124 | |||
125 | // Widget flags; documented in qwidget.cpp | ||
126 | typedef uint WState; | ||
127 | |||
128 | // QWidget state flags (internal, barely documented in qwidget.cpp) | ||
129 | enum WidgetState { | ||
130 | WState_Created = 0x00000001, | ||
131 | WState_Disabled = 0x00000002, | ||
132 | WState_Visible = 0x00000004, | ||
133 | WState_ForceHide= 0x00000008, | ||
134 | WState_OwnCursor= 0x00000010, | ||
135 | WState_MouseTracking= 0x00000020, | ||
136 | WState_CompressKeys= 0x00000040, | ||
137 | WState_BlockUpdates= 0x00000080, | ||
138 | WState_InPaintEvent= 0x00000100, | ||
139 | WState_Reparented= 0x00000200, | ||
140 | WState_ConfigPending= 0x00000400, | ||
141 | WState_Resized = 0x00000800, | ||
142 | WState_AutoMask = 0x00001000, | ||
143 | WState_Polished = 0x00002000, | ||
144 | WState_DND = 0x00004000, | ||
145 | WState_Reserved0= 0x00008000, | ||
146 | WState_Reserved1= 0x00010000, | ||
147 | WState_Reserved2= 0x00020000, | ||
148 | WState_CreatedHidden= 0x00040000, | ||
149 | WState_Maximized= 0x00080000, | ||
150 | WState_Minimized= 0x00100000, | ||
151 | WState_ForceDisabled= 0x00200000, | ||
152 | WState_Exposed = 0x00400000, | ||
153 | WState_HasMouse = 0x00800000 | ||
154 | }; | ||
155 | |||
156 | // Widget flags2; documented in qwidget.cpp | ||
157 | typedef uint WFlags; | ||
158 | |||
159 | // documented in qwidget.cpp | ||
160 | enum WidgetFlags { | ||
161 | WType_TopLevel = 0x00000001,// widget type flags | ||
162 | WType_Dialog = 0x00000002, | ||
163 | WType_Popup = 0x00000004, | ||
164 | WType_Desktop = 0x00000008, | ||
165 | WType_Mask = 0x0000000f, | ||
166 | |||
167 | WStyle_Customize = 0x00000010,// window style flags | ||
168 | WStyle_NormalBorder= 0x00000020, | ||
169 | WStyle_DialogBorder= 0x00000040, // MS-Windows only | ||
170 | WStyle_NoBorder = 0x00002000, | ||
171 | WStyle_Title = 0x00000080, | ||
172 | WStyle_SysMenu = 0x00000100, | ||
173 | WStyle_Minimize = 0x00000200, | ||
174 | WStyle_Maximize = 0x00000400, | ||
175 | WStyle_MinMax = WStyle_Minimize | WStyle_Maximize, | ||
176 | WStyle_Tool = 0x00000800, | ||
177 | WStyle_StaysOnTop= 0x00001000, | ||
178 | WStyle_ContextHelp= 0x00004000, | ||
179 | WStyle_Reserved = 0x00008000, | ||
180 | WStyle_Mask = 0x0000fff0, | ||
181 | |||
182 | WDestructiveClose = 0x00010000,// misc flags | ||
183 | WPaintDesktop = 0x00020000, | ||
184 | WPaintUnclipped = 0x00040000, | ||
185 | WPaintClever = 0x00080000, | ||
186 | WResizeNoErase = 0x00100000, | ||
187 | WMouseNoMask = 0x00200000, | ||
188 | WStaticContents = 0x00400000, | ||
189 | WRepaintNoErase = 0x00800000, | ||
190 | #ifdef Q_WS_X11 | ||
191 | WX11BypassWM = 0x01000000, | ||
192 | WWinOwnDC = 0x00000000, | ||
193 | #else | ||
194 | WX11BypassWM = 0x00000000, | ||
195 | WWinOwnDC = 0x01000000, | ||
196 | #endif | ||
197 | WGroupLeader = 0x02000000, | ||
198 | WShowModal = 0x04000000, | ||
199 | WNoMousePropagation= 0x08000000, | ||
200 | WSubWindow = 0x10000000 | ||
201 | #ifndef QT_NO_COMPAT | ||
202 | , | ||
203 | WNorthWestGravity= WStaticContents, | ||
204 | WType_Modal = WType_Dialog | WShowModal, | ||
205 | WStyle_Dialog = WType_Dialog, | ||
206 | WStyle_NoBorderEx= WStyle_NoBorder | ||
207 | #endif | ||
208 | }; | ||
209 | |||
210 | // Image conversion flags. The unusual ordering is caused by | ||
211 | // compatibility and default requirements. | ||
212 | // Documented in qimage.cpp | ||
213 | |||
214 | enum ImageConversionFlags { | ||
215 | ColorMode_Mask = 0x00000003, | ||
216 | AutoColor = 0x00000000, | ||
217 | ColorOnly = 0x00000003, | ||
218 | MonoOnly = 0x00000002, | ||
219 | // Reserved= 0x00000001, | ||
220 | |||
221 | AlphaDither_Mask= 0x0000000c, | ||
222 | ThresholdAlphaDither= 0x00000000, | ||
223 | OrderedAlphaDither= 0x00000004, | ||
224 | DiffuseAlphaDither= 0x00000008, | ||
225 | NoAlpha = 0x0000000c, // Not supported | ||
226 | |||
227 | Dither_Mask = 0x00000030, | ||
228 | DiffuseDither = 0x00000000, | ||
229 | OrderedDither = 0x00000010, | ||
230 | ThresholdDither = 0x00000020, | ||
231 | // ReservedDither= 0x00000030, | ||
232 | |||
233 | DitherMode_Mask = 0x000000c0, | ||
234 | AutoDither = 0x00000000, | ||
235 | PreferDither = 0x00000040, | ||
236 | AvoidDither = 0x00000080 | ||
237 | }; | ||
238 | |||
239 | // documented in qpainter.cpp | ||
240 | enum BGMode { // background mode | ||
241 | TransparentMode, | ||
242 | OpaqueMode | ||
243 | }; | ||
244 | |||
245 | #ifndef QT_NO_COMPAT | ||
246 | // documented in qpainter.cpp | ||
247 | enum PaintUnit { // paint unit | ||
248 | PixelUnit, | ||
249 | LoMetricUnit, // OBSOLETE | ||
250 | HiMetricUnit, // OBSOLETE | ||
251 | LoEnglishUnit, // OBSOLETE | ||
252 | HiEnglishUnit, // OBSOLETE | ||
253 | TwipsUnit // OBSOLETE | ||
254 | }; | ||
255 | #endif | ||
256 | |||
257 | // documented in qstyle.cpp | ||
258 | #ifdef QT_NO_COMPAT | ||
259 | enum GUIStyle { | ||
260 | WindowsStyle = 1, // ### Qt 4.0: either remove the obsolete enums or clean up compat vs. | ||
261 | MotifStyle = 4 // ### QT_NO_COMPAT by reordering or combination into one enum. | ||
262 | }; | ||
263 | #else | ||
264 | enum GUIStyle { | ||
265 | MacStyle, // OBSOLETE | ||
266 | WindowsStyle, | ||
267 | Win3Style, // OBSOLETE | ||
268 | PMStyle, // OBSOLETE | ||
269 | MotifStyle | ||
270 | }; | ||
271 | #endif | ||
272 | |||
273 | // documented in qkeysequence.cpp | ||
274 | enum SequenceMatch { | ||
275 | NoMatch, | ||
276 | PartialMatch, | ||
277 | Identical | ||
278 | }; | ||
279 | |||
280 | // documented in qevent.cpp | ||
281 | enum Modifier { // accelerator modifiers | ||
282 | META = 0x00100000, | ||
283 | SHIFT = 0x00200000, | ||
284 | CTRL = 0x00400000, | ||
285 | ALT = 0x00800000, | ||
286 | MODIFIER_MASK = 0x00f00000, | ||
287 | UNICODE_ACCEL = 0x10000000, | ||
288 | |||
289 | ASCII_ACCEL = UNICODE_ACCEL // 1.x compat | ||
290 | }; | ||
291 | |||
292 | // documented in qevent.cpp | ||
293 | enum Key { | ||
294 | Key_Escape = 0x1000, // misc keys | ||
295 | Key_Tab = 0x1001, | ||
296 | Key_Backtab = 0x1002, Key_BackTab = Key_Backtab, | ||
297 | Key_Backspace = 0x1003, Key_BackSpace = Key_Backspace, | ||
298 | Key_Return = 0x1004, | ||
299 | Key_Enter = 0x1005, | ||
300 | Key_Insert = 0x1006, | ||
301 | Key_Delete = 0x1007, | ||
302 | Key_Pause = 0x1008, | ||
303 | Key_Print = 0x1009, | ||
304 | Key_SysReq = 0x100a, | ||
305 | Key_Clear = 0x100b, | ||
306 | Key_Home = 0x1010, // cursor movement | ||
307 | Key_End = 0x1011, | ||
308 | Key_Left = 0x1012, | ||
309 | Key_Up = 0x1013, | ||
310 | Key_Right = 0x1014, | ||
311 | Key_Down = 0x1015, | ||
312 | Key_Prior = 0x1016, Key_PageUp = Key_Prior, | ||
313 | Key_Next = 0x1017, Key_PageDown = Key_Next, | ||
314 | Key_Shift = 0x1020, // modifiers | ||
315 | Key_Control = 0x1021, | ||
316 | Key_Meta = 0x1022, | ||
317 | Key_Alt = 0x1023, | ||
318 | Key_CapsLock = 0x1024, | ||
319 | Key_NumLock = 0x1025, | ||
320 | Key_ScrollLock = 0x1026, | ||
321 | Key_F1 = 0x1030, // function keys | ||
322 | Key_F2 = 0x1031, | ||
323 | Key_F3 = 0x1032, | ||
324 | Key_F4 = 0x1033, | ||
325 | Key_F5 = 0x1034, | ||
326 | Key_F6 = 0x1035, | ||
327 | Key_F7 = 0x1036, | ||
328 | Key_F8 = 0x1037, | ||
329 | Key_F9 = 0x1038, | ||
330 | Key_F10 = 0x1039, | ||
331 | Key_F11 = 0x103a, | ||
332 | Key_F12 = 0x103b, | ||
333 | Key_F13 = 0x103c, | ||
334 | Key_F14 = 0x103d, | ||
335 | Key_F15 = 0x103e, | ||
336 | Key_F16 = 0x103f, | ||
337 | Key_F17 = 0x1040, | ||
338 | Key_F18 = 0x1041, | ||
339 | Key_F19 = 0x1042, | ||
340 | Key_F20 = 0x1043, | ||
341 | Key_F21 = 0x1044, | ||
342 | Key_F22 = 0x1045, | ||
343 | Key_F23 = 0x1046, | ||
344 | Key_F24 = 0x1047, | ||
345 | Key_F25 = 0x1048, // F25 .. F35 only on X11 | ||
346 | Key_F26 = 0x1049, | ||
347 | Key_F27 = 0x104a, | ||
348 | Key_F28 = 0x104b, | ||
349 | Key_F29 = 0x104c, | ||
350 | Key_F30 = 0x104d, | ||
351 | Key_F31 = 0x104e, | ||
352 | Key_F32 = 0x104f, | ||
353 | Key_F33 = 0x1050, | ||
354 | Key_F34 = 0x1051, | ||
355 | Key_F35 = 0x1052, | ||
356 | Key_Super_L = 0x1053, // extra keys | ||
357 | Key_Super_R = 0x1054, | ||
358 | Key_Menu = 0x1055, | ||
359 | Key_Hyper_L = 0x1056, | ||
360 | Key_Hyper_R = 0x1057, | ||
361 | Key_Help = 0x1058, | ||
362 | Key_Direction_L = 0x1059, | ||
363 | Key_Direction_R = 0x1060, | ||
364 | Key_Space = 0x20, // 7 bit printable ASCII | ||
365 | Key_Any = Key_Space, | ||
366 | Key_Exclam = 0x21, | ||
367 | Key_QuoteDbl = 0x22, | ||
368 | Key_NumberSign = 0x23, | ||
369 | Key_Dollar = 0x24, | ||
370 | Key_Percent = 0x25, | ||
371 | Key_Ampersand = 0x26, | ||
372 | Key_Apostrophe = 0x27, | ||
373 | Key_ParenLeft = 0x28, | ||
374 | Key_ParenRight = 0x29, | ||
375 | Key_Asterisk = 0x2a, | ||
376 | Key_Plus = 0x2b, | ||
377 | Key_Comma = 0x2c, | ||
378 | Key_Minus = 0x2d, | ||
379 | Key_Period = 0x2e, | ||
380 | Key_Slash = 0x2f, | ||
381 | Key_0 = 0x30, | ||
382 | Key_1 = 0x31, | ||
383 | Key_2 = 0x32, | ||
384 | Key_3 = 0x33, | ||
385 | Key_4 = 0x34, | ||
386 | Key_5 = 0x35, | ||
387 | Key_6 = 0x36, | ||
388 | Key_7 = 0x37, | ||
389 | Key_8 = 0x38, | ||
390 | Key_9 = 0x39, | ||
391 | Key_Colon = 0x3a, | ||
392 | Key_Semicolon = 0x3b, | ||
393 | Key_Less = 0x3c, | ||
394 | Key_Equal = 0x3d, | ||
395 | Key_Greater = 0x3e, | ||
396 | Key_Question = 0x3f, | ||
397 | Key_At = 0x40, | ||
398 | Key_A = 0x41, | ||
399 | Key_B = 0x42, | ||
400 | Key_C = 0x43, | ||
401 | Key_D = 0x44, | ||
402 | Key_E = 0x45, | ||
403 | Key_F = 0x46, | ||
404 | Key_G = 0x47, | ||
405 | Key_H = 0x48, | ||
406 | Key_I = 0x49, | ||
407 | Key_J = 0x4a, | ||
408 | Key_K = 0x4b, | ||
409 | Key_L = 0x4c, | ||
410 | Key_M = 0x4d, | ||
411 | Key_N = 0x4e, | ||
412 | Key_O = 0x4f, | ||
413 | Key_P = 0x50, | ||
414 | Key_Q = 0x51, | ||
415 | Key_R = 0x52, | ||
416 | Key_S = 0x53, | ||
417 | Key_T = 0x54, | ||
418 | Key_U = 0x55, | ||
419 | Key_V = 0x56, | ||
420 | Key_W = 0x57, | ||
421 | Key_X = 0x58, | ||
422 | Key_Y = 0x59, | ||
423 | Key_Z = 0x5a, | ||
424 | Key_BracketLeft = 0x5b, | ||
425 | Key_Backslash = 0x5c, | ||
426 | Key_BracketRight = 0x5d, | ||
427 | Key_AsciiCircum = 0x5e, | ||
428 | Key_Underscore = 0x5f, | ||
429 | Key_QuoteLeft = 0x60, | ||
430 | Key_BraceLeft = 0x7b, | ||
431 | Key_Bar = 0x7c, | ||
432 | Key_BraceRight = 0x7d, | ||
433 | Key_AsciiTilde = 0x7e, | ||
434 | |||
435 | // Latin 1 codes adapted from X: keysymdef.h,v 1.21 94/08/28 16:17:06 | ||
436 | |||
437 | Key_nobreakspace = 0x0a0, | ||
438 | Key_exclamdown = 0x0a1, | ||
439 | Key_cent = 0x0a2, | ||
440 | Key_sterling = 0x0a3, | ||
441 | Key_currency = 0x0a4, | ||
442 | Key_yen = 0x0a5, | ||
443 | Key_brokenbar = 0x0a6, | ||
444 | Key_section = 0x0a7, | ||
445 | Key_diaeresis = 0x0a8, | ||
446 | Key_copyright = 0x0a9, | ||
447 | Key_ordfeminine = 0x0aa, | ||
448 | Key_guillemotleft = 0x0ab,// left angle quotation mark | ||
449 | Key_notsign = 0x0ac, | ||
450 | Key_hyphen = 0x0ad, | ||
451 | Key_registered = 0x0ae, | ||
452 | Key_macron = 0x0af, | ||
453 | Key_degree = 0x0b0, | ||
454 | Key_plusminus = 0x0b1, | ||
455 | Key_twosuperior = 0x0b2, | ||
456 | Key_threesuperior = 0x0b3, | ||
457 | Key_acute = 0x0b4, | ||
458 | Key_mu = 0x0b5, | ||
459 | Key_paragraph = 0x0b6, | ||
460 | Key_periodcentered = 0x0b7, | ||
461 | Key_cedilla = 0x0b8, | ||
462 | Key_onesuperior = 0x0b9, | ||
463 | Key_masculine = 0x0ba, | ||
464 | Key_guillemotright = 0x0bb,// right angle quotation mark | ||
465 | Key_onequarter = 0x0bc, | ||
466 | Key_onehalf = 0x0bd, | ||
467 | Key_threequarters = 0x0be, | ||
468 | Key_questiondown = 0x0bf, | ||
469 | Key_Agrave = 0x0c0, | ||
470 | Key_Aacute = 0x0c1, | ||
471 | Key_Acircumflex = 0x0c2, | ||
472 | Key_Atilde = 0x0c3, | ||
473 | Key_Adiaeresis = 0x0c4, | ||
474 | Key_Aring = 0x0c5, | ||
475 | Key_AE = 0x0c6, | ||
476 | Key_Ccedilla = 0x0c7, | ||
477 | Key_Egrave = 0x0c8, | ||
478 | Key_Eacute = 0x0c9, | ||
479 | Key_Ecircumflex = 0x0ca, | ||
480 | Key_Ediaeresis = 0x0cb, | ||
481 | Key_Igrave = 0x0cc, | ||
482 | Key_Iacute = 0x0cd, | ||
483 | Key_Icircumflex = 0x0ce, | ||
484 | Key_Idiaeresis = 0x0cf, | ||
485 | Key_ETH = 0x0d0, | ||
486 | Key_Ntilde = 0x0d1, | ||
487 | Key_Ograve = 0x0d2, | ||
488 | Key_Oacute = 0x0d3, | ||
489 | Key_Ocircumflex = 0x0d4, | ||
490 | Key_Otilde = 0x0d5, | ||
491 | Key_Odiaeresis = 0x0d6, | ||
492 | Key_multiply = 0x0d7, | ||
493 | Key_Ooblique = 0x0d8, | ||
494 | Key_Ugrave = 0x0d9, | ||
495 | Key_Uacute = 0x0da, | ||
496 | Key_Ucircumflex = 0x0db, | ||
497 | Key_Udiaeresis = 0x0dc, | ||
498 | Key_Yacute = 0x0dd, | ||
499 | Key_THORN = 0x0de, | ||
500 | Key_ssharp = 0x0df, | ||
501 | Key_agrave = 0x0e0, | ||
502 | Key_aacute = 0x0e1, | ||
503 | Key_acircumflex = 0x0e2, | ||
504 | Key_atilde = 0x0e3, | ||
505 | Key_adiaeresis = 0x0e4, | ||
506 | Key_aring = 0x0e5, | ||
507 | Key_ae = 0x0e6, | ||
508 | Key_ccedilla = 0x0e7, | ||
509 | Key_egrave = 0x0e8, | ||
510 | Key_eacute = 0x0e9, | ||
511 | Key_ecircumflex = 0x0ea, | ||
512 | Key_ediaeresis = 0x0eb, | ||
513 | Key_igrave = 0x0ec, | ||
514 | Key_iacute = 0x0ed, | ||
515 | Key_icircumflex = 0x0ee, | ||
516 | Key_idiaeresis = 0x0ef, | ||
517 | Key_eth = 0x0f0, | ||
518 | Key_ntilde = 0x0f1, | ||
519 | Key_ograve = 0x0f2, | ||
520 | Key_oacute = 0x0f3, | ||
521 | Key_ocircumflex = 0x0f4, | ||
522 | Key_otilde = 0x0f5, | ||
523 | Key_odiaeresis = 0x0f6, | ||
524 | Key_division = 0x0f7, | ||
525 | Key_oslash = 0x0f8, | ||
526 | Key_ugrave = 0x0f9, | ||
527 | Key_uacute = 0x0fa, | ||
528 | Key_ucircumflex = 0x0fb, | ||
529 | Key_udiaeresis = 0x0fc, | ||
530 | Key_yacute = 0x0fd, | ||
531 | Key_thorn = 0x0fe, | ||
532 | Key_ydiaeresis = 0x0ff, | ||
533 | |||
534 | // multimedia/internet keys - ignored by default - see QKeyEvent c'tor | ||
535 | |||
536 | Key_Back = 0x1061, | ||
537 | Key_Forward = 0x1062, | ||
538 | Key_Stop = 0x1063, | ||
539 | Key_Refresh = 0x1064, | ||
540 | |||
541 | Key_VolumeDown = 0x1070, | ||
542 | Key_VolumeMute = 0x1071, | ||
543 | Key_VolumeUp = 0x1072, | ||
544 | Key_BassBoost = 0x1073, | ||
545 | Key_BassUp = 0x1074, | ||
546 | Key_BassDown = 0x1075, | ||
547 | Key_TrebleUp = 0x1076, | ||
548 | Key_TrebleDown = 0x1077, | ||
549 | |||
550 | Key_MediaPlay = 0x1080, | ||
551 | Key_MediaStop = 0x1081, | ||
552 | Key_MediaPrev = 0x1082, | ||
553 | Key_MediaNext = 0x1083, | ||
554 | Key_MediaRecord = 0x1084, | ||
555 | |||
556 | Key_HomePage = 0x1090, | ||
557 | Key_Favorites = 0x1091, | ||
558 | Key_Search = 0x1092, | ||
559 | Key_Standby = 0x1093, | ||
560 | Key_OpenUrl = 0x1094, | ||
561 | |||
562 | Key_LaunchMail = 0x10a0, | ||
563 | Key_LaunchMedia = 0x10a1, | ||
564 | Key_Launch0 = 0x10a2, | ||
565 | Key_Launch1 = 0x10a3, | ||
566 | Key_Launch2 = 0x10a4, | ||
567 | Key_Launch3 = 0x10a5, | ||
568 | Key_Launch4 = 0x10a6, | ||
569 | Key_Launch5 = 0x10a7, | ||
570 | Key_Launch6 = 0x10a8, | ||
571 | Key_Launch7 = 0x10a9, | ||
572 | Key_Launch8 = 0x10aa, | ||
573 | Key_Launch9 = 0x10ab, | ||
574 | Key_LaunchA = 0x10ac, | ||
575 | Key_LaunchB = 0x10ad, | ||
576 | Key_LaunchC = 0x10ae, | ||
577 | Key_LaunchD = 0x10af, | ||
578 | Key_LaunchE = 0x10b0, | ||
579 | Key_LaunchF = 0x10b1, | ||
580 | |||
581 | Key_MediaLast = 0x1fff, | ||
582 | |||
583 | Key_unknown = 0xffff | ||
584 | }; | ||
585 | |||
586 | // documented in qcommonstyle.cpp | ||
587 | enum ArrowType { | ||
588 | UpArrow, | ||
589 | DownArrow, | ||
590 | LeftArrow, | ||
591 | RightArrow | ||
592 | }; | ||
593 | |||
594 | // documented in qpainter.cpp | ||
595 | enum RasterOp { // raster op mode | ||
596 | CopyROP, | ||
597 | OrROP, | ||
598 | XorROP, | ||
599 | NotAndROP, EraseROP=NotAndROP, | ||
600 | NotCopyROP, | ||
601 | NotOrROP, | ||
602 | NotXorROP, | ||
603 | AndROP,NotEraseROP=AndROP, | ||
604 | NotROP, | ||
605 | ClearROP, | ||
606 | SetROP, | ||
607 | NopROP, | ||
608 | AndNotROP, | ||
609 | OrNotROP, | ||
610 | NandROP, | ||
611 | NorROP,LastROP=NorROP | ||
612 | }; | ||
613 | |||
614 | // documented in qpainter.cpp | ||
615 | enum PenStyle { // pen style | ||
616 | NoPen, | ||
617 | SolidLine, | ||
618 | DashLine, | ||
619 | DotLine, | ||
620 | DashDotLine, | ||
621 | DashDotDotLine, | ||
622 | MPenStyle = 0x0f | ||
623 | }; | ||
624 | |||
625 | // documented in qpainter.cpp | ||
626 | enum PenCapStyle { // line endcap style | ||
627 | FlatCap = 0x00, | ||
628 | SquareCap = 0x10, | ||
629 | RoundCap = 0x20, | ||
630 | MPenCapStyle = 0x30 | ||
631 | }; | ||
632 | |||
633 | // documented in qpainter.cpp | ||
634 | enum PenJoinStyle { // line join style | ||
635 | MiterJoin = 0x00, | ||
636 | BevelJoin = 0x40, | ||
637 | RoundJoin = 0x80, | ||
638 | MPenJoinStyle = 0xc0 | ||
639 | }; | ||
640 | |||
641 | // documented in qpainter.cpp | ||
642 | enum BrushStyle { // brush style | ||
643 | NoBrush, | ||
644 | SolidPattern, | ||
645 | Dense1Pattern, | ||
646 | Dense2Pattern, | ||
647 | Dense3Pattern, | ||
648 | Dense4Pattern, | ||
649 | Dense5Pattern, | ||
650 | Dense6Pattern, | ||
651 | Dense7Pattern, | ||
652 | HorPattern, | ||
653 | VerPattern, | ||
654 | CrossPattern, | ||
655 | BDiagPattern, | ||
656 | FDiagPattern, | ||
657 | DiagCrossPattern, | ||
658 | CustomPattern=24 | ||
659 | }; | ||
660 | |||
661 | // documented in qapplication_win.cpp | ||
662 | enum WindowsVersion { | ||
663 | WV_32s = 0x0001, | ||
664 | WV_95 = 0x0002, | ||
665 | WV_98 = 0x0003, | ||
666 | WV_Me = 0x0004, | ||
667 | WV_DOS_based= 0x000f, | ||
668 | |||
669 | WV_NT = 0x0010, | ||
670 | WV_2000 = 0x0020, | ||
671 | WV_XP = 0x0030, | ||
672 | WV_NT_based= 0x00f0 | ||
673 | }; | ||
674 | |||
675 | // documented in qstyle.cpp | ||
676 | enum UIEffect { | ||
677 | UI_General, | ||
678 | UI_AnimateMenu, | ||
679 | UI_FadeMenu, | ||
680 | UI_AnimateCombo, | ||
681 | UI_AnimateTooltip, | ||
682 | UI_FadeTooltip | ||
683 | }; | ||
684 | |||
685 | // documented in qcursor.cpp | ||
686 | enum CursorShape { | ||
687 | ArrowCursor, | ||
688 | UpArrowCursor, | ||
689 | CrossCursor, | ||
690 | WaitCursor, | ||
691 | IbeamCursor, | ||
692 | SizeVerCursor, | ||
693 | SizeHorCursor, | ||
694 | SizeBDiagCursor, | ||
695 | SizeFDiagCursor, | ||
696 | SizeAllCursor, | ||
697 | BlankCursor, | ||
698 | SplitVCursor, | ||
699 | SplitHCursor, | ||
700 | PointingHandCursor, | ||
701 | ForbiddenCursor, | ||
702 | WhatsThisCursor, | ||
703 | LastCursor= WhatsThisCursor, | ||
704 | BitmapCursor= 24 | ||
705 | }; | ||
706 | |||
707 | // Global cursors | ||
708 | |||
709 | QT_STATIC_CONST QCursor & arrowCursor;// standard arrow cursor | ||
710 | QT_STATIC_CONST QCursor & upArrowCursor;// upwards arrow | ||
711 | QT_STATIC_CONST QCursor & crossCursor;// crosshair | ||
712 | QT_STATIC_CONST QCursor & waitCursor;// hourglass/watch | ||
713 | QT_STATIC_CONST QCursor & ibeamCursor;// ibeam/text entry | ||
714 | QT_STATIC_CONST QCursor & sizeVerCursor;// vertical resize | ||
715 | QT_STATIC_CONST QCursor & sizeHorCursor;// horizontal resize | ||
716 | QT_STATIC_CONST QCursor & sizeBDiagCursor;// diagonal resize (/) | ||
717 | QT_STATIC_CONST QCursor & sizeFDiagCursor;// diagonal resize (\) | ||
718 | QT_STATIC_CONST QCursor & sizeAllCursor;// all directions resize | ||
719 | QT_STATIC_CONST QCursor & blankCursor;// blank/invisible cursor | ||
720 | QT_STATIC_CONST QCursor & splitVCursor;// vertical bar with left-right | ||
721 | // arrows | ||
722 | QT_STATIC_CONST QCursor & splitHCursor;// horizontal bar with up-down | ||
723 | // arrows | ||
724 | QT_STATIC_CONST QCursor & pointingHandCursor;// pointing hand | ||
725 | QT_STATIC_CONST QCursor & forbiddenCursor;// forbidden cursor (slashed circle) | ||
726 | QT_STATIC_CONST QCursor & whatsThisCursor; // arrow with a question mark | ||
727 | |||
728 | |||
729 | enum TextFormat { | ||
730 | PlainText, | ||
731 | RichText, | ||
732 | AutoText, | ||
733 | LogText | ||
734 | }; | ||
735 | |||
736 | // Documented in qtextedit.cpp | ||
737 | enum AnchorAttribute { | ||
738 | AnchorName, | ||
739 | AnchorHref | ||
740 | }; | ||
741 | |||
742 | // Documented in qmainwindow.cpp | ||
743 | enum Dock { | ||
744 | DockUnmanaged, | ||
745 | DockTornOff, | ||
746 | DockTop, | ||
747 | DockBottom, | ||
748 | DockRight, | ||
749 | DockLeft, | ||
750 | DockMinimized | ||
751 | #ifndef QT_NO_COMPAT | ||
752 | , | ||
753 | Unmanaged = DockUnmanaged, | ||
754 | TornOff = DockTornOff, | ||
755 | Top = DockTop, | ||
756 | Bottom = DockBottom, | ||
757 | Right = DockRight, | ||
758 | Left = DockLeft, | ||
759 | Minimized = DockMinimized | ||
760 | #endif | ||
761 | }; | ||
762 | // compatibility | ||
763 | typedef Dock ToolBarDock; | ||
764 | |||
765 | // documented in qdatetime.cpp | ||
766 | enum DateFormat { | ||
767 | TextDate, // default Qt | ||
768 | ISODate, // ISO 8601 | ||
769 | LocalDate // locale dependant | ||
770 | }; | ||
771 | |||
772 | // documented in qdatetime.cpp | ||
773 | enum TimeSpec { | ||
774 | LocalTime, | ||
775 | UTC | ||
776 | }; | ||
777 | |||
778 | // documented in qwidget.cpp | ||
779 | enum BackgroundMode { | ||
780 | FixedColor, | ||
781 | FixedPixmap, | ||
782 | NoBackground, | ||
783 | PaletteForeground, | ||
784 | PaletteButton, | ||
785 | PaletteLight, | ||
786 | PaletteMidlight, | ||
787 | PaletteDark, | ||
788 | PaletteMid, | ||
789 | PaletteText, | ||
790 | PaletteBrightText, | ||
791 | PaletteBase, | ||
792 | PaletteBackground, | ||
793 | PaletteShadow, | ||
794 | PaletteHighlight, | ||
795 | PaletteHighlightedText, | ||
796 | PaletteButtonText, | ||
797 | PaletteLink, | ||
798 | PaletteLinkVisited, | ||
799 | X11ParentRelative | ||
800 | }; | ||
801 | |||
802 | typedef uint ComparisonFlags; | ||
803 | |||
804 | // Documented in qstring.cpp | ||
805 | enum StringComparisonMode { | ||
806 | CaseSensitive = 0x00001, // 0 0001 | ||
807 | BeginsWith = 0x00002, // 0 0010 | ||
808 | EndsWith = 0x00004, // 0 0100 | ||
809 | Contains = 0x00008, // 0 1000 | ||
810 | ExactMatch = 0x00010 // 1 0000 | ||
811 | }; | ||
812 | |||
813 | // "handle" type for system objects. Documented as \internal in | ||
814 | // qapplication.cpp | ||
815 | #if defined(Q_WS_MAC) | ||
816 | typedef void * HANDLE; | ||
817 | #elif defined(Q_WS_WIN) | ||
818 | typedef void *HANDLE; | ||
819 | #elif defined(Q_WS_X11) | ||
820 | typedef unsigned long HANDLE; | ||
821 | #elif defined(Q_WS_QWS) | ||
822 | typedef void * HANDLE; | ||
823 | #endif | ||
824 | }; | ||
825 | |||
826 | |||
827 | class Q_EXPORT QInternal { | ||
828 | public: | ||
829 | enum PaintDeviceFlags { | ||
830 | UndefinedDevice = 0x00, | ||
831 | Widget = 0x01, | ||
832 | Pixmap = 0x02, | ||
833 | Printer = 0x03, | ||
834 | Picture = 0x04, | ||
835 | System = 0x05, | ||
836 | DeviceTypeMask = 0x0f, | ||
837 | ExternalDevice = 0x10, | ||
838 | // used to emulate some of the behaviour different between Qt2 and Qt3 (mainly for printing) | ||
839 | CompatibilityMode = 0x20 | ||
840 | }; | ||
841 | }; | ||
842 | |||
843 | #endif // QNAMESPACE_H | ||