27 #include "../../../dataaccess.h"
28 #include "../../../datatype/Property.h"
36 #include "ui_HistogramDialogForm.h"
37 #include "ui_HistogramDataWidgetForm.h"
40 #include <QDockWidget>
44 m_ui(new Ui::HistogramDialogForm)
52 QGridLayout* layout =
new QGridLayout(
m_ui->m_dataWidgetFrame);
54 this->layout()->setSizeConstraint(QLayout::SetFixedSize);
59 m_ui->m_helpPushButton->setPageReference(
"widgets/charts/histogram/histogram.html");
64 delete m_histogramDataWidget;
69 return m_displayWidget;
74 QApplication::setOverrideCursor(Qt::WaitCursor);
80 chartStyle->setTitle(QString::fromStdString(
"Histogram"));
82 if(m_histogramDataWidget->getForm()->m_summaryComboBox->currentText() !=
"None")
83 chartStyle->setAxisX(m_histogramDataWidget->getForm()->m_summaryComboBox->currentText() +
": " + m_histogramDataWidget->getForm()->m_propertyComboBox->currentText());
85 chartStyle->setAxisX(m_histogramDataWidget->getForm()->m_propertyComboBox->currentText());
87 chartStyle->setAxisY(QString::fromStdString(
"Frequency"));
92 chart->
attach(chartDisplay);
94 chartDisplay->replot();
99 QApplication::restoreOverrideCursor();
A class that models the description of a dataset.
A class used to define the style of a histogram's chart.
A class to represent a histogram chart.
A dataset is the unit of information manipulated by the data access module of TerraLib.
A class used to define a chartDisplay's style.
A dialog used to define the basic parameters of a new histogram.
A class to represent a chart display.