📄 ui4.h
字号:
bool m_has_attr_spread; QString m_attr_coordinateMode; bool m_has_attr_coordinateMode; // child element data QList<DomGradientStop*> m_gradientStop; DomGradient(const DomGradient &other); void operator = (const DomGradient&other);};class QDESIGNER_UILIB_EXPORT DomBrush {public: DomBrush(); ~DomBrush(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeBrushStyle() const { return m_has_attr_brushStyle; } inline QString attributeBrushStyle() const { return m_attr_brushStyle; } inline void setAttributeBrushStyle(const QString& a) { m_attr_brushStyle = a; m_has_attr_brushStyle = true; } inline void clearAttributeBrushStyle() { m_has_attr_brushStyle = false; } // child element accessors enum Kind { Unknown = 0, Color, Texture, Gradient }; inline Kind kind() const { return m_kind; } inline DomColor* elementColor() const { return m_color; } void setElementColor(DomColor* a); inline DomProperty* elementTexture() const { return m_texture; } void setElementTexture(DomProperty* a); inline DomGradient* elementGradient() const { return m_gradient; } void setElementGradient(DomGradient* a);private: QString m_text; void clear(bool clear_all = true); // attribute data QString m_attr_brushStyle; bool m_has_attr_brushStyle; // child element data Kind m_kind; DomColor* m_color; DomProperty* m_texture; DomGradient* m_gradient; DomBrush(const DomBrush &other); void operator = (const DomBrush&other);};class QDESIGNER_UILIB_EXPORT DomColorRole {public: DomColorRole(); ~DomColorRole(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeRole() const { return m_has_attr_role; } inline QString attributeRole() const { return m_attr_role; } inline void setAttributeRole(const QString& a) { m_attr_role = a; m_has_attr_role = true; } inline void clearAttributeRole() { m_has_attr_role = false; } // child element accessors inline DomBrush* elementBrush() const { return m_brush; } void setElementBrush(DomBrush* a); inline bool hasElementBrush() const { return m_children & Brush; } void clearElementBrush();private: QString m_text; void clear(bool clear_all = true); // attribute data QString m_attr_role; bool m_has_attr_role; // child element data uint m_children; DomBrush* m_brush; enum Child { Brush = 1 }; DomColorRole(const DomColorRole &other); void operator = (const DomColorRole&other);};class QDESIGNER_UILIB_EXPORT DomColorGroup {public: DomColorGroup(); ~DomColorGroup(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors // child element accessors inline QList<DomColorRole*> elementColorRole() const { return m_colorRole; } void setElementColorRole(const QList<DomColorRole*>& a); inline QList<DomColor*> elementColor() const { return m_color; } void setElementColor(const QList<DomColor*>& a);private: QString m_text; void clear(bool clear_all = true); // attribute data // child element data QList<DomColorRole*> m_colorRole; QList<DomColor*> m_color; DomColorGroup(const DomColorGroup &other); void operator = (const DomColorGroup&other);};class QDESIGNER_UILIB_EXPORT DomPalette {public: DomPalette(); ~DomPalette(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors // child element accessors inline DomColorGroup* elementActive() const { return m_active; } void setElementActive(DomColorGroup* a); inline bool hasElementActive() const { return m_children & Active; } void clearElementActive(); inline DomColorGroup* elementInactive() const { return m_inactive; } void setElementInactive(DomColorGroup* a); inline bool hasElementInactive() const { return m_children & Inactive; } void clearElementInactive(); inline DomColorGroup* elementDisabled() const { return m_disabled; } void setElementDisabled(DomColorGroup* a); inline bool hasElementDisabled() const { return m_children & Disabled; } void clearElementDisabled();private: QString m_text; void clear(bool clear_all = true); // attribute data // child element data uint m_children; DomColorGroup* m_active; DomColorGroup* m_inactive; DomColorGroup* m_disabled; enum Child { Active = 1, Inactive = 2, Disabled = 4 }; DomPalette(const DomPalette &other); void operator = (const DomPalette&other);};class QDESIGNER_UILIB_EXPORT DomFont {public: DomFont(); ~DomFont(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors // child element accessors inline QString elementFamily() const { return m_family; } void setElementFamily(const QString& a); inline bool hasElementFamily() const { return m_children & Family; } void clearElementFamily(); inline int elementPointSize() const { return m_pointSize; } void setElementPointSize(int a); inline bool hasElementPointSize() const { return m_children & PointSize; } void clearElementPointSize(); inline int elementWeight() const { return m_weight; } void setElementWeight(int a); inline bool hasElementWeight() const { return m_children & Weight; } void clearElementWeight(); inline bool elementItalic() const { return m_italic; } void setElementItalic(bool a); inline bool hasElementItalic() const { return m_children & Italic; } void clearElementItalic(); inline bool elementBold() const { return m_bold; } void setElementBold(bool a); inline bool hasElementBold() const { return m_children & Bold; } void clearElementBold(); inline bool elementUnderline() const { return m_underline; } void setElementUnderline(bool a); inline bool hasElementUnderline() const { return m_children & Underline; } void clearElementUnderline(); inline bool elementStrikeOut() const { return m_strikeOut; } void setElementStrikeOut(bool a); inline bool hasElementStrikeOut() const { return m_children & StrikeOut; } void clearElementStrikeOut(); inline bool elementAntialiasing() const { return m_antialiasing; } void setElementAntialiasing(bool a); inline bool hasElementAntialiasing() const { return m_children & Antialiasing; } void clearElementAntialiasing(); inline QString elementStyleStrategy() const { return m_styleStrategy; } void setElementStyleStrategy(const QString& a); inline bool hasElementStyleStrategy() const { return m_children & StyleStrategy; } void clearElementStyleStrategy(); inline bool elementKerning() const { return m_kerning; } void setElementKerning(bool a); inline bool hasElementKerning() const { return m_children & Kerning; } void clearElementKerning();private: QString m_text; void clear(bool clear_all = true); // attribute data // child element data uint m_children; QString m_family; int m_pointSize; int m_weight; bool m_italic; bool m_bold; bool m_underline; bool m_strikeOut; bool m_antialiasing; QString m_styleStrategy; bool m_kerning; enum Child { Family = 1, PointSize = 2, Weight = 4, Italic = 8, Bold = 16, Underline = 32, StrikeOut = 64, Antialiasing = 128, StyleStrategy = 256, Kerning = 512 }; DomFont(const DomFont &other); void operator = (const DomFont&other);};class QDESIGNER_UILIB_EXPORT DomPoint {public: DomPoint(); ~DomPoint(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors // child element accessors inline int elementX() const { return m_x; } void setElementX(int a); inline bool hasElementX() const { return m_children & X; } void clearElementX(); inline int elementY() const { return m_y; } void setElementY(int a); inline bool hasElementY() const { return m_children & Y; } void clearElementY();private: QString m_text; void clear(bool clear_all = true); // attribute data // child element data uint m_children; int m_x; int m_y; enum Child { X = 1, Y = 2 }; DomPoint(const DomPoint &other); void operator = (const DomPoint&other);};class QDESIGNER_UILIB_EXPORT DomRect {public: DomRect(); ~DomRect(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors // child element accessors inline int elementX() const { return m_x; } void setElementX(int a); inline bool hasElementX() const { return m_children & X; } void clearElementX(); inline int elementY() const { return m_y; } void setElementY(int a); inline bool hasElementY() const { return m_children & Y; } void clearElementY(); inline int elementWidth() const { return m_width; } void setElementWidth(int a); inline bool hasElementWidth() const { return m_children & Width; } void clearElementWidth(); inline int elementHeight() const { return m_height; } void setElementHeight(int a); inline bool hasElementHeight() const { return m_children & Height; } void clearElementHeight();private: QString m_text; void clear(bool clear_all = true); // attribute data // child element data uint m_children; int m_x; int m_y; int m_width; int m_height; enum Child { X = 1, Y = 2, Width = 4, Height = 8 }; DomRect(const DomRect &other); void operator = (const DomRect&other);};class QDESIGNER_UILIB_EXPORT DomLocale {public: DomLocale(); ~DomLocale(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()) const; inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeLanguage() const { return m_has_attr_language; } inline QString attributeLanguage() const { return m_attr_language; } inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; } inline void clearAttributeLanguage() { m_has_attr_language = false; } inline bool hasAttributeCountry() const { return m_has_attr_country; } inline QString attributeCountry() const { return m_attr_country; } inline void setAttributeCountry(const QString& a) { m_attr_country = a; m_has_attr_country = true; } inline void clearAttributeCountry() { m_has_attr_country = false; } // child element accessorsprivate: QString m_text; void clear
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -