work towards group editor

This commit is contained in:
itsmattkc
2021-12-27 15:16:49 -08:00
parent a8ac7edd51
commit 5223483e8e
23 changed files with 500 additions and 267 deletions
+8
View File
@@ -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;