2017-06-08 11:26:03 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgstabwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2016-09-09 08:07:13 +02:00
|
|
|
class QgsTabWidget : QTabWidget
|
|
|
|
{
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The QgsTabWidget class is the same as the QTabWidget but with additional methods to
|
|
|
|
temporarily hide/show tabs.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2016-09-09 08:07:13 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgstabwidget.h"
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
public:
|
2017-06-08 11:26:03 +02:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsTabWidget( QWidget *parent = 0 );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Create a new QgsTabWidget with the optionally provided parent.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void hideTab( QWidget *tab );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Hides the tab with the given widget
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void showTab( QWidget *tab );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Shows the tab with the given widget
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setTabVisible( QWidget *tab, bool visible );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Control the visibility for the tab with the given widget.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
int realTabIndex( QWidget *widget );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the index of the tab with the given widget.
|
|
|
|
This index is not the same as the one provided to insertTab and removeTab
|
|
|
|
since these methods are not aware of hidden tabs.
|
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 08:07:13 +02:00
|
|
|
|
|
|
|
virtual void tabInserted( int index );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Is called internally whenever a new tab has been inserted.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
Is used to keep track of currently available and visible tabs.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-09 09:49:25 +02:00
|
|
|
|
2016-09-09 08:07:13 +02:00
|
|
|
virtual void tabRemoved( int index );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Is called internally whenever a tab has been removed.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
Is used to keep track of currently available and visible tabs.
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2016-09-09 08:07:13 +02:00
|
|
|
};
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgstabwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|