added a more flexible way of managing ProcEvents
modifying the global ProcEvent enum and refreshmap array is not needed anymore. You can now register new events dynamically, using a ProcEventMapper instance. See rtgui/localcontrast.cc for an example. Hopefully this solves the problem of recurring merge conflicts when different devs add different proc events
This commit is contained in:
@@ -25,12 +25,18 @@
|
||||
|
||||
class LocalContrast: public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
|
||||
{
|
||||
protected:
|
||||
private:
|
||||
Adjuster *radius;
|
||||
Adjuster *amount;
|
||||
Adjuster *darkness;
|
||||
Adjuster *lightness;
|
||||
|
||||
rtengine::ProcEvent EvLocalContrastEnabled;
|
||||
rtengine::ProcEvent EvLocalContrastRadius;
|
||||
rtengine::ProcEvent EvLocalContrastAmount;
|
||||
rtengine::ProcEvent EvLocalContrastDarkness;
|
||||
rtengine::ProcEvent EvLocalContrastLightness;
|
||||
|
||||
public:
|
||||
|
||||
LocalContrast();
|
||||
|
Reference in New Issue
Block a user