X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_sketch.cpp;h=9142d9a01450218a4efd7016ed57b91a1865d9b2;hb=e7e1794959f6b4af0d60d69b5501adcd305f2207;hp=743953b004cb43ccf0202b7958f6e2b97b869f1c;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_sketch.cpp b/synfig-studio/trunk/src/gtkmm/state_sketch.cpp index 743953b..9142d9a 100644 --- a/synfig-studio/trunk/src/gtkmm/state_sketch.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_sketch.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file state_sketch.cpp ** \brief Template File ** ** $Id: state_sketch.cpp,v 1.1.1.1 2005/01/07 03:34:37 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,14 +32,14 @@ #include #include -#include +#include #include "state_sketch.h" #include "state_stroke.h" #include "canvasview.h" #include "workarea.h" #include "app.h" -#include +#include #include #include #include @@ -46,8 +47,8 @@ #include "event_layerclick.h" #include "toolbox.h" -#include -#include +#include +#include #include @@ -65,7 +66,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -120,9 +121,9 @@ public: ~StateSketch_Context(); const etl::handle& get_canvas_view()const{return canvas_view_;} - etl::handle get_canvas_interface()const{return canvas_view_->canvas_interface();} - sinfg::Time get_time()const { return get_canvas_interface()->get_time(); } - sinfg::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();} + etl::handle get_canvas_interface()const{return canvas_view_->canvas_interface();} + synfig::Time get_time()const { return get_canvas_interface()->get_time(); } + synfig::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();} WorkArea * get_work_area()const{return canvas_view_->get_work_area();} }; // END of class StateSketch_Context @@ -149,7 +150,7 @@ StateSketch::~StateSketch() void StateSketch_Context::save_sketch() { - sinfg::String filename(basename(get_canvas()->get_file_name())+".sketch"); + synfig::String filename(basename(get_canvas()->get_file_name())+".sketch"); while(App::dialog_save_file(_("Save Sketch"), filename)) { @@ -168,7 +169,7 @@ StateSketch_Context::save_sketch() void StateSketch_Context::load_sketch() { - sinfg::String filename(basename(get_canvas()->get_file_name())+".sketch"); + synfig::String filename(basename(get_canvas()->get_file_name())+".sketch"); while(App::dialog_open_file(_("Load Sketch"), filename)) { @@ -485,7 +486,7 @@ StateSketch_Context::event_stroke(const Smach::event& x) assert(event.stroke_data); - get_work_area()->add_persistant_stroke(event.stroke_data,sinfgapp::Main::get_foreground_color()); + get_work_area()->add_persistant_stroke(event.stroke_data,synfigapp::Main::get_foreground_color()); return Smach::RESULT_ACCEPT; }