modify abstracttool iface
[yamf.git] / yamf / tools / selection / select.h
blobb965b88002c9e2069db3dd17aaf5418a5c947a67
1 /***************************************************************************
2 * Copyright (C) 2007 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_DRAWING_TOOLSELECT_H
22 #define YAMF_DRAWING_TOOLSELECT_H
24 #include <yamf/drawing/abstracttool.h>
26 namespace YAMF {
27 namespace Drawing {
28 namespace Tool {
30 /**
31 * @ingroup tools
32 * @brief Esta clase provee de una herramienta para transformar un objeto grafico.
33 * @author Jorge Cuadrado <kuadrosxx@gmail.com>
35 class Select : public Drawing::AbstractTool
37 Q_OBJECT
38 public:
39 Select(QObject *parent = 0);
40 ~Select();
41 virtual void init(Photogram *photogram);
43 virtual QString id() const;
44 virtual void press(const QGraphicsSceneMouseEvent *input);
45 virtual void move(const QGraphicsSceneMouseEvent *input);
46 virtual void release(const QGraphicsSceneMouseEvent *input);
48 virtual void photogramChanged(Photogram *const photogram);
50 virtual DGui::Action *action() const;
52 int type() const;
54 virtual void aboutToChangeTool();
56 private:
57 struct Private;
58 Private *const d;
65 #endif