ui: statusview

* statusview as tab
This commit is contained in:
Andreas Stallinger
2016-12-07 12:56:56 +01:00
parent 3a269ad7b3
commit 5d5a0922f5
19 changed files with 607 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef STATUS_H
#define STATUS_H
#include <string>
struct Status
{
Status(std::string message, bool isError = false)
: message(message)
, isError(isError){};
std::string message;
bool isError;
};
enum STATUSTYPE
{
STATUS_INFO = 1,
STATUS_ERROR = 2,
};
typedef int StatusFilter;
#endif //STATUS_H
@@ -0,0 +1,20 @@
#ifndef MESSAGE_CLEAR_STATUS_VIEW_H
#define MESSAGE_CLEAR_STATUS_VIEW_H
#include "utility/messaging/Message.h"
class MessageClearStatusView:
public Message<MessageClearStatusView>
{
public:
MessageClearStatusView()
{
}
static const std::string getStaticType()
{
return "MessageClearStatusView";
}
};
#endif // MESSAGE_CLEAR_STATUS_VIEW_H
@@ -0,0 +1,25 @@
#ifndef MESSAGE_STATUS_FILTER_CHANGED_H
#define MESSAGE_STATUS_FILTER_CHANGED_H
#include "utility/messaging/Message.h"
#include "utility/logging/Logger.h"
#include "utility/Status.h"
class MessageStatusFilterChanged
: public Message<MessageStatusFilterChanged>
{
public:
MessageStatusFilterChanged(const StatusFilter filter)
: statusFilter(filter)
{
}
static const std::string getStaticType()
{
return "MessageStatusFilterChanged";
}
const StatusFilter statusFilter;
};
#endif // MESSAGE_STATUS_FILTER_CHANGED_H