Loading...
Searching...
No Matches
GeometriesUpdateTool.h
Go to the documentation of this file.
1/* Copyright (C) 2001-2009 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib 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 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file
22
23 \brief
24*/
25
26#ifndef __TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
27#define __TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
28
29#include "../Config.h"
30#include "../../../qt/widgets/tools/AbstractTool.h"
31
32// Qt
33#include <QMouseEvent>
34
35namespace te
36{
37 namespace gm
38 {
39 class Geometry;
40 }
41
42 namespace map
43 {
44 class AbstractLayer;
45 }
46
47 namespace qt
48 {
49 namespace widgets
50 {
51 class MapDisplay;
52 }
53 }
54
55 namespace edit
56 {
57 class Feature;
58
60 {
61 Q_OBJECT
62
63 public:
64
66
68
70
71 bool isInUse() const;
72
73 void setInUse(const bool& status);
74
75 virtual void resetVisualizationTool();
76
77 std::string getLayerId();
78
79 void disableMouseEvent(QMouseEvent::Type mEvent);
80
81 protected:
82
83 Q_SIGNALS:
84
86
88
90
91 private:
92
93 bool eventFilter(QObject* watched, QEvent* e);
94
95 protected:
96
98 QMouseEvent::Type m_mEvent;
99
102
103 };
104 }
105}
106
107
108#endif //__TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
bool eventFilter(QObject *watched, QEvent *e)
Filters events if this object has been installed as an event filter for the watched object.
void disableMouseEvent(QMouseEvent::Type mEvent)
virtual void resetVisualizationTool()
GeometriesUpdateTool(te::qt::widgets::MapDisplay *display, te::map::AbstractLayer *layer, QObject *parent=0)
void setLayer(te::map::AbstractLayer *layer)
void setInUse(const bool &status)
This is the base class for layers.
This class defines an interface for objects that can receive application events and respond to them,...
A widget to control the display of a set of layers.
Definition MapDisplay.h:72
TerraLib.
#define TEEDITQTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition Config.h:60