#include <MergeDialog.h>
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| Get the generated layer. More... | |
| MergeDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~MergeDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onOkPushButtonClicked () |
| void | onOriginLayerComboBoxChanged (int index) |
| void | onOutputGroupBoxToggled (bool on) |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
| void | onTargetLayerComboBoxChanged (int index) |
Private Member Functions | |
| QComboBox * | getAllAttributesComboBox (std::vector< te::dt::Property * > props) |
| QComboBox * | getPossibleAttributesComboBox (te::dt::Property *mainProp, std::vector< te::dt::Property * > props) |
| std::vector< std::pair< std::string, std::string > > | getTablePropertiesNames () |
| void | updateAttrTableWidget () |
| void | updateOriginLayerComboBox () |
| void | updateTargetLayerComboBox () |
Private Attributes | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| te::map::AbstractLayerPtr | m_originSelectedLayer |
| Second layer selected. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::map::AbstractLayerPtr | m_outputLayer |
| Generated Layer. More... | |
| te::map::AbstractLayerPtr | m_targetSelectedLayer |
| Target layer selected. More... | |
| bool | m_toFile |
| std::unique_ptr< Ui::MergeDialogForm > | m_ui |
Definition at line 55 of file MergeDialog.h.
| te::vp::MergeDialog::MergeDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
|
private |
Definition at line 606 of file MergeDialog.cpp.
References te::dt::GEOMETRY_TYPE.
Referenced by updateAttrTableWidget().
| te::map::AbstractLayerPtr te::vp::MergeDialog::getLayer | ( | ) |
Get the generated layer.
Definition at line 164 of file MergeDialog.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::vp::MergeAction::onActionActivated().
|
private |
Definition at line 576 of file MergeDialog.cpp.
References te::common::Convert2LCase(), te::dt::Property::getName(), and te::dt::Property::getType().
Referenced by updateAttrTableWidget().
|
private |
Definition at line 622 of file MergeDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 473 of file MergeDialog.cpp.
|
protectedslot |
Definition at line 212 of file MergeDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), te::da::CreateAdapter(), ds, dt, te::vp::Merge::executeMemory(), te::core::FileSystem::exists(), te::common::FORWARDONLY, te::da::DataSourceCapabilities::getDataSetCapabilities(), te::da::GetDataSource(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::map::QueryLayer::getQuery(), getTablePropertiesNames(), te::da::DataSetCapabilities::isConnected(), te::vp::InputParams::m_inputDataSet, te::vp::InputParams::m_inputDataSetType, te::vp::InputParams::m_inputDataSource, m_originSelectedLayer, m_outputDatasource, m_outputLayer, m_targetSelectedLayer, m_toFile, m_ui, te::da::DataSourceFactory::make(), te::vp::AlgorithmParams::setInputParams(), te::vp::AlgorithmParams::setOutputDataSetName(), te::vp::AlgorithmParams::setOutputDataSource(), te::vp::AlgorithmParams::setSpecificParams(), TE_LOG_INFO, TE_TR, te::gm::Envelope::Union(), and te::common::Exception::what().
|
protectedslot |
Definition at line 498 of file MergeDialog.cpp.
References m_originSelectedLayer, m_ui, and updateAttrTableWidget().
Referenced by updateOriginLayerComboBox().
|
protectedslot |
Definition at line 642 of file MergeDialog.cpp.
References m_targetSelectedLayer, and m_ui.
|
protectedslot |
Definition at line 169 of file MergeDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
|
protectedslot |
Definition at line 190 of file MergeDialog.cpp.
References te::qt::widgets::FileDialog::exec(), te::qt::widgets::FileDialog::getFileName(), te::qt::widgets::FileDialog::getPath(), m_toFile, m_ui, te::qt::widgets::FileDialog::VECTOR, and te::common::Exception::what().
|
protectedslot |
Definition at line 478 of file MergeDialog.cpp.
References m_targetSelectedLayer, m_ui, updateAttrTableWidget(), and updateOriginLayerComboBox().
Referenced by updateTargetLayerComboBox().
| void te::vp::MergeDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
| selectedLayer | Selected AbstractLayerPtr |
Definition at line 98 of file MergeDialog.cpp.
References m_layers, updateAttrTableWidget(), updateOriginLayerComboBox(), and updateTargetLayerComboBox().
Referenced by te::qt::plugins::vp::MergeAction::onActionActivated().
|
private |
Definition at line 508 of file MergeDialog.cpp.
References te::dt::GEOMETRY_TYPE, getAllAttributesComboBox(), getPossibleAttributesComboBox(), m_originSelectedLayer, m_targetSelectedLayer, and m_ui.
Referenced by onOriginLayerComboBoxChanged(), onTargetLayerComboBoxChanged(), and setLayers().
|
private |
Definition at line 140 of file MergeDialog.cpp.
References m_layers, m_originSelectedLayer, m_ui, and onOriginLayerComboBoxChanged().
Referenced by onTargetLayerComboBoxChanged(), and setLayers().
|
private |
Definition at line 120 of file MergeDialog.cpp.
References m_layers, m_targetSelectedLayer, m_ui, and onTargetLayerComboBoxChanged().
Referenced by setLayers().
|
private |
List of layers.
Definition at line 115 of file MergeDialog.h.
Referenced by setLayers(), updateOriginLayerComboBox(), and updateTargetLayerComboBox().
|
private |
Second layer selected.
Definition at line 120 of file MergeDialog.h.
Referenced by onOkPushButtonClicked(), onOriginLayerComboBoxChanged(), updateAttrTableWidget(), and updateOriginLayerComboBox().
|
private |
DataSource information.
Definition at line 114 of file MergeDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Generated Layer.
Definition at line 116 of file MergeDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
Target layer selected.
Definition at line 119 of file MergeDialog.h.
Referenced by onOkPushButtonClicked(), onOutputGroupBoxToggled(), onTargetLayerComboBoxChanged(), updateAttrTableWidget(), and updateTargetLayerComboBox().
|
private |
Definition at line 117 of file MergeDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 112 of file MergeDialog.h.
Referenced by getTablePropertiesNames(), onOkPushButtonClicked(), onOriginLayerComboBoxChanged(), onOutputGroupBoxToggled(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onTargetLayerComboBoxChanged(), updateAttrTableWidget(), updateOriginLayerComboBox(), and updateTargetLayerComboBox().