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:
+14
-12
@@ -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
|
||||
Reference in New Issue
Block a user