This file defines a class for a Query Data Source Dialog Dialog. More...
#include <QueryDataSourceDialog.h>
Signals | |
| void | createNewLayer (te::map::AbstractLayerPtr layer) |
Public Member Functions | |
| QueryDataSourceDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setAppMapDisplay (te::qt::widgets::MapDisplay *appMapDisplay) |
| void | setLayerList (std::list< te::map::AbstractLayerPtr > layerList) |
| This method is used to set the list of layers. More... | |
| ~QueryDataSourceDialog () | |
Protected Slots | |
| void | onApplyPushButtonClicked () |
| void | onApplySelToolButtonClicked () |
| void | onBaseDataSetSelected (int index) |
| void | onClearPushButtonClicked () |
| void | onCreateLayerToolButtonClicked () |
| void | onDataSetItemClicked (QListWidgetItem *item) |
| void | onDataSourceSelected (int index) |
| void | onExecutePushButtonClicked () |
| void | onListWidgetDoubleClicked (QListWidgetItem *item) |
| void | onOpenSqlToolButtonClicked () |
| void | onPkTableComboBoxSelected (int index) |
| void | onSaveSqlToolButtonClicked () |
| void | onSQLEditorTextChanged () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Protected Member Functions | |
| void | buildMap () |
| void | loadDataSourcesInformation () |
Private Attributes | |
| te::qt::widgets::MapDisplay * | m_appMapDisplay |
| te::qt::widgets::DataSetDisplay * | m_dataSetDisplay |
| std::map< std::string, Qt::GlobalColor > | m_keyWords |
| std::list< te::map::AbstractLayerPtr > | m_layerList |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| te::qt::widgets::DataSetTableModel * | m_tableModel |
| bool | m_toFile |
| std::unique_ptr< Ui::QueryDataSourceDialogForm > | m_ui |
This file defines a class for a Query Data Source Dialog Dialog.
Definition at line 67 of file QueryDataSourceDialog.h.
| te::qt::widgets::QueryDataSourceDialog::QueryDataSourceDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| te::qt::widgets::QueryDataSourceDialog::~QueryDataSourceDialog | ( | ) |
Definition at line 127 of file QueryDataSourceDialog.cpp.
References m_keyWords.
|
protected |
Definition at line 176 of file QueryDataSourceDialog.cpp.
References dialect, ds, te::da::GetDataSource(), te::da::SQLDialect::getRegisteredNames(), m_keyWords, and m_ui.
Referenced by onDataSourceSelected().
|
signal |
This signal is emitted when the layer objects must be highlighted.
Referenced by onCreateLayerToolButtonClicked().
|
protected |
Definition at line 145 of file QueryDataSourceDialog.cpp.
References dialect, ds, te::da::GetDataSource(), te::common::Singleton< DataSourceInfoManager >::getInstance(), m_ui, and onDataSourceSelected().
|
protectedslot |
Definition at line 313 of file QueryDataSourceDialog.cpp.
References te::qt::widgets::DataSetDisplay::clear(), te::common::Convert2UCase(), te::qt::widgets::DataSetDisplay::draw(), ds, te::dt::GEOMETRY_TYPE, te::da::GetDataSetType(), te::da::GetDataSource(), m_dataSetDisplay, m_tableModel, m_ui, te::qt::widgets::DataSetTableModel::setDataSet(), and te::common::Tokenize().
|
protectedslot |
Definition at line 539 of file QueryDataSourceDialog.cpp.
References ds, te::da::GenerateOIDSet(), te::da::GetDataSetType(), te::da::GetDataSource(), m_appMapDisplay, m_ui, te::qt::widgets::MapDisplay::refresh(), te::da::ObjectIdSet::setExpressionByInClause(), and te::common::Exception::what().
|
protectedslot |
Definition at line 246 of file QueryDataSourceDialog.cpp.
References m_layerList, m_ui, and onPkTableComboBoxSelected().
Referenced by onDataSourceSelected(), and setLayerList().
|
protectedslot |
Definition at line 487 of file QueryDataSourceDialog.cpp.
References te::qt::widgets::DataSetDisplay::clear(), m_dataSetDisplay, m_tableModel, m_ui, and te::qt::widgets::DataSetTableModel::setDataSet().
|
protectedslot |
Definition at line 624 of file QueryDataSourceDialog.cpp.
References te::da::PrimaryKey::add(), te::da::AssociateDataSetTypeConverterSRID(), te::dt::Property::clone(), te::common::Convert2String(), te::common::Convert2UCase(), te::da::CreateAdapter(), createNewLayer(), ds, dt, te::dt::GEOMETRY_TYPE, te::da::GetDataSetType(), te::da::GetDataSource(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< DataSourceManager >::getInstance(), te::dt::Property::getName(), m_outputDatasource, m_toFile, m_ui, te::dt::NUMERIC_TYPE, p, te::dt::STRING_TYPE, te::dt::VAR_STRING, and te::common::Exception::what().
|
protectedslot |
Definition at line 272 of file QueryDataSourceDialog.cpp.
References te::da::GetDataSetType(), te::dt::CompositeProperty::getProperties(), and m_ui.
|
protectedslot |
Definition at line 212 of file QueryDataSourceDialog.cpp.
References buildMap(), ds, te::da::GetDataSetNames(), te::da::GetDataSource(), m_ui, onBaseDataSetSelected(), and onPkTableComboBoxSelected().
Referenced by loadDataSourcesInformation().
|
protectedslot |
Definition at line 413 of file QueryDataSourceDialog.cpp.
References te::qt::widgets::DataSetDisplay::clear(), te::common::Convert2UCase(), ds, te::da::GetDataSetType(), te::da::GetDataSource(), m_dataSetDisplay, m_tableModel, m_ui, te::qt::widgets::DataSetTableModel::setDataSet(), and te::common::Tokenize().
|
protectedslot |
Definition at line 869 of file QueryDataSourceDialog.cpp.
References m_ui.
|
protectedslot |
Definition at line 528 of file QueryDataSourceDialog.cpp.
References m_ui.
|
protectedslot |
Definition at line 295 of file QueryDataSourceDialog.cpp.
References te::da::GetDataSetType(), te::dt::CompositeProperty::getProperties(), and m_ui.
Referenced by onBaseDataSetSelected(), and onDataSourceSelected().
|
protectedslot |
Definition at line 500 of file QueryDataSourceDialog.cpp.
|
protectedslot |
Definition at line 496 of file QueryDataSourceDialog.cpp.
|
protectedslot |
Definition at line 826 of file QueryDataSourceDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
|
protectedslot |
Definition at line 848 of file QueryDataSourceDialog.cpp.
| void te::qt::widgets::QueryDataSourceDialog::setAppMapDisplay | ( | te::qt::widgets::MapDisplay * | appMapDisplay | ) |
Definition at line 140 of file QueryDataSourceDialog.cpp.
References m_appMapDisplay.
Referenced by TerraView::onToolsQueryDataSourceTriggered().
| void te::qt::widgets::QueryDataSourceDialog::setLayerList | ( | std::list< te::map::AbstractLayerPtr > | layerList | ) |
This method is used to set the list of layers.
Definition at line 132 of file QueryDataSourceDialog.cpp.
References m_layerList, m_ui, and onBaseDataSetSelected().
Referenced by TerraView::onToolsQueryDataSourceTriggered().
|
private |
Definition at line 142 of file QueryDataSourceDialog.h.
Referenced by onApplySelToolButtonClicked(), and setAppMapDisplay().
|
private |
Definition at line 140 of file QueryDataSourceDialog.h.
Referenced by onApplyPushButtonClicked(), onClearPushButtonClicked(), and onExecutePushButtonClicked().
|
private |
Definition at line 148 of file QueryDataSourceDialog.h.
Referenced by buildMap(), and ~QueryDataSourceDialog().
|
private |
Definition at line 136 of file QueryDataSourceDialog.h.
Referenced by onBaseDataSetSelected(), and setLayerList().
|
private |
Definition at line 144 of file QueryDataSourceDialog.h.
Referenced by onCreateLayerToolButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Definition at line 138 of file QueryDataSourceDialog.h.
Referenced by onApplyPushButtonClicked(), onClearPushButtonClicked(), and onExecutePushButtonClicked().
|
private |
Definition at line 146 of file QueryDataSourceDialog.h.
Referenced by onCreateLayerToolButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 134 of file QueryDataSourceDialog.h.
Referenced by buildMap(), loadDataSourcesInformation(), onApplyPushButtonClicked(), onApplySelToolButtonClicked(), onBaseDataSetSelected(), onClearPushButtonClicked(), onCreateLayerToolButtonClicked(), onDataSetItemClicked(), onDataSourceSelected(), onExecutePushButtonClicked(), onListWidgetDoubleClicked(), onOpenSqlToolButtonClicked(), onPkTableComboBoxSelected(), onSaveSqlToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), and setLayerList().