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; }
61 m_isAttributeCriteria =
false;
62 m_isSpatialCriteria =
false;
63 m_isPropertyValue =
false;
64 m_isValueValue =
false;
109 Ui::WhereClauseWidgetForm* getForm()
const;
113 std::string getWhereString();
120 void setLayerList(std::list<te::map::AbstractLayerPtr>& layerList);
122 void setFromItems(std::vector<std::pair<std::string, std::string> > vec);
124 void setAttributeList(
const std::vector<std::string>& vec);
126 void setGeomAttributeList(
const std::vector<std::string>& vec,
int srid);
128 void setOperatorsList(
const std::vector<std::string>& vec);
130 void setSpatialOperatorsList(
const std::vector<std::string>& vec);
132 void setConnectorsList(
const std::vector<std::string>& vec);
134 void setCriteriaTabEnabled(
int index,
bool enable);
138 void resetInterface();
142 void onAddWhereClausePushButtonClicked();
144 void onRemoveWhereClausePushButtonClicked();
146 void onValuePropertyRadioButtonClicked();
148 void onClearAllPushButtonClicked();
150 void onRestrictValueComboBoxActivated(QString value);
152 void onComboBoxActivated(QString value);
158 void copyCombo(QComboBox* input, QComboBox* output, std::string curValue =
"");
160 QStringList getPropertyValues(std::string propertyName);
165 std::auto_ptr<Ui::WhereClauseWidgetForm>
m_ui;
185 #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.