X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fparamdesc.h;h=2e0f0ad86f81db29788dc2fd4ac302bea1345bd5;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=ffee1637315fdc830f5c3636ba38593a77edfa5f;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/paramdesc.h b/synfig-core/trunk/src/synfig/paramdesc.h index ffee163..2e0f0ad 100644 --- a/synfig-core/trunk/src/synfig/paramdesc.h +++ b/synfig-core/trunk/src/synfig/paramdesc.h @@ -2,7 +2,7 @@ /*! \file paramdesc.h ** \brief ParamDesc Class Implementation ** -** $Id: paramdesc.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -41,7 +41,7 @@ namespace synfig { class ValueBase; - + /*! \class ParamDesc ** \brief Parameter Description Class ** \todo writeme @@ -63,7 +63,7 @@ public: { } }; - + /* -- ** -- D A T A ------------------------------------------------------------- */ @@ -85,7 +85,7 @@ private: bool animation_only_; std::list enum_list_; - + /* -- ** -- C O N S T R U C T O R S --------------------------------------------- */ @@ -116,7 +116,7 @@ public: //! \writeme const std::list &get_enum_list()const { return enum_list_; } - + //! Sets the localized name of the parameter. ParamDesc &set_local_name(const String &n) { local_name_=n; return *this; } @@ -141,14 +141,14 @@ public: //! Returns the flag regarding duck visibility bool get_invisible_duck() { return invisible_duck_; } - + //! \writeme ParamDesc &set_animation_only(bool x=true) { animation_only_=x; return *this; } //! \writeme bool get_animation_only() { return animation_only_; } - + //! Sets which parameter is to be used as the origin when the user edits visually. ParamDesc &set_origin(const String &h) { origin_=h; return *this; } @@ -156,7 +156,6 @@ public: /*! This value determines how the value is to be presented ** to the user when editing visually. */ ParamDesc &set_scalar(const Real &n) { scalar_=n; return *this; } - ParamDesc &set_scalar(const String &h) { hint_=h; return *this; } //! Marks the parameter as not necessary for saving or copying ParamDesc ¬_critical() { critical_=false; return *this; } @@ -186,7 +185,7 @@ public: //! Returns the localized description of the parameter const String &get_description()const { return desc_; } - //! Returns the paramater's group + //! Returns the parameter's group const String &get_group()const { return group_; } //! Returns a "hint" about the parameter, regarding how it is to be displayed to the user @@ -210,8 +209,8 @@ public: //! Returns \c true if the layer is hidden, \c false otherwise. bool get_hidden()const { return hidden_; } - - + + ParamDesc& set_is_distance(bool x=true) { is_distance_=x; return *this;} bool get_is_distance()const { return is_distance_; } }; // END of class ParamDesc