Merge branch 'dev' into spot-removal-tool
This commit is contained in:
@@ -33,13 +33,15 @@ public:
|
||||
virtual ~FilmNegProvider() = default;
|
||||
|
||||
virtual bool getFilmNegativeExponents(rtengine::Coord spotA, rtengine::Coord spotB, std::array<float, 3>& newExps) = 0;
|
||||
virtual bool getRawSpotValues(rtengine::Coord spot, int spotSize, std::array<float, 3>& rawValues) = 0;
|
||||
};
|
||||
|
||||
class FilmNegative final :
|
||||
public ToolParamBlock,
|
||||
public AdjusterListener,
|
||||
public FoldableToolPanel,
|
||||
public EditSubscriber
|
||||
public EditSubscriber,
|
||||
public rtengine::FilmNegListener
|
||||
{
|
||||
public:
|
||||
FilmNegative();
|
||||
@@ -53,6 +55,8 @@ public:
|
||||
void adjusterChanged(Adjuster* a, double newval) override;
|
||||
void enabledChanged() override;
|
||||
|
||||
void filmBaseValuesChanged(std::array<float, 3> rgb) override;
|
||||
|
||||
void setFilmNegProvider(FilmNegProvider* provider);
|
||||
|
||||
void setEditProvider(EditDataProvider* provider) override;
|
||||
@@ -66,12 +70,16 @@ public:
|
||||
|
||||
private:
|
||||
void editToggled();
|
||||
void baseSpotToggled();
|
||||
|
||||
const rtengine::ProcEvent evFilmNegativeExponents;
|
||||
const rtengine::ProcEvent evFilmNegativeEnabled;
|
||||
const rtengine::ProcEvent evFilmBaseValues;
|
||||
|
||||
std::vector<rtengine::Coord> refSpotCoords;
|
||||
|
||||
std::array<float, 3> filmBaseValues;
|
||||
|
||||
FilmNegProvider* fnp;
|
||||
|
||||
Adjuster* const greenExp;
|
||||
@@ -80,5 +88,9 @@ private:
|
||||
|
||||
Gtk::Grid* const spotgrid;
|
||||
Gtk::ToggleButton* const spotbutton;
|
||||
sigc::connection spotConn;
|
||||
|
||||
Gtk::Label* const filmBaseLabel;
|
||||
Gtk::Label* const filmBaseValuesLabel;
|
||||
Gtk::ToggleButton* const filmBaseSpotButton;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user