X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIConsole.cxx;h=f17868c7756ce8b2184299ea14e46b894f83e34c;hb=20439284eb07d0629fd5fb6027e57c3e4dfaeb9f;hp=53cbb2fdc4d40f0a7d0c7b88971600c71aae6309;hpb=d8041d1ef54a73acc2306557435f6b04edf60daf;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIConsole.cxx b/kernel/src/bbtkWxGUIConsole.cxx index 53cbb2f..f17868c 100644 --- a/kernel/src/bbtkWxGUIConsole.cxx +++ b/kernel/src/bbtkWxGUIConsole.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUIConsole.cxx,v $ Language: C++ - Date: $Date: 2008/05/06 13:45:12 $ - Version: $Revision: 1.11 $ + Date: $Date: 2008/07/24 14:37:06 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -153,8 +153,11 @@ namespace bbtk cmdsizer->Add (mWxGUICommand, 0, wxALL | wxGROW, 5); - // Creates the parent window of all bbtk windows as a child of this - Wx::CreateTopWindow(this,true); + // Set the parent window of all bbtk windows as a child of this + bbtk::Wx::SetTopWindowParent(this); + // Top Window Auto Destroys when no more black box window alive + // : this is the default + // bbtk::Wx::SetAutoDestroyTopWindow(true); // Add the method OnWxSignal as a Wx::Signal observer bbtkAddWxSignalObserver(WxGUIConsole::OnWxSignal); @@ -287,7 +290,7 @@ namespace bbtk //================================================================ void WxGUIConsole::OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event)) { - std::string command("toolsbbtk/appli/CreatePackage"); + std::string command("toolsbbtk/appli/GUICreatePackage"); bbtkMessage("Debug",1,"Executing : '"<InterpretFile(command); @@ -371,7 +374,7 @@ namespace bbtk std::string strcommand0 = "cd "+bbdoc_path+" && mkdir tmp && cd tmp"; std::string strcommand1 = "cd "+bbdoc_path+"/tmp"; - std::string strcommand2 = "\""+bin_path+"/bbi\" -n "+make_index_path; + std::string strcommand2 = "\""+bin_path+"/bbi\" -N "+make_index_path; #ifdef WIN32 std::string strcommand3 = "move index*.html ../."; #else @@ -412,7 +415,7 @@ namespace bbtk // Overloaded Show method to handle bbtk::Wx::TopWindow auto-destruction bool WxGUIConsole::Show(bool show) { - Wx::AutoDestroyTopWindow(!show); + bbtk::Wx::SetAutoDestroyTopWindow(!show); return wxFrame::Show(show); } //================================================================