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 () | 
Public Member Functions | |
| void | clear () | 
| Ui::WhereClauseWidgetForm * | getForm () const | 
| te::da::Where * | getWhere () | 
| std::string | getWhereString () | 
| void | resetInterface () | 
| void | setAttributeList (const std::vector< std::string > &vec) | 
| void | setConnectorsList (const std::vector< std::string > &vec) | 
| 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::auto_ptr < Ui::WhereClauseWidgetForm >  | m_ui | 
This class is used to define the WHERE object of select operation.
Definition at line 97 of file WhereClauseWidget.h.
| te::qt::widgets::WhereClauseWidget::WhereClauseWidget | ( | QWidget * | parent = 0,  | 
        
| Qt::WindowFlags | f = 0  | 
        ||
| ) | 
Definition at line 62 of file WhereClauseWidget.cpp.
References m_count, m_ds, m_srid, m_ui, onAddWhereClausePushButtonClicked(), onClearAllPushButtonClicked(), onRestrictValueComboBoxActivated(), and onValuePropertyRadioButtonClicked().
| te::qt::widgets::WhereClauseWidget::~WhereClauseWidget | ( | ) | 
Definition at line 86 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::clear | ( | ) | 
Definition at line 303 of file WhereClauseWidget.cpp.
References te::common::FreeContents().
      
  | 
  protected | 
Definition at line 820 of file WhereClauseWidget.cpp.
      
  | 
  protected | 
Definition at line 752 of file WhereClauseWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, and te::dt::STRING_TYPE.
| Ui::WhereClauseWidgetForm * te::qt::widgets::WhereClauseWidget::getForm | ( | ) | const | 
Definition at line 91 of file WhereClauseWidget.cpp.
      
  | 
  protected | 
Definition at line 835 of file WhereClauseWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT32_TYPE, te::da::Select::setFields(), and te::da::Select::setFrom().
| te::da::Where * te::qt::widgets::WhereClauseWidget::getWhere | ( | ) | 
Definition at line 96 of file WhereClauseWidget.cpp.
References te::da::Expression::clone().
| std::string te::qt::widgets::WhereClauseWidget::getWhereString | ( | ) | 
Definition at line 189 of file WhereClauseWidget.cpp.
References te::common::BaseVisitable< T, R >::accept(), and te::da::Where::getExp().
      
  | 
  slot | 
Definition at line 333 of file WhereClauseWidget.cpp.
References te::da::GetFirstGeomProperty(), 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, te::qt::widgets::ExpressionProperty::m_operator, te::qt::widgets::ExpressionProperty::m_property, te::qt::widgets::ExpressionProperty::m_value, te::qt::widgets::ExpressionProperty::m_valuesComboBox, te::gm::Geometry::setSRID(), te::da::ObjectIdSet::size(), and te::gm::Geometry::transform().
Referenced by WhereClauseWidget().
      
  | 
  slot | 
Definition at line 672 of file WhereClauseWidget.cpp.
Referenced by WhereClauseWidget().
      
  | 
  slot | 
Definition at line 691 of file WhereClauseWidget.cpp.
References te::qt::widgets::ExpressionProperty::m_expression, te::qt::widgets::ExpressionProperty::m_isAttributeCriteria, te::qt::widgets::ExpressionProperty::m_isPropertyValue, te::qt::widgets::ExpressionProperty::m_isValueValue, te::qt::widgets::ExpressionProperty::m_operator, te::qt::widgets::ExpressionProperty::m_property, te::qt::widgets::ExpressionProperty::m_value, and te::qt::widgets::ExpressionProperty::m_valuesComboBox.
      
  | 
  slot | 
Definition at line 635 of file WhereClauseWidget.cpp.
      
  | 
  slot | 
Definition at line 683 of file WhereClauseWidget.cpp.
Referenced by WhereClauseWidget().
      
  | 
  slot | 
Definition at line 664 of file WhereClauseWidget.cpp.
Referenced by WhereClauseWidget().
| void te::qt::widgets::WhereClauseWidget::resetInterface | ( | ) | 
Definition at line 316 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setAttributeList | ( | const std::vector< std::string > & | vec | ) | 
Definition at line 247 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setConnectorsList | ( | const std::vector< std::string > & | vec | ) | 
Definition at line 291 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setDataSource | ( | const te::da::DataSourcePtr & | ds | ) | 
Definition at line 216 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setFromItems | ( | std::vector< std::pair< std::string, std::string > > | vec | ) | 
Definition at line 242 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setGeomAttributeList | ( | const std::vector< std::string > & | vec, | 
| int | srid | ||
| ) | 
Definition at line 259 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setLayerList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) | 
Definition at line 221 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setOperatorsList | ( | const std::vector< std::string > & | vec | ) | 
Definition at line 271 of file WhereClauseWidget.cpp.
| void te::qt::widgets::WhereClauseWidget::setSpatialOperatorsList | ( | const std::vector< std::string > & | vec | ) | 
Definition at line 281 of file WhereClauseWidget.cpp.
      
  | 
  private | 
Definition at line 170 of file WhereClauseWidget.h.
      
  | 
  private | 
Definition at line 172 of file WhereClauseWidget.h.
      
  | 
  private | 
Definition at line 174 of file WhereClauseWidget.h.
Referenced by WhereClauseWidget().
      
  | 
  private | 
Definition at line 164 of file WhereClauseWidget.h.
Referenced by WhereClauseWidget().
      
  | 
  private | 
Definition at line 166 of file WhereClauseWidget.h.
      
  | 
  private | 
Definition at line 168 of file WhereClauseWidget.h.
      
  | 
  private | 
Definition at line 175 of file WhereClauseWidget.h.
Referenced by WhereClauseWidget().
      
  | 
  private | 
Definition at line 162 of file WhereClauseWidget.h.
Referenced by WhereClauseWidget().