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

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISSENSORWITHLENGTHMODEL_H
0007 #define KISSENSORWITHLENGTHMODEL_H
0008 
0009 #include "kritapaintop_export.h"
0010 
0011 #include <KisCurveOptionData.h>
0012 #include <lager/cursor.hpp>
0013 #include <lager/extra/qt.hpp>
0014 
0015 
0016 class PAINTOP_EXPORT KisSensorWithLengthModel : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     KisSensorWithLengthModel(lager::cursor<KisSensorWithLengthData> data, QObject *parent);
0021 
0022 
0023     // the state must be declared **before** any cursors or readers
0024     lager::cursor<KisSensorWithLengthData> m_data;
0025     LAGER_QT_CURSOR(int, length);
0026     LAGER_QT_CURSOR(bool, isPeriodic);
0027 };
0028 
0029 
0030 #endif // KISSENSORWITHLENGTHMODEL_H