ui: force refresh option in menu for reloading whole project

This commit is contained in:
Eberhard Graether
2015-09-23 16:44:39 +02:00
parent 502909c789
commit bb3a8bf351
11 changed files with 62 additions and 22 deletions
@@ -6,8 +6,9 @@
class MessageRefresh: public Message<MessageRefresh>
{
public:
MessageRefresh(bool uiOnly = false)
: uiOnly(uiOnly)
MessageRefresh()
: uiOnly(false)
, all(false)
{
}
@@ -16,7 +17,20 @@ public:
return "MessageRefresh";
}
const bool uiOnly;
MessageRefresh& refreshUiOnly()
{
uiOnly = true;
return *this;
}
MessageRefresh& refreshAll()
{
all = true;
return *this;
}
bool uiOnly;
bool all;
};
#endif // MESSAGE_REFRESH_H