te::qt::widgets::HistogramDataWidget Class Reference

A widget used to adjust a histogram's input data. More...

#include <HistogramDataWidget.h>

Inheritance diagram for te::qt::widgets::HistogramDataWidget:
QWidget

Public Member Functions

Ui::HistogramDataWidgetForm * getForm ()
 Returns a pointer to the widget's form. More...
 
te::qt::widgets::HistogramgetHistogram ()
 Returns a pointer to the widget's form. More...
 
std::string getSummaryFunction ()
 Returns the name of the chosen summary function. Default is None. More...
 
 HistogramDataWidget (te::map::AbstractLayerPtr layer, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
void setHistogramProperty (int propId)
 Sets the property to be used in order to generate the histogram. More...
 
 ~HistogramDataWidget ()
 Destructor. More...
 

Protected Slots

void onPropertyComboBoxIndexChanged (QString text)
 
void onReadAllCheckBoxStateChanged (int state)
 

Private Attributes

te::map::AbstractLayerPtr m_layer
 The layer that will be used to generate the histogram chart. More...
 
std::unique_ptr< Ui::HistogramDataWidgetForm > m_ui
 The widget's form. More...
 

Detailed Description

A widget used to adjust a histogram's input data.

Definition at line 58 of file HistogramDataWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::HistogramDataWidget::HistogramDataWidget ( te::map::AbstractLayerPtr  layer,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::HistogramDataWidget::~HistogramDataWidget ( )
default

Destructor.

Referenced by HistogramDataWidget().

Member Function Documentation

Ui::HistogramDataWidgetForm * te::qt::widgets::HistogramDataWidget::getForm ( )

Returns a pointer to the widget's form.

Returns
A HistogramDataWidgetForm type pointer to the widget's form.
Note
The caller will not take ownership of the returned pointer.

Definition at line 157 of file HistogramDataWidget.cpp.

References m_ui.

Referenced by HistogramDataWidget(), te::qt::widgets::HistogramDialog::onOkPushButtonClicked(), and onPropertyComboBoxIndexChanged().

te::qt::widgets::Histogram * te::qt::widgets::HistogramDataWidget::getHistogram ( )

Returns a pointer to the widget's form.

Returns
A HistogramDataWidgetForm type pointer to the widget's form.
Note
The caller will take ownership of the returned pointer.

Definition at line 162 of file HistogramDataWidget.cpp.

References te::qt::widgets::createHistogram(), te::dt::DATETIME_TYPE, m_layer, m_ui, and te::dt::STRING_TYPE.

Referenced by te::qt::widgets::DataSetTableView::createHistogram(), and te::qt::widgets::HistogramDialog::onOkPushButtonClicked().

std::string te::qt::widgets::HistogramDataWidget::getSummaryFunction ( )

Returns the name of the chosen summary function. Default is None.

Returns
The name of the chosen summary function.

Definition at line 272 of file HistogramDataWidget.cpp.

References m_ui.

Referenced by te::qt::widgets::DataSetTableView::createHistogram(), and te::qt::widgets::HistogramDialog::onOkPushButtonClicked().

void te::qt::widgets::HistogramDataWidget::onReadAllCheckBoxStateChanged ( int  state)
protectedslot

Definition at line 264 of file HistogramDataWidget.cpp.

References m_ui.

Referenced by HistogramDataWidget().

void te::qt::widgets::HistogramDataWidget::setHistogramProperty ( int  propId)

Sets the property to be used in order to generate the histogram.

Note
This function is intented to prevent the user from selecting a property through this widget in special cases, if that is not the intended behaviour, do not call this function.

Definition at line 202 of file HistogramDataWidget.cpp.

References m_ui.

Referenced by te::qt::widgets::DataSetTableView::createHistogram().

Member Data Documentation

te::map::AbstractLayerPtr te::qt::widgets::HistogramDataWidget::m_layer
private

The layer that will be used to generate the histogram chart.

Definition at line 119 of file HistogramDataWidget.h.

Referenced by getHistogram(), HistogramDataWidget(), and onPropertyComboBoxIndexChanged().

std::unique_ptr<Ui::HistogramDataWidgetForm> te::qt::widgets::HistogramDataWidget::m_ui
private

The documentation for this class was generated from the following files: