]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdConcatStrings_tool.cxx
#3508 ConcatString_tool Reactivity 2
[bbtk.git] / packages / std / src / bbstdConcatStrings_tool.cxx
index baf010b95bae75ba17dee2577758464ab4b07482..3b099101e1441dd4a5b2d5345b56365ff20c02cc 100644 (file)
@@ -28,13 +28,21 @@ void ConcatStrings_tool::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
   
-    if ((bbGetInputType()==1) && ( bbGetInputBox_ConcatString()!=NULL) )
+    if ( bbGetInputBox_ConcatString()!=NULL )
     {
-        bbGetInputBox_ConcatString()->bbSetOutputOut( bbGetInputIn1() );
-        bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out"));
-//        bbGetInputBox_ConcatString()->bbSignalOutputModification();
-    } // if Type == 1   &&  Box
+        if ( (bbGetInputType()==1) )
+        {
+            bbGetInputBox_ConcatString()->bbSetOutputOut( bbGetInputIn1() );
+          bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out"),true);
+//                bbGetInputBox_ConcatString()->bbSignalOutputModification();
+        } // if Type == 1
 
+        if ( (bbGetInputType()==2) )
+        {
+            bbGetInputBox_ConcatString()->bbSetOutputOut( bbGetInputIn1() );
+            bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out"),false);
+        } // if Type == 2
+    } // if bbGetInputBox_ConcatString!NULL
     
 }
 
@@ -46,6 +54,7 @@ void ConcatStrings_tool::bbUserSetDefaultValues()
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
     bbSetInputIn1("");
+    bbSetInputType(0);
     bbSetInputBox_ConcatString(NULL);
 }