QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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 "qgis_gui.h"
22#include "qgis_sip.h"
23#include "qgsguiutils.h"
24
25#include <QDialog>
26#include <QDialogButtonBox>
27#include <QLayout>
28
33class GUI_EXPORT QgsDialog : public QDialog
34{
35 Q_OBJECT
36 public:
37
41 QgsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close, Qt::Orientation orientation = Qt::Horizontal );
42
44 QVBoxLayout *layout() { return mLayout; }
46 QDialogButtonBox *buttonBox() { return mButtonBox; }
47
48 protected:
49 QVBoxLayout *mLayout = nullptr;
50 QDialogButtonBox *mButtonBox = nullptr;
51};
52
53#endif
QDialogButtonBox * buttonBox()
Returns the button box.
Definition qgsdialog.h:46
QgsDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Close, Qt::Orientation orientation=Qt::Horizontal)
Constructor for QgsDialog.
Definition qgsdialog.cpp:22
QDialogButtonBox * mButtonBox
Definition qgsdialog.h:50
QVBoxLayout * layout()
Returns the central layout. Widgets added to it must have this dialog as parent.
Definition qgsdialog.h:44
QVBoxLayout * mLayout
Definition qgsdialog.h:49
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53