2017-06-08 11:26:03 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-01-13 11:55:21 -04:00
|
|
|
* src/gui/qgsuserinputwidget.h *
|
2017-06-08 11:26:03 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-13 11:55:21 -04:00
|
|
|
class QgsUserInputWidget : QgsFloatingWidget
|
2015-06-02 08:03:33 +02:00
|
|
|
{
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
The QgsUserInputWidget class is a floating widget that shall be used to display widgets for user inputs.
|
2017-12-15 10:36:55 -04:00
|
|
|
It can be used by map tools, plugins, etc.
|
2018-01-13 11:55:21 -04:00
|
|
|
Several widgets can be displayed at once, they will be separated by a separator.
|
|
|
|
Widgets will be either layout horizontally or vertically.
|
|
|
|
The widget is automatically hidden if it contains no widget.
|
2018-01-13 13:57:14 -04:00
|
|
|
|
|
|
|
.. versionadded:: 2.10
|
2017-06-08 11:26:03 +02:00
|
|
|
%End
|
|
|
|
|
2015-06-02 08:03:33 +02:00
|
|
|
%TypeHeaderCode
|
2018-01-13 11:55:21 -04:00
|
|
|
#include "qgsuserinputwidget.h"
|
2015-06-02 08:03:33 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2018-01-13 11:55:21 -04:00
|
|
|
QgsUserInputWidget( QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
2018-01-13 11:55:21 -04:00
|
|
|
Constructor for QgsUserInputWidget
|
2017-12-12 11:44:10 +10:00
|
|
|
%End
|
2015-06-02 08:03:33 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void addUserInputWidget( QWidget *widget );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Add a widget to be displayed in the dock.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param widget: widget to add. Ownership is not transferred.
|
2017-06-08 11:26:03 +02:00
|
|
|
%End
|
2015-06-02 08:03:33 +02:00
|
|
|
|
|
|
|
protected:
|
2017-06-08 11:26:03 +02:00
|
|
|
virtual void paintEvent( QPaintEvent *event );
|
|
|
|
|
2015-06-02 08:03:33 +02:00
|
|
|
|
|
|
|
};
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-01-13 11:55:21 -04:00
|
|
|
* src/gui/qgsuserinputwidget.h *
|
2017-06-08 11:26:03 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|