Tidying.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 9 Nov 2007 02:31:44 +0000 (02:31 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 9 Nov 2007 02:31:44 +0000 (02:31 +0000)
git-svn-id: http://svn.voria.com/code@1123 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/duckmatic.cpp

index 62e70fc..072f065 100644 (file)
@@ -151,8 +151,6 @@ Duckmatic::set_guide_snap(bool x)
        }
 }
 
-
-
 Duckmatic::GuideList::iterator
 Duckmatic::find_guide_x(synfig::Point pos, float radius)
 {
@@ -382,7 +380,6 @@ Duckmatic::toggle_select_duck(const etl::handle<Duck> &duck)
                select_duck(duck);
 }
 
-
 void
 Duckmatic::translate_selected_ducks(const synfig::Vector& vector)
 {
@@ -505,26 +502,21 @@ DuckDrag_Translate::duck_drag(Duckmatic* duckmatic, const synfig::Vector& vector
 
        for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
        {
-               if((*iter)->get_type()!=Duck::TYPE_VERTEX&&(*iter)->get_type()!=Duck::TYPE_POSITION)continue;
+               if((*iter)->get_type()!=Duck::TYPE_VERTEX &&
+                  (*iter)->get_type()!=Duck::TYPE_POSITION)
+                       continue;
                (*iter)->set_trans_point(positions[i]+vect);
        }
        for(i=0,iter=selected_ducks.begin();iter!=selected_ducks.end();++iter,i++)
        {
-               if((*iter)->get_type()==Duck::TYPE_VERTEX||(*iter)->get_type()==Duck::TYPE_POSITION)continue;
+               if((*iter)->get_type()==Duck::TYPE_VERTEX ||
+                  (*iter)->get_type()==Duck::TYPE_POSITION)
+                       continue;
                (*iter)->set_trans_point(positions[i]+vect);
        }
        last_translate_=vect;
 }
 
-
-
-
-
-
-
-
-
-
 void
 Duckmatic::signal_edited_selected_ducks()
 {
@@ -561,10 +553,6 @@ Duckmatic::signal_user_click_selected_ducks(int button)
        }
 }
 
-
-
-
-
 void
 Duckmatic::add_duck(const etl::handle<Duck> &duck)
 {
@@ -711,7 +699,6 @@ Duckmatic::last_bezier()const
        return bezier_list_.back();
 }
 
-
 etl::handle<Duckmatic::Duck>
 Duckmatic::find_duck(synfig::Point point, synfig::Real radius, Duck::Type type)
 {
@@ -814,8 +801,6 @@ Duckmatic::find_bezier(synfig::Point pos, synfig::Real scale, synfig::Real radiu
        return 0;
 }
 
-
-
 bool
 Duckmatic::save_sketch(const synfig::String& filename)const
 {
@@ -866,7 +851,6 @@ Duckmatic::load_sketch(const synfig::String& filename)
                return false;
        }
 
-
        etl::smart_ptr<std::list<synfig::Point> > stroke_data;
 
        while(file)
@@ -914,13 +898,6 @@ Duckmatic::load_sketch(const synfig::String& filename)
        return true;
 }
 
-
-
-
-
-
-
-
 Duckmatic::Push::Push(Duckmatic *duckmatic_):
        duckmatic_(duckmatic_)
 {
@@ -949,14 +926,6 @@ Duckmatic::Push::restore()
        needs_restore=false;
 }
 
-
-
-
-
-
-
-
-
 inline String guid_string(const synfigapp::ValueDesc& x)
 {
        if(x.parent_is_layer_param())
@@ -1210,7 +1179,6 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle<Canva
                        else
                                duck->set_type(Duck::TYPE_POSITION);
 
-
                        duck->signal_edited().clear();
                        duck->signal_edited().connect(
                                sigc::bind(
@@ -1262,7 +1230,6 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle<Canva
                                bezier->c1->set_scalar(TANGENT_BEZIER_SCALE);
                                bezier->c1->set_tangent(true);
 
-
                                if(!add_to_ducks(synfigapp::ValueDesc(value_node,2),canvas_view,transform_stack))
                                        return false;
                                bezier->p2=last_duck();
@@ -1349,7 +1316,6 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle<Canva
                        ValueNode_Composite::Handle value_node;
                        value_node=ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node());
 
-
                        if(!add_to_ducks(synfigapp::ValueDesc(value_node,0),canvas_view,transform_stack))
                                return false;
                        etl::handle<Duck> vertex_duck(last_duck());
@@ -1817,7 +1783,6 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle<Canva
                return true;
        }
 
-
        break;
        default:
                break;