Author: Carlos Lopez <[email protected]>
Date:   Mon Aug 22 21:01:35 2011 +0200

Add a new parameter description. It is set to true for parameters that are 
linked to a bline.

---

 synfig-core/src/synfig/paramdesc.cpp |    5 +++--
 synfig-core/src/synfig/paramdesc.h   |   12 +++++++++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/synfig-core/src/synfig/paramdesc.cpp 
b/synfig-core/src/synfig/paramdesc.cpp
index 8947f19..5190bae 100644
--- a/synfig-core/src/synfig/paramdesc.cpp
+++ b/synfig-core/src/synfig/paramdesc.cpp
@@ -94,7 +94,8 @@ ParamDesc::ParamDesc(const ValueBase&, const String &a):
        critical_               (true),
        hidden_                 (false),
        invisible_duck_ (false),
-               is_distance_    (false),
-               animation_only_ (false)
+       is_distance_    (false),
+       animation_only_ (false),
+       is_bline_linked_(false)
 {
 }
diff --git a/synfig-core/src/synfig/paramdesc.h 
b/synfig-core/src/synfig/paramdesc.h
index 2e0f0ad..a8f6365 100644
--- a/synfig-core/src/synfig/paramdesc.h
+++ b/synfig-core/src/synfig/paramdesc.h
@@ -83,6 +83,7 @@ private:
        bool invisible_duck_;
        bool is_distance_;
        bool animation_only_;
+       bool is_bline_linked_;  //! The parameter is linked to a bline
 
        std::list<EnumData> enum_list_;
 
@@ -100,7 +101,8 @@ public:
                hidden_                 (false),
                invisible_duck_ (false),
                is_distance_    (false),
-               animation_only_ (false)
+               animation_only_ (false),
+               is_bline_linked_(false)
        { }
 
        ParamDesc(const ValueBase&, const String &a);
@@ -157,6 +159,10 @@ public:
        **      to the user when editing visually. */
        ParamDesc &set_scalar(const Real &n) { scalar_=n; return *this; }
 
+       //! Sets if the parameter is linked to a bline.
+       ParamDesc &set_is_bline_linked(bool x=true) {is_bline_linked_=x; return 
*this; }
+       ParamDesc &bline_linked() { is_bline_linked_=true; return *this; }
+
        //!     Marks the parameter as not necessary for saving or copying
        ParamDesc &not_critical() { critical_=false; return *this; }
 
@@ -209,6 +215,10 @@ public:
        //! Returns \c true if the layer is hidden, \c false otherwise.
        bool get_hidden()const { return hidden_; }
 
+       //! Returns \c true if the parameter is linked to a bline
+       bool get_is_bline_linked() { return is_bline_linked_; }
+       bool is_bline_linked() { return is_bline_linked_; }
+
 
 
        ParamDesc& set_is_distance(bool x=true) { is_distance_=x; return *this;}


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to