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 
35 namespace 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. */
77  ~StyleExplorer();
78 
79  te::qt::widgets::StyleDockWidget* getExplorer() const;
80 
81  public slots:
82 
83  /*!
84  \brief Listener to the application framewrork events.
85 
86  \param evt An event sent by framework.
87  */
88  void onApplicationTriggered(te::qt::af::evt::Event* evt);
89 
90  void styleChanged(te::map::AbstractLayer* l);
91 
92  signals:
93 
94  void triggered(te::qt::af::evt::Event* e);
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 
103  } // end namespace af
104  } // end namespace qt
105 } // end namespace te
106 
107 #endif // __TERRALIB_QT_AF_CONNECTORS_INTERNAL_STYLEEXPLORER_H
108 
This is the base class for layers.
Definition: AbstractLayer.h:76
A base class for application events.
Definition: Event.h:59
A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
Definition: StyleExplorer.h:63
The base API for TerraLib applications.
URI C++ Library.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:71
te::qt::widgets::StyleDockWidget * m_explorer
Pointer to a component te::qt::widgets::StyleDockWidget.
A dock widget used control the geographic data style using SE elements and a property browser to show...
te::qt::af::ApplicationController * m_app
Pointer to applicatin controller;.
Definition: StyleExplorer.h:98