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

0001 /*
0002  *  SPDX-FileCopyrightText: 2008 Lukas Tvrdy <lukast.dev@gmail.com>
0003  *  SPDX-FileCopyrightText: 2010 José Luis Vergara <pentalis@gmail.com>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 #ifndef KIS_HATCHING_OPTIONS_MODEL_H
0008 #define KIS_HATCHING_OPTIONS_MODEL_H
0009 
0010 #include <lager/cursor.hpp>
0011 #include <lager/extra/qt.hpp>
0012 
0013 #include "KisHatchingOptionsData.h"
0014 #include "KisWidgetConnectionUtils.h"
0015 
0016 class KisHatchingOptionsModel : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     KisHatchingOptionsModel(lager::cursor<KisHatchingOptionsData> optionData);
0021 
0022     lager::cursor<KisHatchingOptionsData> optionData;
0023 
0024     LAGER_QT_CURSOR(qreal, angle);
0025     LAGER_QT_CURSOR(qreal, separation);
0026     LAGER_QT_CURSOR(qreal, thickness);
0027     LAGER_QT_CURSOR(qreal, originX);
0028     LAGER_QT_CURSOR(qreal, originY);
0029     LAGER_QT_CURSOR(int, crosshatchingStyle);
0030     LAGER_QT_CURSOR(int, separationIntervals);
0031 };
0032 
0033 #endif // KIS_HATCHING_OPTIONS_MODEL_H