Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2008/05/14 12:32:26 $
- Version: $Revision: 1.9 $
+ 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
#include "bbtkWxStreamRedirector.h"
-#include "icons/cc_run.xpm"
+//#include "icons/cc_run.xpm"
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
};
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();
_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"));
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") );
*/
mwxNotebook->AddPage(mWxGUICommand,_T("Command"),true);
+
m_mgr.AddPane(mwxNotebook,
wxAuiPaneInfo().Name(wxT("nb"))
.CaptionVisible(false)
(*buf) << mWxGUITextEditor->GetCurrentPage()->GetText();
try
{
- std::cout << "RUN"<<std::endl;
+ // std::cout << "RUN"<<std::endl;
if (mwxMenuItemReset->IsChecked()) WxGUICommandEnter("reset");
mInterpreter->InterpretBuffer(buf);
- std::cout << "EO RUN"<<std::endl;
+ // std::cout << "EO RUN"<<std::endl;
}
CATCH_MACRO;
- std::cout << "EO RUN 3"<<std::endl;
+ // std::cout << "EO RUN 3"<<std::endl;
}
//================================================================
{
m_mgr.Update();
Refresh();
- wxMessageBox(_T(" bbi\nThe Black Box Toolkit interpreter\n(c) CREATIS-LRMN 2008"),
+ wxMessageBox(_T(" bbStudio\nThe Black Box Toolkit Development Studio\n(c) CREATIS-LRMN 2008"),
_T("About ..."), wxOK | wxICON_INFORMATION,
this);
}
}
//================================================================
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsPackageBrowser(wxCommandEvent& WXUNUSED(event))
+ {
+ wxBusyCursor wait;
+ WxGUIPackageBrowser2 *browser = new WxGUIPackageBrowser2(this);
+ browser->IncludeAll();
+ mwxNotebook->AddPage(browser,_T("Package Browser"),true);
+ }
+ //================================================================
+
+
//================================================================
void WxGUIScriptingInterface::OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event))
{
- std::string command("toolsbbtk/appli/CreatePackage");
+ std::string command("toolsbbtk/appli/GUICreatePackage");
bbtkMessage("Debug",1,"Executing : '"<<command<<"'"<<std::endl);
Interpreter::Pointer I = Interpreter::New();
//================================================================
void WxGUIScriptingInterface::OnMenuCreateBlackBox(wxCommandEvent& WXUNUSED(event))
{
- std::string command("toolsbbtk/appli/CreateBlackBox");
+ std::string command("toolsbbtk/appli/GUICreateBlackBox");
bbtkMessage("Debug",1,"Executing : '"<<command<<"'"<<std::endl);
Interpreter::Pointer I = Interpreter::New();
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()