Merge pull request #5776 from Pandagrapher/newlocallab2
Some more GUI improvements for Locallab
This commit is contained in:
commit
c803a83886
@ -662,7 +662,7 @@ int refreshmap[rtengine::NUMOFEVENTS] = {
|
||||
LUMINANCECURVE, // EvLocallabsensihs
|
||||
LUMINANCECURVE, // Evlocallabradmaskcol
|
||||
LUMINANCECURVE, // Evlocallabradmaskexp
|
||||
M_VOID, // EvlocallabToolAdded
|
||||
LUMINANCECURVE, // EvlocallabToolAdded
|
||||
LUMINANCECURVE, // EvlocallabCCmaskSHshape
|
||||
LUMINANCECURVE, // EvlocallabLLmaskSHshape
|
||||
LUMINANCECURVE, // EvlocallabHHmaskSHshape
|
||||
|
@ -355,10 +355,8 @@ ControlSpotPanel::ControlSpotPanel():
|
||||
artifBox->pack_start(*iter_);
|
||||
artifBox->pack_start(*balan_);
|
||||
artifBox->pack_start(*balanh_);
|
||||
Gtk::HBox* const prevBox = Gtk::manage(new Gtk::HBox());
|
||||
prevBox->pack_start(*colorde_);
|
||||
prevBox->pack_start(*preview_, Gtk::PACK_SHRINK, 4);
|
||||
artifBox->pack_start(*prevBox);
|
||||
artifBox->pack_start(*colorde_);
|
||||
artifBox->pack_start(*preview_);
|
||||
artifBox->pack_start(*colorscope_);
|
||||
artifFrame->add(*artifBox);
|
||||
pack_start(*artifFrame);
|
||||
|
@ -198,7 +198,7 @@ public:
|
||||
* @param defParams ProcParams containing default values to set to the adjusters
|
||||
* @param pedited ParamsEdited containing default state values to set to the adjusters (not used because batch mode is deactivated for Locallab)
|
||||
*/
|
||||
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
|
||||
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) override;
|
||||
/**
|
||||
* Enable or disable the interactions with panel widgets
|
||||
*
|
||||
|
@ -186,6 +186,11 @@ void LocallabTool::addLocallabTool(bool raiseEvent)
|
||||
|
||||
// Raise event if required
|
||||
if (raiseEvent) { // Note: Event is only raised when a tool is added by user
|
||||
// By default, activate newly added tool
|
||||
enaExpConn.block(true);
|
||||
exp->setEnabled(true);
|
||||
enaExpConn.block(false);
|
||||
|
||||
if (needMode) {
|
||||
// Set complexity mode according to chosen default one
|
||||
complexityConn.block(true);
|
||||
|
@ -140,11 +140,11 @@ public:
|
||||
virtual void setDefaultExpanderVisibility() {};
|
||||
virtual void disableListener();
|
||||
virtual void enableListener();
|
||||
virtual void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) {};
|
||||
virtual void write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr) {};
|
||||
virtual void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) {};
|
||||
virtual void adjusterChanged(Adjuster* a, double newval) {};
|
||||
virtual void curveChanged(CurveEditor* ce) {};
|
||||
void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override {};
|
||||
void write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr) override {};
|
||||
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) override {};
|
||||
void adjusterChanged(Adjuster* a, double newval) override {};
|
||||
void curveChanged(CurveEditor* ce) override {};
|
||||
|
||||
protected:
|
||||
// To be implemented
|
||||
@ -1173,17 +1173,17 @@ public:
|
||||
LocallabLog();
|
||||
void updateAdviceTooltips(const bool showTooltips) override;
|
||||
|
||||
void disableListener();
|
||||
void enableListener();
|
||||
void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
|
||||
void write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
|
||||
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
|
||||
void adjusterChanged(Adjuster* a, double newval);
|
||||
void disableListener() override;
|
||||
void enableListener() override;
|
||||
void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;
|
||||
void write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr) override;
|
||||
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) override;
|
||||
void adjusterChanged(Adjuster* a, double newval) override;
|
||||
|
||||
void updateAutocompute(const float blackev, const float whiteev, const float sourceg, const float targetg);
|
||||
|
||||
private:
|
||||
void enabledChanged();
|
||||
void enabledChanged() override;
|
||||
|
||||
void autocomputeToggled();
|
||||
void fullimageChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user