X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdConcatStrings_tool.cxx;h=3b099101e1441dd4a5b2d5345b56365ff20c02cc;hb=0864b46768b25800120d16758b65abbf6f1412ff;hp=544612e23ea6d745949323b87768952d330641b7;hpb=967b2087f477b9410540be010c28b45131d51bc9;p=bbtk.git diff --git a/packages/std/src/bbstdConcatStrings_tool.cxx b/packages/std/src/bbstdConcatStrings_tool.cxx index 544612e..3b09910 100644 --- a/packages/std/src/bbstdConcatStrings_tool.cxx +++ b/packages/std/src/bbstdConcatStrings_tool.cxx @@ -28,14 +28,21 @@ void ConcatStrings_tool::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <bbSetOutputOut( bbGetInputIn1() ); - bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out")); -// bbGetInputBox_ConcatString()->bbSignalOutputModification(); - } // if Type == 1 + 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 } @@ -47,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); }