15 #ifndef QGSQUERYBUILDER_H
16 #define QGSQUERYBUILDER_H
19 #include <QStandardItemModel>
20 #include <QStandardItem>
21 #include <QModelIndex>
22 #include "ui_qgsquerybuilderbase.h"
40 class GUI_EXPORT
QgsQueryBuilder :
public QDialog,
private Ui::QgsQueryBuilderBase
55 void showEvent( QShowEvent *event );
61 void on_btnEqual_clicked();
62 void on_btnLessThan_clicked();
63 void on_btnGreaterThan_clicked();
64 void on_btnPct_clicked();
65 void on_btnIn_clicked();
66 void on_btnNotIn_clicked();
67 void on_btnLike_clicked();
68 void on_btnILike_clicked();
70 void setSql( QString sqlStatement );
71 void on_lstFields_clicked(
const QModelIndex &
index );
72 void on_lstFields_doubleClicked(
const QModelIndex &index );
73 void on_lstValues_doubleClicked(
const QModelIndex &index );
74 void on_btnLessEqual_clicked();
75 void on_btnGreaterEqual_clicked();
76 void on_btnNotEqual_clicked();
77 void on_btnAnd_clicked();
78 void on_btnNot_clicked();
79 void on_btnOr_clicked();
93 void on_btnGetAllValues_clicked();
99 void on_btnSampleValues_clicked();
101 void setDatasourceDescription( QString uri );
107 void populateFields();
112 void setupGuiViews();
113 void setupLstFieldsModel();
114 void fillValues(
int idx,
int limit );
118 QStandardItemModel *mModelFields;
120 QStandardItemModel *mModelValues;
122 int mPreviousFieldRow;
128 QString mOrigSubsetString;
130 #endif //QGSQUERYBUILDER_H