Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qnamespace.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** $Id: qnamespace.h,v 1.1 2002/11/01 00:10:43 kergoth Exp $
00003 **
00004 ** Definition of Qt namespace (as class for compiler compatibility)
00005 **
00006 ** Created : 980927
00007 **
00008 ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
00009 **
00010 ** This file is part of the kernel module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech AS of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef QNAMESPACE_H
00039 #define QNAMESPACE_H
00040 
00041 #ifndef QT_H
00042 #include "qglobal.h"
00043 #endif // QT_H
00044 
00045 
00046 class QColor;
00047 class QCursor;
00048 
00049 
00050 class Q_EXPORT Qt {
00051 public:
00052     QT_STATIC_CONST QColor & color0;
00053     QT_STATIC_CONST QColor & color1;
00054     QT_STATIC_CONST QColor & black;
00055     QT_STATIC_CONST QColor & white;
00056     QT_STATIC_CONST QColor & darkGray;
00057     QT_STATIC_CONST QColor & gray;
00058     QT_STATIC_CONST QColor & lightGray;
00059     QT_STATIC_CONST QColor & red;
00060     QT_STATIC_CONST QColor & green;
00061     QT_STATIC_CONST QColor & blue;
00062     QT_STATIC_CONST QColor & cyan;
00063     QT_STATIC_CONST QColor & magenta;
00064     QT_STATIC_CONST QColor & yellow;
00065     QT_STATIC_CONST QColor & darkRed;
00066     QT_STATIC_CONST QColor & darkGreen;
00067     QT_STATIC_CONST QColor & darkBlue;
00068     QT_STATIC_CONST QColor & darkCyan;
00069     QT_STATIC_CONST QColor & darkMagenta;
00070     QT_STATIC_CONST QColor & darkYellow;
00071 
00072     // documented in qevent.cpp
00073     enum ButtonState {                          // mouse/keyboard state values
00074         NoButton        = 0x0000,
00075         LeftButton      = 0x0001,
00076         RightButton     = 0x0002,
00077         MidButton       = 0x0004,
00078         MouseButtonMask = 0x0007,
00079         ShiftButton     = 0x0100,
00080         ControlButton   = 0x0200,
00081         AltButton       = 0x0400,
00082         MetaButton      = 0x0800,
00083         KeyButtonMask   = 0x0f00,
00084         Keypad          = 0x4000
00085     };
00086 
00087     // documented in qobject.cpp
00088     // ideally would start at 1, as in QSizePolicy, but that breaks other things
00089     enum Orientation {
00090         Horizontal = 0,
00091         Vertical
00092     };
00093 
00094     // Text formatting flags for QPainter::drawText and QLabel
00095     // the following four enums can be combined to one integer which
00096     // is passed as textflag to drawText and qt_format_text.
00097 
00098     // documented in qpainter.cpp
00099     enum AlignmentFlags {
00100         AlignAuto               = 0x0000,       // text alignment
00101         AlignLeft               = 0x0001,
00102         AlignRight              = 0x0002,
00103         AlignHCenter            = 0x0004,
00104         AlignJustify            = 0x0008,
00105         AlignHorizontal_Mask    = AlignLeft | AlignRight | AlignHCenter | AlignJustify,
00106         AlignTop                = 0x0010,
00107         AlignBottom             = 0x0020,
00108         AlignVCenter            = 0x0040,
00109         AlignVertical_Mask      = AlignTop | AlignBottom | AlignVCenter,
00110         AlignCenter             = AlignVCenter | AlignHCenter
00111     };
00112 
00113     // documented in qpainter.cpp
00114     enum TextFlags {
00115         SingleLine      = 0x0080,               // misc. flags
00116         DontClip        = 0x0100,
00117         ExpandTabs      = 0x0200,
00118         ShowPrefix      = 0x0400,
00119         WordBreak       = 0x0800,
00120         BreakAnywhere = 0x1000,
00121         DontPrint       = 0x2000,               // internal
00122         NoAccel = 0x4000
00123     };
00124 
00125     // Widget flags; documented in qwidget.cpp
00126     typedef uint WState;
00127 
00128     // QWidget state flags (internal, barely documented in qwidget.cpp)
00129     enum WidgetState {
00130         WState_Created          = 0x00000001,
00131         WState_Disabled         = 0x00000002,
00132         WState_Visible          = 0x00000004,
00133         WState_ForceHide        = 0x00000008,
00134         WState_OwnCursor        = 0x00000010,
00135         WState_MouseTracking    = 0x00000020,
00136         WState_CompressKeys     = 0x00000040,
00137         WState_BlockUpdates     = 0x00000080,
00138         WState_InPaintEvent     = 0x00000100,
00139         WState_Reparented       = 0x00000200,
00140         WState_ConfigPending    = 0x00000400,
00141         WState_Resized          = 0x00000800,
00142         WState_AutoMask         = 0x00001000,
00143         WState_Polished         = 0x00002000,
00144         WState_DND              = 0x00004000,
00145         WState_Reserved0        = 0x00008000,
00146         WState_Reserved1        = 0x00010000,
00147         WState_Reserved2        = 0x00020000,
00148         WState_CreatedHidden    = 0x00040000,
00149         WState_Maximized        = 0x00080000,
00150         WState_Minimized        = 0x00100000,
00151         WState_ForceDisabled    = 0x00200000,
00152         WState_Exposed          = 0x00400000,
00153         WState_HasMouse         = 0x00800000
00154     };
00155 
00156     // Widget flags2; documented in qwidget.cpp
00157     typedef uint WFlags;
00158 
00159     // documented in qwidget.cpp
00160     enum WidgetFlags {
00161         WType_TopLevel          = 0x00000001,   // widget type flags
00162         WType_Dialog            = 0x00000002,
00163         WType_Popup             = 0x00000004,
00164         WType_Desktop           = 0x00000008,
00165         WType_Mask              = 0x0000000f,
00166 
00167         WStyle_Customize        = 0x00000010,   // window style flags
00168         WStyle_NormalBorder     = 0x00000020,
00169         WStyle_DialogBorder     = 0x00000040, // MS-Windows only
00170         WStyle_NoBorder         = 0x00002000,
00171         WStyle_Title            = 0x00000080,
00172         WStyle_SysMenu          = 0x00000100,
00173         WStyle_Minimize         = 0x00000200,
00174         WStyle_Maximize         = 0x00000400,
00175         WStyle_MinMax           = WStyle_Minimize | WStyle_Maximize,
00176         WStyle_Tool             = 0x00000800,
00177         WStyle_StaysOnTop       = 0x00001000,
00178         WStyle_ContextHelp      = 0x00004000,
00179         WStyle_Reserved         = 0x00008000,
00180         WStyle_Mask             = 0x0000fff0,
00181 
00182         WDestructiveClose       = 0x00010000,   // misc flags
00183         WPaintDesktop           = 0x00020000,
00184         WPaintUnclipped         = 0x00040000,
00185         WPaintClever            = 0x00080000,
00186         WResizeNoErase          = 0x00100000,
00187         WMouseNoMask            = 0x00200000,
00188         WStaticContents         = 0x00400000,
00189         WRepaintNoErase         = 0x00800000,
00190 #ifdef Q_WS_X11
00191         WX11BypassWM            = 0x01000000,
00192         WWinOwnDC               = 0x00000000,
00193 #else
00194         WX11BypassWM            = 0x00000000,
00195         WWinOwnDC               = 0x01000000,
00196 #endif
00197         WGroupLeader            = 0x02000000,
00198         WShowModal              = 0x04000000,
00199         WNoMousePropagation     = 0x08000000,
00200         WSubWindow              = 0x10000000
00201 #ifndef QT_NO_COMPAT
00202         ,
00203         WNorthWestGravity       = WStaticContents,
00204         WType_Modal             = WType_Dialog | WShowModal,
00205         WStyle_Dialog           = WType_Dialog,
00206         WStyle_NoBorderEx       = WStyle_NoBorder
00207 #endif
00208     };
00209 
00210     // Image conversion flags.  The unusual ordering is caused by
00211     // compatibility and default requirements.
00212     // Documented in qimage.cpp
00213 
00214     enum ImageConversionFlags {
00215         ColorMode_Mask          = 0x00000003,
00216         AutoColor               = 0x00000000,
00217         ColorOnly               = 0x00000003,
00218         MonoOnly                = 0x00000002,
00219         //        Reserved      = 0x00000001,
00220 
00221         AlphaDither_Mask        = 0x0000000c,
00222         ThresholdAlphaDither    = 0x00000000,
00223         OrderedAlphaDither      = 0x00000004,
00224         DiffuseAlphaDither      = 0x00000008,
00225         NoAlpha                 = 0x0000000c, // Not supported
00226 
00227         Dither_Mask             = 0x00000030,
00228         DiffuseDither           = 0x00000000,
00229         OrderedDither           = 0x00000010,
00230         ThresholdDither         = 0x00000020,
00231         //        ReservedDither= 0x00000030,
00232 
00233         DitherMode_Mask         = 0x000000c0,
00234         AutoDither              = 0x00000000,
00235         PreferDither            = 0x00000040,
00236         AvoidDither             = 0x00000080
00237     };
00238 
00239     // documented in qpainter.cpp
00240     enum BGMode {                               // background mode
00241         TransparentMode,
00242         OpaqueMode
00243     };
00244 
00245 #ifndef QT_NO_COMPAT
00246     // documented in qpainter.cpp
00247     enum PaintUnit {                            // paint unit
00248         PixelUnit,
00249         LoMetricUnit, // OBSOLETE
00250         HiMetricUnit, // OBSOLETE
00251         LoEnglishUnit, // OBSOLETE
00252         HiEnglishUnit, // OBSOLETE
00253         TwipsUnit // OBSOLETE
00254     };
00255 #endif
00256 
00257     // documented in qstyle.cpp
00258 #ifdef QT_NO_COMPAT
00259     enum GUIStyle {
00260         WindowsStyle = 1,     // ### Qt 4.0: either remove the obsolete enums or clean up compat vs.
00261         MotifStyle = 4        // ### QT_NO_COMPAT by reordering or combination into one enum.
00262     };
00263 #else
00264     enum GUIStyle {
00265         MacStyle, // OBSOLETE
00266         WindowsStyle,
00267         Win3Style, // OBSOLETE
00268         PMStyle, // OBSOLETE
00269         MotifStyle
00270     };
00271 #endif
00272 
00273     // documented in qkeysequence.cpp
00274     enum SequenceMatch {
00275         NoMatch,
00276         PartialMatch,
00277         Identical
00278     };
00279 
00280     // documented in qevent.cpp
00281     enum Modifier {             // accelerator modifiers
00282         META          = 0x00100000,
00283         SHIFT         = 0x00200000,
00284         CTRL          = 0x00400000,
00285         ALT           = 0x00800000,
00286         MODIFIER_MASK = 0x00f00000,
00287         UNICODE_ACCEL = 0x10000000,
00288 
00289         ASCII_ACCEL = UNICODE_ACCEL // 1.x compat
00290     };
00291 
00292     // documented in qevent.cpp
00293     enum Key {
00294         Key_Escape = 0x1000,            // misc keys
00295         Key_Tab = 0x1001,
00296         Key_Backtab = 0x1002, Key_BackTab = Key_Backtab,
00297         Key_Backspace = 0x1003, Key_BackSpace = Key_Backspace,
00298         Key_Return = 0x1004,
00299         Key_Enter = 0x1005,
00300         Key_Insert = 0x1006,
00301         Key_Delete = 0x1007,
00302         Key_Pause = 0x1008,
00303         Key_Print = 0x1009,
00304         Key_SysReq = 0x100a,
00305         Key_Clear = 0x100b,
00306         Key_Home = 0x1010,              // cursor movement
00307         Key_End = 0x1011,
00308         Key_Left = 0x1012,
00309         Key_Up = 0x1013,
00310         Key_Right = 0x1014,
00311         Key_Down = 0x1015,
00312         Key_Prior = 0x1016, Key_PageUp = Key_Prior,
00313         Key_Next = 0x1017, Key_PageDown = Key_Next,
00314         Key_Shift = 0x1020,             // modifiers
00315         Key_Control = 0x1021,
00316         Key_Meta = 0x1022,
00317         Key_Alt = 0x1023,
00318         Key_CapsLock = 0x1024,
00319         Key_NumLock = 0x1025,
00320         Key_ScrollLock = 0x1026,
00321         Key_F1 = 0x1030,                // function keys
00322         Key_F2 = 0x1031,
00323         Key_F3 = 0x1032,
00324         Key_F4 = 0x1033,
00325         Key_F5 = 0x1034,
00326         Key_F6 = 0x1035,
00327         Key_F7 = 0x1036,
00328         Key_F8 = 0x1037,
00329         Key_F9 = 0x1038,
00330         Key_F10 = 0x1039,
00331         Key_F11 = 0x103a,
00332         Key_F12 = 0x103b,
00333         Key_F13 = 0x103c,
00334         Key_F14 = 0x103d,
00335         Key_F15 = 0x103e,
00336         Key_F16 = 0x103f,
00337         Key_F17 = 0x1040,
00338         Key_F18 = 0x1041,
00339         Key_F19 = 0x1042,
00340         Key_F20 = 0x1043,
00341         Key_F21 = 0x1044,
00342         Key_F22 = 0x1045,
00343         Key_F23 = 0x1046,
00344         Key_F24 = 0x1047,
00345         Key_F25 = 0x1048,               // F25 .. F35 only on X11
00346         Key_F26 = 0x1049,
00347         Key_F27 = 0x104a,
00348         Key_F28 = 0x104b,
00349         Key_F29 = 0x104c,
00350         Key_F30 = 0x104d,
00351         Key_F31 = 0x104e,
00352         Key_F32 = 0x104f,
00353         Key_F33 = 0x1050,
00354         Key_F34 = 0x1051,
00355         Key_F35 = 0x1052,
00356         Key_Super_L = 0x1053,           // extra keys
00357         Key_Super_R = 0x1054,
00358         Key_Menu = 0x1055,
00359         Key_Hyper_L = 0x1056,
00360         Key_Hyper_R = 0x1057,
00361         Key_Help = 0x1058,
00362         Key_Direction_L = 0x1059,
00363         Key_Direction_R = 0x1060,
00364         Key_Space = 0x20,               // 7 bit printable ASCII
00365         Key_Any = Key_Space,
00366         Key_Exclam = 0x21,
00367         Key_QuoteDbl = 0x22,
00368         Key_NumberSign = 0x23,
00369         Key_Dollar = 0x24,
00370         Key_Percent = 0x25,
00371         Key_Ampersand = 0x26,
00372         Key_Apostrophe = 0x27,
00373         Key_ParenLeft = 0x28,
00374         Key_ParenRight = 0x29,
00375         Key_Asterisk = 0x2a,
00376         Key_Plus = 0x2b,
00377         Key_Comma = 0x2c,
00378         Key_Minus = 0x2d,
00379         Key_Period = 0x2e,
00380         Key_Slash = 0x2f,
00381         Key_0 = 0x30,
00382         Key_1 = 0x31,
00383         Key_2 = 0x32,
00384         Key_3 = 0x33,
00385         Key_4 = 0x34,
00386         Key_5 = 0x35,
00387         Key_6 = 0x36,
00388         Key_7 = 0x37,
00389         Key_8 = 0x38,
00390         Key_9 = 0x39,
00391         Key_Colon = 0x3a,
00392         Key_Semicolon = 0x3b,
00393         Key_Less = 0x3c,
00394         Key_Equal = 0x3d,
00395         Key_Greater = 0x3e,
00396         Key_Question = 0x3f,
00397         Key_At = 0x40,
00398         Key_A = 0x41,
00399         Key_B = 0x42,
00400         Key_C = 0x43,
00401         Key_D = 0x44,
00402         Key_E = 0x45,
00403         Key_F = 0x46,
00404         Key_G = 0x47,
00405         Key_H = 0x48,
00406         Key_I = 0x49,
00407         Key_J = 0x4a,
00408         Key_K = 0x4b,
00409         Key_L = 0x4c,
00410         Key_M = 0x4d,
00411         Key_N = 0x4e,
00412         Key_O = 0x4f,
00413         Key_P = 0x50,
00414         Key_Q = 0x51,
00415         Key_R = 0x52,
00416         Key_S = 0x53,
00417         Key_T = 0x54,
00418         Key_U = 0x55,
00419         Key_V = 0x56,
00420         Key_W = 0x57,
00421         Key_X = 0x58,
00422         Key_Y = 0x59,
00423         Key_Z = 0x5a,
00424         Key_BracketLeft = 0x5b,
00425         Key_Backslash = 0x5c,
00426         Key_BracketRight = 0x5d,
00427         Key_AsciiCircum = 0x5e,
00428         Key_Underscore = 0x5f,
00429         Key_QuoteLeft = 0x60,
00430         Key_BraceLeft = 0x7b,
00431         Key_Bar = 0x7c,
00432         Key_BraceRight = 0x7d,
00433         Key_AsciiTilde = 0x7e,
00434 
00435         // Latin 1 codes adapted from X: keysymdef.h,v 1.21 94/08/28 16:17:06
00436 
00437         Key_nobreakspace = 0x0a0,
00438         Key_exclamdown = 0x0a1,
00439         Key_cent = 0x0a2,
00440         Key_sterling = 0x0a3,
00441         Key_currency = 0x0a4,
00442         Key_yen = 0x0a5,
00443         Key_brokenbar = 0x0a6,
00444         Key_section = 0x0a7,
00445         Key_diaeresis = 0x0a8,
00446         Key_copyright = 0x0a9,
00447         Key_ordfeminine = 0x0aa,
00448         Key_guillemotleft = 0x0ab,      // left angle quotation mark
00449         Key_notsign = 0x0ac,
00450         Key_hyphen = 0x0ad,
00451         Key_registered = 0x0ae,
00452         Key_macron = 0x0af,
00453         Key_degree = 0x0b0,
00454         Key_plusminus = 0x0b1,
00455         Key_twosuperior = 0x0b2,
00456         Key_threesuperior = 0x0b3,
00457         Key_acute = 0x0b4,
00458         Key_mu = 0x0b5,
00459         Key_paragraph = 0x0b6,
00460         Key_periodcentered = 0x0b7,
00461         Key_cedilla = 0x0b8,
00462         Key_onesuperior = 0x0b9,
00463         Key_masculine = 0x0ba,
00464         Key_guillemotright = 0x0bb,     // right angle quotation mark
00465         Key_onequarter = 0x0bc,
00466         Key_onehalf = 0x0bd,
00467         Key_threequarters = 0x0be,
00468         Key_questiondown = 0x0bf,
00469         Key_Agrave = 0x0c0,
00470         Key_Aacute = 0x0c1,
00471         Key_Acircumflex = 0x0c2,
00472         Key_Atilde = 0x0c3,
00473         Key_Adiaeresis = 0x0c4,
00474         Key_Aring = 0x0c5,
00475         Key_AE = 0x0c6,
00476         Key_Ccedilla = 0x0c7,
00477         Key_Egrave = 0x0c8,
00478         Key_Eacute = 0x0c9,
00479         Key_Ecircumflex = 0x0ca,
00480         Key_Ediaeresis = 0x0cb,
00481         Key_Igrave = 0x0cc,
00482         Key_Iacute = 0x0cd,
00483         Key_Icircumflex = 0x0ce,
00484         Key_Idiaeresis = 0x0cf,
00485         Key_ETH = 0x0d0,
00486         Key_Ntilde = 0x0d1,
00487         Key_Ograve = 0x0d2,
00488         Key_Oacute = 0x0d3,
00489         Key_Ocircumflex = 0x0d4,
00490         Key_Otilde = 0x0d5,
00491         Key_Odiaeresis = 0x0d6,
00492         Key_multiply = 0x0d7,
00493         Key_Ooblique = 0x0d8,
00494         Key_Ugrave = 0x0d9,
00495         Key_Uacute = 0x0da,
00496         Key_Ucircumflex = 0x0db,
00497         Key_Udiaeresis = 0x0dc,
00498         Key_Yacute = 0x0dd,
00499         Key_THORN = 0x0de,
00500         Key_ssharp = 0x0df,
00501         Key_agrave = 0x0e0,
00502         Key_aacute = 0x0e1,
00503         Key_acircumflex = 0x0e2,
00504         Key_atilde = 0x0e3,
00505         Key_adiaeresis = 0x0e4,
00506         Key_aring = 0x0e5,
00507         Key_ae = 0x0e6,
00508         Key_ccedilla = 0x0e7,
00509         Key_egrave = 0x0e8,
00510         Key_eacute = 0x0e9,
00511         Key_ecircumflex = 0x0ea,
00512         Key_ediaeresis = 0x0eb,
00513         Key_igrave = 0x0ec,
00514         Key_iacute = 0x0ed,
00515         Key_icircumflex = 0x0ee,
00516         Key_idiaeresis = 0x0ef,
00517         Key_eth = 0x0f0,
00518         Key_ntilde = 0x0f1,
00519         Key_ograve = 0x0f2,
00520         Key_oacute = 0x0f3,
00521         Key_ocircumflex = 0x0f4,
00522         Key_otilde = 0x0f5,
00523         Key_odiaeresis = 0x0f6,
00524         Key_division = 0x0f7,
00525         Key_oslash = 0x0f8,
00526         Key_ugrave = 0x0f9,
00527         Key_uacute = 0x0fa,
00528         Key_ucircumflex = 0x0fb,
00529         Key_udiaeresis = 0x0fc,
00530         Key_yacute = 0x0fd,
00531         Key_thorn = 0x0fe,
00532         Key_ydiaeresis = 0x0ff,
00533 
00534         // multimedia/internet keys - ignored by default - see QKeyEvent c'tor
00535 
00536         Key_Back  = 0x1061,
00537         Key_Forward  = 0x1062,
00538         Key_Stop  = 0x1063,
00539         Key_Refresh  = 0x1064,
00540 
00541         Key_VolumeDown = 0x1070,
00542         Key_VolumeMute  = 0x1071,
00543         Key_VolumeUp = 0x1072,
00544         Key_BassBoost = 0x1073,
00545         Key_BassUp = 0x1074,
00546         Key_BassDown = 0x1075,
00547         Key_TrebleUp = 0x1076,
00548         Key_TrebleDown = 0x1077,
00549 
00550         Key_MediaPlay  = 0x1080,
00551         Key_MediaStop  = 0x1081,
00552         Key_MediaPrev  = 0x1082,
00553         Key_MediaNext  = 0x1083,
00554         Key_MediaRecord = 0x1084,
00555 
00556         Key_HomePage  = 0x1090,
00557         Key_Favorites  = 0x1091,
00558         Key_Search  = 0x1092,
00559         Key_Standby = 0x1093,
00560         Key_OpenUrl = 0x1094,
00561 
00562         Key_LaunchMail  = 0x10a0,
00563         Key_LaunchMedia = 0x10a1,
00564         Key_Launch0  = 0x10a2,
00565         Key_Launch1  = 0x10a3,
00566         Key_Launch2  = 0x10a4,
00567         Key_Launch3  = 0x10a5,
00568         Key_Launch4  = 0x10a6,
00569         Key_Launch5  = 0x10a7,
00570         Key_Launch6  = 0x10a8,
00571         Key_Launch7  = 0x10a9,
00572         Key_Launch8  = 0x10aa,
00573         Key_Launch9  = 0x10ab,
00574         Key_LaunchA  = 0x10ac,
00575         Key_LaunchB  = 0x10ad,
00576         Key_LaunchC  = 0x10ae,
00577         Key_LaunchD  = 0x10af,
00578         Key_LaunchE  = 0x10b0,
00579         Key_LaunchF  = 0x10b1,
00580 
00581         Key_MediaLast = 0x1fff,
00582 
00583         Key_unknown = 0xffff
00584     };
00585 
00586     // documented in qcommonstyle.cpp
00587     enum ArrowType {
00588         UpArrow,
00589         DownArrow,
00590         LeftArrow,
00591         RightArrow
00592     };
00593 
00594     // documented in qpainter.cpp
00595     enum RasterOp { // raster op mode
00596         CopyROP,
00597         OrROP,
00598         XorROP,
00599         NotAndROP, EraseROP=NotAndROP,
00600         NotCopyROP,
00601         NotOrROP,
00602         NotXorROP,
00603         AndROP, NotEraseROP=AndROP,
00604         NotROP,
00605         ClearROP,
00606         SetROP,
00607         NopROP,
00608         AndNotROP,
00609         OrNotROP,
00610         NandROP,
00611         NorROP, LastROP=NorROP
00612     };
00613 
00614     // documented in qpainter.cpp
00615     enum PenStyle { // pen style
00616         NoPen,
00617         SolidLine,
00618         DashLine,
00619         DotLine,
00620         DashDotLine,
00621         DashDotDotLine,
00622         MPenStyle = 0x0f
00623     };
00624 
00625     // documented in qpainter.cpp
00626     enum PenCapStyle { // line endcap style
00627         FlatCap = 0x00,
00628         SquareCap = 0x10,
00629         RoundCap = 0x20,
00630         MPenCapStyle = 0x30
00631     };
00632 
00633     // documented in qpainter.cpp
00634     enum PenJoinStyle { // line join style
00635         MiterJoin = 0x00,
00636         BevelJoin = 0x40,
00637         RoundJoin = 0x80,
00638         MPenJoinStyle = 0xc0
00639     };
00640 
00641     // documented in qpainter.cpp
00642     enum BrushStyle { // brush style
00643         NoBrush,
00644         SolidPattern,
00645         Dense1Pattern,
00646         Dense2Pattern,
00647         Dense3Pattern,
00648         Dense4Pattern,
00649         Dense5Pattern,
00650         Dense6Pattern,
00651         Dense7Pattern,
00652         HorPattern,
00653         VerPattern,
00654         CrossPattern,
00655         BDiagPattern,
00656         FDiagPattern,
00657         DiagCrossPattern,
00658         CustomPattern=24
00659     };
00660 
00661     // documented in qapplication_win.cpp
00662     enum WindowsVersion {
00663         WV_32s          = 0x0001,
00664         WV_95           = 0x0002,
00665         WV_98           = 0x0003,
00666         WV_Me           = 0x0004,
00667         WV_DOS_based    = 0x000f,
00668 
00669         WV_NT           = 0x0010,
00670         WV_2000         = 0x0020,
00671         WV_XP           = 0x0030,
00672         WV_NT_based     = 0x00f0
00673     };
00674 
00675     // documented in qstyle.cpp
00676     enum UIEffect {
00677         UI_General,
00678         UI_AnimateMenu,
00679         UI_FadeMenu,
00680         UI_AnimateCombo,
00681         UI_AnimateTooltip,
00682         UI_FadeTooltip
00683     };
00684 
00685     // documented in qcursor.cpp
00686     enum CursorShape {
00687         ArrowCursor,
00688         UpArrowCursor,
00689         CrossCursor,
00690         WaitCursor,
00691         IbeamCursor,
00692         SizeVerCursor,
00693         SizeHorCursor,
00694         SizeBDiagCursor,
00695         SizeFDiagCursor,
00696         SizeAllCursor,
00697         BlankCursor,
00698         SplitVCursor,
00699         SplitHCursor,
00700         PointingHandCursor,
00701         ForbiddenCursor,
00702         WhatsThisCursor,
00703         LastCursor      = WhatsThisCursor,
00704         BitmapCursor    = 24
00705     };
00706 
00707     // Global cursors
00708 
00709     QT_STATIC_CONST QCursor & arrowCursor;      // standard arrow cursor
00710     QT_STATIC_CONST QCursor & upArrowCursor;    // upwards arrow
00711     QT_STATIC_CONST QCursor & crossCursor;      // crosshair
00712     QT_STATIC_CONST QCursor & waitCursor;       // hourglass/watch
00713     QT_STATIC_CONST QCursor & ibeamCursor;      // ibeam/text entry
00714     QT_STATIC_CONST QCursor & sizeVerCursor;    // vertical resize
00715     QT_STATIC_CONST QCursor & sizeHorCursor;    // horizontal resize
00716     QT_STATIC_CONST QCursor & sizeBDiagCursor;  // diagonal resize (/)
00717     QT_STATIC_CONST QCursor & sizeFDiagCursor;  // diagonal resize (\)
00718     QT_STATIC_CONST QCursor & sizeAllCursor;    // all directions resize
00719     QT_STATIC_CONST QCursor & blankCursor;      // blank/invisible cursor
00720     QT_STATIC_CONST QCursor & splitVCursor;     // vertical bar with left-right
00721                                                 // arrows
00722     QT_STATIC_CONST QCursor & splitHCursor;     // horizontal bar with up-down
00723                                                 // arrows
00724     QT_STATIC_CONST QCursor & pointingHandCursor;       // pointing hand
00725     QT_STATIC_CONST QCursor & forbiddenCursor;  // forbidden cursor (slashed circle)
00726     QT_STATIC_CONST QCursor & whatsThisCursor;  // arrow with a question mark
00727 
00728 
00729     enum TextFormat {
00730         PlainText,
00731         RichText,
00732         AutoText,
00733         LogText
00734     };
00735 
00736     // Documented in qtextedit.cpp
00737     enum AnchorAttribute {
00738         AnchorName,
00739         AnchorHref
00740     };
00741 
00742     // Documented in qmainwindow.cpp
00743     enum Dock {
00744         DockUnmanaged,
00745         DockTornOff,
00746         DockTop,
00747         DockBottom,
00748         DockRight,
00749         DockLeft,
00750         DockMinimized
00751 #ifndef QT_NO_COMPAT
00752         ,
00753         Unmanaged = DockUnmanaged,
00754         TornOff = DockTornOff,
00755         Top = DockTop,
00756         Bottom = DockBottom,
00757         Right = DockRight,
00758         Left = DockLeft,
00759         Minimized = DockMinimized
00760 #endif
00761     };
00762     // compatibility
00763     typedef Dock ToolBarDock;
00764 
00765     // documented in qdatetime.cpp
00766     enum DateFormat {
00767         TextDate,      // default Qt
00768         ISODate,       // ISO 8601
00769         LocalDate      // locale dependant
00770     };
00771 
00772     // documented in qdatetime.cpp
00773     enum TimeSpec {
00774         LocalTime,
00775         UTC
00776     };
00777 
00778     // documented in qwidget.cpp
00779     enum BackgroundMode {
00780         FixedColor,
00781         FixedPixmap,
00782         NoBackground,
00783         PaletteForeground,
00784         PaletteButton,
00785         PaletteLight,
00786         PaletteMidlight,
00787         PaletteDark,
00788         PaletteMid,
00789         PaletteText,
00790         PaletteBrightText,
00791         PaletteBase,
00792         PaletteBackground,
00793         PaletteShadow,
00794         PaletteHighlight,
00795         PaletteHighlightedText,
00796         PaletteButtonText,
00797         PaletteLink,
00798         PaletteLinkVisited,
00799         X11ParentRelative
00800     };
00801 
00802     typedef uint ComparisonFlags;
00803 
00804     // Documented in qstring.cpp
00805     enum StringComparisonMode {
00806         CaseSensitive   = 0x00001, // 0 0001
00807         BeginsWith      = 0x00002, // 0 0010
00808         EndsWith        = 0x00004, // 0 0100
00809         Contains        = 0x00008, // 0 1000
00810         ExactMatch      = 0x00010  // 1 0000
00811     };
00812 
00813     // "handle" type for system objects. Documented as \internal in
00814     // qapplication.cpp
00815 #if defined(Q_WS_MAC)
00816     typedef void * HANDLE;
00817 #elif defined(Q_WS_WIN)
00818     typedef void *HANDLE;
00819 #elif defined(Q_WS_X11)
00820     typedef unsigned long HANDLE;
00821 #elif defined(Q_WS_QWS)
00822     typedef void * HANDLE;
00823 #endif
00824 };
00825 
00826 
00827 class Q_EXPORT QInternal {
00828 public:
00829     enum PaintDeviceFlags {
00830         UndefinedDevice = 0x00,
00831         Widget = 0x01,
00832         Pixmap = 0x02,
00833         Printer = 0x03,
00834         Picture = 0x04,
00835         System = 0x05,
00836         DeviceTypeMask = 0x0f,
00837         ExternalDevice = 0x10,
00838         // used to emulate some of the behaviour different between Qt2 and Qt3 (mainly for printing)
00839         CompatibilityMode = 0x20
00840     };
00841 };
00842 
00843 #endif // QNAMESPACE_H

Generated on Sat Nov 5 16:18:26 2005 for OPIE by  doxygen 1.4.2