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
mWxGUICommand->SetFocus();
- /*
-
+
+
mwxNotebook = new wxAuiNotebook(this,
-1,
wxPoint(0, 0),
//| 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"))
.Position(1)
.MinSize(wxSize(100,100))
);
+ */
// m_mgr.AddPane(mwxButtonRun,
// wxAuiPaneInfo().Name(wxT("button_run_content")));
SetAutoLayout(true);
Layout();
+ mwxNotebook->SetSelection(1);
+ mWxGUIHtmlBrowser->GoHome();
// Refresh();
// m_mgr.Update();
}
&& (target[s-4]=='.'))
{
mWxGUITextEditor->Open(target);
+ mwxNotebook->SetSelection(0);
+ mWxGUITextEditor->SetFocus();
return false;
}
return true;