#ifndef GLOGWIDGET_H #define GLOGWIDGET_H #include "ct_log/abstract/ct_abstractloglistener.h" #include #include #include #include #include #include #include namespace Ui { class GLogWidget; } class GLogWidget : public QWidget, public CT_AbstractLogListener { Q_OBJECT Q_PROPERTY(int animationRotationValue READ animationRotationValue WRITE setAnimationRotationValue) public: explicit GLogWidget(QWidget *parent = 0); ~GLogWidget(); int animationRotationValue() const; public slots: void addMessage(const int &severity, const int &type, const QString &s, const QString &filter = ""); void setAnimationRotationValue(int p); private: Ui::GLogWidget *ui; QQueue > m_messages; QMutex m_mutex; QHash m_colors; QTimer m_timerCheckNewMessagesToDisplay; QPropertyAnimation m_progressAnimation; int m_animationRotationValue; const static QString BEGIN_HMTL; const static QString END_HMTL; private slots: void checkNewMessagesToDisplay(); void on_pushButtonClear_clicked(); }; #endif // GLOGWIDGET_H