QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsexpressionselectiondialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgisexpressionselectiondialog.h
3  --------------------------------------
4  Date : 24.1.2013
5  Copyright : (C) 2013 by Matthias kuhn
6  Email : matthias at opengis dot ch
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSEXPRESSIONSELECTIONDIALOG_H
17 #define QGSEXPRESSIONSELECTIONDIALOG_H
18 
19 #include <QDialog>
20 #include "qgsdistancearea.h"
21 #include "ui_qgsexpressionselectiondialogbase.h"
22 
29 class GUI_EXPORT QgsExpressionSelectionDialog : public QDialog, private Ui::QgsExpressionSelectionDialogBase
30 {
31  Q_OBJECT
32 
33  public:
40  QgsExpressionSelectionDialog( QgsVectorLayer* layer, const QString& startText = QString(), QWidget* parent = nullptr );
41 
46  QgsExpressionBuilderWidget* expressionBuilder();
47 
52  void setExpressionText( const QString& text );
53 
58  QString expressionText();
59 
63  void setGeomCalculator( const QgsDistanceArea & da );
64 
65  public slots:
66  void on_mActionSelect_triggered();
67  void on_mActionAddToSelection_triggered();
68  void on_mActionRemoveFromSelection_triggered();
69  void on_mActionSelectIntersect_triggered();
70  void on_mPbnClose_clicked();
71 
72  protected:
78  virtual void closeEvent( QCloseEvent *closeEvent ) override;
79 
85  virtual void done( int r ) override;
86 
87  private:
88  void saveRecent();
89  QgsVectorLayer* mLayer;
90 };
91 
92 #endif
virtual void closeEvent(QCloseEvent *e)
virtual void done(int r)
This class offers a dialog to change feature selections.
General purpose distance and area calculator.
A reusable widget that can be used to build a expression string.
Represents a vector layer which manages a vector based data sets.