File indexing completed on 2025-01-26 04:11:25

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISCOLORSOURCEOPTIONWIDGET_H
0007 #define KISCOLORSOURCEOPTIONWIDGET_H
0008 
0009 #include <kis_paintop_option.h>
0010 #include <KisColorSourceOptionData.h>
0011 #include <lager/cursor.hpp>
0012 
0013 class PAINTOP_EXPORT KisColorSourceOptionWidget : public KisPaintOpOption
0014 {
0015 public:
0016     using data_type = KisColorSourceOptionData;
0017 
0018     KisColorSourceOptionWidget(lager::cursor<KisColorSourceOptionData> optionData);
0019     ~KisColorSourceOptionWidget();
0020 
0021     void writeOptionSetting(KisPropertiesConfigurationSP setting) const override;
0022     void readOptionSetting(const KisPropertiesConfigurationSP setting) override;
0023 
0024 private:
0025     struct Private;
0026     const QScopedPointer<Private> m_d;
0027 };
0028 
0029 #endif // KISCOLORSOURCEOPTIONWIDGET_H