QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
30 class GUI_EXPORT QgsExpressionSelectionDialog : public QDialog, private Ui::QgsExpressionSelectionDialogBase
31 {
32  Q_OBJECT
33 
34  public:
41  QgsExpressionSelectionDialog( QgsVectorLayer* layer, QString startText = QString(), QWidget* parent = 0 );
42 
47  QgsExpressionBuilderWidget* expressionBuilder();
48 
53  void setExpressionText( const QString& text );
54 
59  QString expressionText();
60 
64  void setGeomCalculator( const QgsDistanceArea & da );
65 
66  public slots:
67  void on_mActionSelect_triggered();
68  void on_mActionAddToSelection_triggered();
69  void on_mActionRemoveFromSelection_triggered();
70  void on_mActionSelectInstersect_triggered();
71  void on_mPbnClose_clicked();
72 
73  protected:
79  virtual void closeEvent( QCloseEvent *closeEvent );
80 
86  virtual void done( int r );
87 
88  private:
89  void saveRecent();
91 };
92 
93 #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.