]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
std::string vs wxString
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index 88b6aaf6a665a415805927bdc73db65d4ea9a7cf..e2ead8fd058d6000e8d2c7a4a59b798da965e550 100644 (file)
@@ -35,7 +35,7 @@ Version:   $Revision$
 
 
 #include "wxGEditorTabPanel.h"
-
+#include "creaWx.h"
 
 namespace bbtk
 {
@@ -79,7 +79,7 @@ namespace bbtk
                std::string packageName="";
                std::string boxName="";
 
-               wxString foo( wxT(data) );
+               wxString foo( (data) );
                char str[150];
                strcpy( str, (const char*)foo.mb_str(wxConvUTF8) );
 
@@ -94,7 +94,48 @@ namespace bbtk
                _sceneManager->createGBlackBox(x,y,packageName, boxName);
 
          return true;
+       }
+
+       //=========================================================================
+
+       void wxGEditorTabPanel::setPanelsManager(wxTabPanelsManager* panelsManager)
+       {
+               _panelsManager = panelsManager;
+       }
+
+       //=========================================================================
+
+       void wxGEditorTabPanel::displayBlackBoxInfo(std::string packageName, std::string boxName)
+       {
+               _panelsManager->displayBlackBoxInfo(packageName,boxName);
+       }
+
+       //=========================================================================
+
+       void wxGEditorTabPanel::updateStatusBar(std::string textStatus)
+       {
+               _panelsManager->updateStatusBar(textStatus);
+       }
+
+       //=========================================================================
+
+       std::string wxGEditorTabPanel::getDiagramScript()
+       {
+               return _sceneManager->getDiagramScript();
+       }
+
+       //=========================================================================
+
+       void wxGEditorTabPanel::editBlackBox(GBlackBoxModel *bbmodel)
+       {
+               _panelsManager->editBlackBox(bbmodel);
+       }
+
+       //=========================================================================
+       
+       void wxGEditorTabPanel::editDiagramParameters(wxVtkSceneManager* scene)
+       {
+               _panelsManager->editDiagramParameters(scene);
        }
 
        //=========================================================================
@@ -102,4 +143,3 @@ namespace bbtk
 }  // EO namespace bbtk
 
 // EOF
-