]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxConsole.h
Global factory in course of removal... does not compile but have to commit to continu...
[bbtk.git] / kernel / src / bbtkWxConsole.h
index 41ca170e2d96d6193cc86b43e4c7bb49ac6eb6b8..7649c2205a549db2e8ed072660c3e0711578099d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxConsole.h,v $
   Language:  C++
-  Date:      $Date: 2008/03/03 10:48:48 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/03/07 08:40:14 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -57,7 +57,14 @@ namespace bbtk
     WxConsole( wxWindow *parent, wxString title, wxSize size);
     ~WxConsole();
 
-    static WxConsole* GetInstance() { return mInstance; }
+    //    static WxConsole* GetInstance() { return mInstance; }
+    
+    /// Returns the Interpreter used 
+    /// ONLY ONE FOR THE MOMENT BUT IN THE FUTURE CAN BE DIFFERENT 
+    /// (DIFFERENT WORKSPACES)
+    Interpreter* GetInterpreter() { return mInterpreter; }
+    /// Returns the Interpreter used (const)
+    const Interpreter* GetInterpreter() const { return mInterpreter; }
 
     /// Sets the inputs of the workspace : 
     /// the map is passed as is to the Executer
@@ -68,7 +75,8 @@ namespace bbtk
     /// which creates but does not execute pipelines.
     void SetNoExecMode(bool b) { mInterpreter->SetNoExecMode(b); }
 
-    void SetDialogMode(Interpreter::DialogModeType t) { mInterpreter->SetDialogMode(t); }
+    void SetDialogMode(Interpreter::DialogModeType t) 
+    { mInterpreter->SetDialogMode(t); }
     
     /// Runs the interpretation of a file
     void InterpretFile( const std::string& filename)