ui: fixed jumps in graph navigation

* moved graph postprocessing to GraphController to avoid reprocessing on edge activation
* animat sceneRect of the GraphView to avoid jump at end of animation
This commit is contained in:
Eberhard Graether
2015-06-09 22:51:09 +02:00
parent 0c41aecfc9
commit e85b9e7425
14 changed files with 178 additions and 128 deletions
@@ -5,12 +5,13 @@
#include "utility/messaging/Message.h"
#include "utility/types.h"
class MessageGraphNodeMove: public Message<MessageGraphNodeMove>
class MessageGraphNodeMove
: public Message<MessageGraphNodeMove>
{
public:
MessageGraphNodeMove(Id tokenId, Vec2i position)
MessageGraphNodeMove(Id tokenId, const Vec2i& delta)
: tokenId(tokenId)
, position(position)
, delta(delta)
{
}
@@ -20,7 +21,7 @@ public:
}
const Id tokenId;
const Vec2i position;
const Vec2i delta;
};
#endif // MESSAGE_GRAPH_NODE_MOVE_H