18 #ifndef __PONGASOFT_VST_GUI_RAW_PARAMETER_H__ 19 #define __PONGASOFT_VST_GUI_RAW_PARAMETER_H__ 79 inline tresult
commit(ParamValue iValue)
144 parameter->toString(
getValue(), oString);
181 std::unique_ptr<Editor>
edit(ParamValue iValue)
183 auto editor =
edit();
184 editor->setValue(iValue);
248 tresult
setValue(ParamValue
const &iValue) {
return fPtr->setValue(iValue); }
273 std::unique_ptr<GUIRawVstParameter::Editor>
edit() {
return fPtr->edit(); }
280 std::unique_ptr<GUIRawVstParameter::Editor>
edit(ParamValue
const &iValue) {
return fPtr->edit(iValue); }
283 inline operator ParamValue()
const {
return fPtr->getValue(); }
295 std::unique_ptr<GUIRawVstParameter>
fPtr;
308 #endif //__PONGASOFT_VST_GUI_RAW_PARAMETER_H__ ~GUIRawVstParameter()=default
bool operator==(const GUIRawVstParam &rhs) const
Definition: GUIRawVstParameter.h:289
std::unique_ptr< GUIRawVstParameter::Editor > GUIRawVstParamEditor
Definition: GUIRawVstParameter.h:301
tresult setValue(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:248
Definition: GUIRawVstParameter.h:216
std::unique_ptr< GUIRawVstParameter > fPtr
Definition: GUIRawVstParameter.h:295
tresult rollback()
Definition: GUIRawVstParameter.cpp:70
bool operator!=(const GUIRawVstParam &rhs) const
Definition: GUIRawVstParameter.h:292
GUIRawVstParameter(ParamID iParamID, VstParametersSPtr iVstParameters)
Definition: GUIRawVstParameter.cpp:85
String toString()
Definition: GUIRawVstParameter.h:150
ParamID fParamID
Definition: GUIRawVstParameter.h:101
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIRawVstParameter.h:199
void toString(String128 oString)
Definition: GUIRawVstParameter.h:140
GUIRawVstParam()
Definition: GUIRawVstParameter.h:219
tresult setValue(ParamValue iValue)
Definition: GUIRawVstParameter.cpp:41
tresult commit()
Definition: GUIRawVstParameter.cpp:56
tresult setValue(ParamValue iValue)
Definition: GUIRawVstParameter.h:161
tresult copyValueFrom(GUIRawVstParam const &iParam)
Definition: GUIRawVstParameter.h:253
int32 getStepCount() const
Definition: GUIRawVstParameter.h:258
Editor & operator=(Editor const &)=delete
void toString(String128 oString)
Definition: GUIRawVstParameter.h:263
bool fIsEditing
Definition: GUIRawVstParameter.h:105
VstParametersSPtr fVstParameters
Definition: GUIRawVstParameter.h:102
std::unique_ptr< GUIRawVstParameter::Editor > edit(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:280
VstParametersSPtr fVstParameters
Definition: GUIRawVstParameter.h:206
~Editor()
Definition: GUIRawVstParameter.h:94
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIRawVstParameter.h:191
std::function< void()> ChangeCallback
Definition: Parameters.h:57
GUIRawVstParam(GUIRawVstParam &&iPtr) noexcept
Definition: GUIRawVstParameter.h:228
GUIRawVstParam & operator=(GUIRawVstParam &&iPtr) noexcept
Definition: GUIRawVstParameter.h:231
Editor(ParamID iParamID, VstParametersSPtr iVstParameters)
Definition: GUIRawVstParameter.cpp:28
std::unique_ptr< Editor > edit(ParamValue iValue)
Definition: GUIRawVstParameter.h:181
std::unique_ptr< Editor > edit()
Definition: GUIRawVstParameter.h:171
bool exists() const
Definition: GUIRawVstParameter.h:234
ParamValue getValue() const
Definition: GUIRawVstParameter.h:242
ParamValue fInitialParamValue
Definition: GUIRawVstParameter.h:104
ParamID fParamID
Definition: GUIRawVstParameter.h:205
ParamValue getValue() const
Definition: GUIRawVstParameter.h:127
String toString()
Definition: GUIRawVstParameter.h:268
tresult commit(ParamValue iValue)
Definition: GUIRawVstParameter.h:79
ParamID getParamID() const
Definition: GUIRawVstParameter.h:237
int32 getStepCount() const
Definition: GUIRawVstParameter.h:135
std::shared_ptr< VstParameters > VstParametersSPtr
Definition: VstParameters.h:95
GUIRawVstParam(std::unique_ptr< GUIRawVstParameter > &&iPtr)
Definition: GUIRawVstParameter.h:222
Definition: GUIRawVstParameter.h:54
Definition: GUIRawVstParameter.h:38
ParamID getParamID() const
Definition: GUIRawVstParameter.h:119
Definition: Parameters.h:45
std::unique_ptr< GUIRawVstParameter::Editor > edit()
Definition: GUIRawVstParameter.h:273
void operator=(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:286