All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TimeSeriesDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2010-2013 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser 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  TerraLib 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 Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/qt/widgets/charts/TimeSeriesDialog.h
22 
23  \brief A dialog used to define the basic parameters of a new TimeSeriesLayer.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
28 
29 //TerraLib
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 // Qt
34 #include <QDialog>
35 
36 #include <memory>
37 
38 namespace Ui { class TimeSeriesDialogForm; }
39 
40 namespace te
41 {
42  namespace qt
43  {
44  namespace widgets
45  {
46 
47  //forward declarations
48  class TemporalPropertiesWidget;
49  class TimeSeriesPropertiesWidget;
50  class DoubleListWidget;
51 
52  /*!
53  \class TimeSeriesDialog
54 
55  \brief A Dialog used to generate a new TimeSeriesLayer
56  */
57  class TEQTWIDGETSEXPORT TimeSeriesDialog : public QDialog
58  {
59 
60  Q_OBJECT
61 
62  public:
63 
64  /*!
65  \brief Constructor
66 
67  \param parent this widget's parent
68  \param f Window flags used to configure this dialog
69  */
70  TimeSeriesDialog(te::map::AbstractLayerPtr layer, QWidget* parent = 0, Qt::WindowFlags f = 0);
71 
72  /*!
73  \brief Destructor
74  */
76 
77  protected slots:
78 
79  void onOkPushButtonClicked();
80  void onHelpPushButtonClicked();
81 
82  private:
83 
84  std::auto_ptr<Ui::TimeSeriesDialogForm> m_ui; //!< The dialog form.
85  std::auto_ptr<TemporalPropertiesWidget> m_propertiesWidget; //!< The widget used to configure the general TimeSeriesLayer's properties
86  std::auto_ptr<TimeSeriesPropertiesWidget> m_uniquePropWidget; //!< The widget used to configure the unique TimeSeriesLayer's properties
87  std::auto_ptr<DoubleListWidget> m_observedPropWidget; // The widget used to configure the layer's observed properties.
88  };
89  } // end namespace widgets
90  } // end namespace qt
91 } // end namespace te
92 
93 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
std::auto_ptr< Ui::TimeSeriesDialogForm > m_ui
The dialog form.
std::auto_ptr< DoubleListWidget > m_observedPropWidget
A Dialog used to generate a new TimeSeriesLayer.
std::auto_ptr< TimeSeriesPropertiesWidget > m_uniquePropWidget
The widget used to configure the unique TimeSeriesLayer's properties.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:66
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::auto_ptr< TemporalPropertiesWidget > m_propertiesWidget
The widget used to configure the general TimeSeriesLayer's properties.