A widget used to adjust a temporal layer's properties. More...
#include <TemporalPropertiesWidget.h>
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::auto_ptr< Ui::TemporalPropertiesWidgetForm > | m_ui |
The widget's form. More... | |
A widget used to adjust a temporal layer's properties.
Definition at line 56 of file TemporalPropertiesWidget.h.
te::qt::widgets::TemporalPropertiesWidget::TemporalPropertiesWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
parent | this widget's parent |
f | Window flags used to configure this widget |
Definition at line 36 of file TemporalPropertiesWidget.cpp.
References te::dt::DATETIME_TYPE, te::dt::DAY, te::dt::DAY_OF_WEEK, te::dt::DAY_OF_YEAR, te::dt::HOUR, m_ui, te::dt::MINUTE, te::dt::MONTH, onOrdTypeCBCurrentIndexChanged(), onTypeCBCurrentIndexChanged(), onUnitTypeCBCurrentIndexChanged(), te::dt::ORDINAL_TIME_INSTANT, te::dt::ORDINAL_TIME_PERIOD, te::dt::SECOND, te::dt::STRING_TYPE, te::dt::UNKNOWN, te::dt::WEEK, te::dt::YEAR, te::dt::YY, te::dt::YYYY, te::dt::YYYYDDD, and te::dt::YYYYMM.
te::qt::widgets::TemporalPropertiesWidget::~TemporalPropertiesWidget | ( | ) |
Destructor.
Definition at line 72 of file TemporalPropertiesWidget.cpp.
int te::qt::widgets::TemporalPropertiesWidget::getDateFormat | ( | ) |
Returns the format that the indicates how the date will be displayed.
Definition at line 121 of file TemporalPropertiesWidget.cpp.
int te::qt::widgets::TemporalPropertiesWidget::getDateType | ( | ) |
Returns the index of the datetime type.
Definition at line 96 of file TemporalPropertiesWidget.cpp.
Ui::TemporalPropertiesWidgetForm * te::qt::widgets::TemporalPropertiesWidget::getForm | ( | ) |
Returns a pointer to the widget's form.
Definition at line 76 of file TemporalPropertiesWidget.cpp.
int te::qt::widgets::TemporalPropertiesWidget::getOrdinalType | ( | ) |
Returns the selected ordinal type.
Definition at line 101 of file TemporalPropertiesWidget.cpp.
std::string te::qt::widgets::TemporalPropertiesWidget::getPhenomenonTime | ( | ) |
Returns the name of the property that holds the Phenomenom Time.
Definition at line 81 of file TemporalPropertiesWidget.cpp.
std::string te::qt::widgets::TemporalPropertiesWidget::getResultTime | ( | ) |
Returns the name of the property that holds the Result Time.
Definition at line 86 of file TemporalPropertiesWidget.cpp.
int te::qt::widgets::TemporalPropertiesWidget::getTemporalUnit | ( | ) |
Returns the selected temporal unit.
Definition at line 106 of file TemporalPropertiesWidget.cpp.
std::string te::qt::widgets::TemporalPropertiesWidget::getTemporalValue | ( | ) |
Returns a custom (user-defined) temporal unit.
Definition at line 111 of file TemporalPropertiesWidget.cpp.
std::string te::qt::widgets::TemporalPropertiesWidget::getUserOrdinalType | ( | ) |
Returns a custom (user-defined) Ordinal Type.
Definition at line 116 of file TemporalPropertiesWidget.cpp.
std::string te::qt::widgets::TemporalPropertiesWidget::getValidTime | ( | ) |
Returns the name of the property that holds the Valid Time.
Definition at line 91 of file TemporalPropertiesWidget.cpp.
|
protectedslot |
Definition at line 145 of file TemporalPropertiesWidget.cpp.
Referenced by TemporalPropertiesWidget().
|
protectedslot |
Definition at line 126 of file TemporalPropertiesWidget.cpp.
References te::dt::ORDINAL_TIME_INSTANT, and te::dt::STRING_TYPE.
Referenced by TemporalPropertiesWidget().
|
protectedslot |
Definition at line 153 of file TemporalPropertiesWidget.cpp.
References 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.
dataType | The datasetType that will be used to configure the widget. |
Definition at line 161 of file TemporalPropertiesWidget.cpp.
References te::dt::DATETIME_TYPE.
|
private |
The datasetType that will be used to generate the spatio-temporal layer.
Definition at line 166 of file TemporalPropertiesWidget.h.
|
private |
The widget's form.
Definition at line 165 of file TemporalPropertiesWidget.h.
Referenced by TemporalPropertiesWidget().