te::qt::widgets::TimeSeriesPropertiesWidget Class Reference

A widget used to adjust a time series layer's properties. More...

#include <TimeSeriesPropertiesWidget.h>

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

Public Member Functions

Ui::TimeSeriesPropertiesWidgetForm * getForm ()
 Returns a pointer to the widget's form. More...
 
int getGeometryId ()
 Returns the index of the temporal property geometry. More...
 
std::string getGeometryPropName ()
 Returns the name of the property that holds the geometry. More...
 
int getIdIndex ()
 Returns the index of the ID of each timeSeries in the dataset. More...
 
std::string getIdPropName ()
 Returns the name of the property that holds the ID of each timeSeries in the dataset. More...
 
int getValueIndex ()
 Returns the index of the attribute values associated to each time series in the dataset. More...
 
std::string getValuePropName ()
 Returns the name of the property that holds the attribute values associated to each time series in the dataset. More...
 
void setUp (const te::da::DataSetTypePtr dataType)
 Adjusts the widget's components based on the given datasettype. More...
 
 TimeSeriesPropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
 ~TimeSeriesPropertiesWidget ()
 Destructor. More...
 

Protected Slots

void onPropertyComboBoxIndexChanged (QString text)
 

Private Attributes

te::da::DataSetTypePtr m_dataType
 The datasetType that will be used to generate the spatio-temporal layer. More...
 
std::unique_ptr< Ui::TimeSeriesPropertiesWidgetForm > m_ui
 The widget's form. More...
 

Detailed Description

A widget used to adjust a time series layer's properties.

Definition at line 54 of file TimeSeriesPropertiesWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::TimeSeriesPropertiesWidget::TimeSeriesPropertiesWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
dataSetThe dataset that will be used to generate a TemporalLayer.
parentthis widget's parent
fWindow flags used to configure this widget

Definition at line 35 of file TimeSeriesPropertiesWidget.cpp.

References m_ui, and ~TimeSeriesPropertiesWidget().

te::qt::widgets::TimeSeriesPropertiesWidget::~TimeSeriesPropertiesWidget ( )
default

Destructor.

Referenced by TimeSeriesPropertiesWidget().

Member Function Documentation

Ui::TimeSeriesPropertiesWidgetForm * te::qt::widgets::TimeSeriesPropertiesWidget::getForm ( )

Returns a pointer to the widget's form.

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

Definition at line 46 of file TimeSeriesPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TimeSeriesPropertiesWidget::getGeometryId ( )

Returns the index of the temporal property geometry.

Returns
The index of the temporal property geometry
Note
Will return an invalid index if the dataSeType hasn't been given.

Definition at line 82 of file TimeSeriesPropertiesWidget.cpp.

References m_dataType, and m_ui.

std::string te::qt::widgets::TimeSeriesPropertiesWidget::getGeometryPropName ( )

Returns the name of the property that holds the geometry.

Returns
The name of the property that holds the geometry

Definition at line 77 of file TimeSeriesPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TimeSeriesPropertiesWidget::getIdIndex ( )

Returns the index of the ID of each timeSeries in the dataset.

Returns
The index of the ID of each timeSeries in the dataset
Note
Will return an invalid index if the dataSeType hasn't been given.

Definition at line 56 of file TimeSeriesPropertiesWidget.cpp.

References m_dataType, and m_ui.

std::string te::qt::widgets::TimeSeriesPropertiesWidget::getIdPropName ( )

Returns the name of the property that holds the ID of each timeSeries in the dataset.

Returns
The name of the property that holds the ID of each timeSeries in the dataset

Definition at line 51 of file TimeSeriesPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TimeSeriesPropertiesWidget::getValueIndex ( )

Returns the index of the attribute values associated to each time series in the dataset.

Returns
The index of the attribute values associated to each time series in the dataset
Note
Will return an invalid index if the dataSeType hasn't been given.

Definition at line 69 of file TimeSeriesPropertiesWidget.cpp.

References m_dataType, and m_ui.

std::string te::qt::widgets::TimeSeriesPropertiesWidget::getValuePropName ( )

Returns the name of the property that holds the attribute values associated to each time series in the dataset.

Returns
The name of the property that holds the the attribute values associated to each time series in the dataset

Definition at line 64 of file TimeSeriesPropertiesWidget.cpp.

References m_ui.

void te::qt::widgets::TimeSeriesPropertiesWidget::onPropertyComboBoxIndexChanged ( QString  text)
protectedslot

Definition at line 114 of file TimeSeriesPropertiesWidget.cpp.

void te::qt::widgets::TimeSeriesPropertiesWidget::setUp ( const te::da::DataSetTypePtr  dataType)

Adjusts the widget's components based on the given datasettype.

Parameters
dataTypeThe datasetType that will be used to configure the widget.

Definition at line 90 of file TimeSeriesPropertiesWidget.cpp.

References te::dt::DATETIME_TYPE, te::dt::GEOMETRY_TYPE, m_dataType, and m_ui.

Member Data Documentation

te::da::DataSetTypePtr te::qt::widgets::TimeSeriesPropertiesWidget::m_dataType
private

The datasetType that will be used to generate the spatio-temporal layer.

Definition at line 148 of file TimeSeriesPropertiesWidget.h.

Referenced by getGeometryId(), getIdIndex(), getValueIndex(), and setUp().

std::unique_ptr<Ui::TimeSeriesPropertiesWidgetForm> te::qt::widgets::TimeSeriesPropertiesWidget::m_ui
private

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