modify abstracttool iface
[yamf.git] / yamf / tools / view / zoom.h
blob7352f3011a41dec9fca52f5265514b23f26aca52
1 /***************************************************************************
2 * Copyright (C) 2007 by Jorge Cuadrado *
3 * kuadrosxx@gmail.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef YAMF_DRAWING_TOOLZOOM_H
22 #define YAMF_DRAWING_TOOLZOOM_H
25 #include <yamf/drawing/abstracttool.h>
26 #include <yamf/common/yamf_exports.h>
28 namespace YAMF {
30 namespace Drawing {
32 namespace Tool {
34 /**
35 * @ingroup tools
36 * @~spanish
37 * @brief Esta clase provee de una herramienta para permitir ampliar una reguion deseada.
39 * @author Jorge Cuadrado <kuadrosxx@gmail.com>
41 class YAMF_EXPORT Zoom : public Drawing::AbstractTool
43 public:
44 Zoom( QObject *parent = 0 );
45 virtual ~Zoom();
47 virtual void init(Photogram *photogram);
49 virtual QString id() const;
50 virtual void press(const QGraphicsSceneMouseEvent *input);
51 virtual void move(const QGraphicsSceneMouseEvent *input);
52 virtual void release(const QGraphicsSceneMouseEvent *input);
54 virtual DGui::Action *action() const;
55 int type() const;
56 virtual void aboutToChangeTool();
58 virtual void photogramChanged(Photogram *const photogram);
60 private:
61 struct Private;
62 Private * const d;
71 #endif