X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fworkarearenderer.cpp;h=303bc0338e8e948e71421ee6704545756eb63402;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=47e2a18dd00bad42c260e75138d27db39aa764a5;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/workarearenderer.cpp b/synfig-studio/trunk/src/gtkmm/workarearenderer.cpp index 47e2a18..303bc03 100644 --- a/synfig-studio/trunk/src/gtkmm/workarearenderer.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarearenderer.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ -/*! \file template.cpp +/* === S Y N F I G ========================================================= */ +/*! \file workarearenderer.cpp ** \brief Template File ** -** $Id: workarearenderer.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \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,13 +32,15 @@ #include "workarearenderer.h" #include "workarea.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -87,18 +90,18 @@ WorkAreaRenderer::set_work_area(WorkArea* x) { work_area_=x; } - + void WorkAreaRenderer::render_vfunc( - const Glib::RefPtr& window, - const Gdk::Rectangle& expose_area + const Glib::RefPtr& /*window*/, + const Gdk::Rectangle& /*expose_area*/ ) { } bool WorkAreaRenderer::event_vfunc( - GdkEvent* event + GdkEvent* /*event*/ ) { return false; @@ -110,7 +113,7 @@ WorkAreaRenderer::get_w()const int WorkAreaRenderer::get_h()const { return get_work_area()->get_h(); } - + float WorkAreaRenderer::get_pw()const { return get_work_area()->get_pw(); } @@ -118,14 +121,14 @@ float WorkAreaRenderer::get_ph()const { return get_work_area()->get_ph(); } -sinfg::Point -WorkAreaRenderer::screen_to_comp_coords(sinfg::Point pos)const +synfig::Point +WorkAreaRenderer::screen_to_comp_coords(synfig::Point pos)const { return get_work_area()->screen_to_comp_coords(pos); } -sinfg::Point -WorkAreaRenderer::comp_to_screen_coords(sinfg::Point pos)const +synfig::Point +WorkAreaRenderer::comp_to_screen_coords(synfig::Point pos)const { return get_work_area()->comp_to_screen_coords(pos); }