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++
1.0 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2017 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISMASKINGBRUSHOPTION_H
#define KISMASKINGBRUSHOPTION_H

#include <kritapaintop_export.h>
#include <QScopedPointer>

#include <kis_types.h>
#include "kis_paintop_option.h"
#include <lager/reader.hpp>

class PAINTOP_EXPORT KisMaskingBrushOption : public KisPaintOpOption
{
    Q_OBJECT
public:
    KisMaskingBrushOption(lager::reader<qreal> effectiveBrushSize);
    ~KisMaskingBrushOption() override;

    void writeOptionSetting(KisPropertiesConfigurationSP setting) const override;
    void readOptionSetting(const KisPropertiesConfigurationSP setting) override;

    void lodLimitations(KisPaintopLodLimitations *l) const override;

    lager::reader<bool> maskingBrushEnabledReader() const;

private Q_SLOTS:
    void slotCompositeModeWidgetChanged(int index);
    void slotCompositeModePropertyChanged(const QString &value);

private:
    struct Private;
    const QScopedPointer<Private> m_d;
};



#endif // KISMASKINGBRUSHOPTION_H