Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_mirror_axis.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | * | 17 | * | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KISMIRRORAXIS_H | 20 | #ifndef KISMIRRORAXIS_H | ||
21 | #define KISMIRRORAXIS_H | 21 | #define KISMIRRORAXIS_H | ||
22 | 22 | | |||
23 | #include <QScopedPointer> | ||||
24 | | ||||
23 | #include "kis_canvas_decoration.h" | 25 | #include "kis_canvas_decoration.h" | ||
24 | 26 | | |||
25 | class KisView; | 27 | class KisView; | ||
26 | class KisCanvasResourceProvider; | 28 | class KisCanvasResourceProvider; | ||
27 | class KisMirrorAxisConfig; | 29 | class KisMirrorAxisConfig; | ||
28 | 30 | | |||
29 | class KisMirrorAxis : public KisCanvasDecoration | 31 | class KisMirrorAxis : public KisCanvasDecoration | ||
30 | { | 32 | { | ||
Show All 17 Lines | |||||
48 | 50 | | |||
49 | protected: | 51 | protected: | ||
50 | void drawDecoration(QPainter& gc, const QRectF& updateArea, const KisCoordinatesConverter* converter, KisCanvas2* canvas) override; | 52 | void drawDecoration(QPainter& gc, const QRectF& updateArea, const KisCoordinatesConverter* converter, KisCanvas2* canvas) override; | ||
51 | bool eventFilter(QObject* target, QEvent* event) override; | 53 | bool eventFilter(QObject* target, QEvent* event) override; | ||
52 | void toggleMirrorActions(); | 54 | void toggleMirrorActions(); | ||
53 | 55 | | |||
54 | private: | 56 | private: | ||
55 | class Private; | 57 | class Private; | ||
56 | Private * const d; | 58 | const QScopedPointer<Private> d; | ||
57 | 59 | | |||
58 | private Q_SLOTS: | 60 | private Q_SLOTS: | ||
59 | void mirrorModeChanged(); | 61 | void mirrorModeChanged(); | ||
60 | void moveHorizontalAxisToCenter(); | 62 | void moveHorizontalAxisToCenter(); | ||
61 | void moveVerticalAxisToCenter(); | 63 | void moveVerticalAxisToCenter(); | ||
62 | }; | 64 | }; | ||
63 | 65 | | |||
64 | #endif // KISMIRRORAXIS_H | 66 | #endif // KISMIRRORAXIS_H |