Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerItemRectBase.h
Show All 33 Lines | |||||
34 | const int KREPORT_ITEM_RECT_DEFAULT_WIDTH = 100; | 34 | const int KREPORT_ITEM_RECT_DEFAULT_WIDTH = 100; | ||
35 | const int KREPORT_ITEM_RECT_DEFAULT_HEIGHT = 100; | 35 | const int KREPORT_ITEM_RECT_DEFAULT_HEIGHT = 100; | ||
36 | 36 | | |||
37 | /** | 37 | /** | ||
38 | */ | 38 | */ | ||
39 | class KREPORT_EXPORT KReportDesignerItemRectBase : public QGraphicsRectItem, public KReportDesignerItemBase | 39 | class KREPORT_EXPORT KReportDesignerItemRectBase : public QGraphicsRectItem, public KReportDesignerItemBase | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | explicit KReportDesignerItemRectBase(KReportDesigner*); | 42 | explicit KReportDesignerItemRectBase(KReportDesigner *r, KReportItemBase *b); | ||
43 | 43 | | |||
44 | virtual ~KReportDesignerItemRectBase(); | 44 | virtual ~KReportDesignerItemRectBase(); | ||
45 | 45 | | |||
46 | QRectF pointRect() const; | 46 | QRectF pointRect() const; | ||
47 | 47 | | |||
48 | virtual void enterInlineEditingMode(); | 48 | virtual void enterInlineEditingMode(); | ||
49 | virtual void exitInlineEditingMode(); | 49 | virtual void exitInlineEditingMode(); | ||
50 | 50 | | |||
51 | protected: | 51 | protected: | ||
52 | void init(KReportPosition*, KReportSize*, KPropertySet*, KReportDesigner *r); | 52 | //void init(KReportDesigner *r); | ||
staniek: 8X | |||||
53 | 53 | | |||
54 | int m_dpiX; | 54 | int m_dpiX; | ||
55 | int m_dpiY; | 55 | int m_dpiY; | ||
56 | qreal m_userHeight; | 56 | qreal m_userHeight; | ||
57 | qreal m_userWidth; | 57 | qreal m_userWidth; | ||
58 | qreal m_pressX; | 58 | qreal m_pressX; | ||
59 | qreal m_pressY; | 59 | qreal m_pressY; | ||
60 | 60 | | |||
Show All 17 Lines | |||||
78 | 78 | | |||
79 | virtual void move(const QPointF&); | 79 | virtual void move(const QPointF&); | ||
80 | QRectF properRect(const KReportDesigner &d, qreal minWidth, qreal minHeight) const; | 80 | QRectF properRect(const KReportDesigner &d, qreal minWidth, qreal minHeight) const; | ||
81 | private: | 81 | private: | ||
82 | int grabHandle(QPointF); | 82 | int grabHandle(QPointF); | ||
83 | QPointF properPressPoint(const KReportDesigner &d) const; | 83 | QPointF properPressPoint(const KReportDesigner &d) const; | ||
84 | int m_grabAction; | 84 | int m_grabAction; | ||
85 | 85 | | |||
86 | KReportPosition* m_ppos; | 86 | //KReportPosition* m_ppos; | ||
staniek: 8X ? | |||||
87 | KReportSize* m_psize; | 87 | //KReportSize* m_psize; | ||
88 | KPropertySet* m_pset; | 88 | //KPropertySet* m_pset; | ||
89 | 89 | | |||
90 | }; | 90 | }; | ||
91 | 91 | | |||
92 | #endif | 92 | #endif |
8X