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++
960 B
Raw Blame
/*
 * KDE. Krita Project.
 *
 * SPDX-FileCopyrightText: 2022 Deif Lou <[email protected]>
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISTOOLENCLOSEANDFILLFACTORY_H
#define KISTOOLENCLOSEANDFILLFACTORY_H

#include <KisToolPaintFactoryBase.h>

#include "KisToolEncloseAndFill.h"

class KisToolEncloseAndFillFactory : public KisToolPaintFactoryBase
{

public:
    KisToolEncloseAndFillFactory()
        : 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"));
        setPriority(15);
    }

    ~KisToolEncloseAndFillFactory() override
    {}

    KoToolBase* createTool(KoCanvasBase *canvas) override
    {
        return new KisToolEncloseAndFill(canvas);
    }

};

#endif