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++
677 B
Raw Blame
/* This file is part of the KDE project
 *
 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#include "KoZoomToolFactory.h"
#include "KoZoomTool.h"

#include <KoIcon.h>
#include <klocalizedstring.h>

KoZoomToolFactory::KoZoomToolFactory()
        : KoToolFactoryBase("ZoomTool")
{
    setToolTip(i18n("Zoom"));
    setToolName(i18n("Zoom Tool"));
    setSection(ToolBoxSection::Navigation);
    setPriority(0);
    setIconName(koIconNameCStr("tool_zoom"));
    setActivationShapeId("flake/always");
}

KoToolBase *KoZoomToolFactory::createTool(KoCanvasBase *canvas)
{
    return new KoZoomTool(canvas);
}