⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qnamespace.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 3 页
字号:
/******************************************************************************** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.**** This file is part of the QtCore module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://trolltech.com/products/qt/licenses/licensing/opensource/**** If you are unsure which license is appropriate for your use, please** review the following information:** http://trolltech.com/products/qt/licenses/licensing/licensingoverview** or contact the sales department at sales@trolltech.com.**** In addition, as a special exception, Trolltech gives you certain** additional rights. These rights are described in the Trolltech GPL** Exception version 1.0, which can be found at** http://www.trolltech.com/products/qt/gplexception/ and in the file** GPL_EXCEPTION.txt in this package.**** In addition, as a special exception, Trolltech, as the sole copyright** holder for Qt Designer, grants users of the Qt/Eclipse Integration** plug-in the right for the Qt/Eclipse Integration to link to** functionality provided by Qt Designer and its related libraries.**** Trolltech reserves all rights not expressly granted herein.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#ifndef QNAMESPACE_H#define QNAMESPACE_H#include <QtCore/qglobal.h>QT_BEGIN_HEADERQT_MODULE(Core)#ifndef Q_MOC_RUNnamespace#elseclass Q_CORE_EXPORT#endifQt {#ifdef Q_MOC_RUN    Q_OBJECT    Q_ENUMS(Orientation TextFormat BackgroundMode DateFormat ScrollBarPolicy FocusPolicy ContextMenuPolicy CaseSensitivity LayoutDirection ArrowType ShortcutContext)    Q_ENUMS(ToolButtonStyle)    Q_ENUMS(PenStyle PenCapStyle PenJoinStyle BrushStyle FillRule BGMode ClipOperation GlobalColor)    Q_FLAGS(Alignment)    Q_FLAGS(Orientations)    Q_FLAGS(DockWidgetAreas)    Q_ENUMS(DockWidgetArea)    Q_ENUMS(TextElideMode)    Q_ENUMS(TextInteractionFlag)    Q_ENUMS(WindowModality ToolBarArea DayOfWeek)    Q_FLAGS(ToolBarAreas)    Q_ENUMS(CursorShape)    Q_FLAGS(TextInteractionFlags)    Q_ENUMS(AspectRatioMode)    Q_ENUMS(Key)    Q_ENUMS(ItemSelectionMode)    Q_FLAGS(KeyboardModifiers MouseButtons)public:#endif    enum GlobalColor {        color0,        color1,        black,        white,        darkGray,        gray,        lightGray,        red,        green,        blue,        cyan,        magenta,        yellow,        darkRed,        darkGreen,        darkBlue,        darkCyan,        darkMagenta,        darkYellow,        transparent    };    enum KeyboardModifier {        NoModifier           = 0x00000000,        ShiftModifier        = 0x02000000,        ControlModifier      = 0x04000000,        AltModifier          = 0x08000000,        MetaModifier         = 0x10000000,        KeypadModifier       = 0x20000000,        GroupSwitchModifier  = 0x40000000,        // Do not extend the mask to include 0x01000000        KeyboardModifierMask = 0xfe000000    };    Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier)    //shorter names for shortcuts    enum Modifier {        META          = Qt::MetaModifier,        SHIFT         = Qt::ShiftModifier,        CTRL          = Qt::ControlModifier,        ALT           = Qt::AltModifier,        MODIFIER_MASK = KeyboardModifierMask,        UNICODE_ACCEL = 0x00000000    };    enum MouseButton {        NoButton         = 0x00000000,        LeftButton       = 0x00000001,        RightButton      = 0x00000002,        MidButton        = 0x00000004,        XButton1         = 0x00000008,        XButton2         = 0x00000010,        MouseButtonMask  = 0x000000ff    };    Q_DECLARE_FLAGS(MouseButtons, MouseButton)#ifdef QT3_SUPPORT    enum ButtonState_enum {        ShiftButton     = Qt::ShiftModifier,        ControlButton   = Qt::ControlModifier,        AltButton       = Qt::AltModifier,        MetaButton      = Qt::MetaModifier,        Keypad          = Qt::KeypadModifier,        KeyButtonMask   = Qt::KeyboardModifierMask    };    typedef int ButtonState;#endif    enum Orientation {        Horizontal = 0x1,        Vertical = 0x2    };    Q_DECLARE_FLAGS(Orientations, Orientation)    enum FocusPolicy {        NoFocus = 0,        TabFocus = 0x1,        ClickFocus = 0x2,        StrongFocus = TabFocus | ClickFocus | 0x8,        WheelFocus = StrongFocus | 0x4    };    enum SortOrder {        AscendingOrder,        DescendingOrder#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)        ,Ascending = AscendingOrder,        Descending = DescendingOrder#endif    };    // Text formatting flags for QPainter::drawText and QLabel    // the following four enums can be combined to one integer which    // is passed as textflag to drawText and qt_format_text.    enum AlignmentFlag {        AlignLeft = 0x0001,        AlignLeading = AlignLeft,        AlignRight = 0x0002,        AlignTrailing = AlignRight,        AlignHCenter = 0x0004,        AlignJustify = 0x0008,        AlignAbsolute = 0x0010,        AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,        AlignTop = 0x0020,        AlignBottom = 0x0040,        AlignVCenter = 0x0080,        AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,        AlignCenter = AlignVCenter | AlignHCenter#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)        , AlignAuto = AlignLeft#endif    };    Q_DECLARE_FLAGS(Alignment, AlignmentFlag)    enum TextFlag {        TextSingleLine = 0x0100,        TextDontClip = 0x0200,        TextExpandTabs = 0x0400,        TextShowMnemonic = 0x0800,        TextWordWrap = 0x1000,        TextWrapAnywhere = 0x2000,        TextDontPrint = 0x4000,        TextIncludeTrailingSpaces = 0x08000000,        TextHideMnemonic = 0x8000,        TextJustificationForced = 0x10000#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)        ,SingleLine = TextSingleLine,        DontClip = TextDontClip,        ExpandTabs = TextExpandTabs,        ShowPrefix = TextShowMnemonic,        WordBreak = TextWordWrap,        BreakAnywhere = TextWrapAnywhere,        DontPrint = TextDontPrint,        IncludeTrailingSpaces = TextIncludeTrailingSpaces,        NoAccel = TextHideMnemonic#endif    };#ifdef QT3_SUPPORT    typedef TextFlag TextFlags;#endif    enum TextElideMode {        ElideLeft,        ElideRight,        ElideMiddle,        ElideNone    };    enum WindowType {        Widget = 0x00000000,        Window = 0x00000001,        Dialog = 0x00000002 | Window,        Sheet = 0x00000004 | Window,        Drawer = 0x00000006 | Window,        Popup = 0x00000008 | Window,        Tool = 0x0000000a | Window,        ToolTip = 0x0000000c | Window,        SplashScreen = 0x0000000e | Window,        Desktop = 0x00000010 | Window,        SubWindow =  0x00000012,        WindowType_Mask = 0x000000ff,        MSWindowsFixedSizeDialogHint = 0x00000100,        MSWindowsOwnDC = 0x00000200,        X11BypassWindowManagerHint = 0x00000400,        FramelessWindowHint = 0x00000800,        WindowTitleHint = 0x00001000,        WindowSystemMenuHint = 0x00002000,        WindowMinimizeButtonHint = 0x00004000,        WindowMaximizeButtonHint = 0x00008000,        WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,        WindowContextHelpButtonHint = 0x00010000,        WindowShadeButtonHint = 0x00020000,        WindowStaysOnTopHint = 0x00040000,        CustomizeWindowHint = 0x02000000#ifdef QT3_SUPPORT        ,        WMouseNoMask = 0x00080000,        WDestructiveClose = 0x00100000,        WStaticContents = 0x00200000,        WGroupLeader = 0x00400000,        WShowModal = 0x00800000,        WNoMousePropagation = 0x01000000,        WType_TopLevel = Window,        WType_Dialog = Dialog,        WType_Popup = Popup,        WType_Desktop = Desktop,        WType_Mask = WindowType_Mask,        WStyle_Customize = 0,        WStyle_NormalBorder = 0,        WStyle_DialogBorder = MSWindowsFixedSizeDialogHint,        WStyle_NoBorder = FramelessWindowHint,        WStyle_Title = WindowTitleHint,        WStyle_SysMenu = WindowSystemMenuHint,        WStyle_Minimize = WindowMinimizeButtonHint,        WStyle_Maximize = WindowMaximizeButtonHint,        WStyle_MinMax = WStyle_Minimize | WStyle_Maximize,        WStyle_Tool = Tool,        WStyle_StaysOnTop = WindowStaysOnTopHint,        WStyle_ContextHelp = WindowContextHelpButtonHint,        // misc flags        WPaintDesktop = 0,        WPaintClever = 0,        WX11BypassWM            = X11BypassWindowManagerHint,        WWinOwnDC               = MSWindowsOwnDC,        WMacSheet               = Sheet,        WMacDrawer              = Drawer,        WStyle_Splash           = SplashScreen,        WNoAutoErase           = 0,        WRepaintNoErase        = 0,        WNorthWestGravity      = WStaticContents,        WType_Modal            = Dialog | WShowModal,        WStyle_Dialog          = Dialog,        WStyle_NoBorderEx      = FramelessWindowHint,        WResizeNoErase = 0,        WMacNoSheet = 0#endif    };    Q_DECLARE_FLAGS(WindowFlags, WindowType)    enum WindowState {        WindowNoState    = 0x00000000,        WindowMinimized  = 0x00000001,        WindowMaximized  = 0x00000002,        WindowFullScreen = 0x00000004,        WindowActive     = 0x00000008    };    Q_DECLARE_FLAGS(WindowStates, WindowState)    enum WidgetAttribute {        WA_Disabled = 0,        WA_UnderMouse = 1,        WA_MouseTracking = 2,        WA_ContentsPropagated = 3, // ## deprecated        WA_OpaquePaintEvent = 4,        WA_NoBackground = WA_OpaquePaintEvent, // ## deprecated        WA_StaticContents = 5,        WA_LaidOut = 7,        WA_PaintOnScreen = 8,        WA_NoSystemBackground = 9,        WA_UpdatesDisabled = 10,        WA_Mapped = 11,        WA_MacNoClickThrough = 12, // Mac only        WA_PaintOutsidePaintEvent = 13,        WA_InputMethodEnabled = 14,        WA_WState_Visible = 15,        WA_WState_Hidden = 16,        WA_ForceDisabled = 32,        WA_KeyCompression = 33,        WA_PendingMoveEvent = 34,        WA_PendingResizeEvent = 35,        WA_SetPalette = 36,        WA_SetFont = 37,        WA_SetCursor = 38,        WA_NoChildEventsFromChildren = 39,        WA_WindowModified = 41,        WA_Resized = 42,        WA_Moved = 43,        WA_PendingUpdate = 44,        WA_InvalidSize = 45,        WA_MacBrushedMetal = 46, // Mac only        WA_MacMetalStyle = WA_MacBrushedMetal, // obsolete        WA_CustomWhatsThis = 47,        WA_LayoutOnEntireRect = 48,        WA_OutsideWSRange = 49,        WA_GrabbedShortcut = 50,        WA_TransparentForMouseEvents = 51,        WA_PaintUnclipped = 52,        WA_SetWindowIcon = 53,        WA_NoMouseReplay = 54,        WA_DeleteOnClose = 55,        WA_RightToLeft = 56,        WA_SetLayoutDirection = 57,        WA_NoChildEventsForParent = 58,        WA_ForceUpdatesDisabled = 59,        WA_WState_Created = 60,        WA_WState_CompressKeys = 61,        WA_WState_InPaintEvent = 62,        WA_WState_Reparented = 63,        WA_WState_ConfigPending = 64,        WA_WState_Polished = 66,        WA_WState_DND = 67, // ## deprecated        WA_WState_OwnSizePolicy = 68,        WA_WState_ExplicitShowHide = 69,        WA_ShowModal = 70, // ## deprecated        WA_MouseNoMask = 71,        WA_GroupLeader = 72, // ## deprecated        WA_NoMousePropagation = 73, // ## for now, might go away.        WA_Hover = 74,        WA_InputMethodTransparent = 75, // Don't reset IM when user clicks on this (for virtual keyboards on embedded)        WA_QuitOnClose = 76,        WA_KeyboardFocusChange = 77,        WA_AcceptDrops = 78,        WA_DropSiteRegistered = 79, // internal        WA_ForceAcceptDrops = WA_DropSiteRegistered, // ## deprecated        WA_WindowPropagation = 80,        WA_NoX11EventCompression = 81,        WA_TintedBackground = 82,        WA_X11OpenGLOverlay = 83,        WA_AlwaysShowToolTips = 84,        WA_MacOpaqueSizeGrip = 85,        WA_SetStyle = 86,        WA_SetLocale = 87,        WA_MacShowFocusRect = 88,        WA_MacNormalSize = 89,  // Mac only        WA_MacSmallSize = 90,   // Mac only        WA_MacMiniSize = 91,    // Mac only        WA_LayoutUsesWidgetRect = 92,        WA_StyledBackground = 93, // internal        WA_MSWindowsUseDirect3D = 94, // Win only        WA_CanHostQMdiSubWindowTitleBar = 95, // Internal        WA_MacAlwaysShowToolWindow = 96, // Mac only        WA_StyleSheet = 97, // internal        // Add new attributes before this line        WA_AttributeCount    };    enum ApplicationAttribute    {        AA_ImmediateWidgetCreation = 0,        AA_MSWindowsUseDirect3DByDefault = 1, // Win only        // Add new attributes before this line        AA_AttributeCount    };    // Image conversion flags.  The unusual ordering is caused by    // compatibility and default requirements.    enum ImageConversionFlag {        ColorMode_Mask          = 0x00000003,        AutoColor               = 0x00000000,        ColorOnly               = 0x00000003,        MonoOnly                = 0x00000002,        // Reserved             = 0x00000001,        AlphaDither_Mask        = 0x0000000c,        ThresholdAlphaDither    = 0x00000000,        OrderedAlphaDither      = 0x00000004,        DiffuseAlphaDither      = 0x00000008,        NoAlpha                 = 0x0000000c, // Not supported        Dither_Mask             = 0x00000030,        DiffuseDither           = 0x00000000,        OrderedDither           = 0x00000010,        ThresholdDither         = 0x00000020,        // ReservedDither       = 0x00000030,        DitherMode_Mask         = 0x000000c0,        AutoDither              = 0x00000000,        PreferDither            = 0x00000040,        AvoidDither             = 0x00000080    };    Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag)    enum BGMode {        TransparentMode,        OpaqueMode    };#ifdef QT3_SUPPORT    enum PaintUnit {                                // paint unit        PixelUnit,        LoMetricUnit, // obsolete        HiMetricUnit, // obsolete        LoEnglishUnit, // obsolete        HiEnglishUnit, // obsolete        TwipsUnit // obsolete    };    enum GUIStyle {        MacStyle,        WindowsStyle,        Win3Style,        PMStyle,        MotifStyle    };#endif    enum Key {        Key_Escape = 0x01000000,                // misc keys        Key_Tab = 0x01000001,        Key_Backtab = 0x01000002,#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)        Key_BackTab = Key_Backtab,#endif        Key_Backspace = 0x01000003,#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)        Key_BackSpace = Key_Backspace,#endif        Key_Return = 0x01000004,        Key_Enter = 0x01000005,        Key_Insert = 0x01000006,        Key_Delete = 0x01000007,        Key_Pause = 0x01000008,        Key_Print = 0x01000009,        Key_SysReq = 0x0100000a,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -