/* timeline-arrow-tool.hpp - Declaration of the ArrowTool class Copyright (C) Lumiera.org 2008, Joel Holdsworth This program 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. This program 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /** @file timeline-arrow-tool.hpp ** This file contains the definition of the arrow tool class */ #ifndef TIMELINE_ARROW_TOOL_HPP #define TIMELINE_ARROW_TOOL_HPP #include #include "timeline-tool.hpp" namespace gui { namespace widgets { namespace timeline { /** * A helper class to implement the timeline i-beam tool */ class ArrowTool : public Tool { public: /** * Constructor * @param timeline_body The owner timeline body object */ ArrowTool(TimelineBody &timeline_body); /** * Gets the type of tool represented by this class */ ToolType get_type() const; protected: /** * Gets the cursor to display for this tool at this moment. */ Gdk::Cursor get_cursor() const; protected: /** * The event handler for button press events. */ void on_button_press_event(GdkEventButton* event); /** * The event handler for button release events. */ void on_button_release_event(GdkEventButton* event); /** * The event handler for mouse move events. */ void on_motion_notify_event(GdkEventMotion *event); }; } // namespace timeline } // namespace widgets } // namespace gui #endif // TIMELINE_ARROW_TOOL_HPP