Author: Carlos Lopez <[email protected]>
Date:   Mon Jul 18 20:28:55 2011 +0200

Add a member to set/get homogeneous option for WPList

---

 synfig-core/src/synfig/valuenode_wplist.cpp |   14 ++++++++++++++
 synfig-core/src/synfig/valuenode_wplist.h   |    7 +++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/synfig/valuenode_wplist.cpp 
b/synfig-core/src/synfig/valuenode_wplist.cpp
index ccce2af..ff10db4 100644
--- a/synfig-core/src/synfig/valuenode_wplist.cpp
+++ b/synfig-core/src/synfig/valuenode_wplist.cpp
@@ -235,6 +235,7 @@ ValueNode_WPList::create(const ValueBase &value)
                                
value_node->add(ValueNode::Handle(ValueNode_Composite::create(*iter)));
                        }
                        value_node->set_loop(value.get_loop());
+                       value_node->set_homogeneous(false);
                }
                        break;
                default:
@@ -442,3 +443,16 @@ ValueNode_WPList::set_bline(ValueNode::Handle b)
 {
        bline_=b;
 }
+
+
+bool
+ValueNode_WPList::get_homogeneous()const
+{
+       return homogeneous_;
+}
+
+void
+ValueNode_WPList::set_homogeneous(bool h)
+{
+       homogeneous_=h;
+}
diff --git a/synfig-core/src/synfig/valuenode_wplist.h 
b/synfig-core/src/synfig/valuenode_wplist.h
index e326796..7ab257b 100644
--- a/synfig-core/src/synfig/valuenode_wplist.h
+++ b/synfig-core/src/synfig/valuenode_wplist.h
@@ -64,6 +64,9 @@ class ValueNode_WPList : public ValueNode_DynamicList
 {
 private:
        ValueNode::RHandle bline_;
+       //! This member defines whether the widhtpoint uses the bline's length 
to
+       //! calculate the position of a widthpoint.
+       bool homogeneous_;
 public:
 
        typedef etl::handle<ValueNode_WPList> Handle;
@@ -105,6 +108,10 @@ public:
        ValueNode::LooseHandle get_bline()const;
        //! Sets the bline RHandle
        void set_bline(ValueNode::Handle b);
+       //! Gets the homogenous value
+       bool get_homogeneous() const;
+       //! Sets the homogenous value
+       void set_homogeneous(bool h);
 
 protected:
 


------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to