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);
134 void resetInterface();
139 void onAddWhereClausePushButtonClicked();
141 void onRemoveWhereClausePushButtonClicked();
143 void onValuePropertyRadioButtonClicked();
145 void onClearAllPushButtonClicked();
147 void onRestrictValueComboBoxActivated(QString value);
149 void onComboBoxActivated(QString value);
155 void copyCombo(QComboBox* input, QComboBox* output, std::string curValue =
"");
157 QStringList getPropertyValues(std::string propertyName);
162 std::auto_ptr<Ui::WhereClauseWidgetForm>
m_ui;
182 #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.