Loading...
Searching...
No Matches
ChartProperties.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/ChartProperties.h
22
23 \brief A dialog used to customize a graphic's parameters, weather it is about it's data or it's visual style
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_INTERNAL_CHARTPROPERTIES_H
27#define __TERRALIB_QT_WIDGETS_INTERNAL_CHARTPROPERTIES_H
28
29// QT
30#include <QDialog>
31#include <QListWidgetItem>
32
33// TerraLib
34#include "../Config.h"
35
36#include <memory>
37
38namespace Ui { class ChartPropertiesDialogForm; }
39
40namespace te
41{
42 namespace qt
43 {
44 namespace widgets
45 {
46 class ChartWidget;
47 class ChartDisplayWidget;
48 /*!
49 \class ChartProperties
50
51 \brief A dialog used to customize a graphic's parameters.
52
53 \ingroup widgets
54 */
55 class TEQTWIDGETSEXPORT ChartProperties : public QDialog
56 {
57 Q_OBJECT
58
59 public:
60
61 /*!
62 \brief Constructor
63
64 \param chartWidget The widget that will be editted by this dialog.
65 \param parent The dialog's parent widget.
66 */
67 ChartProperties(te::qt::widgets::ChartDisplayWidget* chartWidget, QWidget* parent = 0);
68
69 /*!
70 \brief Destructor.
71 */
73
74 public slots:
75
76 /*!
77 \brief Called when the user clicks on one of the items available at the list.
78
79 \param current The currently selected item of the list, it will be used to determine which type of chart the user wishes to configure.
80 */
81 void onItemClicked(QListWidgetItem * current);
82
83 /*!
84 \brief Called when the user clicks on the apply button.
85 It will set the configurations to the ChartDisplayWidget being configured by this dialog.
86 */
88
89 private:
90
91 std::unique_ptr<Ui::ChartPropertiesDialogForm> m_ui; // The Dialog Form.
92 ChartWidget* m_curComp; // The widget being displayed
93 ChartDisplayWidget* m_chartWidget; // The chart widget that will be configured by this dialog.
94
95 };
96 } // end namespace widgets
97 } // end namespace qt
98} // end namespace te
99
100#endif // __TERRALIB_QT_WIDGETS_INTERNAL_CHARTPROPERTIES_H
101
A wdiget used to display a chart.
A dialog used to customize a graphic's parameters.
void onApplyButtonClicked()
Called when the user clicks on the apply button. It will set the configurations to the ChartDisplayWi...
ChartDisplayWidget * m_chartWidget
ChartProperties(te::qt::widgets::ChartDisplayWidget *chartWidget, QWidget *parent=0)
Constructor.
void onItemClicked(QListWidgetItem *current)
Called when the user clicks on one of the items available at the list.
std::unique_ptr< Ui::ChartPropertiesDialogForm > m_ui
A base widget for settings.
Definition: ChartWidget.h:51
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