X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_zoom.cpp;h=dd2011ba90e6b51df684054a1ff5da42e026dcbe;hb=197d6d1c81c6dec1b762af182cadcfc7404823e6;hp=6ff0224ab178664908a428ed8b4e69a0f691f741;hpb=3f7b0cb177d3f3c6cf926add2bf807811f743f72;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp index 6ff0224..dd2011b 100644 --- a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file state_zoom.cpp -** \brief Zoom Toole Implementation File +** \brief Zoom Tool Implementation File ** ** $Id$ ** @@ -45,6 +45,8 @@ #include "toolbox.h" #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -105,7 +107,7 @@ public: //void zoom(const Point& p1, const Point& p2); -}; // END of class StateGradient_Context +}; // END of class StateZoom_Context /* === M E T H O D S ======================================================= */ @@ -153,7 +155,7 @@ StateZoom_Context::reset() StateZoom_Context::StateZoom_Context(CanvasView* canvas_view): canvas_view_(canvas_view), is_working(*canvas_view), - prev_workarea_layer_status_(get_work_area()->allow_layer_clicks), + prev_workarea_layer_status_(get_work_area()->get_allow_layer_clicks()), settings(synfigapp::Main::get_selected_input_device()->settings()) { // Set up the tool options dialog @@ -167,7 +169,7 @@ StateZoom_Context::StateZoom_Context(CanvasView* canvas_view): App::dialog_tool_options->present(); // Turn off layer clicking - get_work_area()->allow_layer_clicks=false; + get_work_area()->set_allow_layer_clicks(false); // clear out the ducks get_work_area()->clear_ducks(); //??? @@ -199,7 +201,7 @@ StateZoom_Context::refresh_tool_options() } Smach::event_result -StateZoom_Context::event_refresh_tool_options(const Smach::event& x) +StateZoom_Context::event_refresh_tool_options(const Smach::event& /*x*/) { refresh_tool_options(); return Smach::RESULT_ACCEPT; @@ -210,7 +212,7 @@ StateZoom_Context::~StateZoom_Context() save_settings(); // Restore layer clicking - get_work_area()->allow_layer_clicks=prev_workarea_layer_status_; + get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_); get_canvas_view()->work_area->reset_cursor(); App::dialog_tool_options->clear(); @@ -230,13 +232,13 @@ StateZoom_Context::~StateZoom_Context() } Smach::event_result -StateZoom_Context::event_stop_handler(const Smach::event& x) +StateZoom_Context::event_stop_handler(const Smach::event& /*x*/) { throw Smach::egress_exception(); } Smach::event_result -StateZoom_Context::event_refresh_handler(const Smach::event& x) +StateZoom_Context::event_refresh_handler(const Smach::event& /*x*/) { return Smach::RESULT_ACCEPT; }