Default implementation of the editor interface.
More...
#include <IGUIParameter.h>
Inherits ITGUIParameter< T >::ITEditor.
template<typename T>
class pongasoft::VST::GUI::Params::DefaultEditorImpl< T >
Default implementation of the editor interface.
Simply delegates the calls to the parameter while maintaining an initial value (for rollback()
) and state (already completed).
- Private API
- This is part of the internal/private API of Jamba and should not be used directly.
◆ DefaultEditorImpl()
◆ ~DefaultEditorImpl()
◆ commit()
◆ rollback()
Rollback all the changes that were made to this parameter (since this editor was created).
- Note
- If
commit()
or rollback()
has already been called this method does nothing.
Implements IGUIParameter::Editor.
◆ setValue()
tresult setValue |
( |
T const & |
iValue | ) |
|
|
inlineoverridevirtual |
Unconditionally sets the value of the parameter to the value provided.
- Parameters
-
- Returns
kResultOk
if successful
Implements ITGUIParameter< T >::ITEditor.
◆ updateValue()
bool updateValue |
( |
T const & |
iValue | ) |
|
|
inlineoverridevirtual |
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.
- Note
- If the type
T
does not provide a way to compare the value, then this call will delegate to setValue(ParamType const &)
and return true
.
- Parameters
-
iValue | the value to update |
- Returns
true
if the value was updated
Implements ITGUIParameter< T >::ITEditor.
◆ fDoneEditing
bool fDoneEditing {false} |
|
private |
◆ fGUIParameter
◆ fInitialValue
The documentation for this class was generated from the following file: