The size of the negative picker rectangles can be changed.

This commit is contained in:
Dániel Battyányi
2023-07-17 20:53:37 +02:00
parent edcc52d256
commit d700364858
2 changed files with 75 additions and 34 deletions

View File

@@ -43,6 +43,12 @@ public:
virtual bool getFilmNegativeSpot(rtengine::Coord spot, int spotSize, RGB &refInput, RGB &refOutput) = 0;
};
// class FilmNegSpotListener
// {
// public:
// virtual ~FilmNegSpotListener() = default;
// virtual void spotNegRequested(int size) = 0;
// };
class FilmNegative final :
public ToolParamBlock,
@@ -79,6 +85,10 @@ public:
bool button1Released() override;
bool button3Pressed(int modifierKey) override;
void switchOffEditMode() override;
// void setFilmNegSpotListener(FilmNegSpotListener* listener)
// {
// spotlistener = listener;
// }
private:
void editToggled();
@@ -87,6 +97,9 @@ private:
void readOutputSliders(RGB &refOutput);
void writeOutputSliders(const RGB &refOutput);
void spotSizeChanged();
void refSpotChanged();
// ColorTemp value corresponding to neutral RGB multipliers (1,1,1). Should be around 6500K.
const rtengine::ColorTemp NEUTRAL_TEMP;
@@ -96,6 +109,8 @@ private:
const rtengine::ProcEvent evFilmNegativeBalance;
const rtengine::ProcEvent evFilmNegativeColorSpace;
// FilmNegSpotListener* spotlistener;
std::vector<rtengine::Coord> refSpotCoords;
RGB refInputValues;
@@ -120,12 +135,18 @@ private:
Adjuster* const redRatio;
Adjuster* const blueRatio;
#define DEFAULT_SPOT_WIDTH 8
Gtk::ToggleButton* const spotButton;
int spotWidth;
MyComboBoxText* const spotSize;
Gtk::Label* const refInputLabel;
Gtk::ToggleButton* const refSpotButton;
int refSpotWidth;
MyComboBoxText* const refSpotSize;
int* displayRectWidth;
Adjuster* const outputLevel;
Adjuster* const greenBalance;