class Core::Portable::AliasParam
Alias to other parameter.
#include <coreparams.h> class AliasParam: public Core::Portable::Parameter, public Core::Portable::IParamObserver { public: // fields static const TypeID kTypeID = 'APar'; // construction AliasParam(const ParamInfo& info, bool ownsInfo = false); // methods virtual void* castTo(TypeID typeId); void setOriginal(Parameter* p); virtual Parameter* getOriginal(); virtual void beginEdit(); virtual void endEdit(); virtual bool isEditing() const; virtual void performEdit(); virtual bool isEnabled() const; virtual void enable(bool state); virtual int getVisualState() const; virtual void setVisualState(int state); virtual bool isBipolar() const; virtual bool isNumeric() const; virtual ParamValue getMin() const; virtual ParamValue getMax() const; virtual ParamValue getDefault() const; virtual ParamValue getValue() const; virtual int getPrecision() const; virtual void setMin(ParamValue min); virtual void setMax(ParamValue max); virtual void setDefault(ParamValue value); virtual void setValue(ParamValue value, bool edit = false); virtual void resetValue(bool edit = false); virtual ParamValue getNormalized() const; virtual void setNormalized(ParamValue v, bool edit = false); virtual void increment(int steps = 1); virtual void decrement(int steps = 1); virtual void toString(char* string, int size) const; virtual void fromString(CStringPtr string, bool edit = false); static AliasParam* cast(Parameter* p); };
Inherited Members
public: // typedefs typedef int32 TypeID; // enums enum MsgType; // fields static const TypeID kTypeID = 'Para'; static const TypeID kTypeID = 'IPaO'; // methods virtual void* castTo(TypeID typeId) = 0; virtual void* castTo(TypeID typeId); virtual void* castTo(TypeID typeId); void setFormatter(const Formatter* formatter); const Formatter* getFormatter() const; ParamType getType() const; int getTag() const; CStringPtr getName() const; CStringPtr getTitle(bool shortVersion = false) const; bool isOwnInfo() const; bool isPublic() const; void setPublic(bool state = true); bool isStorable() const; void setStorable(bool state = true); bool isLinkable() const; void setLinkable(bool state = true); bool isMutable() const; bool isReadOnly() const; bool isUserFlag1() const; bool isUserFlag2() const; virtual Parameter* getOriginal(); void setController(IParamObserver* controller); IParamObserver* getController() const; void setFeedbackNeeded(bool state); virtual void beginEdit(); virtual void endEdit(); virtual bool isEditing() const; virtual void performEdit(); void addObserver(IParamObserver* observer); void removeObserver(IParamObserver* observer); void changed(); void rangeChanged(); virtual bool isEnabled() const; virtual void enable(bool state); virtual int getVisualState() const; virtual void setVisualState(int state); virtual bool isBipolar() const; virtual bool isNumeric() const = 0; virtual ParamValue getMin() const = 0; virtual ParamValue getMax() const = 0; virtual ParamValue getDefault() const = 0; virtual ParamValue getValue() const = 0; virtual int getPrecision() const = 0; virtual void setMin(ParamValue min) = 0; virtual void setMax(ParamValue max) = 0; virtual void setDefault(ParamValue value) = 0; virtual void setValue(ParamValue value, bool edit = false) = 0; virtual void resetValue(bool edit = false) = 0; virtual ParamValue getNormalized() const = 0; virtual void setNormalized(ParamValue v, bool edit = false) = 0; virtual void increment(int steps = 1) = 0; virtual void decrement(int steps = 1) = 0; int getIntMin() const; int getIntMax() const; int getIntDefault() const; void setIntMin(int min); void setIntMax(int max); void setIntDefault(int value); void setIntValue(int value, bool edit = false); int getIntValue() const; void setBoolValue(bool value, bool edit = false); bool getBoolValue() const; virtual void toString(char* string, int size) const = 0; virtual void fromString(CStringPtr string, bool edit = false) = 0; uint32 getHashCode() const; static INLINE uint32 hashName(CStringPtr name); virtual void paramChanged(Parameter* p, int msg) = 0;