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

0001 /*
0002  *  SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KIS_PARTICLEOP_OPTION_WIDGET_H
0007 #define KIS_PARTICLEOP_OPTION_WIDGET_H
0008 
0009 #include <kis_paintop_option.h>
0010 #include <KisParticleOpOptionData.h>
0011 #include <lager/cursor.hpp>
0012 
0013 struct KisParticleOpOptionData;
0014 
0015 class KisParticleOpOptionWidget : public KisPaintOpOption
0016 {
0017 public:
0018     using data_type = KisParticleOpOptionData;
0019 
0020     KisParticleOpOptionWidget(lager::cursor<KisParticleOpOptionData> optionData);
0021     ~KisParticleOpOptionWidget();
0022 
0023     void writeOptionSetting(KisPropertiesConfigurationSP setting) const override;
0024     void readOptionSetting(const KisPropertiesConfigurationSP setting) override;
0025 
0026 private:
0027     struct Private;
0028     const QScopedPointer<Private> m_d;
0029 };
0030 
0031 #endif // KIS_PARTICLEOP_OPTION_WIDGET_H