X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=2a6528ac74f30dfc263324798bc3a128d0e46ceb;hb=1ae35ab233d889137ae2e0a347f55b960ab4b855;hp=51a9ab7cfe824b790f5cd30cdc780c67003412c4;hpb=d8041d1ef54a73acc2306557435f6b04edf60daf;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index 51a9ab7..2a6528a 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/05/06 13:45:12 $ -Version: $Revision: 1.17 $ +Date: $Date: 2008/10/15 15:09:45 $ +Version: $Revision: 1.24 $ 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::BlackBox(\"" < BlackBox::bbExecute() [" <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)) @@ -444,11 +455,13 @@ namespace bbtk this->bbSetStatus(MODIFIED); bbGlobalAddToExecutionList( GetThisPointer() ); } + /* else if ( bbGetStatus() == MODIFIED ) //! this->bbIsUptodate()) { bbtkDebugMessage("modified",2,"-> Already modified"< Status set to modified"<first); @@ -1156,13 +1169,6 @@ namespace bbtk } - //========================================================================= - // Static members initialization -/*EED - bool BlackBox::bbmgSomeBoxExecuting = false; - bool BlackBox::bbmgFreezeExecution = false; - std::set BlackBox::bbmgExecutionList; -*/ //========================================================================= //========================================================================= @@ -1173,6 +1179,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