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

📄 qcssparser_p.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.**** This file is part of the QtGui 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 QCSSPARSER_P_H#define QCSSPARSER_P_H////  W A R N I N G//  -------------//// This file is not part of the Qt API.  It exists for the convenience// of the QLibrary class.  This header file may change from// version to version without notice, or even be removed.//// We mean it.//#include <QtCore/QStringList>#include <QtCore/QVector>#include <QtCore/QVariant>#include <QtCore/QPair>#include <QtCore/QSize>#include <QtGui/QFont>#include <QtGui/QPalette>#include <QtGui/QIcon>namespace QCss{enum Property {    UnknownProperty,    BackgroundColor,    Color,    Float,    Font,    FontFamily,    FontSize,    FontStyle,    FontWeight,    Margin,    MarginBottom,    MarginLeft,    MarginRight,    MarginTop,    QtBlockIndent,    QtListIndent,    QtParagraphType,    QtTableType,    QtUserState,    TextDecoration,    TextIndent,    TextUnderlineStyle,    VerticalAlignment,    Whitespace,    QtSelectionForeground,    QtSelectionBackground,    Border,    BorderLeft,    BorderRight,    BorderTop,    BorderBottom,    Padding,    PaddingLeft,    PaddingRight,    PaddingTop,    PaddingBottom,    PageBreakBefore,    PageBreakAfter,    QtAlternateBackground,    BorderLeftStyle,    BorderRightStyle,    BorderTopStyle,    BorderBottomStyle,    BorderStyles,    BorderLeftColor,    BorderRightColor,    BorderTopColor,    BorderBottomColor,    BorderColor,    BorderLeftWidth,    BorderRightWidth,    BorderTopWidth,    BorderBottomWidth,    BorderWidth,    BorderTopLeftRadius,    BorderTopRightRadius,    BorderBottomLeftRadius,    BorderBottomRightRadius,    BorderRadius,    Background,    BackgroundOrigin,    BackgroundClip,    BackgroundRepeat,    BackgroundPosition,    BackgroundAttachment,    BackgroundImage,    BorderImage,    QtSpacing,    Width,    Height,    MinimumWidth,    MinimumHeight,    MaximumWidth,    MaximumHeight,    QtImage,    Left,    Right,    Top,    Bottom,    QtOrigin,    QtPosition,    Position,    QtStyleFeatures,    QtBackgroundRole,    ListStyleType,    ListStyle,    QtImageAlignment,    TextAlignment,    NumProperties};enum KnownValue {    UnknownValue,    Value_Normal,    Value_Pre,    Value_NoWrap,    Value_PreWrap,    Value_Small,    Value_Medium,    Value_Large,    Value_XLarge,    Value_XXLarge,    Value_Italic,    Value_Oblique,    Value_Bold,    Value_Underline,    Value_Overline,    Value_LineThrough,    Value_Sub,    Value_Super,    Value_Left,    Value_Right,    Value_Top,    Value_Bottom,    Value_Center,    Value_Native,    Value_Solid,    Value_Dotted,    Value_Dashed,    Value_DotDash,    Value_DotDotDash,    Value_Double,    Value_Groove,    Value_Ridge,    Value_Inset,    Value_Outset,    Value_Wave,    Value_Middle,    Value_Auto,    Value_Always,    Value_None,    Value_Transparent,    Value_Disc,    Value_Circle,    Value_Square,    Value_Decimal,    Value_LowerAlpha,    Value_UpperAlpha,    /* keep these in same order as QPalette::ColorRole */    Value_FirstColorRole,    Value_WindowText = Value_FirstColorRole,    Value_Button,    Value_Light,    Value_Midlight,    Value_Dark,    Value_Mid,    Value_Text,    Value_BrightText,    Value_ButtonText,    Value_Base,    Value_Window,    Value_Shadow,    Value_Highlight,    Value_HighlightedText,    Value_Link,    Value_LinkVisited,    Value_AlternateBase,    Value_LastColorRole = Value_AlternateBase,    NumKnownValues};enum BorderStyle {    BorderStyle_Unknown,    BorderStyle_None,    BorderStyle_Dotted,    BorderStyle_Dashed,    BorderStyle_Solid,    BorderStyle_Double,    BorderStyle_DotDash,    BorderStyle_DotDotDash,    BorderStyle_Groove,    BorderStyle_Ridge,    BorderStyle_Inset,    BorderStyle_Outset,    BorderStyle_Native,    NumKnownBorderStyles};enum Edge {    TopEdge,    RightEdge,    BottomEdge,    LeftEdge,    NumEdges};enum Corner {    TopLeftCorner,    TopRightCorner,    BottomLeftCorner,    BottomRightCorner};enum TileMode {    TileMode_Unknown,    TileMode_Round,    TileMode_Stretch,    TileMode_Repeat,    NumKnownTileModes};enum Repeat {    Repeat_Unknown,    Repeat_None,    Repeat_X,    Repeat_Y,    Repeat_XY,    NumKnownRepeats};enum Origin {    Origin_Unknown,    Origin_Padding,    Origin_Border,    Origin_Content,    Origin_Margin,    NumKnownOrigins};enum PositionMode {    PositionMode_Unknown,    PositionMode_Static,    PositionMode_Relative,    PositionMode_Absolute,    PositionMode_Fixed,    NumKnownPositionModes};enum Attachment {    Attachment_Unknown,    Attachment_Fixed,    Attachment_Scroll,    NumKnownAttachments};enum StyleFeature {    StyleFeature_None = 0,    StyleFeature_BackgroundColor = 1,    StyleFeature_BackgroundGradient = 2,    NumKnownStyleFeatures = 4};struct Q_GUI_EXPORT Value{    enum Type {        Unknown,        Number,        Percentage,        Length,        String,        Identifier,        KnownIdentifier,        Uri,        Color,        Function,        TermOperatorSlash,        TermOperatorComma    };    inline Value() : type(Unknown) { }    Type type;    QVariant variant;};// 1. StyleRule - x:hover, y:clicked > z:checked { prop1: value1; prop2: value2; }// 2. QVector<Selector> - x:hover, y:clicked z:checked// 3. QVector<BasicSelector> - y:clicked z:checked// 4. QVector<Declaration> - { prop1: value1; prop2: value2; }// 5. Declaration - prop1: value1;struct Q_GUI_EXPORT Declaration{    inline Declaration() : propertyId(UnknownProperty), important(false) {}    QString property;    Property propertyId;    inline bool isEmpty() const { return property.isEmpty() && propertyId == UnknownProperty; }    QVector<Value> values;    bool important;    // helper functions    QColor colorValue(const QPalette & = QPalette()) const;    void colorValues(QColor *c, const QPalette & = QPalette()) const;    QBrush brushValue(const QPalette & = QPalette()) const;    void brushValues(QBrush *c, const QPalette & = QPalette()) const;    BorderStyle styleValue() const;    void styleValues(BorderStyle *s) const;    Origin originValue() const;    Repeat repeatValue() const;    Qt::Alignment alignmentValue() const;    PositionMode positionValue() const;    Attachment attachmentValue() const;    int  styleFeaturesValue() const;    bool intValue(int *i, const char *unit = 0) const;    bool realValue(qreal *r, const char *unit = 0) const;    QSize sizeValue() const;    QRect rectValue() const;    QString uriValue() const;    QIcon iconValue() const;

⌨️ 快捷键说明

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