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.
32 lines
772 B
C++
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
|