X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIScriptingInterface.cxx;h=8a6ebfb17d9db41fe99340f809f351a58763f7af;hb=a09174b82cb36ffd30bdbaed12c6ebd936a0e8f7;hp=de7e616509cc2be990b129ad30a00113610c5698;hpb=857e5e5bd003d20cb8bc4539b6fca4ca9d50929c;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIScriptingInterface.cxx b/kernel/src/bbtkWxGUIScriptingInterface.cxx index de7e616..8a6ebfb 100644 --- a/kernel/src/bbtkWxGUIScriptingInterface.cxx +++ b/kernel/src/bbtkWxGUIScriptingInterface.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $ Language: C++ - Date: $Date: 2008/05/15 08:02:36 $ - Version: $Revision: 1.10 $ + Date: $Date: 2008/07/23 11:46:11 $ + 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 @@ -39,7 +39,7 @@ #include "bbtkWxStreamRedirector.h" -#include "icons/cc_run.xpm" +//#include "icons/cc_run.xpm" namespace bbtk { @@ -57,7 +57,8 @@ namespace bbtk ID_Menu_Windows_Help, ID_Menu_Windows_Messages, ID_Menu_Windows_Command, - ID_Menu_Windows_Save + ID_Menu_Windows_Save, + ID_Menu_Windows_PackageBrowser // ID_Button_Run }; @@ -89,7 +90,7 @@ namespace bbtk menuTools->Append( ID_Menu_CreateBlackBox, _T("Create &blackbox") ); menuTools->Append( ID_Menu_ShowImageGraph, _T("&Show last image graph") ); menuTools->Append( ID_Menu_CreateIndex, _T("&Generate index") ); - + wxMenu *menuWindows = new wxMenu; menuWindows->AppendCheckItem(ID_Menu_Windows_Files, _T("Show 'files' panel") )->Check(); @@ -99,6 +100,8 @@ namespace bbtk _T("Show 'messages' panel") )->Check(); menuWindows->AppendCheckItem(ID_Menu_Windows_Command, _T("Show 'command' panel") )->Check(); + menuWindows->AppendSeparator(); + menuWindows->Append( ID_Menu_Windows_PackageBrowser, _T("Show Package &Browser") ); menuWindows->AppendSeparator(); menuWindows->Append ( ID_Menu_Windows_Save, _T("Save interface configuration")); @@ -118,15 +121,16 @@ namespace bbtk SetMenuBar( menuBar ); CreateStatusBar(); - SetStatusText( _T("Welcome to bbi !") ); + SetStatusText( _T("Welcome to bbStudio !") ); // mWxGUITextEditor = new WxGUITextEditor(this,this); mWxGUITextEditor->SetFileNameFilter("*.bbs"); + + mWxGUIHtmlBrowser = new WxGUIHtmlBrowser(this,wxSize(200,0),this); - mWxGUIHtmlBrowser = new WxGUIHtmlBrowser(this,wxSize(200,0),this); - /* + /* wxBitmap bmp_run(cc_run_xpm); mwxButtonRun = new wxBitmapButton( this, ID_Button_Run,bmp_run);//_T("Run") ); */ @@ -161,6 +165,7 @@ namespace bbtk mwxNotebook->AddPage(mWxGUICommand,_T("Command"),true); + m_mgr.AddPane(mwxNotebook, wxAuiPaneInfo().Name(wxT("nb")) .CaptionVisible(false) @@ -297,13 +302,13 @@ namespace bbtk (*buf) << mWxGUITextEditor->GetCurrentPage()->GetText(); try { - std::cout << "RUN"<IsChecked()) WxGUICommandEnter("reset"); mInterpreter->InterpretBuffer(buf); - std::cout << "EO RUN"<IncludeAll(); + mwxNotebook->AddPage(browser,_T("Package Browser"),true); + } + //================================================================ + + //================================================================ void WxGUIScriptingInterface::OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event)) @@ -515,6 +531,7 @@ namespace bbtk EVT_MENU(ID_Menu_Windows_Help, WxGUIScriptingInterface::OnMenuWindowsHelp) EVT_MENU(ID_Menu_Windows_Messages, WxGUIScriptingInterface::OnMenuWindowsMessages) EVT_MENU(ID_Menu_Windows_Command, WxGUIScriptingInterface::OnMenuWindowsCommand) + EVT_MENU(ID_Menu_Windows_PackageBrowser, WxGUIScriptingInterface::OnMenuWindowsPackageBrowser) EVT_AUI_PANE_CLOSE(WxGUIScriptingInterface::OnPaneClose) // EVT_BUTTON(ID_Button_Run, WxGUIScriptingInterface::OnButtonRun ) END_EVENT_TABLE()