26 #ifndef __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_SPATIALWHERECLAUSEWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_SPATIALWHERECLAUSEWIDGET_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" 49 namespace Ui {
class SpatialWhereClauseWidgetForm; }
74 std::string getWhereString();
84 void setLayerList(std::list<te::map::AbstractLayerPtr>& layerList);
86 void setFromItems(std::vector<std::pair<std::string, std::string> > vec);
88 void setGeomAttributeList(
const std::vector<std::string>& vec,
int srid);
90 void setSpatialOperatorsList(
const std::vector<std::string>& vec);
92 void setConnectorsList(
const std::vector<std::string>& vec);
96 void resetInterface();
100 void onAddWhereClausePushButtonClicked();
102 void onRemoveWhereClausePushButtonClicked();
104 void onClearAllPushButtonClicked();
106 void onComboBoxActivated(QString value);
110 void clausesChanged();
116 void copyCombo(QComboBox* input, QComboBox* output, std::string curValue =
"");
118 QStringList getPropertyValues(std::string propertyName);
123 std::unique_ptr<Ui::SpatialWhereClauseWidgetForm>
m_ui;
143 #endif // __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_SPATIALWHERECLAUSEWIDGET_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