X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=d2137752f2e8aee1d3084543d6c786427e001b71;hb=5956da42deb9602e04042705155291bd124896eb;hp=de8091778b696f5c507e30164aab68c88b6fd8e5;hpb=2b8d8f686974ab38c9ffcf0f88dd533b01b68e84;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index de80917..d213775 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ -Date: $Date: 2008/04/23 14:49:27 $ -Version: $Revision: 1.15 $ +Date: $Date: 2008/06/19 09:46:41 $ +Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -65,7 +65,7 @@ namespace bbtk bbtkDebugMessage("object",2,"##> BlackBox::Deleter(\""<bbDelete(); - + bbtkDebugMessage("object",2,"##> BlackBox::Deleter(\""< BlackBox::bbExecute() [" < FreezeExecution global flag is 'true' : abort execution"< BlackBox::bbUserDelete() [" <bbSetStatus(MODIFIED); return; } + if ( (c==bbGetInputConnectorMap().find("WinClose")->second) ) + // && (bbCanReact())) + { + bbtkDebugMessage("modified",2, + "-> Close triggered by WinClose input change" + <bbHideWindow(); + this->bbSetStatus(MODIFIED); + return; + } if ( ( bbBoxProcessModeIsReactive() || (c==bbGetInputConnectorMap().find("BoxExecute")->second)) @@ -455,7 +469,7 @@ namespace bbtk this->bbSignalOutputModification(false); /* - bbtkDebugMessageDec("Process",5, + bbtkDebugMessageDec("process",5, "<= BlackBox::bbSetModifiedStatus("< BlackBox::bbSignalOutputModification() [" < BlackBox::bbSignalOutputModification(" <& output, bool reaction) { - bbtkDebugMessageInc("Process",5, + bbtkDebugMessageInc("process",5, "=> BlackBox::bbSignalOutputModification(vector of outputs) [" < BlackBox::bbUpdateInputs() [" < BlackBox::bbGlobalProcessExecutionList()" < Executing "<<(*i)->bbGetFullName()<bbExecute(true); } bbmgExecutionList.clear(); - bbtkDebugMessageDec("Process",1, + bbtkDebugMessageDec("process",3, "<= BlackBox::bbGlobalProcessExecutionList()" < BlackBox::bbmgExecutionList; -*/ //========================================================================= //========================================================================= @@ -1170,6 +1177,16 @@ namespace bbtk } //========================================================================= + void BlackBox::bbUserOnShowWidget(std::string nameInput) + { + bbtk::BlackBoxInputConnector *cc; + cc = this->bbGetInputConnectorMap().find( nameInput.c_str() )->second; + if (cc->GetConnection()!=NULL) + { + cc->GetConnection()->GetBlackBoxFrom()->bbUserOnShow(); + } + } + } // EO namespace bbtk