QGIS/python/gui/auto_generated/qgsfloatingwidget.sip.in

137 lines
4.3 KiB
Plaintext
Raw Normal View History

2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfloatingwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFloatingWidget: QWidget
2016-04-26 15:54:30 +10:00
{
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A QWidget subclass for creating widgets which float outside of the normal Qt layout
system. Floating widgets use an "anchor widget" to determine how they are anchored
within their parent widget.
2017-05-23 14:44:34 +02:00
.. versionadded:: 3.0
2016-04-26 15:54:30 +10:00
%End
2017-05-23 14:44:34 +02:00
%TypeHeaderCode
#include "qgsfloatingwidget.h"
%End
2016-04-26 15:54:30 +10:00
public:
enum AnchorPoint
{
2017-05-23 14:44:34 +02:00
TopLeft,
TopMiddle,
TopRight,
MiddleLeft,
Middle,
MiddleRight,
BottomLeft,
BottomMiddle,
BottomRight,
2016-04-26 15:54:30 +10:00
};
QgsFloatingWidget( QWidget *parent /TransferThis/ = 0 );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsFloatingWidget.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent: parent widget
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
void setAnchorWidget( QWidget *widget );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the widget to "anchor" the floating widget to. The floating widget will be repositioned whenever the
anchor widget moves or is resized so that it maintains the same relative position to the anchor widget.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param widget: anchor widget. Both the floating widget and the anchor widget must share some common parent.
.. seealso:: :py:func:`anchorWidget`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
QWidget *anchorWidget();
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the widget that the floating widget is "anchored" tto. The floating widget will be repositioned whenever the
anchor widget moves or is resized so that it maintains the same relative position to the anchor widget.
.. seealso:: :py:func:`setAnchorWidget`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
AnchorPoint anchorPoint() const;
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the floating widget's anchor point, which corresponds to the point on the widget which should remain
fixed in the same relative position whenever the widget's parent is resized or moved.
.. seealso:: :py:func:`setAnchorPoint`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
void setAnchorPoint( AnchorPoint point );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the floating widget's anchor point, which corresponds to the point on the widget which should remain
fixed in the same relative position whenever the widget's parent is resized or moved.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param point: anchor point
.. seealso:: :py:func:`anchorPoint`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
AnchorPoint anchorWidgetPoint() const;
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the anchor widget's anchor point, which corresponds to the point on the anchor widget which
the floating widget should "attach" to. The floating widget should remain fixed in the same relative position
to this anchor widget whenever the widget's parent is resized or moved.
.. seealso:: :py:func:`setAnchorWidgetPoint`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
void setAnchorWidgetPoint( AnchorPoint point );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the anchor widget's anchor point, which corresponds to the point on the anchor widget which
the floating widget should "attach" to. The floating widget should remain fixed in the same relative position
to this anchor widget whenever the widget's parent is resized or moved.
.. seealso:: :py:func:`setAnchorWidgetPoint`
2017-05-23 14:44:34 +02:00
%End
2016-04-26 15:54:30 +10:00
2016-12-15 13:22:39 +10:00
signals:
void anchorWidgetChanged( QWidget *widget );
2017-05-23 14:44:34 +02:00
%Docstring
Emitted when the anchor widget changes
%End
2016-12-15 13:22:39 +10:00
void anchorPointChanged( QgsFloatingWidget::AnchorPoint point );
2017-05-23 14:44:34 +02:00
%Docstring
Emitted when the anchor point changes
%End
2016-12-15 13:22:39 +10:00
void anchorWidgetPointChanged( QgsFloatingWidget::AnchorPoint point );
2017-05-23 14:44:34 +02:00
%Docstring
Emitted when the anchor widget point changes
%End
2016-12-15 13:22:39 +10:00
2016-04-26 15:54:30 +10:00
protected:
2017-05-23 14:44:34 +02:00
virtual void showEvent( QShowEvent *e );
virtual void paintEvent( QPaintEvent *e );
2016-04-26 15:54:30 +10:00
virtual void resizeEvent( QResizeEvent *e );
2016-04-26 15:54:30 +10:00
};
2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfloatingwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/