|
@@ -1019,7 +1019,7 @@ int OPINV_AddNodesRack(laOperator* a, laEvent *e){
|
|
|
laBaseNode* la_CreateNode(laNodeRack* ir, laBaseNodeType* NodeType){
|
|
|
laBaseNode* bn=memAcquire(NodeType->NodeSize);
|
|
|
bn->Type=NodeType; NodeType->Init(bn, 0); bn->InitDone=1; lstAppendItem(&ir->Nodes, bn); bn->InRack=ir;
|
|
|
- laNotifyInstanceUsers(ir); laRecordInstanceDifferences(ir,"la_node_rack"); laPushDifferences("Add Node", 0);
|
|
|
+ laNotifyInstanceUsers(ir); laRecordInstanceDifferences(ir->ParentPage,"la_rack_page"); laPushDifferences("Add Node", 0);
|
|
|
return bn;
|
|
|
}
|
|
|
|
|
@@ -1086,12 +1086,12 @@ int OPINV_MoveNodeToRack(laOperator* a, laEvent *e){
|
|
|
}
|
|
|
int OPINV_DeleteNode(laOperator* a, laEvent *e){
|
|
|
laBaseNode* n=a->This?a->This->EndInstance:0; if(!n||!n->InRack) return LA_CANCELED;
|
|
|
- laBaseNodeType* bnt=0; laNodeRack* target;
|
|
|
+ laBaseNodeType* bnt=0; laNodeRack* target; printf("\n\n");
|
|
|
laNodeRack* parent=n->InRack;
|
|
|
|
|
|
lstRemoveItem(&n->InRack->Nodes, n); n->Type->Destroy(n); memLeave(n);
|
|
|
laGraphRequestRebuild();
|
|
|
- laNotifyInstanceUsers(parent); laRecordInstanceDifferences(parent,"la_node_rack"); laPushDifferences("Delete Node", 0);
|
|
|
+ laNotifyInstanceUsers(parent); laRecordInstanceDifferences(parent->ParentPage,"la_rack_page"); laPushDifferences("Delete Node", 0);
|
|
|
|
|
|
return LA_FINISHED;
|
|
|
}
|
|
@@ -1577,7 +1577,7 @@ int laRunPage(laRackPage* rp, uint64_t mask){
|
|
|
|
|
|
laNodeOutSocket* laCreateOutSocket(void* NodeParentOptional, char* label, int DataType){
|
|
|
laNodeOutSocket* os=memAcquire(sizeof(laNodeOutSocket));
|
|
|
- strSafeSet(&os->Label, label); os->DataType = DataType; os->Parent=NodeParentOptional;
|
|
|
+ strSafeSet(&os->Label, label); os->DataType = DataType; memAssignRef(os,&os->Parent,NodeParentOptional);
|
|
|
return os;
|
|
|
}
|
|
|
laNodeInSocket* laCreateInSocket(char* label, int DataType){
|