Quantum GIS API Documentation  1.8
src/gui/qgsexpressionbuilderdialog.h
Go to the documentation of this file.
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 "ui_qgsexpressionbuilderdialogbase.h"
00021 
00025 class GUI_EXPORT QgsExpressionBuilderDialog : public QDialog, private Ui::QgsExpressionBuilderDialogBase
00026 {
00027   public:
00028     QgsExpressionBuilderDialog( QgsVectorLayer* layer, QString startText = QString(), QWidget* parent = NULL );
00029 
00031     QgsExpressionBuilderWidget* expressionBuilder();
00032 
00033     void setExpressionText( const QString& text );
00034 
00035     QString expressionText();
00036 
00037   protected:
00042     void closeEvent( QCloseEvent * event );
00043 };
00044 
00045 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines