Salome HOME
Executing()/Editing() methods : ASV
authorrahuel <rahuel@opencascade.com>
Wed, 8 Dec 2004 12:48:08 +0000 (12:48 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 8 Dec 2004 12:48:08 +0000 (12:48 +0000)
src/GraphEditor/DataFlowEditor_DataFlow.hxx
src/GraphEditor/DataFlowEditor_DataFlow.lxx

index 336a9e342df4dce253db68be11a4d9f8edc79497..1bc4096c58a512834087b9275b5053f69f670857 100644 (file)
@@ -213,7 +213,7 @@ namespace GraphEditor {
       bool IsValid() ;
       bool IsExecutable() ;
 
-      void Executing( bool b = true ) ;
+      void Executing() ; // asv : removed a bool parameter, use Editing() to set _Executing = false
       bool IsExecuting() ;
       void Editing() ;
       bool IsEditing() ;
index e09bb9f6ec2d8769b22f27650afa8c15d19950ad..93bfb43c4f4a7f65b8acf7e7f3ed6c0f32705e32 100644 (file)
@@ -428,29 +428,18 @@ inline bool GraphEditor::DataFlow::IsExecutable() {
   return GraphEditor::OutNode::IsExecutable() ;
 }
 
-inline void GraphEditor::DataFlow::Executing( bool b ) {
-  cdebug << "Executing _Executing = " << b << endl ;
-  _Executing = b ;
+inline void GraphEditor::DataFlow::Executing() {
+  cdebug << "Editor::DataFlow::Executing() : set _Executing = true " << endl ;
+  _Executing = true ;
 }
 
 inline bool GraphEditor::DataFlow::IsExecuting() {
-/*
-  if ( _DataFlowExecutor ) {
-    cdebug << " IsDone " << _DataFlowExecutor->IsDone() << " State " << _DataFlowExecutor->State() ;
-  }
-  cdebug << endl ;
-  if ( _Executing && _DataFlowExecutor ) {
-    if ( _DataFlowExecutor->IsDone() ) {
-      _Executing = false ;
-    }
-  }
-*/
   return _Executing ;
 }
 
 
 inline void GraphEditor::DataFlow::Editing() {
-  cdebug << "Editing _Executing = false " << endl ;
+  cdebug << "Editor::DataFlow::Editing() : set _Executing = false " << endl ;
   _Executing = false ;
 }