logic: polished status view

* click message in status bar to show status view
* renamed status tab to output
* renamed status column to message
* fixed list not properly updating when using filters
* scroll to first row after clearing
This commit is contained in:
Eberhard Graether
2016-12-12 11:08:07 +01:00
parent 9db99580d1
commit 5845a98095
18 changed files with 154 additions and 214 deletions
+14 -12
View File
@@ -3,17 +3,7 @@
#include <string>
struct Status
{
Status(std::string message, bool isError = false)
: message(message)
, isError(isError){};
std::string message;
bool isError;
};
enum STATUSTYPE
enum StatusType
{
STATUS_INFO = 1,
STATUS_ERROR = 2,
@@ -21,4 +11,16 @@ enum STATUSTYPE
typedef int StatusFilter;
#endif //STATUS_H
struct Status
{
Status(std::string message, bool isError = false)
: message(message)
, type(isError ? StatusType::STATUS_ERROR : StatusType::STATUS_INFO)
{
}
std::string message;
StatusType type;
};
#endif // STATUS_H
@@ -0,0 +1,20 @@
#ifndef MESSAGE_SHOW_STATUS_H
#define MESSAGE_SHOW_STATUS_H
#include "utility/messaging/Message.h"
class MessageShowStatus
: public Message<MessageShowStatus>
{
public:
MessageShowStatus()
{
}
static const std::string getStaticType()
{
return "MessageShowStatus";
}
};
#endif // MESSAGE_SHOW_STATUS_H