This class is used to define the WHERE object of select operation. More...
#include <WhereClauseWidget.h>
Public Slots | |
| void | onAddWhereClausePushButtonClicked () |
| void | onClearAllPushButtonClicked () |
| void | onComboBoxActivated (QString value) |
| void | onRemoveWhereClausePushButtonClicked () |
| void | onRestrictValueComboBoxActivated (QString value) |
| void | onValuePropertyRadioButtonClicked () |
Signals | |
| void | clausesChanged () |
Public Member Functions | |
| void | addLayer (te::map::AbstractLayerPtr layer) |
| void | clear () |
| te::da::Where * | getWhere () |
| std::string | getWhereString () |
| void | removeLayer (te::map::AbstractLayerPtr layer) |
| void | resetInterface () |
| void | setAttributeList (const std::vector< std::string > &vec) |
| void | setConnectorsList (const std::vector< std::string > &vec) |
| void | setCriteriaTabEnabled (int index, bool enable) |
| void | setDataSource (const te::da::DataSourcePtr &ds) |
| void | setFromItems (std::vector< std::pair< std::string, std::string > > vec) |
| void | setGeomAttributeList (const std::vector< std::string > &vec, int srid) |
| void | setLayerList (std::list< te::map::AbstractLayerPtr > &layerList) |
| void | setOperatorsList (const std::vector< std::string > &vec) |
| void | setSpatialOperatorsList (const std::vector< std::string > &vec) |
| WhereClauseWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| ~WhereClauseWidget () | |
Protected Member Functions | |
| void | copyCombo (QComboBox *input, QComboBox *output, std::string curValue="") |
| te::da::Expression * | getExpression (const QString &value, const std::string &propName) |
| QStringList | getPropertyValues (std::string propertyName) |
Private Attributes | |
| std::map< QComboBox *, std::pair< int, int > > | m_comboMap |
| QStringList | m_connectorsList |
| int | m_count |
| te::da::DataSourcePtr | m_ds |
| std::vector< std::pair< std::string, std::string > > | m_fromItems |
| std::map< int, ExpressionProperty * > | m_mapExp |
| int | m_srid |
| std::unique_ptr< Ui::WhereClauseWidgetForm > | m_ui |
This class is used to define the WHERE object of select operation.
Definition at line 99 of file WhereClauseWidget.h.
| te::qt::widgets::WhereClauseWidget::WhereClauseWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| te::qt::widgets::WhereClauseWidget::~WhereClauseWidget | ( | ) |
Definition at line 87 of file WhereClauseWidget.cpp.
References clear().
| void te::qt::widgets::WhereClauseWidget::addLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 243 of file WhereClauseWidget.cpp.
References m_ui.
|
signal |
| void te::qt::widgets::WhereClauseWidget::clear | ( | ) |
Definition at line 323 of file WhereClauseWidget.cpp.
References te::common::FreeContents(), m_comboMap, m_count, m_mapExp, and m_ui.
Referenced by resetInterface(), and ~WhereClauseWidget().
|
protected |
Definition at line 850 of file WhereClauseWidget.cpp.
Referenced by onAddWhereClausePushButtonClicked().
|
protected |
Definition at line 778 of file WhereClauseWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, m_ds, m_fromItems, and te::dt::STRING_TYPE.
Referenced by onAddWhereClausePushButtonClicked(), and onComboBoxActivated().
|
protected |
Definition at line 865 of file WhereClauseWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT32_TYPE, m_ds, m_fromItems, te::da::Select::setFields(), and te::da::Select::setFrom().
Referenced by onComboBoxActivated(), and onValuePropertyRadioButtonClicked().
| te::da::Where * te::qt::widgets::WhereClauseWidget::getWhere | ( | ) |
Definition at line 92 of file WhereClauseWidget.cpp.
References m_comboMap, m_mapExp, and m_ui.
Referenced by getWhereString().
| std::string te::qt::widgets::WhereClauseWidget::getWhereString | ( | ) |
Definition at line 185 of file WhereClauseWidget.cpp.
References te::common::BaseVisitable< T, R >::accept(), te::da::Where::getExp(), getWhere(), and m_ds.
Referenced by onAddWhereClausePushButtonClicked(), onClearAllPushButtonClicked(), onComboBoxActivated(), and onRemoveWhereClausePushButtonClicked().
|
slot |
Definition at line 353 of file WhereClauseWidget.cpp.
References clausesChanged(), copyCombo(), ds, getExpression(), te::da::GetFirstGeomProperty(), getWhereString(), m_comboMap, m_connectorsList, m_count, te::qt::widgets::ExpressionProperty::m_expression, te::qt::widgets::ExpressionProperty::m_isAttributeCriteria, te::qt::widgets::ExpressionProperty::m_isPropertyValue, te::qt::widgets::ExpressionProperty::m_isSpatialCriteria, te::qt::widgets::ExpressionProperty::m_isValueValue, m_mapExp, te::qt::widgets::ExpressionProperty::m_operator, te::qt::widgets::ExpressionProperty::m_property, m_srid, m_ui, te::qt::widgets::ExpressionProperty::m_value, te::qt::widgets::ExpressionProperty::m_valuesComboBox, onComboBoxActivated(), onRemoveWhereClausePushButtonClicked(), te::gm::Geometry::setSRID(), te::da::ObjectIdSet::size(), and te::gm::Geometry::transform().
|
slot |
Definition at line 696 of file WhereClauseWidget.cpp.
References clausesChanged(), getWhereString(), and m_ui.
|
slot |
Definition at line 717 of file WhereClauseWidget.cpp.
References getExpression(), getPropertyValues(), getWhereString(), m_comboMap, te::qt::widgets::ExpressionProperty::m_expression, te::qt::widgets::ExpressionProperty::m_isAttributeCriteria, te::qt::widgets::ExpressionProperty::m_isPropertyValue, te::qt::widgets::ExpressionProperty::m_isValueValue, m_mapExp, te::qt::widgets::ExpressionProperty::m_operator, te::qt::widgets::ExpressionProperty::m_property, m_ui, te::qt::widgets::ExpressionProperty::m_value, and te::qt::widgets::ExpressionProperty::m_valuesComboBox.
Referenced by onAddWhereClausePushButtonClicked().
|
slot |
Definition at line 657 of file WhereClauseWidget.cpp.
References clausesChanged(), getWhereString(), and m_ui.
Referenced by onAddWhereClausePushButtonClicked().
|
slot |
Definition at line 709 of file WhereClauseWidget.cpp.
References m_ui, and onValuePropertyRadioButtonClicked().
|
slot |
Definition at line 688 of file WhereClauseWidget.cpp.
References getPropertyValues(), and m_ui.
Referenced by onRestrictValueComboBoxActivated().
| void te::qt::widgets::WhereClauseWidget::removeLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 248 of file WhereClauseWidget.cpp.
References m_ui.
| void te::qt::widgets::WhereClauseWidget::resetInterface | ( | ) |
| void te::qt::widgets::WhereClauseWidget::setAttributeList | ( | const std::vector< std::string > & | vec | ) |
Definition at line 262 of file WhereClauseWidget.cpp.
References m_ui.
| void te::qt::widgets::WhereClauseWidget::setConnectorsList | ( | const std::vector< std::string > & | vec | ) |
Definition at line 306 of file WhereClauseWidget.cpp.
References m_connectorsList.
Definition at line 318 of file WhereClauseWidget.cpp.
References m_ui.
| void te::qt::widgets::WhereClauseWidget::setDataSource | ( | const te::da::DataSourcePtr & | ds | ) |
Definition at line 212 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setFromItems | ( | std::vector< std::pair< std::string, std::string > > | vec | ) |
Definition at line 238 of file WhereClauseWidget.cpp.
References m_fromItems.
| void te::qt::widgets::WhereClauseWidget::setGeomAttributeList | ( | const std::vector< std::string > & | vec, |
| int | srid | ||
| ) |
Definition at line 274 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setLayerList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) |
Definition at line 217 of file WhereClauseWidget.cpp.
References m_ui.
| void te::qt::widgets::WhereClauseWidget::setOperatorsList | ( | const std::vector< std::string > & | vec | ) |
Definition at line 286 of file WhereClauseWidget.cpp.
References m_ui.
| void te::qt::widgets::WhereClauseWidget::setSpatialOperatorsList | ( | const std::vector< std::string > & | vec | ) |
Definition at line 296 of file WhereClauseWidget.cpp.
References m_ui.
Definition at line 178 of file WhereClauseWidget.h.
Referenced by clear(), getWhere(), onAddWhereClausePushButtonClicked(), and onComboBoxActivated().
|
private |
Definition at line 180 of file WhereClauseWidget.h.
Referenced by onAddWhereClausePushButtonClicked(), and setConnectorsList().
|
private |
Definition at line 182 of file WhereClauseWidget.h.
Referenced by clear(), and onAddWhereClausePushButtonClicked().
|
private |
Definition at line 172 of file WhereClauseWidget.h.
Referenced by getExpression(), getPropertyValues(), getWhereString(), resetInterface(), and setDataSource().
|
private |
Definition at line 174 of file WhereClauseWidget.h.
Referenced by getExpression(), getPropertyValues(), and setFromItems().
|
private |
Definition at line 176 of file WhereClauseWidget.h.
Referenced by clear(), getWhere(), onAddWhereClausePushButtonClicked(), and onComboBoxActivated().
|
private |
Definition at line 183 of file WhereClauseWidget.h.
Referenced by onAddWhereClausePushButtonClicked(), resetInterface(), and setGeomAttributeList().
|
private |
Definition at line 170 of file WhereClauseWidget.h.
Referenced by addLayer(), clear(), getWhere(), onAddWhereClausePushButtonClicked(), onClearAllPushButtonClicked(), onComboBoxActivated(), onRemoveWhereClausePushButtonClicked(), onRestrictValueComboBoxActivated(), onValuePropertyRadioButtonClicked(), removeLayer(), resetInterface(), setAttributeList(), setCriteriaTabEnabled(), setGeomAttributeList(), setLayerList(), setOperatorsList(), and setSpatialOperatorsList().