ui: added loader animation gif to StatusBar

The loader animation can be activated by setting the showLoader flag on MessageStatus.
This commit is contained in:
Eberhard Graether
2015-04-28 20:26:31 +02:00
parent 791189c3c3
commit 749b1647e4
10 changed files with 49 additions and 20 deletions
@@ -19,15 +19,15 @@ StatusBarView* StatusBarController::getView()
void StatusBarController::handleMessage(MessageStatus* message)
{
setStatus(message->status, message->isError);
setStatus(message->status, message->isError, message->showLoader);
}
void StatusBarController::setStatus(const std::string& status, bool isError)
void StatusBarController::setStatus(const std::string& status, bool isError, bool showLoader)
{
if (!status.empty())
{
LOG_INFO_STREAM(<< "STATUS " << status);
getView()->showMessage(status, isError);
getView()->showMessage(status, isError, showLoader);
}
}