Loading...
Searching...
No Matches
ScatterDialog.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/ScatterCreatorDialog.h
22
23 \brief A widget used to define the basic parameters of a new Scatter chart.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_INTERNAL_SCATTERDIALOG_H
27#define __TERRALIB_QT_WIDGETS_INTERNAL_SCATTERDIALOG_H
28
29//TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QDialog>
34
35//STL
36#include <memory>
37
38namespace Ui { class ChartDialogForm; }
39
40namespace 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 ScatterDataWidget;
53
54 /*!
55 \class ScatterDialog
56
57 \brief A dialog used to customize a Scatter parameters and generate it's ChartDisplayWidget.
58 */
59 class TEQTWIDGETSEXPORT ScatterDialog : 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 scatter.
70 \param dataType The dataset that will be used to generate a scatter.
71 \param parent this widget's parent
72 \param f Window flags used to configure this dialog
73 */
74 ScatterDialog(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 */
88
89 protected slots:
90
92
93 private:
94
95 std::unique_ptr<Ui::ChartDialogForm> m_ui; //!< The dialog form.
96 ScatterDataWidget* m_scatterDataWidget; //!< The scatter's data widget used to configure the basic parameters of the new scatter.
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_SCATTERDIALOG_H
A class that models the description of a dataset.
Definition: DataSetType.h:73
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:114
A wdiget used to display a chart.
A dialog used to customize a Scatter parameters and generate it's ChartDisplayWidget.
Definition: ScatterDialog.h:60
ChartDisplayWidget * m_displayWidget
The display's widget that will be populated by this widget.
Definition: ScatterDialog.h:97
std::unique_ptr< Ui::ChartDialogForm > m_ui
The dialog form.
Definition: ScatterDialog.h:95
ScatterDialog(te::da::DataSet *dataSet, te::da::DataSetType *dataType, QWidget *parent=0, Qt::WindowFlags f=0)
Constructor.
te::qt::widgets::ChartDisplayWidget * getDisplayWidget()
Returns a pointer to the generated ChartDisplayWidget.
ScatterDataWidget * m_scatterDataWidget
The scatter's data widget used to configure the basic parameters of the new scatter.
Definition: ScatterDialog.h:96
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63