QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdialog.h
3  -------------------
4  begin : July 2012
5  copyright : (C) 2012 by Etienne Tourigny
6  email : etourigny dot dev at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSDIALOG_H
19 #define QGSDIALOG_H
20 
21 #include "qgisgui.h"
22 
23 #include <QDialog>
24 #include <QDialogButtonBox>
25 #include <QLayout>
26 
30 class GUI_EXPORT QgsDialog : public QDialog
31 {
32  Q_OBJECT
33  public:
34  QgsDialog( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags,
35  QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close,
36  Qt::Orientation orientation = Qt::Horizontal );
37  ~QgsDialog();
38 
40  QVBoxLayout *layout() { return mLayout; }
42  QDialogButtonBox *buttonBox() { return mButtonBox; }
43 
44  protected:
45  QVBoxLayout *mLayout;
46  QDialogButtonBox *mButtonBox;
47 };
48 
49 #endif