Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/tools/selectiontools/kis_tool_select_path.cc
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com> | 2 | * Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com> | ||
3 | * Copyright (c) 2015 Michael Abrahams <miabraha@gmail.com> | ||||
3 | * | 4 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 5 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | 7 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | 8 | * (at your option) any later version. | ||
8 | * | 9 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 10 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 16 Lines | |||||
27 | #include "kis_canvas_resource_provider.h" | 28 | #include "kis_canvas_resource_provider.h" | ||
28 | #include "kis_canvas2.h" | 29 | #include "kis_canvas2.h" | ||
29 | #include "kis_pixel_selection.h" | 30 | #include "kis_pixel_selection.h" | ||
30 | #include "kis_selection_tool_helper.h" | 31 | #include "kis_selection_tool_helper.h" | ||
31 | #include <KisView.h> | 32 | #include <KisView.h> | ||
32 | 33 | | |||
33 | 34 | | |||
34 | KisToolSelectPath::KisToolSelectPath(KoCanvasBase * canvas) | 35 | KisToolSelectPath::KisToolSelectPath(KoCanvasBase * canvas) | ||
35 | : SelectionActionHandler<KisDelegatedSelectPathWrapper>(canvas, | 36 | : SelectionActionHandler<KisDelegatedSelectPathWrapper>( | ||
37 | canvas, | ||||
36 | KisCursor::load("tool_polygonal_selection_cursor.png", 6, 6), | 38 | KisCursor::load("tool_polygonal_selection_cursor.png", 6, 6), | ||
37 | i18n("Select path"), | 39 | i18n("Select path"), | ||
38 | (KisTool*) (new __KisToolSelectPathLocalTool(canvas, this))) | 40 | (KisTool*) (new __KisToolSelectPathLocalTool(canvas, this))) | ||
39 | { | 41 | { | ||
40 | } | 42 | } | ||
41 | 43 | | |||
42 | void KisToolSelectPath::requestStrokeEnd() | 44 | void KisToolSelectPath::requestStrokeEnd() | ||
43 | { | 45 | { | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |