70 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
183 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
197 return fControlParameter.getValue();
206 fControlParameter.update(iControlValue);
216 fControlParameter = registerOptionalParam<T>(getControlTag());
virtual void setControlValue(T const &iControlValue)
Sets the value of the managed parameter to the provided value.
Definition: CustomControlView.h:204
Definition: CustomControlView.h:67
Inherit from this class to provide the factory for a custom view.
Definition: CustomViewCreator.h:1314
GUIOptionalParam< T > fControlParameter
Definition: CustomControlView.h:111
ParamID getControlTag() const
Id of the parameter that this view manages.
Definition: CustomControlView.h:58
ParamID fControlTag
Definition: CustomControlView.h:64
Base class which extends CustomControlView to provide the type (T) of the underlying parameter this v...
Definition: CustomControlView.h:88
Class you should inherit from if you want to write a custom view.
Definition: CustomView.h:60
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: CustomControlView.h:183
void registerTagAttribute(std::string const &iName, typename TagAttribute::Getter iGetter, typename TagAttribute::Setter iSetter)
Registers a tag attribute with the given name and getter/setter.
Definition: CustomViewCreator.h:1048
virtual void registerParameters()
Subclasses should override this method to register each parameter.
Definition: ParamAware.h:497
virtual void setControlTag(ParamID iTag)
Definition: CustomControlView.h:47
Definition: CustomControlView.h:180
void registerParameters() override
Registers the optional parameter using getControlTag() as its id.
Definition: CustomControlView.cpp:26
T getControlValue() const
Returns the value of the managed parameter (properly typed)
Definition: CustomControlView.h:195
CustomDiscreteControlView(const CRect &iSize)
Definition: CustomControlView.h:156
void registerParameters() override
Registers the optional parameter using getControlTag() as its id.
Definition: CustomControlView.h:213
CustomControlView(const CRect &iSize)
Definition: CustomControlView.h:44
Definition: CustomController.h:24
TCustomControlView(const CRect &iSize)
Definition: CustomControlView.h:92
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: CustomControlView.h:70
Specialization of TCustomControlView for discrete values.
Definition: CustomControlView.h:152
int32 fStepCount
Definition: CustomControlView.h:177
Base class for custom views which are tied to one parameter only (similar to CControl).
Definition: CustomControlView.h:41
constexpr ParamID UNDEFINED_PARAM_ID
Constant used throughout the code to test whether the ParamID represents a valid id or an undefined o...
Definition: Types.h:47
void setStepCount(int32 iStepCount)
Definition: CustomControlView.h:168
int32 getStepCount() const
The number of steps of the managed discrete parameter as specified by this view.
Definition: CustomControlView.h:165
Represents an optional parameter (Jmb, Vst or no param at all).
Definition: GUIOptionalParam.h:48