|
QGIS API Documentation
master-28efcda
|
00001 /*************************************************************************** 00002 qgsdialog.h 00003 ------------------- 00004 begin : July 2012 00005 copyright : (C) 2012 by Etienne Tourigny 00006 email : etourigny dot dev at gmail dot com 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 00018 #ifndef QGSDIALOG_H 00019 #define QGSDIALOG_H 00020 00021 #include "qgisgui.h" 00022 00023 #include <QDialog> 00024 #include <QDialogButtonBox> 00025 #include <QLayout> 00026 00030 class GUI_EXPORT QgsDialog : public QDialog 00031 { 00032 Q_OBJECT 00033 public: 00034 QgsDialog( QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags, 00035 QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close, 00036 Qt::Orientation orientation = Qt::Horizontal ); 00037 ~QgsDialog(); 00038 00040 QVBoxLayout *layout() { return mLayout; } 00042 QDialogButtonBox *buttonBox() { return mButtonBox; } 00043 00044 protected: 00045 QVBoxLayout *mLayout; 00046 QDialogButtonBox *mButtonBox; 00047 }; 00048 00049 #endif