X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_eyedrop.cpp;h=74eb7d8bc54c009efecd5be0a7f02bc75dfb5ae9;hb=2d0c3bfcda36f4bd3e94630d92435bb1b4492f45;hp=bf56d1b01fe301ba80a262cf4f0102daf4d14558;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_eyedrop.cpp b/synfig-studio/trunk/src/gtkmm/state_eyedrop.cpp index bf56d1b..74eb7d8 100644 --- a/synfig-studio/trunk/src/gtkmm/state_eyedrop.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_eyedrop.cpp @@ -2,19 +2,20 @@ /*! \file state_eyedrop.cpp ** \brief Template File ** -** $Id: state_eyedrop.cpp,v 1.1.1.1 2005/01/07 03:34:36 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 */ /* ========================================================================= */ @@ -39,6 +40,8 @@ #include "canvasview.h" #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -60,7 +63,7 @@ class studio::StateEyedrop_Context public: StateEyedrop_Context(CanvasView *canvas_view); ~StateEyedrop_Context(); - + Smach::event_result event_stop_handler(const Smach::event& x); Smach::event_result event_refresh_handler(const Smach::event& x); @@ -84,7 +87,7 @@ StateEyedrop::StateEyedrop(): insert(event_def(EVENT_STOP,&StateEyedrop_Context::event_stop_handler)); insert(event_def(EVENT_REFRESH,&StateEyedrop_Context::event_refresh_handler)); insert(event_def(EVENT_WORKAREA_MOUSE_BUTTON_DOWN,&StateEyedrop_Context::event_workarea_mouse_button_down_handler)); -} +} StateEyedrop::~StateEyedrop() { @@ -94,9 +97,9 @@ StateEyedrop_Context::StateEyedrop_Context(CanvasView *canvas_view): canvas_view(canvas_view), is_working(*canvas_view) { - synfig::info("Enterted Eyedrop State"); + synfig::info("Entered Eyedrop State"); canvas_view->work_area->set_cursor(Gdk::Cursor(Gdk::CROSSHAIR)); - + App::toolbox->refresh(); } @@ -108,7 +111,7 @@ StateEyedrop_Context::~StateEyedrop_Context() } Smach::event_result -StateEyedrop_Context::event_stop_handler(const Smach::event& x) +StateEyedrop_Context::event_stop_handler(const Smach::event& /*x*/) { synfig::info("STATE EYEDROP: Received Stop Event"); throw Smach::egress_exception(); @@ -117,7 +120,7 @@ StateEyedrop_Context::event_stop_handler(const Smach::event& x) } Smach::event_result -StateEyedrop_Context::event_refresh_handler(const Smach::event& x) +StateEyedrop_Context::event_refresh_handler(const Smach::event& /*x*/) { synfig::info("STATE EYEDROP: Received Refresh Event"); canvas_view->work_area->queue_render_preview();