]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIScriptingInterface.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWxGUIScriptingInterface.cxx
index 4d0a5104bea454f12178890157a5502987b4503e..77a0d3ae2748adba01919358d4195222e070abe4 100644 (file)
@@ -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;