X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxBlackBox.cxx;h=1050f0441871d305191f6b8d25bec281fa3237a1;hb=ef68c7c7d002e0fcaf3255868c54021b3cf077df;hp=a66ecc617eb28f3c0c1c00c4c115505f2fd830fb;hpb=174ea6d71477e40679f4fd71952e3f2a03416098;p=bbtk.git diff --git a/kernel/src/bbtkWxBlackBox.cxx b/kernel/src/bbtkWxBlackBox.cxx index a66ecc6..1050f04 100644 --- a/kernel/src/bbtkWxBlackBox.cxx +++ b/kernel/src/bbtkWxBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxBlackBox.cxx,v $ Language: C++ - Date: $Date: 2008/04/24 10:11:28 $ - Version: $Revision: 1.16 $ + Date: $Date: 2008/07/25 07:44:12 $ + Version: $Revision: 1.26 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -93,6 +93,11 @@ namespace bbtk } //========================================================================= + //========================================================================= + void WxBlackBoxWindow::bbClose() + { + } + //========================================================================= //========================================================================= @@ -105,7 +110,6 @@ namespace bbtk wxString title, wxSize size) : - WxBlackBoxWindow(box), wxDialog( parent, -1, title, @@ -117,7 +121,8 @@ namespace bbtk wxMAXIMIZE_BOX | wxMINIMIZE_BOX | wxCAPTION - ) + ), + WxBlackBoxWindow(box) { bbtkDebugMessage("wx",9,"WxBlackBoxDialog::WxBlackBoxDialog("<< bbGetBlackBox()->bbGetFullName()<<","<bbGetFullName()<<"]"<bbGetFullName()<<","<bbGetFullName()<<")"<bbUserOnShow(); - // wxFrame::SetFocus(); } //========================================================================= @@ -233,6 +255,13 @@ namespace bbtk } //========================================================================= + //========================================================================= + void WxBlackBoxFrame::bbClose() + { + bbtkDebugMessage("wx",9,"WxBlackBoxFrame::bbClose()"<GetBlackBoxTo() != to))&& - (!bbGetUpdateTransferedToParent())) + (!bbGetUpdateTransferedToParent())&& + (to->bbGetStatus()!=UPDATING)) { bbtkDebugMessage("process",3, " ... Transfering update order to parent" @@ -491,13 +521,16 @@ namespace bbtk // call 'standard' BlackBox execution method if (!bbGetUpdateTransferedToParent()) { - AtomicBlackBox::bbBackwardUpdate(caller); + AtomicBlackBox::bbBackwardUpdate(caller); } bbtkDebugMessageDec("process",3, "<= WxBlackBox::bbBackwardUpdate() [" <bbUserCreateWidget(); this->bbUserProcess(); bbShowWindow(); + // this->bbUserOnShow(); } //========================================================================= @@ -640,6 +674,19 @@ namespace bbtk //================================================================== + //================================================================== + void WxBlackBox::bbCloseWindow() + { + bbtkDebugMessageInc("wx",1,"=> WxBlackBox::bbCloseWindow() [" + <bbClose(); + + bbtkDebugMessageDec("wx",1,"<= WxBlackBox::bbCloseWindow() [" + <