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  namespace evt
50  {
51  // Forward declarations
52  struct Event;
53  }
54  /*!
55  \class StyleExplorer
56 
57  \brief A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
58 
59  It is used to listen events sent by the application framework.
60  */
61  class TEQTAFEXPORT StyleExplorer : public QObject
62  {
63  Q_OBJECT
64 
65  public:
66 
67  /*!
68  \brief Constructor.
69 
70  \param explorer te::qt::widgets::StyleDockWidget to be listened.
71  */
72  StyleExplorer(te::qt::widgets::StyleDockWidget* explorer, QObject* parent = 0);
73 
74  /*! \brief Destructor. */
75  ~StyleExplorer();
76 
77  te::qt::widgets::StyleDockWidget* getExplorer() const;
78 
79  public slots:
80 
81  /*!
82  \brief Listener to the application framewrork events.
83 
84  \param evt An event sent by framework.
85  */
86  void onApplicationTriggered(te::qt::af::evt::Event* evt);
87 
88  void styleChanged(te::map::AbstractLayer* l);
89 
90  signals:
91 
92  void triggered(te::qt::af::evt::Event* e);
93 
94  protected:
95 
96  te::qt::widgets::StyleDockWidget* m_explorer; //!< Pointer to a component te::qt::widgets::StyleDockWidget.
97  };
98 
99  } // end namespace af
100  } // end namespace qt
101 } // end namespace te
102 
103 #endif // __TERRALIB_QT_AF_CONNECTORS_INTERNAL_STYLEEXPLORER_H
104 
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:61
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.
Definition: StyleExplorer.h:96
A dock widget used control the geographic data style using SE elements and a property browser to show...