paramview: implemented passthrough editing

This commit is contained in:
itsmattkc
2022-04-04 22:13:08 -07:00
parent d7b3c523f4
commit 38c8bd4b0d
10 changed files with 159 additions and 89 deletions
+20 -2
View File
@@ -54,7 +54,16 @@ public:
const QVector<Node*> &GetContexts() const
{
return contexts_;
if (overlay_view_) {
return overlay_view_->GetContexts();
} else {
return contexts_;
}
}
bool IsGroupOverlay() const
{
return overlay_view_;
}
void CloseContextsBelongingToProject(Project *project);
@@ -109,7 +118,10 @@ signals:
void NodesDeselected(const QVector<Node*>& nodes);
void NodeGroupOpenRequested(NodeGroup *group);
void NodeGroupOpened(NodeGroup *group);
void NodeGroupClosed();
void EscPressed();
protected:
virtual void keyPressEvent(QKeyEvent *event) override;
@@ -169,6 +181,8 @@ private:
void PostPaste(const QVector<Node*> &new_nodes, const Node::PositionMap &map);
void ResizeOverlay();
NodeViewMiniMap *minimap_;
struct AttachedItem {
@@ -202,6 +216,8 @@ private:
QMap<NodeViewItem*, QPointF> dragging_items_;
NodeView* overlay_view_;
double scale_;
static const double kMinimumScale;
@@ -252,6 +268,8 @@ private slots:
void ItemAboutToBeDeleted(NodeViewItem *item);
void CloseOverlay();
};
}