All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TimeSliderWidget.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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/TimeSliderWidget.h
22 
23  \brief A connector of the te::qt::widgets::TimeSliderWidget class to the Application Framework.
24 */
25 
26 #ifndef __TERRALIB_QT_AF_CONNECTORS_INTERNAL_TIME_SLIDER_WIDGET_H
27 #define __TERRALIB_QT_AF_CONNECTORS_INTERNAL_TIME_SLIDER_WIDGET_H
28 
29 // Terralib
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 // Qt
34 #include <QtCore/QObject>
35 #include <QtCore/QString>
36 
37 namespace te
38 {
39 // Forward declaration
40  namespace qt
41  {
42  namespace widgets
43  {
44  class AbstractTool;
45  class TimeSliderWidget;
46  }
47 
48  namespace af
49  {
50  namespace evt
51  {
52  // Forward declaration
53  struct Event;
54  }
55 
56  /*!
57  \class TimeSliderWidget
58 
59  \brief A connector for the te::qt::widgets::TimeSliderWidget class to the Application Framework.
60 
61  \ingroup afconnector
62  */
63  class TEQTAFEXPORT TimeSliderWidget : public QObject
64  {
65  Q_OBJECT
66 
67  public:
68 
69  /*!
70  \brief Constructor.
71 
72  \param md te::qt::widgets::TimeSliderWidget to be listened.
73  */
75 
76  /*! \brief destructor. */
77  virtual ~TimeSliderWidget();
78 
79  te::qt::widgets::TimeSliderWidget* getTimeSliderWidget();
80 
81  protected slots:
82 
83  /*!
84  \brief Listener to the application framewrork events.
85 
86  \param e An event sent by framework.
87  */
88  void onApplicationTriggered(te::qt::af::evt::Event* e);
89 
90  protected:
91 
92  te::qt::widgets::TimeSliderWidget* m_timeSliderWidget; //!< Pointer to a component te::qt::widgets::TimeSliderWidget.
93  };
94  }
95  }
96 }
97 
98 #endif // __TERRALIB_QT_AF_CONNECTORS_INTERNAL_TIME_SLIDER_WIDGET_H
A base class for application events.
Definition: Event.h:59
A connector for the te::qt::widgets::TimeSliderWidget class to the Application Framework.
te::qt::widgets::TimeSliderWidget * m_timeSliderWidget
Pointer to a component te::qt::widgets::TimeSliderWidget.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:81
A wdiget used to control the visualization of temporal data.