28 #include "../../../common/progress/ProgressManager.h"
29 #include "../../../dataaccess.h"
30 #include "../../../datatype/Property.h"
31 #include "../../../qt/widgets/progress/ProgressViewerDialog.h"
32 #include "../../../se/Graphic.h"
42 #include "ui_ScatterDialogForm.h"
43 #include "ui_ScatterDataWidgetForm.h"
46 #include <QtGui/QDockWidget>
49 #include <qwt_symbol.h>
53 m_ui(new Ui::ScatterDialogForm)
61 QGridLayout* layout =
new QGridLayout(
m_ui->m_dataWidgetFrame);
63 this->layout()->setSizeConstraint(QLayout::SetFixedSize);
68 m_ui->m_helpPushButton->setPageReference(
"widgets/charts/scatter/scatter.html");
74 delete m_scatterDataWidget;
79 return m_displayWidget;
84 QApplication::setOverrideCursor(Qt::WaitCursor);
90 chartStyle->setTitle(QString::fromStdString(
"Scatter"));
91 chartStyle->setAxisX(m_scatterDataWidget->getForm()->m_propertyXComboBox->currentText());
92 chartStyle->setAxisY(m_scatterDataWidget->getForm()->m_propertyYComboBox->currentText());
97 chart->attach(chartDisplay);
100 chartDisplay->replot();
105 QApplication::restoreOverrideCursor();
A class to represent a scatter's chart.
ScatterDataWidget * m_scatterDataWidget
The scatter's data widget used to configure the basic parameters of the new scatter.
void adjustDisplay()
Updates the general display settings according to the ChartStyle. The adjusted properties are: Title;...
~ScatterDialog()
Destructor.
A wdiget used to display a chart.
A widget used to display a set of charts.
void setPickerStyle(int chartType)
It sets the QwtPlotPicker's state machine (selection mode)
virtual int rtti() const
Returns the chart's type.
A class to represent a scatter.
A class to represent a scatter chart.
void onOkPushButtonClicked()
ScatterDialog(te::da::DataSet *dataSet, te::da::DataSetType *dataType, QWidget *parent=0, Qt::WindowFlags f=0)
Constructor.
A class that models the description of a dataset.
std::auto_ptr< Ui::ScatterDialogForm > m_ui
The dialog form.
A class used to define a chartDisplay's style.
A class to represent a chart display.
A class to represent a chart display.
A dataset is the unit of information manipulated by the data access module of TerraLib.
te::qt::widgets::ChartDisplayWidget * getDisplayWidget()
Returns a pointer to the generated ChartDisplayWidget.