X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUICommand.cxx;h=172f0260c0c36c397a5cc2b84abc2ff45af802dc;hb=e64f1a51510b44580500fd9ec30b4c937255bf75;hp=929d07bd84853f9a39dc7d8fc629050999bc4e73;hpb=28300312b87bd50ca689d497c5a500ad4d343d5d;p=bbtk.git diff --git a/kernel/src/bbtkWxGUICommand.cxx b/kernel/src/bbtkWxGUICommand.cxx index 929d07b..172f026 100644 --- a/kernel/src/bbtkWxGUICommand.cxx +++ b/kernel/src/bbtkWxGUICommand.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUICommand.cxx,v $ Language: C++ - Date: $Date: 2008/03/20 09:51:29 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/04/24 12:56:39 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -78,7 +78,7 @@ namespace bbtk sizerCommand->Add(mwxTextCommand,1,wxGROW); sizerCommand->Add(btnGo); - sizer->Add(sizerCommand,0,wxLEFT | wxRIGHT | wxBOTTOM | wxGROW, 10 ); + sizer->Add(sizerCommand,0,wxGROW); wxBoxSizer *btnsSizer = new wxBoxSizer(wxHORIZONTAL); @@ -98,7 +98,7 @@ namespace bbtk btnsSizer->Add( btnGraphD ); btnsSizer->Add( btnHelp ); - sizer->Add(btnsSizer,0,wxLEFT | wxRIGHT | wxBOTTOM | wxGROW, 10 ); + sizer->Add(btnsSizer,0,wxTOP|wxGROW, 10 ); SetSizer(sizer); @@ -127,7 +127,7 @@ namespace bbtk if (command.length()==0) return; mwxTextCommand->SetValue(_T("")); - mwxTextCommand->Append(command); + mwxTextCommand->Append(std2wx(command)); if (mUser) mUser->WxGUICommandEnter(command); } @@ -147,7 +147,7 @@ namespace bbtk // std::string command(_T("include ")); // std::string pathfilename = (const char *)(dialog.GetFilename().mb_str()); std::string command("include "); - command += wx2std(dialog.GetPath()); + command = command + "\"" + wx2std(dialog.GetPath()) + "\""; SendCommand(command); } }