te::qt::widgets::TemporalPropertiesWidget Class Reference

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

#include <TemporalPropertiesWidget.h>

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

Public Member Functions

int getDateFormat ()
 Returns the format that the indicates how the date will be displayed. More...
 
int getDateType ()
 Returns the index of the datetime type. More...
 
Ui::TemporalPropertiesWidgetForm * getForm ()
 Returns a pointer to the widget's form. More...
 
int getOrdinalType ()
 Returns the selected ordinal type. More...
 
std::string getPhenomenonTime ()
 Returns the name of the property that holds the Phenomenom Time. More...
 
std::string getResultTime ()
 Returns the name of the property that holds the Result Time. More...
 
int getTemporalUnit ()
 Returns the selected temporal unit. More...
 
std::string getTemporalValue ()
 Returns a custom (user-defined) temporal unit. More...
 
std::string getUserOrdinalType ()
 Returns a custom (user-defined) Ordinal Type. More...
 
std::string getValidTime ()
 Returns the name of the property that holds the Valid Time. More...
 
void setUp (const te::da::DataSetTypePtr dataType)
 Adjusts the widget values according to the given datasettype. More...
 
 TemporalPropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
 ~TemporalPropertiesWidget ()
 Destructor. More...
 

Protected Slots

void onOrdTypeCBCurrentIndexChanged (int index)
 
void onTypeCBCurrentIndexChanged (int index)
 
void onUnitTypeCBCurrentIndexChanged (int index)
 

Private Attributes

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

Detailed Description

A widget used to adjust a temporal layer's properties.

Definition at line 58 of file TemporalPropertiesWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::TemporalPropertiesWidget::TemporalPropertiesWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::TemporalPropertiesWidget::~TemporalPropertiesWidget ( )
default

Destructor.

Referenced by TemporalPropertiesWidget().

Member Function Documentation

int te::qt::widgets::TemporalPropertiesWidget::getDateFormat ( )

Returns the format that the indicates how the date will be displayed.

Returns
The format that the indicates how the date will be displayed.

Definition at line 120 of file TemporalPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TemporalPropertiesWidget::getDateType ( )

Returns the index of the datetime type.

Returns
The index of the datetime type.

Definition at line 95 of file TemporalPropertiesWidget.cpp.

References m_ui.

Ui::TemporalPropertiesWidgetForm * te::qt::widgets::TemporalPropertiesWidget::getForm ( )

Returns a pointer to the widget's form.

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

Definition at line 75 of file TemporalPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TemporalPropertiesWidget::getOrdinalType ( )

Returns the selected ordinal type.

Returns
The selected Ordinal Type.

Definition at line 100 of file TemporalPropertiesWidget.cpp.

References m_ui.

std::string te::qt::widgets::TemporalPropertiesWidget::getPhenomenonTime ( )

Returns the name of the property that holds the Phenomenom Time.

Returns
The name of the property that holds the Phenomenom Time.

Definition at line 80 of file TemporalPropertiesWidget.cpp.

References m_ui.

std::string te::qt::widgets::TemporalPropertiesWidget::getResultTime ( )

Returns the name of the property that holds the Result Time.

Returns
The name of the property that holds the result Time.

Definition at line 85 of file TemporalPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::TemporalPropertiesWidget::getTemporalUnit ( )

Returns the selected temporal unit.

Returns
The selected temporal unit.

Definition at line 105 of file TemporalPropertiesWidget.cpp.

References m_ui.

std::string te::qt::widgets::TemporalPropertiesWidget::getTemporalValue ( )

Returns a custom (user-defined) temporal unit.

Returns
A custom (user-defined) temporal unit

Definition at line 110 of file TemporalPropertiesWidget.cpp.

References m_ui.

std::string te::qt::widgets::TemporalPropertiesWidget::getUserOrdinalType ( )

Returns a custom (user-defined) Ordinal Type.

Returns
A custom (user-defined) Ordinal Type.

Definition at line 115 of file TemporalPropertiesWidget.cpp.

References m_ui.

std::string te::qt::widgets::TemporalPropertiesWidget::getValidTime ( )

Returns the name of the property that holds the Valid Time.

Returns
The name of the property that holds the valid Time.

Definition at line 90 of file TemporalPropertiesWidget.cpp.

References m_ui.

void te::qt::widgets::TemporalPropertiesWidget::onOrdTypeCBCurrentIndexChanged ( int  index)
protectedslot

Definition at line 144 of file TemporalPropertiesWidget.cpp.

References m_ui.

Referenced by TemporalPropertiesWidget().

void te::qt::widgets::TemporalPropertiesWidget::onTypeCBCurrentIndexChanged ( int  index)
protectedslot
void te::qt::widgets::TemporalPropertiesWidget::onUnitTypeCBCurrentIndexChanged ( int  index)
protectedslot

Definition at line 152 of file TemporalPropertiesWidget.cpp.

References m_ui, and te::dt::UNKNOWN.

Referenced by TemporalPropertiesWidget().

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

Adjusts the widget values according to the given datasettype.

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

Definition at line 160 of file TemporalPropertiesWidget.cpp.

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

Member Data Documentation

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

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

Definition at line 168 of file TemporalPropertiesWidget.h.

Referenced by setUp().


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