2016-07-05 11:42:59 +10:00
|
|
|
/** \ingroup gui
|
|
|
|
* @brief The QgsUserInputDockWidget class is a dock widget that shall be used to display widgets for user inputs.
|
|
|
|
* It can be used by map tools, plugins, etc.
|
|
|
|
* Several widgets can be displayed at once, they will be separated by a separator. Widgets will be either layout horizontally or vertically.
|
|
|
|
* The dock is automatically hidden if it contains no widget.
|
|
|
|
*/
|
2015-06-02 08:03:33 +02:00
|
|
|
class QgsUserInputDockWidget : QDockWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsuserinputdockwidget.h"
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsUserInputDockWidget( QWidget *parent /TransferThis/ = 0 );
|
2015-06-02 08:03:33 +02:00
|
|
|
~QgsUserInputDockWidget();
|
|
|
|
|
2016-07-05 11:42:59 +10:00
|
|
|
/** Add a widget to be displayed in the dock.
|
|
|
|
* @param widget widget to add. Ownership is not transferred.
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void addUserInputWidget( QWidget *widget );
|
2015-06-02 08:03:33 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
//! will not display the dock if it contains no widget
|
|
|
|
void paintEvent( QPaintEvent *event );
|
|
|
|
|
|
|
|
};
|