Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/tools/selectiontools/selection_tools.cc
Show All 30 Lines | |||||
31 | 31 | | |||
32 | #include "kis_tool_select_outline.h" | 32 | #include "kis_tool_select_outline.h" | ||
33 | #include "kis_tool_select_polygonal.h" | 33 | #include "kis_tool_select_polygonal.h" | ||
34 | #include "kis_tool_select_rectangular.h" | 34 | #include "kis_tool_select_rectangular.h" | ||
35 | #include "kis_tool_select_contiguous.h" | 35 | #include "kis_tool_select_contiguous.h" | ||
36 | #include "kis_tool_select_elliptical.h" | 36 | #include "kis_tool_select_elliptical.h" | ||
37 | #include "kis_tool_select_path.h" | 37 | #include "kis_tool_select_path.h" | ||
38 | #include "kis_tool_select_similar.h" | 38 | #include "kis_tool_select_similar.h" | ||
39 | #include "kis_tool_select_magnetic.h" | ||||
39 | 40 | | |||
40 | K_PLUGIN_FACTORY_WITH_JSON(SelectionToolsFactory, "kritaselectiontools.json", registerPlugin<SelectionTools>();) | 41 | K_PLUGIN_FACTORY_WITH_JSON(SelectionToolsFactory, "kritaselectiontools.json", registerPlugin<SelectionTools>();) | ||
41 | 42 | | |||
42 | 43 | | |||
43 | SelectionTools::SelectionTools(QObject *parent, const QVariantList &) | 44 | SelectionTools::SelectionTools(QObject *parent, const QVariantList &) | ||
44 | : QObject(parent) | 45 | : QObject(parent) | ||
45 | { | 46 | { | ||
46 | KoToolRegistry * r = KoToolRegistry::instance(); | 47 | KoToolRegistry * r = KoToolRegistry::instance(); | ||
47 | 48 | | |||
48 | r->add(new KisToolSelectOutlineFactory(QStringList())); | 49 | r->add(new KisToolSelectOutlineFactory(QStringList())); | ||
49 | r->add(new KisToolSelectPolygonalFactory(QStringList())); | 50 | r->add(new KisToolSelectPolygonalFactory(QStringList())); | ||
50 | r->add(new KisToolSelectRectangularFactory(QStringList())); | 51 | r->add(new KisToolSelectRectangularFactory(QStringList())); | ||
51 | r->add(new KisToolSelectEllipticalFactory(QStringList())); | 52 | r->add(new KisToolSelectEllipticalFactory(QStringList())); | ||
52 | r->add(new KisToolSelectContiguousFactory(QStringList())); | 53 | r->add(new KisToolSelectContiguousFactory(QStringList())); | ||
53 | r->add(new KisToolSelectPathFactory(QStringList())); | 54 | r->add(new KisToolSelectPathFactory(QStringList())); | ||
54 | r->add(new KisToolSelectSimilarFactory(QStringList())); | 55 | r->add(new KisToolSelectSimilarFactory(QStringList())); | ||
56 | r->add(new KisToolSelectMagneticFactory(QStringList())); | ||||
55 | } | 57 | } | ||
56 | 58 | | |||
57 | SelectionTools::~SelectionTools() | 59 | SelectionTools::~SelectionTools() | ||
58 | { | 60 | { | ||
59 | } | 61 | } | ||
60 | 62 | | |||
61 | #include "selection_tools.moc" | 63 | #include "selection_tools.moc" |