File indexing completed on 2024-12-22 04:16:08
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef KIS_EXPERIMENT_OP_OPTION_MODEL_H 0007 #define KIS_EXPERIMENT_OP_OPTION_MODEL_H 0008 0009 #include <lager/cursor.hpp> 0010 #include <lager/extra/qt.hpp> 0011 0012 #include "KisExperimentOpOptionData.h" 0013 #include "KisWidgetConnectionUtils.h" 0014 0015 class KisExperimentOpOptionModel : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 KisExperimentOpOptionModel(lager::cursor<KisExperimentOpOptionData> optionData); 0020 0021 lager::cursor<KisExperimentOpOptionData> optionData; 0022 0023 LAGER_QT_CURSOR(bool, isDisplacementEnabled); 0024 LAGER_QT_CURSOR(qreal, displacement); 0025 0026 LAGER_QT_CURSOR(bool, isSpeedEnabled); 0027 LAGER_QT_CURSOR(qreal, speed); 0028 0029 LAGER_QT_CURSOR(bool, isSmoothingEnabled); 0030 LAGER_QT_CURSOR(qreal, smoothing); 0031 0032 LAGER_QT_CURSOR(bool, windingFill); 0033 LAGER_QT_CURSOR(bool, hardEdge); 0034 0035 LAGER_QT_CURSOR(int, fillType); 0036 0037 }; 0038 0039 #endif // KIS_EXPERIMENT_OP_OPTION_MODEL_H