ui: statusview
* statusview as tab
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user