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-12-15 11:16:32 +10:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
class QgsMessageBarItem : QWidget
|
2013-08-09 15:41:10 +02:00
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-07 16:16:21 +02:00
|
|
|
#include "qgsmessagebaritem.h"
|
2013-08-09 15:41:10 +02:00
|
|
|
%End
|
|
|
|
public:
|
2015-02-18 17:00:36 +11:00
|
|
|
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
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2015-02-18 17:00:36 +11:00
|
|
|
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
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2015-02-18 17:00:36 +11:00
|
|
|
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
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2015-02-18 17:00:36 +11:00
|
|
|
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
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsMessageBarItem *setText( const QString &text );
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2017-07-24 15:19:06 +10:00
|
|
|
QString text() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the text for the message.
|
2017-07-24 15:19:06 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsMessageBarItem *setTitle( const QString &title );
|
2013-08-09 15:41:10 +02:00
|
|
|
|
2017-07-24 15:19:06 +10:00
|
|
|
QString title() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the title for the message.
|
2017-07-24 15:19:06 +10:00
|
|
|
%End
|
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
QgsMessageBarItem *setLevel( QgsMessageBar::MessageLevel level );
|
|
|
|
|
2017-07-24 15:19:06 +10:00
|
|
|
QgsMessageBar::MessageLevel level() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the message level for the message.
|
2017-07-24 15:19:06 +10:00
|
|
|
%End
|
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
QgsMessageBarItem *setWidget( QWidget *widget );
|
|
|
|
|
2017-07-24 15:19:06 +10:00
|
|
|
QWidget *widget() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the widget for the message.
|
2017-07-24 15:19:06 +10:00
|
|
|
%End
|
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
QgsMessageBarItem *setIcon( const QIcon &icon );
|
|
|
|
|
2017-07-24 15:19:06 +10:00
|
|
|
QIcon icon() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the icon for the message.
|
2017-07-24 15:19:06 +10:00
|
|
|
%End
|
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
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
|
2013-09-17 12:33:57 +02:00
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
QString getStyleSheet();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
returns the styleSheet
|
|
|
|
%End
|
2013-08-09 15:41:10 +02:00
|
|
|
|
|
|
|
signals:
|
2017-05-01 16:42:33 +02:00
|
|
|
void styleChanged( const QString &styleSheet );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
emitted when the message level has changed
|
|
|
|
%End
|
|
|
|
|
2013-08-09 15:41:10 +02:00
|
|
|
};
|
|
|
|
|
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 *
|
|
|
|
************************************************************************/
|