X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIScriptingInterface.cxx;h=77a0d3ae2748adba01919358d4195222e070abe4;hb=f993478d7df1d9688c4ab93c617688c84cf2d424;hp=4d0a5104bea454f12178890157a5502987b4503e;hpb=ba235cfa6ce74178ab468c01af002af0ab3a7d82;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIScriptingInterface.cxx b/kernel/src/bbtkWxGUIScriptingInterface.cxx index 4d0a510..77a0d3a 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/04/25 07:33:17 $ - Version: $Revision: 1.8 $ + Date: $Date: 2008/05/14 12:32:26 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -137,8 +137,8 @@ namespace bbtk mWxGUICommand->SetFocus(); - /* - + + mwxNotebook = new wxAuiNotebook(this, -1, wxPoint(0, 0), @@ -152,7 +152,25 @@ namespace bbtk //| wxAUI_NB_CLOSE_ON_ACTIVE_TAB //| wxAUI_NB_CLOSE_ON_ALL_TABS | wxNO_BORDER); - */ + + + mwxNotebook->AddPage(mWxGUITextEditor,_T("Files"),true); + mwxNotebook->AddPage(mWxGUIHtmlBrowser,_T("Help"),true); + + mwxNotebook->AddPage(mWxGUIOutputMessages,_T("Messages"),true); + + mwxNotebook->AddPage(mWxGUICommand,_T("Command"),true); + + m_mgr.AddPane(mwxNotebook, + wxAuiPaneInfo().Name(wxT("nb")) + .CaptionVisible(false) + .MinimizeButton(false) + .MaximizeButton(false) + .Center() + // .MinSize(wxSize(100,100)) + ); + + /* // m_mgr.AddPane(mWxGUITextEditor, wxAuiPaneInfo().Name(wxT("editor_content")) @@ -189,6 +207,7 @@ namespace bbtk .Position(1) .MinSize(wxSize(100,100)) ); + */ // m_mgr.AddPane(mwxButtonRun, // wxAuiPaneInfo().Name(wxT("button_run_content"))); @@ -202,6 +221,8 @@ namespace bbtk SetAutoLayout(true); Layout(); + mwxNotebook->SetSelection(1); + mWxGUIHtmlBrowser->GoHome(); // Refresh(); // m_mgr.Update(); } @@ -413,6 +434,8 @@ namespace bbtk && (target[s-4]=='.')) { mWxGUITextEditor->Open(target); + mwxNotebook->SetSelection(0); + mWxGUITextEditor->SetFocus(); return false; } return true;