Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemLine.h
Show All 36 Lines | 36 | public: | |||
---|---|---|---|---|---|
37 | KReportItemLine(); | 37 | KReportItemLine(); | ||
38 | explicit KReportItemLine(const QDomNode & element); | 38 | explicit KReportItemLine(const QDomNode & element); | ||
39 | ~KReportItemLine() override; | 39 | ~KReportItemLine() override; | ||
40 | 40 | | |||
41 | QString typeName() const override; | 41 | QString typeName() const override; | ||
42 | int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, | 42 | int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, | ||
43 | const QVariant &data, KReportScriptHandler *script) override; | 43 | const QVariant &data, KReportScriptHandler *script) override; | ||
44 | 44 | | |||
45 | void setUnit(const KReportUnit&) override; | 45 | void setUnit(const KReportUnit &u) override; | ||
46 | 46 | | |||
47 | QPointF startPosition() const; | 47 | QPointF startPosition() const; | ||
48 | void setStartPosition(const QPointF &ptPos); | ||||
48 | QPointF endPosition() const; | 49 | QPointF endPosition() const; | ||
50 | void setEndPosition(const QPointF &ptPos); | ||||
49 | 51 | | |||
50 | protected: | 52 | protected: | ||
51 | KProperty *m_start; | | |||
52 | KProperty *m_end; | | |||
53 | KProperty *m_lineColor; | 53 | KProperty *m_lineColor; | ||
54 | KProperty *m_lineWeight; | 54 | KProperty *m_lineWeight; | ||
55 | KProperty *m_lineStyle; | 55 | KProperty *m_lineStyle; | ||
56 | 56 | | |||
57 | KReportLineStyle lineStyle() const; | 57 | KReportLineStyle lineStyle() const; | ||
58 | qreal weight() const; | 58 | qreal weight() const; | ||
59 | void setWeight(qreal w); | 59 | void setWeight(qreal w); | ||
60 | 60 | | |||
61 | private: | 61 | private: | ||
62 | KProperty *m_start; | ||||
63 | KProperty *m_end; | ||||
64 | | ||||
62 | void createProperties() override; | 65 | void createProperties() override; | ||
63 | 66 | | |||
64 | friend class Scripting::Line; | 67 | friend class Scripting::Line; | ||
65 | }; | 68 | }; | ||
66 | 69 | | |||
67 | #endif | 70 | #endif |