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

146 lines
3.9 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgspanelwidgetstack.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsPanelWidgetStack : QWidget
2016-07-07 09:22:30 +10:00
{
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A stack widget to manage panels in the interface. Handles the open and close events
for added panels.
Any widgets that want to have a non blocking panel based interface should use this
class to manage the panels.
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
%TypeHeaderCode
#include "qgspanelwidgetstack.h"
%End
public:
QgsPanelWidgetStack( QWidget *parent = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A stack widget to manage panels in the interface. Handles the open and close events
for added panels.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent:
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
void setMainPanel( QgsPanelWidget *panel );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Adds the main panel widget to the stack and selects it for the user
The main widget can not be closed and only the showPanel signal is attached
to handle children widget opening panels.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param panel: The panel to set as the first widget in the stack.
2017-06-07 16:16:21 +02:00
.. note::
a stack can have only one main panel. Any existing main panel
2018-01-12 20:51:17 -04:00
should be removed by first calling takeMainPanel().
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`mainPanel`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`takeMainPanel`
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
QgsPanelWidget *mainPanel();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The main panel widget that is set in the stack. The main widget can not be closed
and doesn't display a back button.
:return: The main QgsPanelWidget that is active in the stack.
.. seealso:: :py:func:`setMainPanel`
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
QgsPanelWidget *takeMainPanel();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Removes the main panel widget from the stack and transfers ownsership to the
caller.
:return: The main widget that is set in the stack.
2017-06-07 16:16:21 +02:00
.. note::
Calling this will clear out any current stacked panels by accepting
2018-01-12 20:51:17 -04:00
each panel in turn.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`mainPanel`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setMainPanel`
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
void clear();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Clear the stack of all widgets. Unless the panels autoDelete is set to false
the widget will be deleted.
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
QgsPanelWidget *currentPanel();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the panel currently shown in the stack.
2017-06-07 16:16:21 +02:00
.. versionadded:: 3.0
%End
2016-07-07 09:22:30 +10:00
public slots:
2017-06-07 16:16:21 +02:00
2016-07-07 09:22:30 +10:00
void acceptCurrentPanel();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Accept the current active widget in the stack.
Calls the panelAccepeted signal on the active widget.
2017-06-07 16:16:21 +02:00
.. seealso:: :py:func:`acceptAllPanels`
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
void acceptAllPanels();
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Accepts all panel widgets open in the stack in turn until until only the mainPanel()
remains.
.. seealso:: :py:func:`acceptCurrentPanel`
2017-12-15 10:36:55 -04:00
2017-06-07 16:16:21 +02:00
.. versionadded:: 3.0
%End
void showPanel( QgsPanelWidget *panel );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Show a panel in the stack widget. Will connect to the panels showPanel event to handle
nested panels. Auto switches the the given panel for the user.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param panel: The panel to show.
2017-06-07 16:16:21 +02:00
%End
2016-07-07 09:22:30 +10:00
void closePanel( QgsPanelWidget *panel );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Closes the panel in the widget. Will also delete the widget.
This slot is normally auto connected to panelAccepted when a panel is shown.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param panel: The panel to close.
2017-06-07 16:16:21 +02:00
%End
protected:
2017-06-07 16:16:21 +02:00
virtual void mouseReleaseEvent( QMouseEvent *e );
virtual void keyPressEvent( QKeyEvent *e );
2016-07-07 09:22:30 +10:00
};
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgspanelwidgetstack.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/