Files
Sourcetrail/src/lib_gui/qt/element/QtStatusBar.h
T
mlangkabel dfc6d88432 build: search headers in all source directories
* removed paths in include directives
* changed cmake to provide necessary header search paths
* changed name of version.h to productVersion.h due to name conflict
2018-09-18 19:00:18 +02:00

60 lines
1.0 KiB
C++

#ifndef QT_STATUS_BAR_H
#define QT_STATUS_BAR_H
#include <memory>
#include <string>
#include <QPushButton>
#include <QLabel>
#include <QStatusBar>
#include "ErrorCountInfo.h"
class QProgressBar;
class QtStatusBar
: public QStatusBar
{
Q_OBJECT
public:
QtStatusBar();
void setText(const std::wstring& text, bool isError, bool showLoader);
void setErrorCount(ErrorCountInfo errorCount);
void setIdeStatus(const std::wstring& text);
void showIndexingProgress(size_t progressPercent);
void hideIndexingProgress();
protected:
virtual void resizeEvent(QResizeEvent* event);
private slots:
void showStatus();
void showErrors();
void clickedIndexingProgress();
private:
QWidget* addPermanentVLine();
std::shared_ptr<QMovie> m_movie;
std::wstring m_textString;
QPushButton m_text;
QLabel m_loader;
QPushButton m_errorButton;
QLabel m_ideStatusText;
QPushButton* m_indexingStatus;
QProgressBar* m_indexingProgress;
QWidget* m_vlineError;
QWidget* m_vlineIndexing;
};
#endif // QT_STATUS_BAR_H