Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add toolName field

Luna Lovecraft965c903a0ea7
diff --git a/libs/flake/KoToolFactoryBase.cpp b/libs/flake/KoToolFactoryBase.cpp
index be2ad8743b..363e5a607f 100644
--- a/libs/flake/KoToolFactoryBase.cpp
+++ b/libs/flake/KoToolFactoryBase.cpp
@@ -29,6 +29,7 @@ public:
QString tooltip;
QString activationId;
QString iconName;
+ QString toolName;
const QString id;
QKeySequence shortcut;
};
@@ -150,6 +151,11 @@ QString KoToolFactoryBase::toolTip() const
return d->tooltip;
}
+QString KoToolFactoryBase::toolName() const
+{
+ return d->toolName;
+}
+
QString KoToolFactoryBase::iconName() const
{
return d->iconName;
@@ -175,6 +181,11 @@ void KoToolFactoryBase::setToolTip(const QString & tooltip)
d->tooltip = tooltip;
}
+void KoToolFactoryBase::setToolName(const QString & toolName)
+{
+ d->toolName = toolName;
+}
+
void KoToolFactoryBase::setSection(const QString & section)
{
d->section = section;
diff --git a/libs/flake/KoToolFactoryBase.h b/libs/flake/KoToolFactoryBase.h
index 81fc41e21b..6ed3b61e9f 100644
--- a/libs/flake/KoToolFactoryBase.h
+++ b/libs/flake/KoToolFactoryBase.h
@@ -47,6 +47,7 @@ namespace ToolBoxSection {
* MyToolFactory(const QStringList&)
* : KoToolFactoryBase("MyTool") {
* setToolTip(i18n("Create object"));
+ * setToolName(i18n("Create Object Tool"));
* setSection("main");
* setPriority(5);
* }
@@ -104,6 +105,13 @@ public:
* @return a translated tooltip Text
*/
QString toolTip() const;
+
+ /**
+ * return the translated tool name
+ * @return the translated tool name
+ */
+ QString toolName() const;
+
/**
* return the basename of the icon for this tool
* @return the basename of the icon for this tool
@@ -142,6 +150,12 @@ protected:
*/
void setToolTip(const QString &tooltip);
+ /**
+ * Set the tool name to be used for this tool
+ * @param toolName the tool name
+ */
+ void setToolName(const QString &toolName);
+
/**
* Set the section used to group tools in the toolbox
* @param section the section
diff --git a/libs/flake/KoToolManager.h b/libs/flake/KoToolManager.h
index 75e47e7f85..67c3936b72 100644
--- a/libs/flake/KoToolManager.h
+++ b/libs/flake/KoToolManager.h
@@ -49,6 +49,7 @@ public:
QString id() const; ///< The id of the tool
QString iconText() const; ///< The icontext of the tool
QString toolTip() const; ///< The tooltip of the tool
+ QString toolName() const; ///< The localized tool name
QString iconName() const; ///< The icon name of the tool
QKeySequence shortcut() const; ///< The shortcut to activate the tool
diff --git a/libs/flake/KoToolManager_p.cpp b/libs/flake/KoToolManager_p.cpp
index 1e08ca4838..719046f919 100644
--- a/libs/flake/KoToolManager_p.cpp
+++ b/libs/flake/KoToolManager_p.cpp
@@ -50,6 +50,11 @@ QString KoToolAction::toolTip() const
return d->toolFactory->toolTip();
}
+QString KoToolAction::toolName() const
+{
+ return d->toolFactory->toolName();
+}
+
QString KoToolAction::id() const
{
return d->toolFactory->id();
diff --git a/libs/flake/tools/KoPathToolFactory.cpp b/libs/flake/tools/KoPathToolFactory.cpp
index 33129507ca..45f216f229 100644
--- a/libs/flake/tools/KoPathToolFactory.cpp
+++ b/libs/flake/tools/KoPathToolFactory.cpp
@@ -16,6 +16,7 @@ KoPathToolFactory::KoPathToolFactory()
: KoToolFactoryBase("PathTool")
{
setToolTip(i18n("Edit Shapes Tool"));
+ setToolName(i18n("Edit Shapes Tool"));
setSection(ToolBoxSection::Main);
setIconName(koIconNameCStr("shape_handling"));
setPriority(2);
diff --git a/libs/flake/tools/KoZoomToolFactory.cpp b/libs/flake/tools/KoZoomToolFactory.cpp
index 738a39cd5d..6ca6240396 100644
--- a/libs/flake/tools/KoZoomToolFactory.cpp
+++ b/libs/flake/tools/KoZoomToolFactory.cpp
@@ -15,6 +15,7 @@ KoZoomToolFactory::KoZoomToolFactory()
: KoToolFactoryBase("ZoomTool")
{
setToolTip(i18n("Zoom"));
+ setToolName(i18n("Zoom Tool"));
setSection(ToolBoxSection::Navigation);
setPriority(0);
setIconName(koIconNameCStr("tool_zoom"));
diff --git a/plugins/assistants/Assistants/kis_assistant_tool.h b/plugins/assistants/Assistants/kis_assistant_tool.h
index 4f9fa6c07c..093144ae1b 100644
--- a/plugins/assistants/Assistants/kis_assistant_tool.h
+++ b/plugins/assistants/Assistants/kis_assistant_tool.h
@@ -188,6 +188,7 @@ public:
KisAssistantToolFactory()
: KoToolFactoryBase("KisAssistantTool") {
setToolTip(i18n("Assistant Tool"));
+ setToolName(i18n("Assistant Tool"));
setSection(ToolBoxSection::View);
setIconName(koIconNameCStr("krita_tool_assistant"));
setPriority(0);
diff --git a/plugins/tools/basictools/kis_tool_brush.h b/plugins/tools/basictools/kis_tool_brush.h
index 6158420f48..ef1f34c64f 100644
--- a/plugins/tools/basictools/kis_tool_brush.h
+++ b/plugins/tools/basictools/kis_tool_brush.h
@@ -144,6 +144,7 @@ public:
: KisToolPaintFactoryBase("KritaShape/KisToolBrush") {
setToolTip(i18n("Freehand Brush Tool"));
+ setToolName(i18n("Freehand Brush Tool"));
// Temporarily
setSection(ToolBoxSection::Shape);
diff --git a/plugins/tools/basictools/kis_tool_colorsampler.h b/plugins/tools/basictools/kis_tool_colorsampler.h
index bae8cc8a76..190fb276d6 100644
--- a/plugins/tools/basictools/kis_tool_colorsampler.h
+++ b/plugins/tools/basictools/kis_tool_colorsampler.h
@@ -106,6 +106,7 @@ public:
KisToolColorSamplerFactory()
: KoToolFactoryBase("KritaSelected/KisToolColorSampler") {
setToolTip(i18n("Color Sampler Tool"));
+ setToolName(i18n("Color Sampler Tool"));
setSection(ToolBoxSection::Fill);
setPriority(2);
setIconName(koIconNameCStr("krita_tool_color_sampler"));
diff --git a/plugins/tools/basictools/kis_tool_ellipse.h b/plugins/tools/basictools/kis_tool_ellipse.h
index d021028b8d..b1729e6c0d 100644
--- a/plugins/tools/basictools/kis_tool_ellipse.h
+++ b/plugins/tools/basictools/kis_tool_ellipse.h
@@ -92,6 +92,7 @@ public:
KisToolEllipseFactory()
: KisToolPaintFactoryBase("KritaShape/KisToolEllipse") {
setToolTip(i18n("Ellipse Tool"));
+ setToolName(i18n("Ellipse Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("krita_tool_ellipse"));
diff --git a/plugins/tools/basictools/kis_tool_fill.h b/plugins/tools/basictools/kis_tool_fill.h
index abd919e2bc..fcbc412e98 100644
--- a/plugins/tools/basictools/kis_tool_fill.h
+++ b/plugins/tools/basictools/kis_tool_fill.h
@@ -240,6 +240,7 @@ public:
KisToolFillFactory()
: KisToolPaintFactoryBase("KritaFill/KisToolFill") {
setToolTip(i18n("Fill Tool"));
+ setToolName(i18n("Fill Tool"));
setSection(ToolBoxSection::Fill);
setPriority(0);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
diff --git a/plugins/tools/basictools/kis_tool_gradient.h b/plugins/tools/basictools/kis_tool_gradient.h
index e2061d602f..5715b9d90d 100644
--- a/plugins/tools/basictools/kis_tool_gradient.h
+++ b/plugins/tools/basictools/kis_tool_gradient.h
@@ -110,6 +110,7 @@ public:
KisToolGradientFactory()
: KisToolPaintFactoryBase("KritaFill/KisToolGradient") {
setToolTip(i18n("Gradient Tool"));
+ setToolName(i18n("Gradient Tool"));
setSection(ToolBoxSection::Fill);
setIconName(koIconNameCStr("krita_tool_gradient"));
setShortcut(QKeySequence(Qt::Key_G));
diff --git a/plugins/tools/basictools/kis_tool_line.h b/plugins/tools/basictools/kis_tool_line.h
index 7c07f820bf..83193d6ac1 100644
--- a/plugins/tools/basictools/kis_tool_line.h
+++ b/plugins/tools/basictools/kis_tool_line.h
@@ -114,6 +114,7 @@ public:
KisToolLineFactory()
: KisToolPaintFactoryBase("KritaShape/KisToolLine") {
setToolTip(i18n("Line Tool"));
+ setToolName(i18n("Line Tool"));
// Temporarily
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
diff --git a/plugins/tools/basictools/kis_tool_measure.h b/plugins/tools/basictools/kis_tool_measure.h
index 04e983997e..796d37c9e7 100644
--- a/plugins/tools/basictools/kis_tool_measure.h
+++ b/plugins/tools/basictools/kis_tool_measure.h
@@ -100,6 +100,7 @@ public:
: KoToolFactoryBase("KritaShape/KisToolMeasure") {
setSection(ToolBoxSection::View);
setToolTip(i18n("Measure Tool"));
+ setToolName(i18n("Measure Tool"));
setIconName(koIconNameCStr("krita_tool_measure"));
setPriority(1);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
diff --git a/plugins/tools/basictools/kis_tool_move.h b/plugins/tools/basictools/kis_tool_move.h
index a1f33a98dc..d9fb6ea775 100644
--- a/plugins/tools/basictools/kis_tool_move.h
+++ b/plugins/tools/basictools/kis_tool_move.h
@@ -181,6 +181,7 @@ public:
KisToolMoveFactory()
: KisToolPaintFactoryBase("KritaTransform/KisToolMove") {
setToolTip(i18n("Move Tool"));
+ setToolName(i18n("Move Tool"));
setSection(ToolBoxSection::Transform);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setPriority(3);
diff --git a/plugins/tools/basictools/kis_tool_multihand.h b/plugins/tools/basictools/kis_tool_multihand.h
index bcd9275b06..58de605df0 100644
--- a/plugins/tools/basictools/kis_tool_multihand.h
+++ b/plugins/tools/basictools/kis_tool_multihand.h
@@ -97,6 +97,7 @@ public:
: KisToolBrushFactory("KritaShape/KisToolMultiBrush") {
setToolTip(i18n("Multibrush Tool"));
+ setToolName(i18n("Multibrush Tool"));
// Temporarily
setSection(ToolBoxSection::Shape);
diff --git a/plugins/tools/basictools/kis_tool_pan.cpp b/plugins/tools/basictools/kis_tool_pan.cpp
index f18f6122cd..f0cf8aa1bc 100644
--- a/plugins/tools/basictools/kis_tool_pan.cpp
+++ b/plugins/tools/basictools/kis_tool_pan.cpp
@@ -93,6 +93,7 @@ KisToolPanFactory::KisToolPanFactory()
: KoToolFactoryBase("PanTool")
{
setToolTip(i18n("Pan Tool"));
+ setToolName(i18n("Pan Tool"));
setSection(ToolBoxSection::Navigation);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setPriority(2);
diff --git a/plugins/tools/basictools/kis_tool_path.h b/plugins/tools/basictools/kis_tool_path.h
index 86c3098d89..48bd610251 100644
--- a/plugins/tools/basictools/kis_tool_path.h
+++ b/plugins/tools/basictools/kis_tool_path.h
@@ -82,6 +82,7 @@ public:
KisToolPathFactory()
: KisToolPaintFactoryBase("KisToolPath") {
setToolTip(i18n("Bezier Curve Tool: Shift-mouseclick ends the curve."));
+ setToolName(i18n("Bezier Curve Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("krita_draw_path"));
diff --git a/plugins/tools/basictools/kis_tool_pencil.h b/plugins/tools/basictools/kis_tool_pencil.h
index 6b43887a19..4fe5f0ca9e 100644
--- a/plugins/tools/basictools/kis_tool_pencil.h
+++ b/plugins/tools/basictools/kis_tool_pencil.h
@@ -74,6 +74,7 @@ public:
KisToolPencilFactory()
: KisToolPaintFactoryBase("KisToolPencil") {
setToolTip(i18n("Freehand Path Tool"));
+ setToolName(i18n("Freehand Path Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("krita_tool_freehandvector"));
diff --git a/plugins/tools/basictools/kis_tool_rectangle.h b/plugins/tools/basictools/kis_tool_rectangle.h
index 9d05bb0235..0f721c3670 100644
--- a/plugins/tools/basictools/kis_tool_rectangle.h
+++ b/plugins/tools/basictools/kis_tool_rectangle.h
@@ -48,6 +48,7 @@ public:
KisToolRectangleFactory()
: KisToolPaintFactoryBase("KritaShape/KisToolRectangle") {
setToolTip(i18n("Rectangle Tool"));
+ setToolName(i18n("Rectangle Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
diff --git a/plugins/tools/defaulttool/defaulttool/DefaultToolFactory.cpp b/plugins/tools/defaulttool/defaulttool/DefaultToolFactory.cpp
index cbd0dfc10a..f213944397 100644
--- a/plugins/tools/defaulttool/defaulttool/DefaultToolFactory.cpp
+++ b/plugins/tools/defaulttool/defaulttool/DefaultToolFactory.cpp
@@ -17,6 +17,7 @@ DefaultToolFactory::DefaultToolFactory()
: KoToolFactoryBase(KoInteractionTool_ID)
{
setToolTip(i18n("Select Shapes Tool"));
+ setToolName(i18n("Select Shapes Tool"));
setSection(ToolBoxSection::Main);
setPriority(0);
setIconName(koIconNameCStr("select"));
diff --git a/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.h b/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.h
index d2dceed51c..f43b648060 100644
--- a/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.h
+++ b/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImages.h
@@ -94,6 +94,7 @@ public:
ToolReferenceImagesFactory()
: DefaultToolFactory("ToolReferenceImages") {
setToolTip(i18n("Reference Images Tool"));
+ setToolName(i18n("Reference Images Tool"));
setSection(ToolBoxSection::View);
setIconName(koIconNameCStr("krita_tool_reference_images"));
setPriority(2);
diff --git a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyToolFactory.cpp b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyToolFactory.cpp
index 8f131f27d1..13d44c4b8f 100644
--- a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyToolFactory.cpp
+++ b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyToolFactory.cpp
@@ -18,6 +18,7 @@ KarbonCalligraphyToolFactory::KarbonCalligraphyToolFactory()
: KoToolFactoryBase("KarbonCalligraphyTool")
{
setToolTip(i18n("Calligraphy"));
+ setToolName(i18n("Calligraphy"));
setSection(ToolBoxSection::Main);
setIconName(koIconNameCStr("calligraphy"));
setPriority(6);
diff --git a/plugins/tools/selectiontools/KisToolSelectMagnetic.h b/plugins/tools/selectiontools/KisToolSelectMagnetic.h
index ed3bf88f66..518339794f 100644
--- a/plugins/tools/selectiontools/KisToolSelectMagnetic.h
+++ b/plugins/tools/selectiontools/KisToolSelectMagnetic.h
@@ -100,6 +100,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectMagnetic")
{
setToolTip(i18n("Magnetic Selection Tool"));
+ setToolName(i18n("Magnetic Selection Tool"));
setSection(ToolBoxSection::Select);
setIconName(koIconNameCStr("tool_magnetic_selection"));
setPriority(8);
diff --git a/plugins/tools/selectiontools/kis_tool_select_contiguous.h b/plugins/tools/selectiontools/kis_tool_select_contiguous.h
index a34248ec6d..d4ecdc45bf 100644
--- a/plugins/tools/selectiontools/kis_tool_select_contiguous.h
+++ b/plugins/tools/selectiontools/kis_tool_select_contiguous.h
@@ -95,6 +95,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectContiguous")
{
setToolTip(i18n("Contiguous Selection Tool"));
+ setToolName(i18n("Contiguous Selection Tool"));
setSection(ToolBoxSection::Select);
setIconName(koIconNameCStr("tool_contiguous_selection"));
setPriority(4);
diff --git a/plugins/tools/selectiontools/kis_tool_select_elliptical.h b/plugins/tools/selectiontools/kis_tool_select_elliptical.h
index 51f4cf5304..63a43067dc 100644
--- a/plugins/tools/selectiontools/kis_tool_select_elliptical.h
+++ b/plugins/tools/selectiontools/kis_tool_select_elliptical.h
@@ -47,6 +47,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectElliptical")
{
setToolTip(i18n("Elliptical Selection Tool"));
+ setToolName(i18n("Elliptical Selection Tool"));
setSection(ToolBoxSection::Select);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("tool_elliptical_selection"));
diff --git a/plugins/tools/selectiontools/kis_tool_select_outline.h b/plugins/tools/selectiontools/kis_tool_select_outline.h
index cb0b8607b0..94071f438d 100644
--- a/plugins/tools/selectiontools/kis_tool_select_outline.h
+++ b/plugins/tools/selectiontools/kis_tool_select_outline.h
@@ -50,6 +50,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectOutline")
{
setToolTip(i18n("Freehand Selection Tool"));
+ setToolName(i18n("Freehand Selection Tool"));
setSection(ToolBoxSection::Select);
setIconName(koIconNameCStr("tool_outline_selection"));
setPriority(3);
diff --git a/plugins/tools/selectiontools/kis_tool_select_path.h b/plugins/tools/selectiontools/kis_tool_select_path.h
index 27649091b3..27f8ac0a25 100644
--- a/plugins/tools/selectiontools/kis_tool_select_path.h
+++ b/plugins/tools/selectiontools/kis_tool_select_path.h
@@ -86,6 +86,7 @@ public:
KisToolSelectPathFactory()
: KisSelectionToolFactoryBase("KisToolSelectPath") {
setToolTip(i18n("Bezier Curve Selection Tool"));
+ setToolName(i18n("Bezier Curve Selection Tool"));
setSection(ToolBoxSection::Select);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("tool_path_selection"));
diff --git a/plugins/tools/selectiontools/kis_tool_select_polygonal.h b/plugins/tools/selectiontools/kis_tool_select_polygonal.h
index a094994234..7ead7c6662 100644
--- a/plugins/tools/selectiontools/kis_tool_select_polygonal.h
+++ b/plugins/tools/selectiontools/kis_tool_select_polygonal.h
@@ -46,6 +46,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectPolygonal")
{
setToolTip(i18n("Polygonal Selection Tool"));
+ setToolName(i18n("Polygonal Selection Tool"));
setSection(ToolBoxSection::Select);
setIconName(koIconNameCStr("tool_polygonal_selection"));
setPriority(2);
diff --git a/plugins/tools/selectiontools/kis_tool_select_rectangular.h b/plugins/tools/selectiontools/kis_tool_select_rectangular.h
index 757133bfbb..c634205dc7 100644
--- a/plugins/tools/selectiontools/kis_tool_select_rectangular.h
+++ b/plugins/tools/selectiontools/kis_tool_select_rectangular.h
@@ -48,6 +48,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectRectangular")
{
setToolTip(i18n("Rectangular Selection Tool"));
+ setToolName(i18n("Rectangular Selection Tool"));
setSection(ToolBoxSection::Select);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("tool_rect_selection"));
diff --git a/plugins/tools/selectiontools/kis_tool_select_similar.h b/plugins/tools/selectiontools/kis_tool_select_similar.h
index 6430a203ed..ccf89f379c 100644
--- a/plugins/tools/selectiontools/kis_tool_select_similar.h
+++ b/plugins/tools/selectiontools/kis_tool_select_similar.h
@@ -57,6 +57,7 @@ public:
: KisSelectionToolFactoryBase("KisToolSelectSimilar")
{
setToolTip(i18n("Similar Color Selection Tool"));
+ setToolName(i18n("Similar Color Selection Tool"));
setSection(ToolBoxSection::Select);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("tool_similar_selection"));
diff --git a/plugins/tools/svgtexttool/SvgTextToolFactory.cpp b/plugins/tools/svgtexttool/SvgTextToolFactory.cpp
index ce9e0f7ae6..439a33805b 100644
--- a/plugins/tools/svgtexttool/SvgTextToolFactory.cpp
+++ b/plugins/tools/svgtexttool/SvgTextToolFactory.cpp
@@ -19,6 +19,7 @@ SvgTextToolFactory::SvgTextToolFactory()
: KoToolFactoryBase("SvgTextTool")
{
setToolTip(i18n("SVG Text Tool"));
+ setToolName(i18n("Text Tool"));
setIconName(koIconNameCStr("draw-text"));
setSection(ToolBoxSection::Main);
setPriority(1);
diff --git a/plugins/tools/tool_crop/kis_tool_crop.h b/plugins/tools/tool_crop/kis_tool_crop.h
index c3bd604bb8..b50319caf3 100644
--- a/plugins/tools/tool_crop/kis_tool_crop.h
+++ b/plugins/tools/tool_crop/kis_tool_crop.h
@@ -219,6 +219,7 @@ public:
KisToolCropFactory()
: KoToolFactoryBase("KisToolCrop") {
setToolTip(i18n("Crop Tool"));
+ setToolName(i18n("Crop Tool"));
setSection(ToolBoxSection::Transform);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setPriority(11);
diff --git a/plugins/tools/tool_dyna/kis_tool_dyna.h b/plugins/tools/tool_dyna/kis_tool_dyna.h
index c14dfa1744..ac97a01ede 100644
--- a/plugins/tools/tool_dyna/kis_tool_dyna.h
+++ b/plugins/tools/tool_dyna/kis_tool_dyna.h
@@ -137,6 +137,7 @@ public:
: KisToolPaintFactoryBase("KritaShape/KisToolDyna") {
setToolTip(i18n("Dynamic Brush Tool"));
+ setToolName(i18n("Dynamic Brush Tool"));
setSection(ToolBoxSection::Shape);
setIconName(koIconNameCStr("krita_tool_dyna"));
//setShortcut(QKeySequence(Qt::Key_F));
diff --git a/plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFillFactory.h b/plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFillFactory.h
index 65a3faf123..08bd9aa71f 100644
--- a/plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFillFactory.h
+++ b/plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFillFactory.h
@@ -21,6 +21,7 @@ public:
: KisToolPaintFactoryBase("KisToolEncloseAndFill")
{
setToolTip(i18n("Enclose and Fill Tool"));
+ setToolName(i18n("Enclose and Fill Tool"));
setSection(ToolBoxSection::Fill);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("krita_tool_enclose_and_fill"));
diff --git a/plugins/tools/tool_knife/KisToolKnife.h b/plugins/tools/tool_knife/KisToolKnife.h
index 478da57b13..4b83b59f04 100644
--- a/plugins/tools/tool_knife/KisToolKnife.h
+++ b/plugins/tools/tool_knife/KisToolKnife.h
@@ -69,6 +69,7 @@ public:
{
setToolTip(i18n("Comic Panel Editing Tool"));
+ setToolName(i18n("Comic Panel Editing Tool"));
setSection(ToolBoxSection::Main);
setIconName(koIconNameCStr("tool_comic_panel"));
diff --git a/plugins/tools/tool_lazybrush/kis_tool_lazy_brush.h b/plugins/tools/tool_lazybrush/kis_tool_lazy_brush.h
index 3a53aab423..301cccde03 100644
--- a/plugins/tools/tool_lazybrush/kis_tool_lazy_brush.h
+++ b/plugins/tools/tool_lazybrush/kis_tool_lazy_brush.h
@@ -82,6 +82,7 @@ public:
: KisToolPaintFactoryBase("KritaShape/KisToolLazyBrush") {
setToolTip(i18n("Colorize Mask Editing Tool"));
+ setToolName(i18n("Colorize Mask Editing Tool"));
// Temporarily
setSection(ToolBoxSection::Fill);
diff --git a/plugins/tools/tool_polygon/kis_tool_polygon.h b/plugins/tools/tool_polygon/kis_tool_polygon.h
index cff91bd961..11cf229d2b 100644
--- a/plugins/tools/tool_polygon/kis_tool_polygon.h
+++ b/plugins/tools/tool_polygon/kis_tool_polygon.h
@@ -42,6 +42,7 @@ public:
KisToolPolygonFactory()
: KisToolPolyLineFactoryBase("KisToolPolygon") {
setToolTip(i18n("Polygon Tool: Shift-mouseclick ends the polygon."));
+ setToolName(i18n("Polygon Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("krita_tool_polygon"));
diff --git a/plugins/tools/tool_polyline/kis_tool_polyline.h b/plugins/tools/tool_polyline/kis_tool_polyline.h
index e5b62727b2..a720e23ee9 100644
--- a/plugins/tools/tool_polyline/kis_tool_polyline.h
+++ b/plugins/tools/tool_polyline/kis_tool_polyline.h
@@ -42,6 +42,7 @@ public:
KisToolPolylineFactory()
: KisToolPolyLineFactoryBase("KisToolPolyline") {
setToolTip(i18n("Polyline Tool: Shift-mouseclick ends the polyline."));
+ setToolName(i18n("Polyline Tool"));
setSection(ToolBoxSection::Shape);
setActivationShapeId(KRITA_TOOL_ACTIVATION_ID);
setIconName(koIconNameCStr("polyline"));
diff --git a/plugins/tools/tool_smart_patch/kis_tool_smart_patch.h b/plugins/tools/tool_smart_patch/kis_tool_smart_patch.h
index c9fa59c23b..e48c905afb 100644
--- a/plugins/tools/tool_smart_patch/kis_tool_smart_patch.h
+++ b/plugins/tools/tool_smart_patch/kis_tool_smart_patch.h
@@ -77,6 +77,7 @@ public:
{
setToolTip(i18n("Smart Patch Tool"));
+ setToolName(i18n("Smart Patch Tool"));
setSection(ToolBoxSection::Fill);
setIconName(koIconNameCStr("krita_tool_smart_patch"));
diff --git a/plugins/tools/tool_transform2/kis_tool_transform.h b/plugins/tools/tool_transform2/kis_tool_transform.h
index f7d93c6396..f6b0c5fc79 100644
--- a/plugins/tools/tool_transform2/kis_tool_transform.h
+++ b/plugins/tools/tool_transform2/kis_tool_transform.h
@@ -368,6 +368,7 @@ public:
KisToolTransformFactory()
: KisToolPaintFactoryBase("KisToolTransform") {
setToolTip(i18n("Transform a layer or a selection"));
+ setToolName(i18n("Transform Tool"));
setSection(ToolBoxSection::Transform);
setIconName(koIconNameCStr("krita_tool_transform"));
setShortcut(QKeySequence(Qt::CTRL | Qt::Key_T));