QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 dot kuhn at gmx 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, QString startText = QString(), QWidget* parent = 0 );
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_mActionSelectInstersect_triggered();
70  void on_mPbnClose_clicked();
71 
72  protected:
78  virtual void closeEvent( QCloseEvent *closeEvent );
79 
85  virtual void done( int r );
86 
87  private:
88  void saveRecent();
89  QgsVectorLayer* mLayer;
90 };
91 
92 #endif
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.