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"
42 #include <QtGui/QComboBox>
43 #include <QtGui/QWidget>
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);
137 void onAddWhereClausePushButtonClicked();
139 void onRemoveWhereClausePushButtonClicked();
141 void onValuePropertyRadioButtonClicked();
143 void onClearAllPushButtonClicked();
145 void onRestrictValueComboBoxActivated(QString value);
147 void onComboBoxActivated(QString value);
153 void copyCombo(QComboBox* input, QComboBox* output, std::string curValue =
"");
155 QStringList getPropertyValues(std::string propertyName);
160 std::auto_ptr<Ui::WhereClauseWidgetForm>
m_ui;
180 #endif // __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_WHERECLAUSEWIDGET_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
QStringList m_connectorsList
std::map< QComboBox *, std::pair< int, int > > m_comboMap
bool m_isAttributeCriteria
te::da::Expression * m_expression
This class is used to define the WHERE object of select operation.
boost::shared_ptr< DataSource > DataSourcePtr
ExpressionProperty()
Default constructor.
std::map< int, ExpressionProperty * > m_mapExp
This is an abstract class that models a query expression.
te::da::DataSourcePtr m_ds
std::auto_ptr< Ui::WhereClauseWidgetForm > m_ui
A class that can be used to model a filter expression that can be applied to a query.
QComboBox * m_valuesComboBox
std::vector< std::pair< std::string, std::string > > m_fromItems