more work

This commit is contained in:
itsmattkc
2021-11-16 23:58:34 -08:00
parent 854ca0a7a9
commit 93be94bc2c
39 changed files with 493 additions and 1357 deletions
+5 -15
View File
@@ -36,20 +36,15 @@ class NodePanel : public PanelWidget
public:
NodePanel(QWidget* parent);
NodeGraph* GetGraph() const
void SetContexts(const QVector<Node*> &nodes)
{
return node_view_->GetGraph();
node_view_->SetContexts(nodes);
toolbar_->setEnabled(!nodes.isEmpty());
}
void SetGraph(NodeGraph *graph, const QVector<Node*> &nodes)
void CloseContextsBelongingToProject(Project *project)
{
node_view_->SetGraph(graph, nodes);
toolbar_->setEnabled(graph);
}
void ClearGraph()
{
node_view_->ClearGraph();
node_view_->CloseContextsBelongingToProject(project);
}
const QVector<Node*> &GetCurrentContexts() const
@@ -113,11 +108,6 @@ public slots:
node_view_->Select(nodes, center_view_on_item);
}
void SelectWithDependencies(const QVector<Node*>& nodes, bool center_view_on_item)
{
node_view_->SelectWithDependencies(nodes, center_view_on_item);
}
signals:
void NodesSelected(const QVector<Node*>& nodes);