Changeset View
Changeset View
Standalone View
Standalone View
src/items/check/KReportScriptCheck.h
Show All 33 Lines | 33 | { | |||
---|---|---|---|---|---|
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | public: | 35 | public: | ||
36 | explicit CheckBox(KReportItemCheckBox *); | 36 | explicit CheckBox(KReportItemCheckBox *); | ||
37 | 37 | | |||
38 | ~CheckBox() override; | 38 | ~CheckBox() override; | ||
39 | 39 | | |||
40 | public Q_SLOTS: | 40 | public Q_SLOTS: | ||
41 | 41 | | |||
42 | //! Return the value of the checkbox | 42 | //! @return the value of the checkbox | ||
43 | bool value() const; | 43 | bool value() const; | ||
44 | //! Set the value of the checkbox, defaults to checked if no value is given | 44 | //! Set the value of the checkbox, defaults to checked if no value is given | ||
45 | void setValue(bool val = true); | 45 | void setValue(bool val = true); | ||
46 | 46 | | |||
47 | //! Returns the style of the checkbox as Cross, Tick or Dot | 47 | //! @return the style of the checkbox as Cross, Tick or Dot | ||
48 | QString checkStyle() const; | 48 | QString checkStyle() const; | ||
49 | //!Sets the style of the checkbox, valid values are Cross, Tick or Dot | 49 | //!Sets the style of the checkbox, valid values are Cross, Tick or Dot | ||
50 | void setCheckStyle(const QString&); | 50 | void setCheckStyle(const QString&); | ||
51 | 51 | | |||
52 | //!Returns the foreground color | 52 | //! @return the foreground (text) color of the text-item | ||
53 | QColor foregroundColor() const; | 53 | QColor foregroundColor() const; | ||
54 | //!Sets the foreground color | 54 | | ||
55 | //! Sets the foreground (text) color of the text-item to the given color | ||||
55 | void setForegroundColor(const QColor&); | 56 | void setForegroundColor(const QColor&); | ||
56 | 57 | | |||
57 | //!Returs the line color | 58 | //! @return the border line color of the text-item | ||
58 | QColor lineColor() const; | 59 | QColor lineColor() const; | ||
59 | //!Sets the line color | 60 | | ||
61 | //! Sets the border line color of the text-item to the given color | ||||
60 | void setLineColor(const QColor&); | 62 | void setLineColor(const QColor&); | ||
61 | 63 | | |||
62 | //!Returns the line weight (thickness) | 64 | //! @return the border line weight (thickness) of the text-item | ||
63 | int lineWeight() const; | 65 | int lineWeight() const; | ||
64 | //!Serts the line weight (thicknes) | 66 | | ||
67 | //! Sets the border line weight (thickness) of the text-item | ||||
65 | void setLineWeight(int); | 68 | void setLineWeight(int); | ||
66 | 69 | | |||
67 | //! Returns the line style. Valid values are those from Qt::PenStyle (0-5) | 70 | //! @return the border line style of the text-item. Values are from Qt::Penstyle range 0-5 | ||
68 | int lineStyle() const; | 71 | int lineStyle() const; | ||
69 | //! Srts the line style. Valid values are those from Qt::PenStyle (0-5) | 72 | | ||
73 | //! Sets the border line style of the text-item to the given style in the range 0-5 | ||||
70 | void setLineStyle(int); | 74 | void setLineStyle(int); | ||
71 | 75 | | |||
72 | //!Returns the position of the checkbox within the parent section | 76 | //! @returns the position of the text-item in points | ||
73 | QPointF position() const; | 77 | QPointF position() const; | ||
74 | //!Sets the position of the checkbox within the parent section | 78 | | ||
79 | //! Sets the position of the text-item to the given point coordinates | ||||
75 | void setPosition(const QPointF&); | 80 | void setPosition(const QPointF&); | ||
76 | 81 | | |||
77 | //!Returns the size of the checkbox | 82 | //! @returns the size of the text-item in points | ||
78 | QSizeF size() const; | 83 | QSizeF size() const; | ||
79 | //!Serts the size of the checkbox | 84 | | ||
85 | //! Sets the size of the text-item to the given size in points | ||||
80 | void setSize(const QSizeF&); | 86 | void setSize(const QSizeF&); | ||
81 | 87 | | |||
82 | private: | 88 | private: | ||
83 | KReportItemCheckBox *m_check; | 89 | KReportItemCheckBox *m_check; | ||
84 | }; | 90 | }; | ||
85 | 91 | | |||
86 | } | 92 | } | ||
87 | #endif // KREPORTSCRIPTCHECK_H | 93 | #endif // KREPORTSCRIPTCHECK_H |