A widget used to configure the properties of a layer based on a tabular file. More...
#include <DataPropertiesWidget.h>
Signals | |
| void | itemChanged () |
Public Member Functions | |
| DatapPropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| std::unique_ptr< te::da::DataSetTypeConverter > | getConverter () |
| Returns a pointer to the generated DataSetTypeConverter. More... | |
| te::da::DataSetType * | getDataSetType () |
| Returns a pointer to the widget's dataSetType. More... | |
| te::da::DataSource * | getDataSource () |
| Returns a pointer to the widget's dataSource. More... | |
| Ui::DataPropertiesWidgetForm * | getForm () const |
| ~DatapPropertiesWidget () | |
| Destructor. More... | |
Protected Slots | |
| void | onInputDataToolButtonTriggered () |
| void | onPropertyTypeChanged (int index) |
| void | onSridPushButtonCLicked () |
Private Attributes | |
| te::da::DataSourcePtr | m_dataSource |
| The DataSource that will be generated by this widget. More... | |
| std::unique_ptr< te::da::DataSetType > | m_dataType |
| The DataSetType that will be generated by this widget. More... | |
| std::unique_ptr< te::da::DataSetTypeConverter > | m_dsConverter |
| The DataSetConverter that will be configured by this widget. More... | |
| QSignalMapper * | m_mapper |
| The mapper used to know which property was configured. More... | |
| std::unique_ptr< DataSetTableView > | m_tblView |
| The widget used to preview the data of the new dataset. More... | |
| std::map< int, std::string > | m_typeMap |
| A map that correlates a terralib type with a label. More... | |
| std::unique_ptr< Ui::DataPropertiesWidgetForm > | m_ui |
| The widget's form. More... | |
A widget used to configure the properties of a layer based on a tabular file.
Definition at line 64 of file DataPropertiesWidget.h.
| te::qt::widgets::DatapPropertiesWidget::DatapPropertiesWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
It constructs a DatapPropertiesWidget.
| parent | this widget's parent |
| f | Window flags used to configure this widget |
Definition at line 144 of file DataPropertiesWidget.cpp.
References buidTypeMap(), m_mapper, m_tblView, m_typeMap, m_ui, onInputDataToolButtonTriggered(), onPropertyTypeChanged(), and onSridPushButtonCLicked().
| te::qt::widgets::DatapPropertiesWidget::~DatapPropertiesWidget | ( | ) |
| std::unique_ptr< te::da::DataSetTypeConverter > te::qt::widgets::DatapPropertiesWidget::getConverter | ( | ) |
Returns a pointer to the generated DataSetTypeConverter.
Definition at line 187 of file DataPropertiesWidget.cpp.
References te::da::PrimaryKey::add(), getConvertedproperty(), te::da::GetFirstGeomProperty(), m_dataType, m_dsConverter, m_ui, te::gm::PointType, te::gm::GeometryProperty::setGeometryType(), and te::gm::GeometryProperty::setSRID().
Referenced by te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked().
| te::da::DataSetType * te::qt::widgets::DatapPropertiesWidget::getDataSetType | ( | ) |
Returns a pointer to the widget's dataSetType.
Definition at line 242 of file DataPropertiesWidget.cpp.
References m_dataType.
Referenced by te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked().
| te::da::DataSource * te::qt::widgets::DatapPropertiesWidget::getDataSource | ( | ) |
Returns a pointer to the widget's dataSource.
Definition at line 247 of file DataPropertiesWidget.cpp.
References m_dataSource.
Referenced by te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked().
| Ui::DataPropertiesWidgetForm * te::qt::widgets::DatapPropertiesWidget::getForm | ( | ) | const |
Definition at line 182 of file DataPropertiesWidget.cpp.
References m_ui.
|
signal |
Referenced by onInputDataToolButtonTriggered().
|
protectedslot |
Definition at line 252 of file DataPropertiesWidget.cpp.
References te::qt::widgets::AddFilePathToSettings(), te::dt::DOUBLE_TYPE, file(), fillComboBox(), te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::qt::widgets::GetFilePathFromSettings(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< DataSourceManager >::getInstance(), te::da::PrimaryKey::getProperties(), te::dt::INT16_TYPE, itemChanged(), m_dataSource, m_dataType, m_dsConverter, m_mapper, m_tblView, m_typeMap, m_ui, te::da::DataSourceFactory::make(), and te::dt::UINT64_TYPE.
Referenced by DatapPropertiesWidget().
|
protectedslot |
Definition at line 434 of file DataPropertiesWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, m_ui, and te::dt::UINT64_TYPE.
Referenced by DatapPropertiesWidget().
|
protectedslot |
Definition at line 422 of file DataPropertiesWidget.cpp.
References te::qt::widgets::SRSManagerDialog::getSelectedSRS(), and m_ui.
Referenced by DatapPropertiesWidget().
|
private |
The DataSource that will be generated by this widget.
Definition at line 131 of file DataPropertiesWidget.h.
Referenced by getDataSource(), and onInputDataToolButtonTriggered().
|
private |
The DataSetType that will be generated by this widget.
Definition at line 127 of file DataPropertiesWidget.h.
Referenced by getConverter(), getDataSetType(), and onInputDataToolButtonTriggered().
|
private |
The DataSetConverter that will be configured by this widget.
Definition at line 130 of file DataPropertiesWidget.h.
Referenced by getConverter(), and onInputDataToolButtonTriggered().
|
private |
The mapper used to know which property was configured.
Definition at line 125 of file DataPropertiesWidget.h.
Referenced by DatapPropertiesWidget(), and onInputDataToolButtonTriggered().
|
private |
The widget used to preview the data of the new dataset.
Definition at line 128 of file DataPropertiesWidget.h.
Referenced by DatapPropertiesWidget(), and onInputDataToolButtonTriggered().
|
private |
A map that correlates a terralib type with a label.
Definition at line 126 of file DataPropertiesWidget.h.
Referenced by DatapPropertiesWidget(), onInputDataToolButtonTriggered(), and ~DatapPropertiesWidget().
|
private |
The widget's form.
Definition at line 129 of file DataPropertiesWidget.h.
Referenced by DatapPropertiesWidget(), getConverter(), getForm(), onInputDataToolButtonTriggered(), onPropertyTypeChanged(), and onSridPushButtonCLicked().