Save GUI part for deltaE preview in Locallab settings panel
This commit is contained in:
@@ -27,6 +27,16 @@
|
||||
#include "toolpanel.h"
|
||||
#include "adjuster.h"
|
||||
|
||||
class ControlPanelListener
|
||||
{
|
||||
public:
|
||||
ControlPanelListener() {};
|
||||
virtual ~ControlPanelListener() {};
|
||||
|
||||
virtual void resetToolMaskView() = 0;
|
||||
};
|
||||
|
||||
|
||||
class ControlSpotPanel:
|
||||
public ToolParamBlock,
|
||||
public AdjusterListener,
|
||||
@@ -103,6 +113,15 @@ public:
|
||||
* @param provider The EditDataProvider to be linked to the panel to manage curves
|
||||
*/
|
||||
void setEditProvider(EditDataProvider* provider);
|
||||
/**
|
||||
* Setter for controlPanelListener
|
||||
*
|
||||
* @param cpl The ControlPanelListener to be linked to the panel
|
||||
*/
|
||||
void setControlPanelListener(ControlPanelListener* cpl)
|
||||
{
|
||||
controlPanelListener = cpl;
|
||||
}
|
||||
/**
|
||||
* Getter of the event type raised by this panel
|
||||
*
|
||||
@@ -144,6 +163,16 @@ public:
|
||||
{
|
||||
maskPrevActive = ind;
|
||||
}
|
||||
/**
|
||||
* Getter for deltaE preview active
|
||||
*
|
||||
* @return True if preview deltaE is active
|
||||
*/
|
||||
bool isDeltaEPrevActive();
|
||||
/**
|
||||
* Reset deltaE preview active state
|
||||
*/
|
||||
void resetDeltaEPreview();
|
||||
|
||||
// Control spot creation functions
|
||||
/**
|
||||
@@ -216,6 +245,8 @@ private:
|
||||
void shortcChanged();
|
||||
void savrestChanged();
|
||||
|
||||
void previewChanged();
|
||||
|
||||
void disableParamlistener(bool cond);
|
||||
|
||||
void addControlSpotCurve(Gtk::TreeModel::Row& row);
|
||||
@@ -362,7 +393,11 @@ private:
|
||||
Gtk::CheckButton* const savrest_;
|
||||
sigc::connection savrestConn_;
|
||||
|
||||
Gtk::ToggleButton* const preview_;
|
||||
sigc::connection previewConn_;
|
||||
|
||||
// Internal variables
|
||||
ControlPanelListener* controlPanelListener;
|
||||
int lastObject_;
|
||||
rtengine::Coord lastCoord_;
|
||||
bool nbSpotChanged_;
|
||||
|
Reference in New Issue
Block a user