feat: operator table transfer

This commit is contained in:
parker
2025-07-14 16:00:33 +01:00
parent 34a1df859a
commit 4dfae16942
7 changed files with 28 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#include "Gui/Network/Network.h"
#include "Engine/Operator/GeometryConnection.h"
#include "Engine/Operator/GeometryOperator.h"
#include "Engine/Operator/OperatorTable.h"
#include "Engine/Types.h"
#include "Gui/Network/DisplayFlagButton.h"
#include "Gui/Network/NodeEdgeGraphic.h"
@@ -297,7 +298,7 @@ void Network::keyPressEvent(QKeyEvent *event)
}
case(Qt::Key_F):
{
if(auto newNode = createNode(&GOP_transform::ctor))
if(auto newNode = createNode(op::OperatorTable::getOpConstructor(0)))
{
newNode->setPos(viewPos);
}
@@ -383,7 +384,7 @@ void Network::mouseReleaseEvent(QMouseEvent *event)
NodeGraphic* prevDisplayNode = nodeStore_.at(*prevDisplayOpId);
prevDisplayNode->setDisplayFlag(false);
}
nm->setDisplayOp(opId);
enzo::nt::NetworkManager::setDisplayOp(opId);
static_cast<DisplayFlagButton*>(clickedDisplayFlag)->setEnabled(true);
}
if(state_==State::MOVING_NODE)