All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MapEvents.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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 MapEvents.h
22 
23  \brief Contains a list of the map display events.
24 */
25 
26 #ifndef __TERRALIB_QT_AF_EVENTS_INTERNAL_MAPEVENTS_H
27 #define __TERRALIB_QT_AF_EVENTS_INTERNAL_MAPEVENTS_H
28 
29 #include "Event.h"
30 #include "Enums.h"
31 
32 // STL
33 #include <string>
34 #include <utility>
35 
36 // Qt
37 #include <QtGui/QColor>
38 
39 namespace te
40 {
41  namespace qt
42  {
43  namespace af
44  {
45  namespace evt
46  {
47  /*!
48  \struct MapSRIDChanged
49 
50  \brief This event signals that the srid of the map display changed.
51  */
52  struct MapSRIDChanged : public Event
53  {
54  /*!
55  \brief Constructor.
56 
57  \param srid The new SRID of map display.
58  */
59  MapSRIDChanged(std::pair<int, std::string> srid)
61  m_srid(srid)
62  {
63  }
64 
65  std::pair<int, std::string> m_srid;
66  };
67 
68  /*!
69  \struct MapColorChanged
70 
71  \brief This event signals that the color of the map display changed.
72  */
73  struct MapColorChanged : public Event
74  {
75  /*!
76  \brief Constructor.
77 
78  \param color The new color of map display.
79  */
80  MapColorChanged(QColor color)
82  m_color(color)
83  {
84  }
85 
86  QColor m_color;
87  };
88  }
89  }
90  }
91 }
92 
93 #endif //__TERRALIB_QT_AF_EVENTS_INTERNAL_MAPEVENTS_H
This event signals that the color of the map display changed.
Definition: MapEvents.h:73
MapSRIDChanged(std::pair< int, std::string > srid)
Constructor.
Definition: MapEvents.h:59
Enumerations for the TerraLib Application Framework.
This event signals that the srid of the map display changed.
Definition: MapEvents.h:52
std::pair< int, std::string > m_srid
Definition: MapEvents.h:65
A base class for application events.
Definition: Event.h:59
MapColorChanged(QColor color)
Constructor.
Definition: MapEvents.h:80