logic: fixes all over the place
* fixed refreshing to send another ui refresh message after parsing * keepContent field for MessageBase so that views won't update * fixed searchmatching to only weigh uppercase letters next to lowercase ones * fixed file not jumping back to snippets when activating edge * clicking into empty space deselects active edge * clear file manager files on every fetch * added db transaction for file clearing * use zooming instead of changing font size
This commit is contained in:
@@ -17,6 +17,7 @@ public:
|
||||
MessageBase()
|
||||
: undoRedoType(UNDOTYPE_NORMAL)
|
||||
, m_sendAsTask(true)
|
||||
, m_keepContent(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -47,10 +48,21 @@ public:
|
||||
return (undoRedoType == UNDOTYPE_IGNORE);
|
||||
}
|
||||
|
||||
void setKeepContent(bool keepContent)
|
||||
{
|
||||
m_keepContent = keepContent;
|
||||
}
|
||||
|
||||
bool keepContent() const
|
||||
{
|
||||
return m_keepContent;
|
||||
}
|
||||
|
||||
UndoType undoRedoType;
|
||||
|
||||
private:
|
||||
bool m_sendAsTask;
|
||||
bool m_keepContent;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_BASE_H
|
||||
|
||||
@@ -17,6 +17,7 @@ public:
|
||||
, fromNameHierarchy(fromName)
|
||||
, toNameHierarchy(toName)
|
||||
{
|
||||
setKeepContent(true);
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef MESSAGE_DEACTIVATE_EDGE_H
|
||||
#define MESSAGE_DEACTIVATE_EDGE_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageDeactivateEdge
|
||||
: public Message<MessageDeactivateEdge>
|
||||
{
|
||||
public:
|
||||
MessageDeactivateEdge()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageDeactivateEdge";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DEACTIVATE_EDGE_H
|
||||
Reference in New Issue
Block a user