26 #ifndef __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H
30 #include "../Config.h"
31 #include "../../../dataaccess/datasource/DataSource.h"
32 #include "../../../dataaccess/query/Expression.h"
33 #include "../../../dataaccess/query/Where.h"
34 #include "../../../maptools/AbstractLayer.h"
46 namespace Ui {
class WhereClauseWidgetForm; }
107 Ui::WhereClauseWidgetForm* getForm()
const;
111 std::string getWhereString();
118 void setLayerList(std::list<te::map::AbstractLayerPtr>& layerList);
120 void setFromItems(std::vector<std::pair<std::string, std::string> > vec);
122 void setAttributeList(
const std::vector<std::string>& vec);
124 void setGeomAttributeList(
const std::vector<std::string>& vec,
int srid);
126 void setOperatorsList(
const std::vector<std::string>& vec);
128 void setSpatialOperatorsList(
const std::vector<std::string>& vec);
130 void setConnectorsList(
const std::vector<std::string>& vec);
132 void setCriteriaTabEnabled(
int index,
bool enable);
136 void resetInterface();
140 void onAddWhereClausePushButtonClicked();
142 void onRemoveWhereClausePushButtonClicked();
144 void onValuePropertyRadioButtonClicked();
146 void onClearAllPushButtonClicked();
148 void onRestrictValueComboBoxActivated(QString value);
150 void onComboBoxActivated(QString value);
156 void copyCombo(QComboBox* input, QComboBox* output, std::string curValue =
"");
158 QStringList getPropertyValues(std::string propertyName);
163 std::auto_ptr<Ui::WhereClauseWidgetForm>
m_ui;
183 #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.