TimeSeriesDialog.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 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 timeSeries.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
28 
29 //TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QDialog>
34 
35 //STL
36 #include <memory>
37 
38 namespace Ui { class ChartDialogForm; }
39 
40 namespace te
41 {
42  //forward declarations
43  namespace da { class DataSet; class DataSetType; }
44 
45  namespace qt
46  {
47  namespace widgets
48  {
49 
50  //forward declarations
51  class ChartDisplayWidget;
52  class TimeSeriesDataWidget;
53 
54  /*!
55  \class TimeSeriesDialog
56 
57  \brief A Dialog used to customize a timeSeries parameters and generate it's ChartDisplayWidget.
58  */
59  class TEQTWIDGETSEXPORT TimeSeriesDialog : public QDialog
60  {
61 
62  Q_OBJECT
63 
64  public:
65 
66  /*!
67  \brief Constructor
68 
69  \param dataSet The dataset that will be used to generate a timeSeries.
70  \param dataType The dataset that will be used to generate a timeSeries.
71  \param parent this widget's parent
72  \param f Window flags used to configure this dialog
73  */
74  TimeSeriesDialog(te::da::DataSet* dataSet, te::da::DataSetType* dataType, QWidget* parent = 0, Qt::WindowFlags f = 0);
75 
76  /*!
77  \brief Destructor
78  */
80 
81  /*!
82  \brief Returns a pointer to the generated ChartDisplayWidget
83 
84  \return A ChartDisplayWidget type pointer to the generated chart.
85  \note The caller will take ownership of the returned pointer.
86  */
87  te::qt::widgets::ChartDisplayWidget* getDisplayWidget();
88 
89  protected slots:
90 
91  void onOkPushButtonClicked();
92 
93  private:
94 
95  std::auto_ptr<Ui::ChartDialogForm> m_ui; //!< The dialog form.
96  TimeSeriesDataWidget* m_timeSeriesDataWidget; //!< The histogram's data widget used to configure the basic parameters of the new histogram.
97  ChartDisplayWidget* m_displayWidget; //!< The display's widget that will be populated by this widget.
98  };
99  } // end namespace widgets
100  } // end namespace qt
101 } // end namespace te
102 
103 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESDIALOG_H
A class that models the description of a dataset.
Definition: DataSetType.h:72
A widget used to adjust a histogram's input data.
ChartDisplayWidget * m_displayWidget
The display's widget that will be populated by this widget.
std::auto_ptr< Ui::ChartDialogForm > m_ui
The dialog form.
TimeSeriesDataWidget * m_timeSeriesDataWidget
The histogram's data widget used to configure the basic parameters of the new histogram.
A Dialog used to customize a timeSeries parameters and generate it's ChartDisplayWidget.
URI C++ Library.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:112
A wdiget used to display a chart.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63