Files
Sourcetrail/src/app/qt/view/QtStatusBarView.h
T
Eberhard Graether 3f4ae8343c logic: initially parse source on message thread and add more StatusBar messages
This change puts the initial project loading into a MessageLoadProject so that the UI thread is still responding.
Also the StatusBar is now responding to more Messages and it's MessageListeners get added to the MessageQueue in
front of other listeners so that the StatusBar UI can announce actions.
2014-12-02 01:20:08 +01:00

32 lines
772 B
C++

#ifndef QT_STATUS_BAR_VIEW_H
#define QT_STATUS_BAR_VIEW_H
#include <memory>
#include <string>
#include "component/view/StatusBarView.h"
#include "qt/element/QtStatusBar.h"
#include "qt/utility/QtThreadedFunctor.h"
class QtStatusBarView : public StatusBarView
{
public:
QtStatusBarView(ViewLayout* viewLayout);
~QtStatusBarView();
// View implementation
virtual void createWidgetWrapper();
virtual void initView();
virtual void refreshView();
// StatusBar view implementation
virtual void showMessage(const std::string& message, bool isError);
private:
void doShowMessage(const std::string& message, bool isError);
std::shared_ptr<QtStatusBar> m_widget;
QtThreadedFunctor<const std::string&, bool> m_showMessageFunctor;
};
#endif // !QT_STATUS_BAR_VIEW_H