QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsuserinputwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsuserinputwidget.h
3
--------------------------------------
4
Date : 04.2015
5
Copyright : (C) 2015 Denis Rouzaud
6
Email : denis.rouzaud@gmail.com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
17
#ifndef QGSUSERINPUTWIDGET_H
18
#define QGSUSERINPUTWIDGET_H
19
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
#include "
qgsfloatingwidget.h
"
23
24
#include <QBoxLayout>
25
#include <QMap>
26
27
class
QBoxLayout;
28
class
QFrame;
29
30
40
class
GUI_EXPORT
QgsUserInputWidget
:
public
QgsFloatingWidget
41
{
42
Q_OBJECT
43
public
:
45
QgsUserInputWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
46
51
void
addUserInputWidget
( QWidget *widget );
52
53
protected
:
54
// will not display the dock if it contains no widget
55
void
paintEvent
( QPaintEvent *event )
override
;
56
57
private
slots:
58
void
widgetDestroyed( QObject *obj );
59
60
private
:
62
void
setLayoutDirection( QBoxLayout::Direction direction );
63
64
// list of widget with their corresponding line separator
65
QMap<QWidget *, QFrame *> mWidgetList;
66
67
bool
mLayoutHorizontal =
true
;
68
QBoxLayout *mLayout =
nullptr
;
69
};
70
71
#endif
// QGSUSERINPUTWIDGET_H
QgsFloatingWidget::QgsFloatingWidget
QgsFloatingWidget(QWidget *parent=nullptr)
Constructor for QgsFloatingWidget.
Definition
qgsfloatingwidget.cpp:28
QgsFloatingWidget::paintEvent
void paintEvent(QPaintEvent *e) override
Definition
qgsfloatingwidget.cpp:95
QgsUserInputWidget::QgsUserInputWidget
QgsUserInputWidget(QWidget *parent=nullptr)
Constructor for QgsUserInputWidget.
Definition
qgsuserinputwidget.cpp:25
QgsUserInputWidget::addUserInputWidget
void addUserInputWidget(QWidget *widget)
Add a widget to be displayed in the dock.
Definition
qgsuserinputwidget.cpp:57
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsfloatingwidget.h
Generated on
for QGIS API Documentation by
1.17.0