📄 ui4_p.h
字号:
inline QList<DomLayout*> elementLayout() { return m_layout; } void setElementLayout(const QList<DomLayout*>& a); inline QList<DomWidget*> elementWidget() { return m_widget; } void setElementWidget(const QList<DomWidget*>& a); inline QList<DomAction*> elementAction() { return m_action; } void setElementAction(const QList<DomAction*>& a); inline QList<DomActionGroup*> elementActionGroup() { return m_actionGroup; } void setElementActionGroup(const QList<DomActionGroup*>& a); inline QList<DomActionRef*> elementAddAction() { return m_addAction; } void setElementAddAction(const QList<DomActionRef*>& a);private: QString m_text; void clear(bool clear_all = true); // attribute data QString m_attr_class; bool m_has_attr_class; QString m_attr_name; bool m_has_attr_name; bool m_attr_native; bool m_has_attr_native; // child element data QStringList m_class; QList<DomProperty*> m_property; QList<DomProperty*> m_attribute; QList<DomRow*> m_row; QList<DomColumn*> m_column; QList<DomItem*> m_item; QList<DomLayout*> m_layout; QList<DomWidget*> m_widget; QList<DomAction*> m_action; QList<DomActionGroup*> m_actionGroup; QList<DomActionRef*> m_addAction; DomWidget(const DomWidget &other); void operator = (const DomWidget&other);};class QDESIGNER_UILIB_EXPORT DomSpacer {public: DomSpacer(); ~DomSpacer(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeName() { return m_has_attr_name; } inline QString attributeName() { return m_attr_name; } inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; } inline void clearAttributeName() { m_has_attr_name = false; } // child element accessors inline QList<DomProperty*> elementProperty() { return m_property; } void setElementProperty(const QList<DomProperty*>& a);private: QString m_text; void clear(bool clear_all = true); // attribute data QString m_attr_name; bool m_has_attr_name; // child element data QList<DomProperty*> m_property; DomSpacer(const DomSpacer &other); void operator = (const DomSpacer&other);};class QDESIGNER_UILIB_EXPORT DomColor {public: DomColor(); ~DomColor(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeAlpha() { return m_has_attr_alpha; } inline int attributeAlpha() { return m_attr_alpha; } inline void setAttributeAlpha(int a) { m_attr_alpha = a; m_has_attr_alpha = true; } inline void clearAttributeAlpha() { m_has_attr_alpha = false; } // child element accessors inline int elementRed() { return m_red; } void setElementRed(int a); inline bool hasElementRed() const { return m_children & Red; } void clearElementRed(); inline int elementGreen() { return m_green; } void setElementGreen(int a); inline bool hasElementGreen() const { return m_children & Green; } void clearElementGreen(); inline int elementBlue() { return m_blue; } void setElementBlue(int a); inline bool hasElementBlue() const { return m_children & Blue; } void clearElementBlue();private: QString m_text; void clear(bool clear_all = true); // attribute data int m_attr_alpha; bool m_has_attr_alpha; // child element data uint m_children; int m_red; int m_green; int m_blue; enum Child { Red = 1, Green = 2, Blue = 4, }; DomColor(const DomColor &other); void operator = (const DomColor&other);};class QDESIGNER_UILIB_EXPORT DomGradientStop {public: DomGradientStop(); ~DomGradientStop(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributePosition() { return m_has_attr_position; } inline double attributePosition() { return m_attr_position; } inline void setAttributePosition(double a) { m_attr_position = a; m_has_attr_position = true; } inline void clearAttributePosition() { m_has_attr_position = false; } // child element accessors inline DomColor* elementColor() { return m_color; } void setElementColor(DomColor* a); inline bool hasElementColor() const { return m_children & Color; } void clearElementColor();private: QString m_text; void clear(bool clear_all = true); // attribute data double m_attr_position; bool m_has_attr_position; // child element data uint m_children; DomColor* m_color; enum Child { Color = 1, }; DomGradientStop(const DomGradientStop &other); void operator = (const DomGradientStop&other);};class QDESIGNER_UILIB_EXPORT DomGradient {public: DomGradient(); ~DomGradient(); void read(const QDomElement &node); QDomElement write(QDomDocument &doc, const QString &tagName = QString()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeStartX() { return m_has_attr_startX; } inline double attributeStartX() { return m_attr_startX; } inline void setAttributeStartX(double a) { m_attr_startX = a; m_has_attr_startX = true; } inline void clearAttributeStartX() { m_has_attr_startX = false; } inline bool hasAttributeStartY() { return m_has_attr_startY; } inline double attributeStartY() { return m_attr_startY; } inline void setAttributeStartY(double a) { m_attr_startY = a; m_has_attr_startY = true; } inline void clearAttributeStartY() { m_has_attr_startY = false; } inline bool hasAttributeEndX() { return m_has_attr_endX; } inline double attributeEndX() { return m_attr_endX; } inline void setAttributeEndX(double a) { m_attr_endX = a; m_has_attr_endX = true; } inline void clearAttributeEndX() { m_has_attr_endX = false; } inline bool hasAttributeEndY() { return m_has_attr_endY; } inline double attributeEndY() { return m_attr_endY; } inline void setAttributeEndY(double a) { m_attr_endY = a; m_has_attr_endY = true; } inline void clearAttributeEndY() { m_has_attr_endY = false; } inline bool hasAttributeCentralX() { return m_has_attr_centralX; } inline double attributeCentralX() { return m_attr_centralX; } inline void setAttributeCentralX(double a) { m_attr_centralX = a; m_has_attr_centralX = true; } inline void clearAttributeCentralX() { m_has_attr_centralX = false; } inline bool hasAttributeCentralY() { return m_has_attr_centralY; } inline double attributeCentralY() { return m_attr_centralY; } inline void setAttributeCentralY(double a) { m_attr_centralY = a; m_has_attr_centralY = true; } inline void clearAttributeCentralY() { m_has_attr_centralY = false; } inline bool hasAttributeFocalX() { return m_has_attr_focalX; } inline double attributeFocalX() { return m_attr_focalX; } inline void setAttributeFocalX(double a) { m_attr_focalX = a; m_has_attr_focalX = true; } inline void clearAttributeFocalX() { m_has_attr_focalX = false; } inline bool hasAttributeFocalY() { return m_has_attr_focalY; } inline double attributeFocalY() { return m_attr_focalY; } inline void setAttributeFocalY(double a) { m_attr_focalY = a; m_has_attr_focalY = true; } inline void clearAttributeFocalY() { m_has_attr_focalY = false; } inline bool hasAttributeRadius() { return m_has_attr_radius; } inline double attributeRadius() { return m_attr_radius; } inline void setAttributeRadius(double a) { m_attr_radius = a; m_has_attr_radius = true; } inline void clearAttributeRadius() { m_has_attr_radius = false; } inline bool hasAttributeAngle() { return m_has_attr_angle; } inline double attributeAngle() { return m_attr_angle; } inline void setAttributeAngle(double a) { m_attr_angle = a; m_has_attr_angle = true; } inline void clearAttributeAngle() { m_has_attr_angle = false; } inline bool hasAttributeType() { return m_has_attr_type; } inline QString attributeType() { return m_attr_type; } inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; } inline void clearAttributeType() { m_has_attr_type = false; } inline bool hasAttributeSpread() { return m_has_attr_spread; } inline QString attributeSpread() { return m_attr_spread; } inline void setAttributeSpread(const QString& a) { m_attr_spread = a; m_has_attr_spread = true; } inline void clearAttributeSpread() { m_has_attr_spread = false; } inline bool hasAttributeCoordinateMode() { return m_has_attr_coordinateMode; } inline QString attributeCoordinateMode() { return m_attr_coordinateMode; } inline void setAttributeCoordinateMode(const QString& a) { m_attr_coordinateMode = a; m_has_attr_coordinateMode = true; } inline void clearAttributeCoordinateMode() { m_has_attr_coordinateMode = false; } // child element accessors inline QList<DomGradientStop*> elementGradientStop() { return m_gradientStop; } void setElementGradientStop(const QList<DomGradientStop*>& a);private: QString m_text; void clear(bool clear_all = true); // attribute data double m_attr_startX; bool m_has_attr_startX; double m_attr_startY; bool m_has_attr_startY; double m_attr_endX; bool m_has_attr_endX; double m_attr_endY; bool m_has_attr_endY; double m_attr_centralX; bool m_has_attr_centralX; double m_attr_centralY; bool m_has_attr_centralY; double m_attr_focalX; bool m_has_attr_focalX; double m_attr_focalY; bool m_has_attr_focalY; double m_attr_radius; bool m_has_attr_radius; double m_attr_angle; bool m_has_attr_angle; QString m_attr_type; bool m_has_attr_type; QString m_attr_spread; 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()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeBrushStyle() { return m_has_attr_brushStyle; } inline QString attributeBrushStyle() { 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() { return m_kind; } inline DomColor* elementColor() { return m_color; } void setElementColor(DomColor* a); inline DomProperty* elementTexture() { return m_texture; } void setElementTexture(DomProperty* a); inline DomGradient* elementGradient() { 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()); inline QString text() const { return m_text; } inline void setText(const QString &s) { m_text = s; } // attribute accessors inline bool hasAttributeRole() { return m_has_attr_role; } inline QString attributeRole() { 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() { 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()); 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() { return m_colorRole; } void setElementColorRole(const QList<DomColorRole*>& a);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -