implemented saving/loading for groups

This commit is contained in:
itsmattkc
2021-12-28 21:52:28 -08:00
parent 74d9c43ff5
commit a4934f1d47
14 changed files with 170 additions and 94 deletions
+1
View File
@@ -31,6 +31,7 @@ NodePanel::NodePanel(QWidget *parent) :
// Connect node view signals to this panel - MAY REMOVE
connect(node_widget_->view(), &NodeView::NodesSelected, this, &NodePanel::NodesSelected);
connect(node_widget_->view(), &NodeView::NodesDeselected, this, &NodePanel::NodesDeselected);
connect(node_widget_->view(), &NodeView::NodeGroupOpenRequested, this, &NodePanel::NodeGroupOpenRequested);
// Set it as the main widget of this panel
SetWidgetWithPadding(node_widget_);
+8
View File
@@ -40,6 +40,11 @@ public:
return node_widget_;
}
const QVector<Node*> &GetContexts() const
{
return node_widget_->view()->GetContexts();
}
void SetContexts(const QVector<Node*> &nodes)
{
node_widget_->SetContexts(nodes);
@@ -109,6 +114,7 @@ public slots:
void Select(const QVector<Node*>& nodes, bool center_view_on_item)
{
node_widget_->view()->Select(nodes, center_view_on_item);
this->raise();
}
signals:
@@ -116,6 +122,8 @@ signals:
void NodesDeselected(const QVector<Node*>& nodes);
void NodeGroupOpenRequested(NodeGroup *group);
private:
virtual void Retranslate() override
{