Skip to content

Commit

Permalink
Move KisLightnessStrengthOptionData back into the standard data objects
Browse files Browse the repository at this point in the history
Originally I though it would need some baking functionality so put
it into a separate file. Now this baking is implemented at the level
of KisCurveOptionWidget, so the file is not needed anymore.
  • Loading branch information
dimula73 committed Nov 22, 2022
1 parent abc879b commit 3c5cee1
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 35 deletions.
1 change: 0 additions & 1 deletion plugins/paintops/libpaintop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ set(kritalibpaintop_LIB_SRCS
KisColorSourceOptionData.cpp
KisColorSourceOptionModel.cpp
KisColorSourceOptionWidget.cpp
KisLightnessStrengthOptionData.cpp
KisLightnessStrengthOptionWidget.cpp
KisTextureOptionData.cpp
KisEmbeddedTextureData.cpp
Expand Down
13 changes: 0 additions & 13 deletions plugins/paintops/libpaintop/KisLightnessStrengthOptionData.cpp

This file was deleted.

19 changes: 0 additions & 19 deletions plugins/paintops/libpaintop/KisLightnessStrengthOptionData.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <QLabel>
#include <QVBoxLayout>
#include <KisZug.h>
#include <KisStandardOptionData.h>


struct KisLightnessStrengthOptionWidget::Private
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#define KISLIGHTNESSSTRENGTHOPTIONWIDGET_H

#include <KisCurveOptionWidget2.h>
#include <KisLightnessStrengthOptionData.h>

class KisLightnessStrengthOptionData;


class PAINTOP_EXPORT KisLightnessStrengthOptionWidget : public KisCurveOptionWidget2
{
Expand Down
12 changes: 12 additions & 0 deletions plugins/paintops/libpaintop/KisStandardOptionData.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ class KisStrengthOptionData : public KisCurveOptionData
{}
};

class KisLightnessStrengthOptionData : public KisCurveOptionData
{
public:
KisLightnessStrengthOptionData(const QString &prefix = QString())
: KisCurveOptionData(
KoID("LightnessStrength", i18n("Lightness Strength")))
{
this->prefix = prefix;
}
};


class KisCurveOptionWidget2;

namespace KisPaintOpOptionUtils {
Expand Down
1 change: 0 additions & 1 deletion plugins/paintops/libpaintop/KisStandardOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include <KisStandardOptionData.h>
#include <KisSizeOptionData.h>
#include <KisLightnessStrengthOptionData.h>

template <typename Data>
class KisStandardOption : public KisCurveOption2
Expand Down

0 comments on commit 3c5cee1

Please sign in to comment.