/
qgsmessagebaritem.sip
132 lines (106 loc) · 3.64 KB
/
qgsmessagebaritem.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/************************************************************************
* 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
{
%TypeHeaderCode
#include "qgsmessagebaritem.h"
%End
public:
QgsMessageBarItem( const QString &text, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = 0, QWidget *parent /TransferThis/ = 0 );
%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 );
%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 );
%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 );
%Docstring
make out a widget containing a widget to be displayed on the bar
%End
QgsMessageBarItem *setText( const QString &text );
%Docstring
:rtype: QgsMessageBarItem
%End
QString text() const;
%Docstring
Returns the text for the message.
:rtype: str
%End
QgsMessageBarItem *setTitle( const QString &title );
%Docstring
:rtype: QgsMessageBarItem
%End
QString title() const;
%Docstring
Returns the title for the message.
:rtype: str
%End
QgsMessageBarItem *setLevel( QgsMessageBar::MessageLevel level );
%Docstring
:rtype: QgsMessageBarItem
%End
QgsMessageBar::MessageLevel level() const;
%Docstring
Returns the message level for the message.
:rtype: QgsMessageBar.MessageLevel
%End
QgsMessageBarItem *setWidget( QWidget *widget );
%Docstring
:rtype: QgsMessageBarItem
%End
QWidget *widget() const;
%Docstring
Returns the widget for the message.
:rtype: QWidget
%End
QgsMessageBarItem *setIcon( const QIcon &icon );
%Docstring
:rtype: QgsMessageBarItem
%End
QIcon icon() const;
%Docstring
Returns the icon for the message.
:rtype: QIcon
%End
QgsMessageBarItem *setDuration( int duration );
%Docstring
:rtype: QgsMessageBarItem
%End
int duration() const;
%Docstring
returns the duration in second of the message
:rtype: int
%End
QgsMessageBar::MessageLevel level();
%Docstring
returns the level
:rtype: QgsMessageBar.MessageLevel
%End
QString getStyleSheet();
%Docstring
returns the styleSheet
:rtype: str
%End
signals:
void styleChanged( const QString &styleSheet );
%Docstring
emitted when the message level has changed
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmessagebaritem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/