GUI cleanup for White Balance tool (see issue 2010)

This commit is contained in:
natureh 510
2013-11-26 21:12:01 +01:00
parent 34b738e2a2
commit 5d2bb1724b
96 changed files with 2236 additions and 3586 deletions

View File

@@ -59,12 +59,19 @@ class ToolPanel {
virtual void trimValues (rtengine::procparams::ProcParams* pp) { return; }
virtual void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited=NULL) {}
virtual void autoOpenCurve () {}
void disableListener () { if (tmp==NULL) tmp = listener; listener = NULL; }
/** @brief Disable the event broadcasting mechanism
*
* @return Return the previous state of the broadcast (true: enabled ; false: disabled)
*/
bool disableListener () { if (tmp==NULL) tmp = listener; bool prevState = listener!=NULL; listener = NULL; return prevState; }
/** @brief Enable the event broadcasting mechanism
*/
void enableListener () { if (tmp!=NULL) listener = tmp; tmp = NULL; }
virtual void setBatchMode (bool batchMode) { this->batchMode = batchMode; }
};
class FoldableToolPanel : public ToolPanel {