QGIS/python/gui/qgsmessagebaritem.sip

127 lines
3.5 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmessagebaritem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMessageBarItem : QWidget
{
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
2017-06-07 16:16:21 +02:00
#include "qgsmessagebaritem.h"
%End
public:
QgsMessageBarItem( const QString &text, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = 0, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
make out a widget containing a message to be displayed on the bar
%End
QgsMessageBarItem( const QString &title, const QString &text, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = 0, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
make out a widget containing title and message to be displayed on the bar
%End
QgsMessageBarItem( const QString &title, const QString &text, QWidget *widget, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = 0, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
make out a widget containing title, message and widget to be displayed on the bar
%End
QgsMessageBarItem( QWidget *widget, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = 0, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
make out a widget containing a widget to be displayed on the bar
%End
QgsMessageBarItem *setText( const QString &text );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
QString text() const;
%Docstring
Returns the text for the message.
:rtype: str
%End
QgsMessageBarItem *setTitle( const QString &title );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
QString title() const;
%Docstring
Returns the title for the message.
:rtype: str
%End
QgsMessageBarItem *setLevel( QgsMessageBar::MessageLevel level );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
QgsMessageBar::MessageLevel level() const;
%Docstring
Returns the message level for the message.
:rtype: QgsMessageBar.MessageLevel
%End
QgsMessageBarItem *setWidget( QWidget *widget );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
QWidget *widget() const;
%Docstring
Returns the widget for the message.
:rtype: QWidget
%End
QgsMessageBarItem *setIcon( const QIcon &icon );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
QIcon icon() const;
%Docstring
Returns the icon for the message.
:rtype: QIcon
%End
QgsMessageBarItem *setDuration( int duration );
2017-06-07 16:16:21 +02:00
%Docstring
:rtype: QgsMessageBarItem
%End
2016-02-14 03:50:23 +01:00
int duration() const;
2017-06-07 16:16:21 +02:00
%Docstring
returns the duration in second of the message
:rtype: int
%End
QString getStyleSheet();
2017-06-07 16:16:21 +02:00
%Docstring
returns the styleSheet
:rtype: str
%End
signals:
void styleChanged( const QString &styleSheet );
2017-06-07 16:16:21 +02:00
%Docstring
emitted when the message level has changed
%End
};
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmessagebaritem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/