modify abstracttool iface
[yamf.git] / yamf / tools / selection / contour.h
blobd16cd893bd31c308ed98e108d560908200bf4525
1 /***************************************************************************
2 * Copyright (C) 2006 Jorge Cuadrado *
3 * kuadrosxx@gmail.com *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Lesser General Public *
7 * License as published by the Free Software Foundation; either *
8 * version 2.1 of the License, or (at your option) any later version. *
9 * *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #ifndef YAMF_DRAWINGTOOLCONTOUR_H
22 #define YAMF_DRAWINGTOOLCONTOUR_H
24 #include <yamf/drawing/abstracttool.h>
25 #include <yamf/common/yamf_exports.h>
28 class QKeySequence;
30 namespace YAMF {
31 namespace Drawing {
32 namespace Tool {
34 /**
35 * @ingroup tools
36 * @brief Esta clase provee de una herramienta para editar los nodos de un grafico.
37 * @author Jorge Cuadrado <kuadrosxx@gmail.com>
39 class YAMF_EXPORT Contour : public Drawing::AbstractTool
41 Q_OBJECT
42 public:
43 Contour(QObject *parent = 0);
44 ~Contour();
46 virtual void init(Photogram *photogram);
48 virtual QString id() const;
49 virtual void press(const QGraphicsSceneMouseEvent *input);
50 virtual void move(const QGraphicsSceneMouseEvent *input);
51 virtual void release(const QGraphicsSceneMouseEvent *input);
52 virtual void keyPressEvent(QKeyEvent *event);
54 virtual void photogramChanged(Photogram *const photogram);
56 virtual DGui::Action *action() const;
58 int type() const;
60 virtual void aboutToChangeTool();
62 private:
63 struct Private;
64 Private *const d;
71 #endif