From: guigues Date: Mon, 10 Mar 2008 09:03:49 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: r0.6.1~134 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=56af17ae2ad2610e189e7308253ab2e718e76710;p=bbtk.git *** empty log message *** --- diff --git a/kernel/src/bbtkWxBrowser.cxx b/kernel/src/bbtkWxBrowser.cxx index 0b3f0b6..3f158ca 100644 --- a/kernel/src/bbtkWxBrowser.cxx +++ b/kernel/src/bbtkWxBrowser.cxx @@ -243,21 +243,23 @@ namespace bbtk size_t s = filename.length(); WxConsole* C = mWxConsole; //::GetInstance(); - if (C != 0) + // MessageManager::SetMessageLevel("All",9); + Interpreter* I = new Interpreter; + + if ((s>3) && (filename[s-1]=='s') + && (filename[s-2]=='b') + && (filename[s-3]=='b') + && (filename[s-4]=='.')) + { + if (C!=0) C->SetStatusText(_T("Executing ")+mwxURL->GetValue()); + I->InterpretFile(filename); + } + else { - if ((s>3) && (filename[s-1]=='s') - && (filename[s-2]=='b') - && (filename[s-3]=='b') - && (filename[s-4]=='.')) - { - C->SetStatusText(_T("Executing ")+mwxURL->GetValue()); - C->InterpretFile(filename); - } - else - { - C->SetStatusText(_T("The current page is not a bbs file : cannot execute it")); - } + if (C!=0) C->SetStatusText(_T("The current page is not a bbs file : cannot execute it")); } + + delete I; /* std::string bbdoc = ConfigurationFile::GetInstance().Get_url(); bbdoc += "/bbdoc"; diff --git a/packages/wxvtk/bbs/appli/ExampleViewer2D.bbs b/packages/wxvtk/bbs/appli/ExampleViewer2D.bbs index af26503..35f628e 100644 --- a/packages/wxvtk/bbs/appli/ExampleViewer2D.bbs +++ b/packages/wxvtk/bbs/appli/ExampleViewer2D.bbs @@ -17,3 +17,6 @@ set viewer.Slice 20 set viewer.WinWidth 400 set viewer.WinHeight 400 +exec viewer + +