TuttleOFX
1
|
Wraps up a choice param. More...
#include <ofxsParam.h>
Public Member Functions | |
void | setDefault (int v) |
set the default value | |
void | appendOption (const std::string &scriptName, const std::string &label="") |
append an option, default is to have not there | |
int | getNOptions (void) const |
how many options do we have | |
void | resetOptions (void) |
clear all the options so as to add some new ones in | |
Protected Member Functions | |
mDeclareProtectedAssignAndCC (ChoiceParamDescriptor) | |
ChoiceParamDescriptor (void) | |
ChoiceParamDescriptor (const std::string &name, OfxPropertySetHandle props) | |
hidden constructor | |
Friends | |
class | ParamSetDescriptor |
Wraps up a choice param.
Definition at line 586 of file ofxsParam.h.
OFX::ChoiceParamDescriptor::ChoiceParamDescriptor | ( | void | ) | [inline, protected] |
Definition at line 590 of file ofxsParam.h.
OFX::ChoiceParamDescriptor::ChoiceParamDescriptor | ( | const std::string & | name, |
OfxPropertySetHandle | props | ||
) | [protected] |
hidden constructor
Definition at line 593 of file ofxsParams.cpp.
void OFX::ChoiceParamDescriptor::appendOption | ( | const std::string & | scriptName, |
const std::string & | label = "" |
||
) |
append an option, default is to have not there
set the default value
Definition at line 612 of file ofxsParams.cpp.
References OFX::ParamDescriptor::getProps(), kOfxParamPropChoiceLabelOption, kOfxParamPropChoiceOption, OFX::PropertySet::propGetDimension(), and OFX::PropertySet::propSetString().
Referenced by tuttle::plugin::describeGeneratorParamsInContext(), tuttle::plugin::describeReaderParamsInContext(), tuttle::plugin::describeSamplerParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
int OFX::ChoiceParamDescriptor::getNOptions | ( | void | ) | const |
how many options do we have
Definition at line 604 of file ofxsParams.cpp.
References OFX::ParamDescriptor::getProps(), kOfxParamPropChoiceOption, and OFX::PropertySet::propGetDimension().
OFX::ChoiceParamDescriptor::mDeclareProtectedAssignAndCC | ( | ChoiceParamDescriptor | ) | [protected] |
void OFX::ChoiceParamDescriptor::resetOptions | ( | void | ) |
clear all the options so as to add some new ones in
set the default value
Definition at line 621 of file ofxsParams.cpp.
References OFX::ParamDescriptor::getProps(), kOfxParamPropChoiceOption, and OFX::PropertySet::propReset().
void OFX::ChoiceParamDescriptor::setDefault | ( | int | v | ) |
set the default value
Definition at line 598 of file ofxsParams.cpp.
References OFX::ParamDescriptor::getProps(), kOfxParamPropDefault, and OFX::PropertySet::propSetInt().
Referenced by tuttle::plugin::describeGeneratorParamsInContext(), tuttle::plugin::describeReaderParamsInContext(), tuttle::plugin::describeSamplerParamsInContext(), and tuttle::plugin::describeWriterParamsInContext().
friend class ParamSetDescriptor [friend] |
Reimplemented from OFX::ValueParamDescriptor.
Definition at line 597 of file ofxsParam.h.