X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxBlackBox.cxx;h=5b8e52f0efb5602342b05dae1757008387228853;hb=372f03317f05d4a436b0f9c39b98558ec4810b78;hp=06ec96786de00233ec26424bfb22e6ce7055455e;hpb=35efff5ca9f485da0da66535dc3ce8fff49df520;p=bbtk.git diff --git a/kernel/src/bbtkWxBlackBox.cxx b/kernel/src/bbtkWxBlackBox.cxx index 06ec967..5b8e52f 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/03/06 09:23:43 $ - Version: $Revision: 1.8 $ + Date: $Date: 2008/03/10 12:28:43 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -55,7 +55,7 @@ namespace bbtk mBox->bbGetFullName()<<")"<bbSetWindow(this); Wx::IncNbWindowsAlive(); - bbtkDebugMessage("Wx",9," -> Number of windows alive = " + bbtkDebugMessage("Wx",5," -> Number of windows alive = " <bbSetWindow(0); Wx::DecNbWindowsAlive(); - bbtkDebugMessage("Wx",9," -> Number of windows alive = " + bbtkDebugMessage("Wx",5," -> Number of windows alive = " <bbGetFullName()<<"]"< Number of windows shown = " + bbtkDebugMessage("Wx",5," -> Number of windows shown = " <bbGetFullName()<<"]"< Number of windows shown = " + bbtkDebugMessage("Wx",5," -> Number of windows shown = " <bbGetFullName()<<")"<bbUserOnShow(); + // wxFrame::SetFocus(); } //========================================================================= @@ -233,7 +239,8 @@ namespace bbtk bbtkDebugMessage("Wx",9,"WxBlackBoxFrame::bbHide() ["<< bbGetBlackBox()->bbGetFullName()<<"]"<bbUserOnHide(); } //========================================================================= @@ -524,6 +531,15 @@ namespace bbtk //========================================================================= + //========================================================================= + void WxBlackBox::bbProcess() + { + if (bbGetOutputWidget()==0) this->bbUserCreateWidget(); + this->bbUserProcess(); + bbShowWindow(); + } + //========================================================================= + //================================================================== /// Specific methods for window creation during pipeline execution /// Shows the window associated to the box @@ -594,7 +610,7 @@ namespace bbtk " Input WinDialog set to true : creating a Dialog" <second->GetConnectionVector().size() != 0 ) + { + return ((WxBlackBox*)i->second->GetConnectionVector().front() + ->GetBlackBoxTo())->bbGetContainingWindow(); + } + return 0; + } + //================================================================== + + + //================================================================== + wxWindow* WxBlackBox::bbGetWxParent() { return Wx::GetTopWindow(); } + //================================================================== + + + //================================================================== + bool WxBlackBox::bbIsShown() + { + if (bbGetContainingWindow()!=0) + return bbGetContainingWindow()->bbIsShown(); + return false; + } + //================================================================== }//namespace bbtk