Merge of Locallab tools with actual GUI

Improvements:
- Simplification of default values setting/management

Limitations:
- Possibility to add/remove Locallab tool isn't working
- Even if not fully deactivated, batch mode isn't working anymore for
Locallab
- Mask preview isn't working anymore
This commit is contained in:
Pandagrapher
2019-08-18 22:20:52 +02:00
parent e4701101c9
commit 53eeffbebf
8 changed files with 560 additions and 7014 deletions

View File

@@ -95,6 +95,17 @@ public:
return exp;
}
// Getter/setter for Locallab tool expanded status
void setExpanded(bool expanded)
{
exp->set_expanded(expanded);
}
bool getExpanded()
{
return exp->get_expanded();
}
// Setter for Locallab activation indicator
void isLocallabActivated(bool cond)
{
@@ -149,6 +160,9 @@ private:
// Remove button event function
bool on_remove_change(GdkEventButton* event);
// Tool expander event function
void foldThemAll(GdkEventButton* event);
// To be implemented
virtual void enabledChanged() {};
};
@@ -376,6 +390,8 @@ public:
void setDefaults(const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
void adjusterChanged(Adjuster* a, double newval);
void resetMaskView();
private:
void enabledChanged();