work towards group editor
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <QGraphicsView>
|
||||
#include <QTimer>
|
||||
|
||||
#include "core.h"
|
||||
#include "node/graph.h"
|
||||
#include "node/nodecopypaste.h"
|
||||
#include "nodeviewedge.h"
|
||||
@@ -76,6 +77,11 @@ public:
|
||||
|
||||
void ZoomOut();
|
||||
|
||||
void OverrideUndoStack(UndoStack *stack)
|
||||
{
|
||||
undo_stack_ = stack;
|
||||
}
|
||||
|
||||
const QVector<Node*> &GetCurrentContexts() const
|
||||
{
|
||||
return contexts_;
|
||||
@@ -189,6 +195,8 @@ private:
|
||||
|
||||
QMap<NodeViewItem*, QPointF> dragging_items_;
|
||||
|
||||
UndoStack *undo_stack_;
|
||||
|
||||
double scale_;
|
||||
|
||||
static const double kMinimumScale;
|
||||
|
||||
Reference in New Issue
Block a user