Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoSnapProxy.h
Show All 32 Lines | |||||
33 | * This class provides access to different shape related snap targets to snap strategies. | 33 | * This class provides access to different shape related snap targets to snap strategies. | ||
34 | */ | 34 | */ | ||
35 | class KRITAFLAKE_EXPORT KoSnapProxy | 35 | class KRITAFLAKE_EXPORT KoSnapProxy | ||
36 | { | 36 | { | ||
37 | public: | 37 | public: | ||
38 | KoSnapProxy(KoSnapGuide *snapGuide); | 38 | KoSnapProxy(KoSnapGuide *snapGuide); | ||
39 | 39 | | |||
40 | /// returns list of points in given rectangle in document coordinates | 40 | /// returns list of points in given rectangle in document coordinates | ||
41 | QList<QPointF> pointsInRect(const QRectF &rect); | 41 | QList<QPointF> pointsInRect(const QRectF &rect, bool omitEditedShape); | ||
42 | 42 | | |||
43 | /// returns list of shape in given rectangle in document coordinates | 43 | /// returns list of shape in given rectangle in document coordinates | ||
44 | QList<KoShape*> shapesInRect(const QRectF &rect, bool omitEditedShape = false); | 44 | QList<KoShape*> shapesInRect(const QRectF &rect, bool omitEditedShape = false); | ||
45 | 45 | | |||
46 | /// returns list of points from given shape | 46 | /// returns list of points from given shape | ||
47 | QList<QPointF> pointsFromShape(KoShape *shape); | 47 | QList<QPointF> pointsFromShape(KoShape *shape); | ||
48 | 48 | | |||
49 | /// returns list of points in given rectangle in document coordinates | 49 | /// returns list of points in given rectangle in document coordinates | ||
50 | QList<KoPathSegment> segmentsInRect(const QRectF &rect); | 50 | QList<KoPathSegment> segmentsInRect(const QRectF &rect, bool omitEditedShape); | ||
51 | 51 | | |||
52 | /// returns list of all shapes | 52 | /// returns list of all shapes | ||
53 | QList<KoShape*> shapes(bool omitEditedShape = false); | 53 | QList<KoShape*> shapes(bool omitEditedShape = false); | ||
54 | 54 | | |||
55 | /// returns canvas we are working on | 55 | /// returns canvas we are working on | ||
56 | KoCanvasBase *canvas(); | 56 | KoCanvasBase *canvas(); | ||
57 | 57 | | |||
58 | private: | 58 | private: | ||
59 | KoSnapGuide *m_snapGuide; | 59 | KoSnapGuide *m_snapGuide; | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | #endif | 62 | #endif |