17 #ifndef QGSMESSAGEBAR_H
18 #define QGSMESSAGEBAR_H
69 QgsMessageBarItem *pushWidget( QWidget *widget, MessageLevel level = INFO,
int duration = 0 );
79 static QgsMessageBarItem* createMessage(
const QString &text, QWidget *parent = 0 );
81 static QgsMessageBarItem* createMessage(
const QString &title,
const QString &text, QWidget *parent = 0 );
88 void pushMessage(
const QString &title,
const QString &text, MessageLevel level = INFO,
int duration = 0 );
110 void mousePressEvent( QMouseEvent * e );
116 QList<QgsMessageBarItem *> mItems;
118 QToolButton *mCloseBtn;
119 QGridLayout *mLayout;
121 QAction *mActionCloseAll;
122 QTimer *mCountdownTimer;
123 QProgressBar *mCountProgress;
124 QString mCountStyleSheet;
128 void updateItemCount();
131 void updateCountdown();
132 void resetCountdown();