#include <MainWindowDialog.h>
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| Get the generated layer. More... | |
| MainWindowDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~MainWindowDialog () | |
Protected Slots | |
| void | onAddressComboBoxChanged (int index) |
| void | onCancelPushButtonClicked () |
| void | onConfigureLayerClicked () |
| void | onEditAddressToolButtonPressed () |
| void | onFinalLeftComboBoxChanged (int index) |
| void | onFinalRightComboBoxChanged (int index) |
| void | onInitialLeftComboBoxChanged (int index) |
| void | onInitialRightComboBoxChanged (int index) |
| void | onLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onRemoveAddressToolButtonPressed () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileAddressToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Private Member Functions | |
| void | GetAddressDataSource (std::string fileName) |
| void | GetAddressFilePathToSettings (std::map< std::string, std::vector< std::string > > &mapFields) |
Private Attributes | |
| te::da::DataSourcePtr | m_addressDataSource |
| std::string | m_addressFile |
| std::vector< std::string > | m_associatedProps |
| std::string | m_finalLeft |
| std::string | m_finalRight |
| std::string | m_initialLeft |
| std::string | m_initialRight |
| te::da::DataSourcePtr | m_layerDataSource |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| std::map< std::string, std::vector< std::string > > | m_mapFields |
| te::map::AbstractLayerPtr | m_newColumnLayer |
| Layer used for tsVector column. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| std::vector< te::dt::Property * > | m_properties |
| Properties related to the selected Layer. More... | |
| te::map::AbstractLayerPtr | m_resultLayer |
| Generated Layer. More... | |
| te::map::AbstractLayerPtr | m_selectedLayer |
| List of layers. More... | |
| std::string | m_streetNumber |
| bool | m_toFile |
| std::unique_ptr< Ui::MainWindowDialogForm > | m_ui |
Definition at line 53 of file MainWindowDialog.h.
| te::addressgeocoding::MainWindowDialog::MainWindowDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 67 of file MainWindowDialog.cpp.
References GetAddressFilePathToSettings(), m_mapFields, m_ui, onAddressComboBoxChanged(), onCancelPushButtonClicked(), onConfigureLayerClicked(), onEditAddressToolButtonPressed(), onFinalLeftComboBoxChanged(), onFinalRightComboBoxChanged(), onInitialLeftComboBoxChanged(), onInitialRightComboBoxChanged(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onRemoveAddressToolButtonPressed(), onTargetDatasourceToolButtonPressed(), onTargetFileAddressToolButtonPressed(), and onTargetFileToolButtonPressed().
| te::addressgeocoding::MainWindowDialog::~MainWindowDialog | ( | ) |
Definition at line 116 of file MainWindowDialog.cpp.
|
private |
Definition at line 636 of file MainWindowDialog.cpp.
References te::qt::widgets::AddFilePathToSettings(), file(), te::common::Singleton< DataSourceInfoManager >::getInstance(), m_addressDataSource, and te::da::DataSourceFactory::make().
Referenced by onAddressComboBoxChanged(), and onTargetFileAddressToolButtonPressed().
|
private |
Definition at line 603 of file MainWindowDialog.cpp.
Referenced by MainWindowDialog(), onAddressComboBoxChanged(), and onEditAddressToolButtonPressed().
| te::map::AbstractLayerPtr te::addressgeocoding::MainWindowDialog::getLayer | ( | ) |
Get the generated layer.
Definition at line 141 of file MainWindowDialog.cpp.
References m_resultLayer.
Referenced by te::qt::plugins::addressgeocoding::Plugin::onActionActivated().
|
protectedslot |
Definition at line 231 of file MainWindowDialog.cpp.
References GetAddressDataSource(), GetAddressFilePathToSettings(), m_addressFile, m_associatedProps, m_mapFields, m_streetNumber, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 598 of file MainWindowDialog.cpp.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 216 of file MainWindowDialog.cpp.
References te::addressgeocoding::ConfigInputLayerDialog::getDataSource(), te::addressgeocoding::ConfigInputLayerDialog::getLayer(), m_layerDataSource, m_layers, m_newColumnLayer, m_ui, setLayers(), and te::addressgeocoding::ConfigInputLayerDialog::setLayers().
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 318 of file MainWindowDialog.cpp.
References te::addressgeocoding::ConfigInputAddressDialog::getAddressFileName(), GetAddressFilePathToSettings(), te::addressgeocoding::ConfigInputAddressDialog::getDataSource(), te::addressgeocoding::ConfigInputAddressDialog::getStreetName(), te::addressgeocoding::ConfigInputAddressDialog::getStreetNeighborhood(), te::addressgeocoding::ConfigInputAddressDialog::getStreetNumber(), te::addressgeocoding::ConfigInputAddressDialog::getStreetPostalCode(), te::addressgeocoding::ConfigInputAddressDialog::getStreetTitle(), te::addressgeocoding::ConfigInputAddressDialog::getStreetType(), m_addressDataSource, m_addressFile, m_associatedProps, m_streetNumber, m_ui, te::addressgeocoding::ConfigInputAddressDialog::setDataSource(), te::addressgeocoding::ConfigInputAddressDialog::setStreetName(), te::addressgeocoding::ConfigInputAddressDialog::setStreetNeighborhood(), te::addressgeocoding::ConfigInputAddressDialog::setStreetNumber(), te::addressgeocoding::ConfigInputAddressDialog::setStreetPostalCode(), te::addressgeocoding::ConfigInputAddressDialog::setStreetTitle(), and te::addressgeocoding::ConfigInputAddressDialog::setStreetType().
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 201 of file MainWindowDialog.cpp.
References m_finalLeft, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 211 of file MainWindowDialog.cpp.
References m_finalRight, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 196 of file MainWindowDialog.cpp.
References m_initialLeft, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 206 of file MainWindowDialog.cpp.
References m_initialRight, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 146 of file MainWindowDialog.cpp.
References te::dt::DOUBLE_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, m_layers, m_selectedLayer, m_ui, and te::dt::NUMERIC_TYPE.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 424 of file MainWindowDialog.cpp.
References ds, dt, te::core::FileSystem::exists(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), m_addressDataSource, m_addressFile, m_associatedProps, m_finalLeft, m_finalRight, m_initialLeft, m_initialRight, m_layerDataSource, m_outputDatasource, m_resultLayer, m_selectedLayer, m_streetNumber, m_toFile, m_ui, and te::da::DataSourceFactory::make().
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 370 of file MainWindowDialog.cpp.
References m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 382 of file MainWindowDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 268 of file MainWindowDialog.cpp.
References GetAddressDataSource(), te::addressgeocoding::ConfigInputAddressDialog::getAddressFileName(), te::addressgeocoding::ConfigInputAddressDialog::getDataSource(), te::qt::widgets::GetFilePathFromSettings(), te::addressgeocoding::ConfigInputAddressDialog::getStreetName(), te::addressgeocoding::ConfigInputAddressDialog::getStreetNeighborhood(), te::addressgeocoding::ConfigInputAddressDialog::getStreetNumber(), te::addressgeocoding::ConfigInputAddressDialog::getStreetPostalCode(), te::addressgeocoding::ConfigInputAddressDialog::getStreetTitle(), te::addressgeocoding::ConfigInputAddressDialog::getStreetType(), m_addressDataSource, m_addressFile, m_associatedProps, m_streetNumber, m_ui, and te::addressgeocoding::ConfigInputAddressDialog::setDataSource().
Referenced by MainWindowDialog().
|
protectedslot |
Definition at line 403 of file MainWindowDialog.cpp.
References m_toFile, and m_ui.
Referenced by MainWindowDialog().
| void te::addressgeocoding::MainWindowDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 120 of file MainWindowDialog.cpp.
References m_layers, and m_ui.
Referenced by te::qt::plugins::addressgeocoding::Plugin::onActionActivated(), and onConfigureLayerClicked().
|
private |
Definition at line 127 of file MainWindowDialog.h.
Referenced by GetAddressDataSource(), onEditAddressToolButtonPressed(), onOkPushButtonClicked(), and onTargetFileAddressToolButtonPressed().
|
private |
Definition at line 129 of file MainWindowDialog.h.
Referenced by onAddressComboBoxChanged(), onEditAddressToolButtonPressed(), onOkPushButtonClicked(), and onTargetFileAddressToolButtonPressed().
|
private |
Definition at line 130 of file MainWindowDialog.h.
Referenced by onAddressComboBoxChanged(), onEditAddressToolButtonPressed(), onOkPushButtonClicked(), and onTargetFileAddressToolButtonPressed().
|
private |
Definition at line 123 of file MainWindowDialog.h.
Referenced by onFinalLeftComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 125 of file MainWindowDialog.h.
Referenced by onFinalRightComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 122 of file MainWindowDialog.h.
Referenced by onInitialLeftComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 124 of file MainWindowDialog.h.
Referenced by onInitialRightComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 116 of file MainWindowDialog.h.
Referenced by onConfigureLayerClicked(), and onOkPushButtonClicked().
|
private |
List of layers.
Definition at line 114 of file MainWindowDialog.h.
Referenced by onConfigureLayerClicked(), onLayerComboBoxChanged(), and setLayers().
|
private |
Definition at line 128 of file MainWindowDialog.h.
Referenced by MainWindowDialog(), and onAddressComboBoxChanged().
|
private |
Layer used for tsVector column.
Definition at line 117 of file MainWindowDialog.h.
Referenced by onConfigureLayerClicked().
|
private |
DataSource information.
Definition at line 119 of file MainWindowDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Properties related to the selected Layer.
Definition at line 118 of file MainWindowDialog.h.
|
private |
Generated Layer.
Definition at line 120 of file MainWindowDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
List of layers.
Definition at line 115 of file MainWindowDialog.h.
Referenced by onLayerComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 131 of file MainWindowDialog.h.
Referenced by onAddressComboBoxChanged(), onEditAddressToolButtonPressed(), onOkPushButtonClicked(), and onTargetFileAddressToolButtonPressed().
|
private |
Definition at line 133 of file MainWindowDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 113 of file MainWindowDialog.h.
Referenced by MainWindowDialog(), onAddressComboBoxChanged(), onConfigureLayerClicked(), onEditAddressToolButtonPressed(), onFinalLeftComboBoxChanged(), onFinalRightComboBoxChanged(), onInitialLeftComboBoxChanged(), onInitialRightComboBoxChanged(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onRemoveAddressToolButtonPressed(), onTargetDatasourceToolButtonPressed(), onTargetFileAddressToolButtonPressed(), onTargetFileToolButtonPressed(), and setLayers().