X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_circle.cpp;h=2975edf66c527aa0f0030d03d558e98fe350ada6;hb=8e57c3c48d8c89f8d98457ffb5a53740cc6bbd91;hp=3969a6f9e9d4ec66d78ecf87c877c5059995093d;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_circle.cpp b/synfig-studio/trunk/src/gtkmm/state_circle.cpp index 3969a6f..2975edf 100644 --- a/synfig-studio/trunk/src/gtkmm/state_circle.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_circle.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file state_circle.cpp ** \brief Template File ** ** $Id: state_circle.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \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 */ /* ========================================================================= */ @@ -31,15 +32,15 @@ #include #include -#include -#include +#include +#include #include "state_circle.h" #include "canvasview.h" #include "workarea.h" #include "app.h" -#include +#include #include "event_mouse.h" #include "event_layerclick.h" #include "toolbox.h" @@ -47,7 +48,7 @@ #include #include "duck.h" #include "widget_enum.h" -#include +#include #endif @@ -55,7 +56,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -91,7 +92,7 @@ class studio::StateCircle_Context : public sigc::trackable bool prev_workarea_layer_status_; //Toolbox settings - sinfgapp::Settings& settings; + synfigapp::Settings& settings; //Toolbox display Gtk::Table options_table; @@ -108,8 +109,8 @@ class studio::StateCircle_Context : public sigc::trackable public: - sinfg::String get_id()const { return entry_id.get_text(); } - void set_id(const sinfg::String& x) { return entry_id.set_text(x); } + synfig::String get_id()const { return entry_id.get_text(); } + void set_id(const synfig::String& x) { return entry_id.set_text(x); } int get_falloff()const { return enum_falloff.get_value(); } void set_falloff(int x) { return enum_falloff.set_value(x); } @@ -137,8 +138,8 @@ public: //Canvas interaction const etl::handle& get_canvas_view()const{return canvas_view_;} - etl::handle get_canvas_interface()const{return canvas_view_->canvas_interface();} - sinfg::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();} + etl::handle get_canvas_interface()const{return canvas_view_->canvas_interface();} + synfig::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();} WorkArea * get_work_area()const{return canvas_view_->get_work_area();} //Modifying settings etc. @@ -272,7 +273,7 @@ StateCircle_Context::StateCircle_Context(CanvasView* canvas_view): is_working(*canvas_view), duckmatic_push(get_work_area()), prev_workarea_layer_status_(get_work_area()->allow_layer_clicks), - settings(sinfgapp::Main::get_selected_input_device()->settings()), + settings(synfigapp::Main::get_selected_input_device()->settings()), entry_id(), adj_feather(0,0,1,0.01,0.1), spin_feather(adj_feather,0.1,3), @@ -391,8 +392,8 @@ StateCircle_Context::event_refresh_handler(const Smach::event& x) void StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) { - sinfgapp::Action::PassiveGrouper group(get_canvas_interface()->get_instance().get(),_("New Circle")); - sinfgapp::PushMode push_mode(get_canvas_interface(),sinfgapp::MODE_NORMAL); + synfigapp::Action::PassiveGrouper group(get_canvas_interface()->get_instance().get(),_("New Circle")); + synfigapp::PushMode push_mode(get_canvas_interface(),synfigapp::MODE_NORMAL); Layer::Handle layer; @@ -407,7 +408,7 @@ StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) canvas=layer->get_canvas(); } - const sinfg::TransformStack& transform(get_canvas_view()->get_curr_transform_stack()); + const synfig::TransformStack& transform(get_canvas_view()->get_curr_transform_stack()); const Point p1(transform.unperform(_p1)); const Point p2(transform.unperform(_p2));