QGIS/python/gui/qgsmessagebaritem.sip.in

102 lines
3.1 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 *
************************************************************************/
2017-06-07 16:16:21 +02:00
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, Qgis::MessageLevel level = Qgis::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, Qgis::MessageLevel level = Qgis::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, Qgis::MessageLevel level = Qgis::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, Qgis::MessageLevel level = Qgis::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 );
QString text() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the text for the message.
%End
QgsMessageBarItem *setTitle( const QString &title );
QString title() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the title for the message.
%End
QgsMessageBarItem *setLevel( Qgis::MessageLevel level );
Qgis::MessageLevel level() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the message level for the message.
%End
QgsMessageBarItem *setWidget( QWidget *widget );
QWidget *widget() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the widget for the message.
%End
QgsMessageBarItem *setIcon( const QIcon &icon );
QIcon icon() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the icon for the message.
%End
QgsMessageBarItem *setDuration( int duration );
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
%End
QString getStyleSheet();
2017-06-07 16:16:21 +02:00
%Docstring
returns the styleSheet
%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 *
************************************************************************/