Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomToolFactory.cpp
Go to the documentation of this file.
1/* This file is part of the KDE project
2 *
3 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#include "KoZoomToolFactory.h"
9#include "KoZoomTool.h"
10
11#include <KoIcon.h>
12#include <klocalizedstring.h>
13
15 : KoToolFactoryBase("ZoomTool")
16{
17 setToolTip(i18n("Zoom"));
18 setToolName(i18n("Zoom Tool"));
20 setPriority(0);
21 setIconName(koIconNameCStr("tool_zoom"));
22 setActivationShapeId("flake/always");
23}
24
void setSection(const QString &section)
void setActivationShapeId(const QString &activationShapeId)
void setToolName(const QString &toolName)
void setIconName(const char *iconName)
void setToolTip(const QString &tooltip)
void setPriority(int newPriority)
KoZoomToolFactory()
constructor
KoToolBase * createTool(KoCanvasBase *canvas) override
#define koIconNameCStr(name)
Definition kis_icon.h:28
static const QString Navigation
Tools that affect the canvas: pan, zoom, etc.
KisCanvas2 * canvas