TimeSeriesFrame.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/TimeSeriesFrame.h
22 
23  \brief A frame used to adjust a histogram's chart parameters, weather it is about it's data or it's visual style.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESFRAME_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESFRAME_H
28 
29 // TerraLib
30 #include "../Config.h"
31 #include "ChartWidget.h"
32 
33 #include <memory>
34 
35 class QwtPlotSeriesItem;
36 
37 namespace Ui { class TimeSeriesFrameWidgetForm; }
38 
39 namespace te
40 {
41  namespace qt
42  {
43  namespace widgets
44  {
45  //Forward declarations
46  class TimeSeriesChart;
47  class TimeSeriesStyleWidget;
48 
49  /*!
50  \class TimeSeriesFrame
51 
52  \brief A frame for setting display options.
53  */
55  {
56  Q_OBJECT
57 
58  public:
59 
60  /*!
61  \brief Constructor
62 
63  \param parent this widget's parent
64  */
65  TimeSeriesFrame(QWidget* parent = 0);
66 
67  /*!
68  \brief Destructor.
69  */
70  ~TimeSeriesFrame();
71 
72  /*!
73  \brief Returns a pointer to the chart being configured
74 
75  \return A QwtPlotSeriesItem type pointer to the chart being configured
76  \note The caller will take ownership of the returned pointer.
77  */
78  QwtPlotSeriesItem* getChart();
79 
80  /*!
81  \brief It sets the chart being configured
82 
83  \param newChart The new QwtPlotSeriesItem.
84  \note It will not take ownership of the given pointer
85  */
86  void setChart(QwtPlotSeriesItem* newChart);
87 
88  private:
89 
90  std::auto_ptr<Ui::TimeSeriesFrameWidgetForm> m_ui; //!< The widget form.
91  TimeSeriesChart* m_chart; //!< The chart that will be editted by this widget;
92  TimeSeriesStyleWidget* m_styleWidget; //!< The widget used to configure the histogram's style.
93  };
94  } // end namespace widgets
95  } // end namespace qt
96 } // end namespace te
97 
98 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESFRAME_H
99 
TimeSeriesStyleWidget * m_styleWidget
The widget used to configure the histogram's style.
std::auto_ptr< Ui::TimeSeriesFrameWidgetForm > m_ui
The widget form.
URI C++ Library.
A frame for setting display options.
A base widget to be used on the chart settings.
A widget used to adjust a timeSeries's style.
TimeSeriesChart * m_chart
The chart that will be editted by this widget;.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
A base widget for settings.
Definition: ChartWidget.h:50
A class to represent a timeSeries chart.