QGIS API Documentation  2.99.0-Master (dcec6bb)
Public Slots | Public Member Functions | List of all members
QgsSearchQueryBuilder Class Reference

Query Builder for search strings. More...

#include <qgssearchquerybuilder.h>

Inheritance diagram for QgsSearchQueryBuilder:
Inheritance graph
[legend]

Public Slots

void loadQuery ()
 
void on_btnAnd_clicked ()
 
void on_btnClear_clicked ()
 
void on_btnEqual_clicked ()
 
void on_btnGetAllValues_clicked ()
 Get all distinct values for the field. More...
 
void on_btnGreaterEqual_clicked ()
 
void on_btnGreaterThan_clicked ()
 
void on_btnILike_clicked ()
 
void on_btnIn_clicked ()
 
void on_btnLessEqual_clicked ()
 
void on_btnLessThan_clicked ()
 
void on_btnLike_clicked ()
 
void on_btnNot_clicked ()
 
void on_btnNotEqual_clicked ()
 
void on_btnNotIn_clicked ()
 
void on_btnOk_clicked ()
 
void on_btnOr_clicked ()
 
void on_btnPct_clicked ()
 
void on_btnSampleValues_clicked ()
 Get sample distinct values for the selected field. More...
 
void on_btnTest_clicked ()
 Test the constructed search string to see if it's correct. More...
 
void on_buttonBox_helpRequested ()
 
void on_lstFields_doubleClicked (const QModelIndex &index)
 
void on_lstValues_doubleClicked (const QModelIndex &index)
 
void saveQuery ()
 

Public Member Functions

 QgsSearchQueryBuilder (QgsVectorLayer *layer, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
 Constructor - takes pointer to vector layer as a parameter. More...
 
QString searchString ()
 returns newly created search string More...
 
void setSearchString (const QString &searchString)
 change search string shown in text field More...
 

Detailed Description

Query Builder for search strings.

Definition at line 36 of file qgssearchquerybuilder.h.

Constructor & Destructor Documentation

◆ QgsSearchQueryBuilder()

QgsSearchQueryBuilder::QgsSearchQueryBuilder ( QgsVectorLayer layer,
QWidget *  parent = nullptr,
Qt::WindowFlags  fl = QgsGuiUtils::ModalDialogFlags 
)

Constructor - takes pointer to vector layer as a parameter.

Definition at line 35 of file qgssearchquerybuilder.cpp.

Member Function Documentation

◆ loadQuery

void QgsSearchQueryBuilder::loadQuery ( )
slot

Definition at line 394 of file qgssearchquerybuilder.cpp.

◆ on_btnAnd_clicked

void QgsSearchQueryBuilder::on_btnAnd_clicked ( )
slot

Definition at line 333 of file qgssearchquerybuilder.cpp.

◆ on_btnClear_clicked

void QgsSearchQueryBuilder::on_btnClear_clicked ( )
slot

Definition at line 348 of file qgssearchquerybuilder.cpp.

◆ on_btnEqual_clicked

void QgsSearchQueryBuilder::on_btnEqual_clicked ( )
slot

Definition at line 263 of file qgssearchquerybuilder.cpp.

◆ on_btnGetAllValues_clicked

void QgsSearchQueryBuilder::on_btnGetAllValues_clicked ( )
slot

Get all distinct values for the field.

Values are inserted into the value list box

Definition at line 165 of file qgssearchquerybuilder.cpp.

◆ on_btnGreaterEqual_clicked

void QgsSearchQueryBuilder::on_btnGreaterEqual_clicked ( )
slot

Definition at line 323 of file qgssearchquerybuilder.cpp.

◆ on_btnGreaterThan_clicked

void QgsSearchQueryBuilder::on_btnGreaterThan_clicked ( )
slot

Definition at line 273 of file qgssearchquerybuilder.cpp.

◆ on_btnILike_clicked

void QgsSearchQueryBuilder::on_btnILike_clicked ( )
slot

Definition at line 353 of file qgssearchquerybuilder.cpp.

◆ on_btnIn_clicked

void QgsSearchQueryBuilder::on_btnIn_clicked ( )
slot

Definition at line 283 of file qgssearchquerybuilder.cpp.

◆ on_btnLessEqual_clicked

void QgsSearchQueryBuilder::on_btnLessEqual_clicked ( )
slot

Definition at line 318 of file qgssearchquerybuilder.cpp.

◆ on_btnLessThan_clicked

void QgsSearchQueryBuilder::on_btnLessThan_clicked ( )
slot

Definition at line 268 of file qgssearchquerybuilder.cpp.

◆ on_btnLike_clicked

void QgsSearchQueryBuilder::on_btnLike_clicked ( )
slot

Definition at line 293 of file qgssearchquerybuilder.cpp.

◆ on_btnNot_clicked

void QgsSearchQueryBuilder::on_btnNot_clicked ( )
slot

Definition at line 338 of file qgssearchquerybuilder.cpp.

◆ on_btnNotEqual_clicked

void QgsSearchQueryBuilder::on_btnNotEqual_clicked ( )
slot

Definition at line 328 of file qgssearchquerybuilder.cpp.

◆ on_btnNotIn_clicked

void QgsSearchQueryBuilder::on_btnNotIn_clicked ( )
slot

Definition at line 288 of file qgssearchquerybuilder.cpp.

◆ on_btnOk_clicked

void QgsSearchQueryBuilder::on_btnOk_clicked ( )
slot

Definition at line 237 of file qgssearchquerybuilder.cpp.

◆ on_btnOr_clicked

void QgsSearchQueryBuilder::on_btnOr_clicked ( )
slot

Definition at line 343 of file qgssearchquerybuilder.cpp.

◆ on_btnPct_clicked

void QgsSearchQueryBuilder::on_btnPct_clicked ( )
slot

Definition at line 278 of file qgssearchquerybuilder.cpp.

◆ on_btnSampleValues_clicked

void QgsSearchQueryBuilder::on_btnSampleValues_clicked ( )
slot

Get sample distinct values for the selected field.

The sample size is limited to an arbitrary value (currently set to 25). The values are inserted into the values list box.

Definition at line 160 of file qgssearchquerybuilder.cpp.

◆ on_btnTest_clicked

void QgsSearchQueryBuilder::on_btnTest_clicked ( )
slot

Test the constructed search string to see if it's correct.

The number of rows that would be returned is displayed in a message box.

Definition at line 170 of file qgssearchquerybuilder.cpp.

◆ on_buttonBox_helpRequested

void QgsSearchQueryBuilder::on_buttonBox_helpRequested ( )
inlineslot

Definition at line 91 of file qgssearchquerybuilder.h.

◆ on_lstFields_doubleClicked

void QgsSearchQueryBuilder::on_lstFields_doubleClicked ( const QModelIndex &  index)
slot

Definition at line 308 of file qgssearchquerybuilder.cpp.

◆ on_lstValues_doubleClicked

void QgsSearchQueryBuilder::on_lstValues_doubleClicked ( const QModelIndex &  index)
slot

Definition at line 313 of file qgssearchquerybuilder.cpp.

◆ saveQuery

void QgsSearchQueryBuilder::saveQuery ( )
slot

Definition at line 358 of file qgssearchquerybuilder.cpp.

◆ searchString()

QString QgsSearchQueryBuilder::searchString ( )

returns newly created search string

Definition at line 298 of file qgssearchquerybuilder.cpp.

◆ setSearchString()

void QgsSearchQueryBuilder::setSearchString ( const QString &  searchString)

change search string shown in text field

Definition at line 303 of file qgssearchquerybuilder.cpp.


The documentation for this class was generated from the following files: