ui: switch to single file mode with snippet maximize
* switch back to snippet view with snippet button in file title bar * use new title bar widget in single view as well * restore view mode on undo, store current view mode for every message id (added id to message) * treat view mode switch as adapt message on undo stack * fixed crash after snippet expansion * fixed hatching in file title not shown
This commit is contained in:
@@ -4,11 +4,14 @@
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageBase
|
||||
{
|
||||
public:
|
||||
MessageBase()
|
||||
: m_isParallel(false)
|
||||
: m_id(s_nextId++)
|
||||
, m_isParallel(false)
|
||||
, m_isReplayed(false)
|
||||
, m_sendAsTask(true)
|
||||
, m_keepContent(false)
|
||||
@@ -24,6 +27,11 @@ public:
|
||||
virtual std::string getType() const = 0;
|
||||
virtual void dispatch() = 0;
|
||||
|
||||
Id getId() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
bool sendAsTask() const
|
||||
{
|
||||
return m_sendAsTask;
|
||||
@@ -95,6 +103,10 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
static size_t s_nextId;
|
||||
|
||||
Id m_id;
|
||||
|
||||
bool m_isParallel;
|
||||
bool m_isReplayed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user