Changeset View
Changeset View
Standalone View
Standalone View
plugins/textshape/TextToolFactory.cpp
Show All 20 Lines | |||||
21 | #include "TextTool.h" | 21 | #include "TextTool.h" | ||
22 | #include "TextShape.h" | 22 | #include "TextShape.h" | ||
23 | #include "AnnotationTextShape.h" | 23 | #include "AnnotationTextShape.h" | ||
24 | 24 | | |||
25 | #include <KoIcon.h> | 25 | #include <KoIcon.h> | ||
26 | #include <klocalizedstring.h> | 26 | #include <klocalizedstring.h> | ||
27 | 27 | | |||
28 | TextToolFactory::TextToolFactory() | 28 | TextToolFactory::TextToolFactory() | ||
29 | : KoToolFactoryBase("TextToolFactory_ID") | 29 | : KoToolFactoryBase("TextTool") | ||
30 | { | 30 | { | ||
31 | setToolTip(i18n("Text editing")); | 31 | setToolTip(i18n("Text editing")); | ||
32 | setToolType(dynamicToolType()+",calligrawords,calligraauthor"); | 32 | setToolType(dynamicToolType()+",calligrawords,calligraauthor"); | ||
33 | setIconName(koIconNameCStr("tool-text")); | 33 | setIconName(koIconNameCStr("tool-text")); | ||
34 | setPriority(1); | 34 | setPriority(1); | ||
35 | setActivationShapeId(TextShape_SHAPEID "," AnnotationShape_SHAPEID); | 35 | setActivationShapeId(TextShape_SHAPEID "," AnnotationShape_SHAPEID); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | TextToolFactory::~TextToolFactory() | 38 | TextToolFactory::~TextToolFactory() | ||
39 | { | 39 | { | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | KoToolBase * TextToolFactory::createTool(KoCanvasBase *canvas) | 42 | KoToolBase * TextToolFactory::createTool(KoCanvasBase *canvas) | ||
43 | { | 43 | { | ||
44 | return new TextTool(canvas); | 44 | return new TextTool(canvas); | ||
45 | } | 45 | } |