X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fparamdesc.h;h=580294bc1273250b75ef2f27677f9b7aafe98b3d;hb=17db38a8803db1a9deebfa02a45c351f7325063e;hp=a3eb5c9cbaa18b289e2814f76b334697d880ac99;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/paramdesc.h b/synfig-core/trunk/src/synfig/paramdesc.h index a3eb5c9..580294b 100644 --- a/synfig-core/trunk/src/synfig/paramdesc.h +++ b/synfig-core/trunk/src/synfig/paramdesc.h @@ -2,19 +2,20 @@ /*! \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 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -40,7 +41,7 @@ namespace synfig { class ValueBase; - + /*! \class ParamDesc ** \brief Parameter Description Class ** \todo writeme @@ -62,7 +63,7 @@ public: { } }; - + /* -- ** -- D A T A ------------------------------------------------------------- */ @@ -84,7 +85,7 @@ private: bool animation_only_; std::list enum_list_; - + /* -- ** -- C O N S T R U C T O R S --------------------------------------------- */ @@ -115,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; } @@ -140,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; } @@ -185,7 +186,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 @@ -209,8 +210,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