// For license of this file, see /LICENSE.md. #ifndef STATUSBAR_H #define STATUSBAR_H #include #include "gui/basetoolbar.h" class QProgressBar; class PlainToolButton; class QLabel; class Mutex; class StatusBar : public QStatusBar, public BaseBar { Q_OBJECT public: explicit StatusBar(QWidget* parent = 0); virtual ~StatusBar(); QList availableActions() const; QList changeableActions() const; void saveChangeableActions(const QStringList& actions); QStringList defaultActions() const; QStringList savedActions() const; QList getSpecificActions(const QStringList& actions); void loadSpecificActions(const QList& actions); public slots: void showProgressFeeds(int progress, const QString& label); void clearProgressFeeds(); void showProgressDownload(int progress, const QString& tooltip); void clearProgressDownload(); protected: bool eventFilter(QObject* watched, QEvent* event); private: void clear(); Mutex* m_mutex; QProgressBar* m_barProgressFeeds; QAction* m_barProgressFeedsAction; QLabel* m_lblProgressFeeds; QAction* m_lblProgressFeedsAction; QProgressBar* m_barProgressDownload; QAction* m_barProgressDownloadAction; QLabel* m_lblProgressDownload; QAction* m_lblProgressDownloadAction; }; #endif // STATUSBAR_H