#include <DirectExchangerDialog.h>
Public Member Functions | |
| DirectExchangerDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLastDataSource (std::string dataSource) |
| Function used to set the last data source used. More... | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~DirectExchangerDialog () | |
Protected Slots | |
| void | onDataSoruceToolButtonClicked () |
| void | onDataSourceTypeActivated (int index) |
| void | onDirToolButtonClicked () |
| void | onInputLayerActivated (QString value) |
| void | onOkPushButtonClicked () |
| void | onOutputLayerSRSTriggered () |
| void | setOutputDataSources () |
Protected Member Functions | |
| bool | exchangeToDatabase () |
| bool | exchangeToFile () |
| void | setDataSources () |
| Set the list of data sources that can be used. More... | |
Private Attributes | |
| bool | m_exchangeToFile |
| std::string | m_lastDsType |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| std::string | m_outputDataSourceType |
| std::unique_ptr< Ui::DirectExchangerDialogForm > | m_ui |
Definition at line 51 of file DirectExchangerDialog.h.
| te::qt::widgets::DirectExchangerDialog::DirectExchangerDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
|
protected |
Definition at line 320 of file DirectExchangerDialog.cpp.
References te::da::PrimaryKey::add(), te::da::Index::add(), te::da::AssociateDataSetTypeConverterSRID(), te::gm::Polygon::clone(), te::gm::GeometryProperty::clone(), te::common::Convert2String(), te::common::Convert2UCase(), te::da::CreateAdapter(), te::da::GetFirstGeomProperty(), te::common::Singleton< DataSourceManager >::getInstance(), te::dt::Property::getName(), te::da::PrimaryKey::getProperties(), te::dt::CompositeProperty::getProperties(), te::da::DataSetTypeConverter::getResult(), te::da::HasLinkedTable(), te::dt::INT32_TYPE, m_ui, p, te::da::R_TREE_TYPE, te::common::ReplaceSpecialChars(), te::dt::SimpleProperty::setAutoNumber(), te::dt::SimpleProperty::setDefaultValue(), te::da::Index::setIndexType(), te::da::Constraint::setName(), te::dt::Property::setName(), te::da::Index::setName(), te::dt::SimpleProperty::setRequired(), and te::common::Tokenize().
Referenced by onOkPushButtonClicked().
|
protected |
Definition at line 151 of file DirectExchangerDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), te::da::CreateAdapter(), te::dt::Property::getName(), te::dt::CompositeProperty::getProperties(), te::da::DataSetTypeConverter::getResult(), m_outputDataSourceType, m_ui, te::da::DataSourceFactory::make(), te::common::ReplaceSpecialChars(), and te::dt::Property::setName().
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 708 of file DirectExchangerDialog.cpp.
References m_lastDsType, and setDataSources().
|
protectedslot |
Definition at line 615 of file DirectExchangerDialog.cpp.
References m_exchangeToFile, m_outputDataSourceType, m_ui, and setDataSources().
Referenced by onInputLayerActivated().
|
protectedslot |
Definition at line 697 of file DirectExchangerDialog.cpp.
References m_ui.
|
protectedslot |
Definition at line 664 of file DirectExchangerDialog.cpp.
References m_ui, onDataSourceTypeActivated(), and TE_UNKNOWN_SRS.
Referenced by setLayers().
|
protectedslot |
Definition at line 720 of file DirectExchangerDialog.cpp.
References exchangeToDatabase(), exchangeToFile(), m_exchangeToFile, m_ui, and TE_UNKNOWN_SRS.
|
protectedslot |
Definition at line 778 of file DirectExchangerDialog.cpp.
References te::qt::widgets::SRSManagerDialog::getSelectedSRS(), and m_ui.
|
protected |
Set the list of data sources that can be used.
Definition at line 130 of file DirectExchangerDialog.cpp.
References te::common::Singleton< DataSourceInfoManager >::getInstance(), m_outputDataSourceType, and m_ui.
Referenced by onDataSoruceToolButtonClicked(), and onDataSourceTypeActivated().
| void te::qt::widgets::DirectExchangerDialog::setLastDataSource | ( | std::string | dataSource | ) |
Function used to set the last data source used.
| dataSource | Last data source name used |
Definition at line 125 of file DirectExchangerDialog.cpp.
References m_lastDsType.
Referenced by TerraView::onToolsDataExchangerDirectTriggered().
| void te::qt::widgets::DirectExchangerDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 94 of file DirectExchangerDialog.cpp.
References m_layers, m_ui, and onInputLayerActivated().
Referenced by TerraView::onToolsDataExchangerDirectPopUpTriggered(), and TerraView::onToolsDataExchangerDirectTriggered().
|
protectedslot |
Definition at line 754 of file DirectExchangerDialog.cpp.
References te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::ICON_DATASOURCE_SMALL, and m_ui.
|
private |
Definition at line 113 of file DirectExchangerDialog.h.
Referenced by onDataSourceTypeActivated(), and onOkPushButtonClicked().
|
private |
Definition at line 111 of file DirectExchangerDialog.h.
Referenced by onDataSoruceToolButtonClicked(), and setLastDataSource().
|
private |
Definition at line 107 of file DirectExchangerDialog.h.
Referenced by setLayers().
|
private |
Definition at line 109 of file DirectExchangerDialog.h.
Referenced by exchangeToFile(), onDataSourceTypeActivated(), and setDataSources().
|
private |
Definition at line 105 of file DirectExchangerDialog.h.
Referenced by exchangeToDatabase(), exchangeToFile(), onDataSourceTypeActivated(), onDirToolButtonClicked(), onInputLayerActivated(), onOkPushButtonClicked(), onOutputLayerSRSTriggered(), setDataSources(), setLayers(), and setOutputDataSources().