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++
882 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef KISDYNAMICSENSORFACTORY_H
#define KISDYNAMICSENSORFACTORY_H

#include <KisCurveOptionData.h>
#include <lager/cursor.hpp>

class QWidget;

class PAINTOP_EXPORT KisDynamicSensorFactory
{
public:
    virtual ~KisDynamicSensorFactory();

    /**
     * return the id for the shape this factory creates.
     * @return the id for the shape this factory creates.
     */
    virtual QString id() const = 0;

    virtual int minimumValue() = 0;
    virtual int maximumValue(int length) = 0;
    virtual QString minimumLabel() = 0;
    virtual QString maximumLabel(int length) = 0;
    virtual QString valueSuffix() = 0;
    virtual QWidget* createConfigWidget(lager::cursor<KisCurveOptionDataCommon>, QWidget*) = 0;
};

#endif // KISDYNAMICSENSORFACTORY_H