00001 /*************************************************************************** 00002 qgsgeomtypedialog.h - description 00003 ------------------- 00004 begin : October 2004 00005 copyright : (C) 2004 by Marco Hugentobler 00006 email : marco.hugentobler@autoform.ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 /* $Id: qgsgeomtypedialog.h 9471 2008-10-10 20:02:22Z jef $ */ 00018 #ifndef QGSGEOMTYPEDIALOG_H 00019 #define QGSGEOMTYPEDIALOG_H 00020 00021 #include "ui_qgsgeomtypedialogbase.h" 00022 #include "qgisgui.h" 00023 #include "qgscontexthelp.h" 00024 00025 #include "qgis.h" 00026 00027 class QgsGeomTypeDialog: public QDialog, private Ui::QgsGeomTypeDialogBase 00028 { 00029 Q_OBJECT 00030 public: 00031 QgsGeomTypeDialog( QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); 00032 ~QgsGeomTypeDialog(); 00034 QGis::WkbType selectedType() const; 00036 void attributes( std::list<std::pair<QString, QString> >& at ) const; 00038 QString selectedFileFormat() const; 00039 00040 protected slots: 00041 void on_mAddAttributeButton_clicked(); 00042 void on_mRemoveAttributeButton_clicked(); 00043 void on_buttonBox_helpRequested(); 00044 00045 private: 00046 QPushButton * mOkButton; 00047 static const int context_id = 165149618; 00048 00049 }; 00050 00051 #endif //QGSGEOMTYPEDIALOG_H
1.5.1