X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fworkarearenderer.h;h=fd79bb6de942e6f46d05b855ec3352063e394065;hb=3263d0423c4e4e2c01dc7712d10f5cd8c7f317a6;hp=81e8247f4e9155025db371b078bce2f1ce89b974;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/workarearenderer.h b/synfig-studio/trunk/src/gtkmm/workarearenderer.h index 81e8247..fd79bb6 100644 --- a/synfig-studio/trunk/src/gtkmm/workarearenderer.h +++ b/synfig-studio/trunk/src/gtkmm/workarearenderer.h @@ -1,20 +1,21 @@ /* === S Y N F I G ========================================================= */ -/*! \file template.h +/*! \file workarearenderer.h ** \brief Template Header ** -** $Id: workarearenderer.h,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 */ /* ========================================================================= */ @@ -41,7 +42,7 @@ namespace studio { class WorkArea; - + class WorkAreaRenderer : public etl::shared_object, public sigc::trackable { public: @@ -51,19 +52,19 @@ public: private: bool enabled_; int priority_; - + sigc::signal signal_changed_; - + WorkArea* work_area_; - + public: sigc::signal& signal_changed() { return signal_changed_; } - + public: int get_w()const; int get_h()const; - + float get_pw()const; float get_ph()const; @@ -79,11 +80,11 @@ public: bool get_enabled()const { return get_enabled_vfunc(); } int get_priority()const { return priority_; } WorkArea* get_work_area()const { return work_area_; } - + void set_enabled(bool x); void set_priority(int x); void set_work_area(WorkArea* work_area_); - + virtual void render_vfunc( const Glib::RefPtr& window, const Gdk::Rectangle& expose_area