|
Quantum GIS API Documentation
master-693a1fe
|
00001 /*************************************************************************** 00002 qgisexpressionbuilderdialog.h - A genric expression string builder dialog. 00003 -------------------------------------- 00004 Date : 29-May-2011 00005 Copyright : (C) 2011 by Nathan Woodrow 00006 Email : woodrow.nathan at gmail dot com 00007 *************************************************************************** 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 ***************************************************************************/ 00015 00016 #ifndef QGSEXPRESSIONBUILDERDIALOG_H 00017 #define QGSEXPRESSIONBUILDERDIALOG_H 00018 00019 #include <QDialog> 00020 #include "qgsdistancearea.h" 00021 #include "ui_qgsexpressionbuilderdialogbase.h" 00022 00026 class GUI_EXPORT QgsExpressionBuilderDialog : public QDialog, private Ui::QgsExpressionBuilderDialogBase 00027 { 00028 public: 00029 QgsExpressionBuilderDialog( QgsVectorLayer* layer, QString startText = QString(), QWidget* parent = NULL ); 00030 00032 QgsExpressionBuilderWidget* expressionBuilder(); 00033 00034 void setExpressionText( const QString& text ); 00035 00036 QString expressionText(); 00037 00041 void setGeomCalculator( const QgsDistanceArea & da ); 00042 00043 protected: 00050 virtual void done( int r ); 00051 }; 00052 00053 #endif