Loading...
Searching...
No Matches
InfoExplorer.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 TerraView - A GIS Application.
4
5 TerraView 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 3 of the License,
8 or (at your option) any later version.
9
10 TerraView 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 TerraLib Code Editor. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@dpi.inpe.br>.
18 */
19
20/*!
21 \file terralib/qt/af/connectors/InfoExplorer.h
22
23 \brief A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
24*/
25
26#ifndef __TERRALIB_QT_AF_CONNECTORS_INTERNAL_INFOEXPLORER_H
27#define __TERRALIB_QT_AF_CONNECTORS_INTERNAL_INFOEXPLORER_H
28
29// Terralib
30#include "../Config.h"
32
33// Qt
34#include <QtCore/QObject>
35
36// STL
37#include <list>
38
39namespace te
40{
41 namespace qt
42 {
43// Forward declarations
44 namespace widgets
45 {
46 class InfoDockWidget;
47 }
48
49 namespace af
50 {
51 class ApplicationController;
52
53 namespace evt
54 {
55 // Forward declarations
56 struct Event;
57 }
58 /*!
59 \class StyleExplorer
60
61 \brief A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
62
63 It is used to listen events sent by the application framework.
64 */
65 class TEQTAFEXPORT InfoExplorer : public QObject
66 {
67 Q_OBJECT
68
69 public:
70
71 /*!
72 \brief Constructor.
73
74 \param explorer te::qt::widgets::StyleDockWidget to be listened.
75 */
77
78 /*! \brief Destructor. */
80
82
83 public slots:
84
85 /*!
86 \brief Listener to the application framewrork events.
87
88 \param evt An event sent by framework.
89 */
91
92 signals:
93
95
96 protected:
97
98 te::qt::af::ApplicationController* m_app; //!< Pointer to applicatin controller;
99
100 te::qt::widgets::InfoDockWidget* m_infoDock; //!< Pointer to a component te::qt::widgets::InfoDockWidget.
101
102 bool m_internalEvent; //!< Flag used for internal sent events
103 };
104
105 } // end namespace af
106 } // end namespace qt
107} // end namespace te
108
109#endif // __TERRALIB_QT_AF_CONNECTORS_INTERNAL_STYLEEXPLORER_H
110
This is the base class for Layers.
The base API for TerraLib applications.
te::qt::widgets::InfoDockWidget * m_infoDock
Pointer to a component te::qt::widgets::InfoDockWidget.
Definition: InfoExplorer.h:100
te::qt::widgets::InfoDockWidget * getInfo() const
void triggered(te::qt::af::evt::Event *e)
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
Definition: InfoExplorer.h:98
void onApplicationTriggered(te::qt::af::evt::Event *evt)
Listener to the application framewrork events.
InfoExplorer(te::qt::widgets::InfoDockWidget *infoDock, te::qt::af::ApplicationController *app, QObject *parent=0)
Constructor.
bool m_internalEvent
Flag used for internal sent events.
Definition: InfoExplorer.h:102
~InfoExplorer()
Destructor.
A dock widget used control the geographic data style using SE elements and a property browser to show...
TerraLib.
#define slots
A base class for application events.
Definition: Event.h:60
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:71