Loading...
Searching...
No Matches
MapEvents.h
Go to the documentation of this file.
1/* Copyright (C) 2008 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// TerraLib
30#include "../connectors/MapDisplay.h"
31#include "Event.h"
32#include "Enums.h"
33
34// STL
35#include <string>
36#include <utility>
37
38// Qt
39#include <QtGui/QColor>
40
41namespace te
42{
43 namespace qt
44 {
45 namespace af
46 {
47 namespace evt
48 {
49 /*!
50 \struct MapSRIDChanged
51
52 \brief This event signals that the srid of the map display changed.
53 */
54 struct MapSRIDChanged : public Event
55 {
56 /*!
57 \brief Constructor.
58
59 \param srid The new SRID of map display.
60 */
61 MapSRIDChanged(std::pair<int, std::string> srid)
63 m_srid(srid)
64 {
65 }
66
67 std::pair<int, std::string> m_srid;
68 };
69
70 /*!
71 \struct MapColorChanged
72
73 \brief This event signals that the color of the map display changed.
74 */
75 struct MapColorChanged : public Event
76 {
77 /*!
78 \brief Constructor.
79
80 \param color The new color of map display.
81 */
82 MapColorChanged(QColor color)
84 m_color(color)
85 {
86 }
87
88 QColor m_color;
89 };
90
91 /*!
92 \struct GetMapDisplay
93
94 \brief This event can be used to retrieve the MapDisplat component.
95 */
96 struct GetMapDisplay : public Event
97 {
98 /*!
99 \brief Constructor.
100 */
103 m_display(0)
104 {
105 }
106
108 };
109
110 /*!
111 \struct DrawingFinished
112
113 \brief This event is used to inform that drawing is finished.
114 */
115 struct DrawingFinished : public Event
116 {
117 /*!
118 \brief Constructor.
119 */
122 m_display(display)
123 {
124 }
125
127 };
128 }
129 }
130 }
131}
132
133#endif //__TERRALIB_QT_AF_EVENTS_INTERNAL_MAPEVENTS_H
A connector of the te::qt::widgets::MapDisplay class to the Application Framework.
Definition: MapDisplay.h:84
@ MAP_SRID_CHANGED
Definition: Enums.h:66
@ GET_MAPDISPLAY
Definition: Enums.h:75
@ DRAWING_FINISHED
Definition: Enums.h:76
@ MAP_COLOR_CHANGED
Definition: Enums.h:67
TerraLib.
This file contains a class to represent an event.
This event is used to inform that drawing is finished.
Definition: MapEvents.h:116
te::qt::af::MapDisplay * m_display
Definition: MapEvents.h:126
DrawingFinished(te::qt::af::MapDisplay *display)
Constructor.
Definition: MapEvents.h:120
A base class for application events.
Definition: Event.h:60
This event can be used to retrieve the MapDisplat component.
Definition: MapEvents.h:97
te::qt::af::MapDisplay * m_display
Definition: MapEvents.h:107
This event signals that the color of the map display changed.
Definition: MapEvents.h:76
MapColorChanged(QColor color)
Constructor.
Definition: MapEvents.h:82
This event signals that the srid of the map display changed.
Definition: MapEvents.h:55
std::pair< int, std::string > m_srid
Definition: MapEvents.h:67
MapSRIDChanged(std::pair< int, std::string > srid)
Constructor.
Definition: MapEvents.h:61
Enumerations of XML module.