File indexing completed on 2024-12-22 04:16:04

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISSMUDGELENGTHOPTIONMODEL_H
0007 #define KISSMUDGELENGTHOPTIONMODEL_H
0008 
0009 #include <lager/cursor.hpp>
0010 #include <lager/extra/qt.hpp>
0011 
0012 #include "KisSmudgeLengthOptionData.h"
0013 #include "KisWidgetConnectionUtils.h"
0014 
0015 class KisSmudgeLengthOptionModel : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     KisSmudgeLengthOptionModel(lager::cursor<KisSmudgeLengthOptionMixIn> optionData, lager::reader<bool> forceUseNewEngine);
0020     lager::cursor<KisSmudgeLengthOptionMixIn> optionData;
0021 
0022     LAGER_QT_CURSOR(int, mode);
0023     LAGER_QT_CURSOR(bool, smearAlpha);
0024     LAGER_QT_CURSOR(bool, useNewEngine);
0025     LAGER_QT_READER(CheckBoxState, useNewEngineState);
0026 
0027     KisSmudgeLengthOptionMixIn backedOptionData() const;
0028 };
0029 
0030 #endif // KISSMUDGELENGTHOPTIONMODEL_H