71 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
184 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
Represents an optional parameter (Jmb, Vst or no param at all).
Definition GUIOptionalParam.h:50
virtual void registerParameters()
Subclasses should override this method to register each parameter.
Definition ParamAware.h:498
GUIOptionalParam< T > registerOptionalParam(ParamID iParamID, bool iSubscribeToChanges=true)
Registers an optional parameter which handles Vst, Jmb or no parameter at all.
Definition ParamAware.hpp:31
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition CustomControlView.h:71
Base class for custom views which are tied to one parameter only (similar to CControl).
Definition CustomControlView.h:43
virtual void setControlTag(ParamID iTag)
Definition CustomControlView.h:48
ParamID getControlTag() const
Id of the parameter that this view manages.
Definition CustomControlView.h:59
ParamID fControlTag
Definition CustomControlView.h:65
CustomControlView(const CRect &iSize)
Definition CustomControlView.h:45
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition CustomControlView.h:184
Specialization of TCustomControlView for discrete values.
Definition CustomControlView.h:154
void setStepCount(int32 iStepCount)
Definition CustomControlView.h:169
void registerParameters() override
Registers the optional parameter using getControlTag() as its id.
Definition CustomControlView.cpp:27
int32 getStepCount() const
The number of steps of the managed discrete parameter as specified by this view.
Definition CustomControlView.h:166
CustomDiscreteControlView(const CRect &iSize)
Definition CustomControlView.h:157
int32 fStepCount
Definition CustomControlView.h:178
Inherit from this class to provide the factory for a custom view.
Definition CustomViewCreator.h:1316
CustomViewCreator(char const *iViewName=nullptr, char const *iDisplayName=nullptr, char const *iBaseViewName=VSTGUI::UIViewCreator::kCView)
Definition CustomViewCreator.h:1318
Class you should inherit from if you want to write a custom view.
Definition CustomView.h:62
CustomView(const CRect &iSize)
Definition CustomView.cpp:30
Base class which extends CustomControlView to provide the type (T) of the underlying parameter this v...
Definition CustomControlView.h:90
void registerParameters() override
ParamValue getControlValue() const
TCustomControlView(const CRect &iSize)
Definition CustomControlView.h:93
GUIOptionalParam< ParamValue > fControlParameter
Definition CustomControlView.h:112
virtual void setControlValue(ParamValue const &iControlValue)
CustomViewCreator< TCustomControlView< T >, CustomControlView > Creator
Definition CustomControlView.h:115
void registerIntegerAttribute(std::string const &iName, typename IntegerAttribute< TInt >::Getter iGetter, typename IntegerAttribute< TInt >::Setter iSetter)
Definition CustomViewCreator.h:1060
void registerTagAttribute(std::string const &iName, typename TagAttribute::Getter iGetter, typename TagAttribute::Setter iSetter)
Definition CustomViewCreator.h:1049
Definition CustomController.h:25
TCustomControlView< ParamValue > RawCustomControlView
Specialization for raw parameter (ParamValue / no conversion).
Definition CustomControlView.h:124
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:48