|
| tresult | commit () override |
| | Commits all the changes applied to the parameter.
|
| virtual tresult | commit (ParamType const &iValue) |
| | Shortcut method which calls setValue(ParamType const &) followed by commit().
|
| | Editor (Editor const &)=delete |
| | Editor (ParamID iParamID, VstParametersSPtr iVstParameters) |
| Editor & | operator= (Editor const &)=delete |
| tresult | rollback () override |
| | Call this if you want to revert to the original value of the parameter (when the editor is created).
|
| tresult | setValue (ParamValue const &iValue) override |
| | Change the value of the parameter.
|
| bool | updateValue (ParamValue const &iValue) override |
| | Change the value of the parameter.
|
| | ~Editor () override |
| | Technically the destructor must only call rollback(), but due to the fact that it is a virtual method, it needs to be implemented by each subclass...
|
| virtual tresult | commit ()=0 |
| | Importing other commit method from superclass.
|
| virtual tresult | commit (ParamType const &iValue) |
| | Shortcut method which calls setValue(ParamType const &) followed by commit().
|
| virtual tresult | setValue (ParamType const &iValue)=0 |
| | Unconditionally sets the value of the parameter to the value provided.
|
| virtual bool | updateValue (ParamType const &iValue)=0 |
| | First check if the value provided (iValue) is different from the current value and if that is the case then updates it to the new value.
|
Wrapper to edit a single parameter.
Usage:
// from a CView::onMouseDown callback fMyParamEditor = fParameter.edit(myParamID); fParamEditor->setValue(myValue);
// from a CView::onMouseMoved callback fParamEditor->setValue(myValue);
// from a CView::onMouseUp/onMouseCancelled callback fMyParamEditor->commit();