26 #ifndef __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H 
   27 #define __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H 
   30 #include "../Config.h" 
   32 #include "../../../dataaccess/datasource/DataSource.h" 
   33 #include "../../../dataaccess/query/Expression.h" 
   34 #include "../../../dataaccess/query/Where.h" 
   35 #include "../../../maptools/AbstractLayer.h" 
   48 namespace Ui { 
class WhereClauseWidgetForm; }
 
  111           std::string getWhereString();
 
  121           void setLayerList(std::list<te::map::AbstractLayerPtr>& layerList);
 
  123           void setFromItems(std::vector<std::pair<std::string, std::string> > vec);
 
  125           void setAttributeList(
const std::vector<std::string>& vec);
 
  127           void setGeomAttributeList(
const std::vector<std::string>& vec, 
int srid);
 
  129           void setOperatorsList(
const std::vector<std::string>& vec);
 
  131           void setSpatialOperatorsList(
const std::vector<std::string>& vec);
 
  133           void setConnectorsList(
const std::vector<std::string>& vec);
 
  135           void setCriteriaTabEnabled(
int index, 
bool enable);
 
  139           void resetInterface();
 
  143           void onAddWhereClausePushButtonClicked();
 
  145           void onRemoveWhereClausePushButtonClicked();
 
  147           void onValuePropertyRadioButtonClicked();
 
  149           void onClearAllPushButtonClicked();
 
  151           void onRestrictValueComboBoxActivated(QString value);
 
  153           void onComboBoxActivated(QString value);
 
  159           void copyCombo(QComboBox* input, QComboBox* output, std::string curValue = 
"");
 
  161           QStringList getPropertyValues(std::string propertyName);
 
  166           std::auto_ptr<Ui::WhereClauseWidgetForm> 
m_ui;
 
  186 #endif  // __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H 
boost::shared_ptr< DataSource > DataSourcePtr
 
This is an abstract class that models a query expression. 
 
A class that can be used to model a filter expression that can be applied to a query. 
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr