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 
35 namespace 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 
89  void toolDeleted();
90 
91  private:
92 
93  bool eventFilter(QObject* watched, QEvent* e);
94 
95  protected:
96 
97  bool m_isInUse;
98  QMouseEvent::Type m_mEvent;
99 
102 
103  };
104  }
105 }
106 
107 
108 #endif //__TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
te::qt::widgets::AbstractTool
This class defines an interface for objects that can receive application events and respond to them,...
Definition: AbstractTool.h:64
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::edit::GeometriesUpdateTool::m_isInUse
bool m_isInUse
Definition: GeometriesUpdateTool.h:97
te::qt::widgets::MapDisplay
A widget to control the display of a set of layers.
Definition: MapDisplay.h:72
TEEDITQTEXPORT
#define TEEDITQTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:60
te::edit::GeometriesUpdateTool::GeometriesUpdateTool
GeometriesUpdateTool(te::qt::widgets::MapDisplay *display, te::map::AbstractLayer *layer, QObject *parent=0)
te::edit::GeometriesUpdateTool::m_layer
te::map::AbstractLayer * m_layer
Definition: GeometriesUpdateTool.h:101
te::edit::GeometriesUpdateTool::m_feature
Feature * m_feature
Definition: GeometriesUpdateTool.h:100
te::edit::GeometriesUpdateTool::setInUse
void setInUse(const bool &status)
te::edit::GeometriesUpdateTool::geometriesStarted
void geometriesStarted()
te::edit::GeometriesUpdateTool::geometriesEdited
void geometriesEdited()
te::map::AbstractLayer
This is the base class for layers.
Definition: AbstractLayer.h:78
te::edit::GeometriesUpdateTool::resetVisualizationTool
virtual void resetVisualizationTool()
te::edit::GeometriesUpdateTool::~GeometriesUpdateTool
virtual ~GeometriesUpdateTool()
te::edit::GeometriesUpdateTool::setLayer
void setLayer(te::map::AbstractLayer *layer)
te::edit::GeometriesUpdateTool::m_mEvent
QMouseEvent::Type m_mEvent
Definition: GeometriesUpdateTool.h:98
te::edit::Feature
Definition: Feature.h:58
te::edit::GeometriesUpdateTool::eventFilter
bool eventFilter(QObject *watched, QEvent *e)
Filters events if this object has been installed as an event filter for the watched object.
te::edit::GeometriesUpdateTool::disableMouseEvent
void disableMouseEvent(QMouseEvent::Type mEvent)
te::edit::GeometriesUpdateTool::toolDeleted
void toolDeleted()
te::edit::GeometriesUpdateTool
Definition: GeometriesUpdateTool.h:60
te::edit::GeometriesUpdateTool::isInUse
bool isInUse() const
te::edit::GeometriesUpdateTool::getLayerId
std::string getLayerId()