From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 14 Jan 2025 16:59:58 +0000 (+0100) Subject: Test code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=818170532c9b11a538b9478c4aa0d31610183501;p=bbtk.git Test code --- diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index 4b5b08f..cb68669 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -762,7 +762,7 @@ namespace bbtk ) { -//printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() ); +printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() ); //auto start = std::chrono::high_resolution_clock::now(); this->bbProcess(); @@ -770,7 +770,7 @@ namespace bbtk //auto duration = std::chrono::duration_cast(stop - start); //printf("EED BlackBox::bbRecursiveExecute bbProcess time= %ld %s \n", duration.count() , bbGetFullName().c_str() ); -//printf("EED BlackBox::bbRecursiveExecute bbProcess end %s \n", bbGetFullName().c_str() ); +printf("EED BlackBox::bbRecursiveExecute bbProcess end %s \n", bbGetFullName().c_str() ); } // Manual analysis diff --git a/kernel/src/bbtkComplexBlackBox.cxx b/kernel/src/bbtkComplexBlackBox.cxx index c07ba9f..516c7b8 100644 --- a/kernel/src/bbtkComplexBlackBox.cxx +++ b/kernel/src/bbtkComplexBlackBox.cxx @@ -285,19 +285,17 @@ namespace bbtk for (i=mExecutionList.begin(); i!=mExecutionList.end(); ++i) - { - bbtkBlackBoxDebugMessage("process",3," -> Executing '"<<*i<<"'"<bbExecute(force); - } - } - else - { - std::map::iterator i; - for (i=mBlackBoxMap.begin(); i!=mBlackBoxMap.end(); ++i) - { - i->second->bbExecute(force); - } - } + { + bbtkBlackBoxDebugMessage("process",3," -> Executing '"<<*i<<"'"<bbExecute(force); + } // for i + } else { + std::map::iterator i; + for (i=mBlackBoxMap.begin(); i!=mBlackBoxMap.end(); ++i) + { + i->second->bbExecute(force); + } // for i + } bbtkBlackBoxDebugMessage("process",2, "<** ComplexBlackBox::bbExecute()" <Raise(); // bring window to front printf("EED WxBlackBox::bbCreateFrameWindow --------------\n"); - w->Enable(false); +// w->Enable(false); w->Show(true); } @@ -340,8 +340,10 @@ printf("EED WxFrame::~WxFrame\n"); printf("//EED -------------- WxBlackBox::bbShowWindow 1 ------------------------ \n"); bbGetWindow()->Show(); bbSetShown(true); -// bbmWindow->Enable(true); + printf("//EED -------------- WxBlackBox::bbShowWindow 2 ------------------------ \n"); +// bbmWindow->Enable(true); + } // if Dialog } // if Window shown }