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 #include "KisHatchingOptionsModel.h"
0008 
0009 #include <KisLager.h>
0010 
0011 using namespace KisWidgetConnectionUtils;
0012 
0013 KisHatchingOptionsModel::KisHatchingOptionsModel(lager::cursor<KisHatchingOptionsData> _optionData)
0014     : optionData(_optionData)
0015     , LAGER_QT(angle) {_optionData[&KisHatchingOptionsData::angle]}
0016     , LAGER_QT(separation) {_optionData[&KisHatchingOptionsData::separation]}
0017     , LAGER_QT(thickness) {_optionData[&KisHatchingOptionsData::thickness]}
0018     , LAGER_QT(originX) {_optionData[&KisHatchingOptionsData::originX]}
0019     , LAGER_QT(originY) {_optionData[&KisHatchingOptionsData::originY]}
0020     , LAGER_QT(crosshatchingStyle) {_optionData[&KisHatchingOptionsData::crosshatchingStyle].zoom(kislager::lenses::do_static_cast<CrosshatchingType, int>)}
0021     , LAGER_QT(separationIntervals) {_optionData[&KisHatchingOptionsData::separationIntervals]}
0022 {
0023 }