File indexing completed on 2024-06-23 04:27:38

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISSMUDGEOVERLAYMODEOPTIONMODEL_H
0007 #define KISSMUDGEOVERLAYMODEOPTIONMODEL_H
0008 
0009 #include <QObject>
0010 #include <lager/cursor.hpp>
0011 #include <lager/extra/qt.hpp>
0012 
0013 #include "KisSmudgeOverlayModeOptionData.h"
0014 
0015 
0016 class KisSmudgeOverlayModeOptionModel : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     KisSmudgeOverlayModeOptionModel(lager::cursor<KisSmudgeOverlayModeOptionData> optionData,
0021                                     lager::reader<bool> overlayModeAllowed);
0022     lager::cursor<KisSmudgeOverlayModeOptionData> optionData;
0023     lager::reader<bool> overlayModeAllowed;
0024 
0025     LAGER_QT_CURSOR(bool, isChecked);
0026 
0027     KisSmudgeOverlayModeOptionData bakedOptionData() const;
0028 };
0029 
0030 #endif // KISSMUDGEOVERLAYMODEOPTIONMODEL_H