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