15 #ifndef QGSQUERYBUILDER_H 16 #define QGSQUERYBUILDER_H 20 #include <QStandardItemModel> 21 #include <QStandardItem> 22 #include <QModelIndex> 23 #include "ui_qgsquerybuilderbase.h" 42 class GUI_EXPORT
QgsQueryBuilder :
public QDialog,
private Ui::QgsQueryBuilderBase
55 Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
59 void showEvent( QShowEvent *event )
override;
62 void setSql(
const QString &sqlStatement );
65 void accept()
override;
66 void reject()
override;
77 void setDatasourceDescription(
const QString &uri );
80 void btnEqual_clicked();
81 void btnLessThan_clicked();
82 void btnGreaterThan_clicked();
83 void btnPct_clicked();
85 void btnNotIn_clicked();
86 void btnLike_clicked();
87 void btnILike_clicked();
88 void lstFields_clicked(
const QModelIndex &index );
89 void lstFields_doubleClicked(
const QModelIndex &index );
90 void lstValues_doubleClicked(
const QModelIndex &index );
91 void btnLessEqual_clicked();
92 void btnGreaterEqual_clicked();
93 void btnNotEqual_clicked();
94 void btnAnd_clicked();
95 void btnNot_clicked();
102 void btnGetAllValues_clicked();
109 void btnSampleValues_clicked();
116 void populateFields();
123 void setupGuiViews();
124 void setupLstFieldsModel();
125 void fillValues(
int idx,
int limit );
129 QStandardItemModel *mModelFields =
nullptr;
131 QStandardItemModel *mModelValues =
nullptr;
133 int mPreviousFieldRow;
139 QString mOrigSubsetString;
141 #endif //QGSQUERYBUILDER_H
Query Builder for layers.
Represents a vector layer which manages a vector based data sets.