Loading...
Searching...
No Matches
StyleExplorer.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/StyleExplorer.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_STYLEEXPLORER_H
27#define __TERRALIB_QT_AF_CONNECTORS_INTERNAL_STYLEEXPLORER_H
28
29// Terralib
30#include "../Config.h"
31
32// Qt
33#include <QtCore/QObject>
34
35namespace te
36{
37 namespace map { class AbstractLayer; }
38
39 namespace qt
40 {
41// Forward declarations
42 namespace widgets
43 {
44 class StyleDockWidget;
45 }
46
47 namespace af
48 {
49 class ApplicationController;
50
51 namespace evt
52 {
53 // Forward declarations
54 struct Event;
55 }
56 /*!
57 \class StyleExplorer
58
59 \brief A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
60
61 It is used to listen events sent by the application framework.
62 */
63 class TEQTAFEXPORT StyleExplorer : public QObject
64 {
65 Q_OBJECT
66
67 public:
68
69 /*!
70 \brief Constructor.
71
72 \param explorer te::qt::widgets::StyleDockWidget to be listened.
73 */
75
76 /*! \brief Destructor. */
78
80
81 public slots:
82
83 /*!
84 \brief Listener to the application framewrork events.
85
86 \param evt An event sent by framework.
87 */
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::StyleDockWidget* m_explorer; //!< Pointer to a component te::qt::widgets::StyleDockWidget.
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.
A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
StyleExplorer(te::qt::widgets::StyleDockWidget *explorer, te::qt::af::ApplicationController *app, QObject *parent=0)
Constructor.
void onApplicationTriggered(te::qt::af::evt::Event *evt)
Listener to the application framewrork events.
void styleChanged(te::map::AbstractLayer *l)
te::qt::widgets::StyleDockWidget * getExplorer() const
te::qt::widgets::StyleDockWidget * m_explorer
Pointer to a component te::qt::widgets::StyleDockWidget.
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
void triggered(te::qt::af::evt::Event *e)
bool m_internalEvent
Flag used for internal sent events.
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