Author: Carlos Lopez <[email protected]>
Date: Tue Aug 9 12:00:14 2011 +0200
Add new parameter to enable/disable dashed outlines
---
.../src/modules/mod_geometry/advanced_outline.cpp | 8 ++++++++
.../src/modules/mod_geometry/advanced_outline.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index 01b0fe1..567765c 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -81,6 +81,7 @@ Advanced_Outline::Advanced_Outline()
smoothness_=0.5;
dash_offset_=0.0;
homogeneous_=false;
+ dash_enabled_=false;
clear();
vector<BLinePoint> bline_point_list;
@@ -502,6 +503,7 @@ Advanced_Outline::set_param(const String & param, const
ValueBase &value)
IMPORT_AS(expand_, "expand");
IMPORT_AS(dash_offset_,"dash_offset");
IMPORT_AS(homogeneous_,"homogeneous");
+ IMPORT_AS(dash_enabled_, "dash_enabled");
if(param=="smoothness" && value.get_type()==ValueBase::TYPE_REAL)
{
if(value > 1.0) smoothness_=1.0;
@@ -552,6 +554,7 @@ Advanced_Outline::get_param(const String& param)const
EXPORT_AS(dash_offset_,"dash_offset");
EXPORT_AS(dilist_, "dilist");
EXPORT_AS(homogeneous_, "homogeneous");
+ EXPORT_AS(dash_enabled_,"dash_enabled");
EXPORT_NAME();
EXPORT_VERSION();
if(param=="vector_list")
@@ -620,6 +623,11 @@ Advanced_Outline::get_param_vocab()const
.set_origin("origin")
.set_description(_("List of width Points that defines the
variable width"))
);
+ ret.push_back(ParamDesc("dash_enabled")
+ .set_local_name(_("Dashed Outline"))
+ .set_hint("dash")
+ .set_description(_("When checked outline is dashed"))
+ );
ret.push_back(ParamDesc("dilist")
.set_local_name(_("Dash Item List"))
.set_hint("dash")
diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.h
b/synfig-core/src/modules/mod_geometry/advanced_outline.h
index a4357bb..e63ff6e 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.h
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.h
@@ -61,6 +61,7 @@ private:
Real smoothness_;
bool homogeneous_;
Real dash_offset_;
+ bool dash_enabled_;
public:
enum CuspType
------------------------------------------------------------------------------
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