]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIConsole.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWxGUIConsole.h
index a8c328d9ef8c277966699b14f2c53ca385777f6f..e686d7791fa0989b1f2c3cdd73c4f857e3b59cf2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIConsole.h,v $
   Language:  C++
-  Date:      $Date: 2008/03/25 06:22:53 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/04/24 12:56:39 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -63,9 +63,9 @@ namespace bbtk
     /// Returns the Interpreter used 
     /// ONLY ONE FOR THE MOMENT BUT IN THE FUTURE CAN BE DIFFERENT 
     /// (DIFFERENT WORKSPACES)
-    Interpreter* GetInterpreter() { return mInterpreter; }
+    //Interpreter::Pointer GetInterpreter() { return mInterpreter; }
     /// Returns the Interpreter used (const)
-    const Interpreter* GetInterpreter() const { return mInterpreter; }
+    Interpreter::Pointer GetInterpreter() const { return mInterpreter; }
 
     /// Sets the inputs of the workspace : 
     /// the map is passed as is to the Executer
@@ -90,6 +90,7 @@ namespace bbtk
     void OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event));
     void OnMenuCreateBlackBox(wxCommandEvent& WXUNUSED(event));
     void OnMenuShowImageGraph(wxCommandEvent& WXUNUSED(event));
+    void OnMenuShowHTMLDoc(wxCommandEvent& WXUNUSED(event));
     void OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event));
    
 
@@ -102,9 +103,14 @@ namespace bbtk
     // WxGUICommand callbacks
     void WxGUICommandEnter(const std::string&);
 
+
+    // Overloaded Show method to handle bbtk::Wx::TopWindow auto-destruction
+    virtual bool Show(bool show = true);
+
+
   private:
     wxAuiManager m_mgr;
-    Interpreter* mInterpreter;
+    Interpreter::Pointer mInterpreter;
 
     
 //EED    wxNotebook* mwxNotebook;
@@ -118,8 +124,9 @@ namespace bbtk
     wxButton* mwxButtonRun;
 
   public:
-         
+    
+    // Callback invoked by bbtk top window when something changes
+    void OnWxSignal();
     DECLARE_EVENT_TABLE()
        
   };