From d1467d5316adb193fc4bd93973670621f627b10a Mon Sep 17 00:00:00 2001 From: smh Date: Wed, 28 Apr 2004 13:37:30 +0000 Subject: [PATCH] Graph is replaced by StreamGraph --- src/SUPERVGUI/SUPERVGUI.cxx | 8 ++++---- src/SUPERVGUI/SUPERVGUI_Def.h | 2 +- src/SUPERVGUI/SUPERVGUI_Main.cxx | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/SUPERVGUI/SUPERVGUI.cxx b/src/SUPERVGUI/SUPERVGUI.cxx index 5f57e85..669a2fd 100644 --- a/src/SUPERVGUI/SUPERVGUI.cxx +++ b/src/SUPERVGUI/SUPERVGUI.cxx @@ -236,7 +236,7 @@ void SUPERVGUI::importDataflow() { return; } - SUPERV_Graph aGraph = engine->GraphE(f); + SUPERV_Graph aGraph = engine->StreamGraphE(f); //QFileInfo aFile(f); //aGraph->SetName(aFile.baseName()); if (SUPERV_isNull(aGraph)) { @@ -274,7 +274,7 @@ void SUPERVGUI::displayDataflow() { QMessageBox::Yes, QMessageBox::No) == QMessageBox::No) return; } - aDataFlow = engine->getGraph(ior); + aDataFlow = engine->getStreamGraph(ior); if (SUPERV_isNull(aDataFlow)) { QMessageBox::warning(0, tr("ERROR"), tr("MSG_ACCESS_BAD_IOR")); return; @@ -365,7 +365,7 @@ void SUPERVGUI::modifyDataflow() { return; } - SUPERV_Graph aGraph = engine->Graph(f); + SUPERV_Graph aGraph = engine->StreamGraph(f); //QFile aFile(f); //aGraph->SetName(aFile.name()); if (SUPERV_isNull(aGraph)) { @@ -514,7 +514,7 @@ void SUPERVGUI::whatIsSelected(const Handle(SALOME_InteractiveObject)& theObj, b SALOMEDS::GenericAttribute_var anAttr; if (obj->FindAttribute(anAttr, "AttributeIOR")) { SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr); - SUPERV_Graph aDataFlow = engine->getGraph(anIOR->Value()); + SUPERV_Graph aDataFlow = engine->getStreamGraph(anIOR->Value()); if (!SUPERV_isNull(aDataFlow)) theIsDataflow = true; } diff --git a/src/SUPERVGUI/SUPERVGUI_Def.h b/src/SUPERVGUI/SUPERVGUI_Def.h index 2145c27..610e951 100644 --- a/src/SUPERVGUI/SUPERVGUI_Def.h +++ b/src/SUPERVGUI/SUPERVGUI_Def.h @@ -174,7 +174,7 @@ NODE_Editing "", NODE_RED, NODE_GREEN, NODE_BLUE, true, false, true #define SUPERV_Engine SUPERV::SuperG_var -#define SUPERV_Graph SUPERV::Graph_var +#define SUPERV_Graph SUPERV::StreamGraph_var #define SUPERV_CNode SUPERV::CNode_var #define SUPERV_FNode SUPERV::FNode_var diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 2848887..882843c 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -76,7 +76,7 @@ SUPERVGUI_Main::SUPERVGUI_Main(SUPERVGraph_ViewFrame* theParent, QAD_Desktop* th if (obj->FindAttribute(anAttr, "AttributeIOR")) { SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr); Standard_CString ior = anIOR->Value(); - dataflow = Supervision.getEngine()->getGraph(ior); + dataflow = Supervision.getEngine()->getStreamGraph(ior); if (SUPERV_isNull(dataflow)) { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_ACCESS_BAD_IOR")); close(); @@ -88,7 +88,7 @@ SUPERVGUI_Main::SUPERVGUI_Main(SUPERVGraph_ViewFrame* theParent, QAD_Desktop* th close(); } } else { - dataflow = Supervision.getEngine()->Graph(MAIN_NEW); + dataflow = Supervision.getEngine()->StreamGraph(MAIN_NEW); if (SUPERV_isNull(dataflow)) { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_CANT_CREATE_DF")); close(); @@ -112,9 +112,9 @@ SUPERVGUI_Main::SUPERVGUI_Main(SUPERVGraph_ViewFrame* theParent, QAD_Desktop* th Trace("SUPERVGUI_Main::SUPERVGUI_Main (file)") theParent->setViewWidget(this); if (isModify) { - dataflow = Supervision.getEngine()->Graph(f); + dataflow = Supervision.getEngine()->StreamGraph(f); } else { - dataflow = Supervision.getEngine()->GraphE(f); + dataflow = Supervision.getEngine()->StreamGraphE(f); } if (SUPERV_isNull(dataflow)) { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_BAD_FILE").arg(f)); @@ -393,7 +393,7 @@ void SUPERVGUI_Main::copy() { SUPERVGraph_ViewFrame* aViewFrame = dynamic_cast (aStudyFrame->getRightFrame()->getViewFrame()); if(aViewFrame){ - SUPERV_Graph aNewGraph = dataflow->Copy(); + SUPERV_Graph aNewGraph = dataflow->StreamCopy(); QString aNewName(tr("MSG_COPY_PREFIX").arg(++myCopyNum)); aNewName += dataflow->Name(); aNewGraph->SetName(aNewName); -- 2.39.2