All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:

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::auto_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 52 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.

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

Destructor.

Definition at line 43 of file TimeSeriesPropertiesWidget.cpp.

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 47 of file TimeSeriesPropertiesWidget.cpp.

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 83 of file TimeSeriesPropertiesWidget.cpp.

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 78 of file TimeSeriesPropertiesWidget.cpp.

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 57 of file TimeSeriesPropertiesWidget.cpp.

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 52 of file TimeSeriesPropertiesWidget.cpp.

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 70 of file TimeSeriesPropertiesWidget.cpp.

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 65 of file TimeSeriesPropertiesWidget.cpp.

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 91 of file TimeSeriesPropertiesWidget.cpp.

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

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 146 of file TimeSeriesPropertiesWidget.h.

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

The widget's form.

Definition at line 145 of file TimeSeriesPropertiesWidget.h.

Referenced by TimeSeriesPropertiesWidget().


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