]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
Connection with BBTK and capturing black bbox descriptor
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index d6adae8528c1554746271ecc367f083529176dfa..b6dbb500b0a1fddff97145acaddd7251f951ae45 100644 (file)
@@ -78,8 +78,24 @@ namespace bbtk
        {
                std::string packageName="";
                std::string boxName="";
+
+
+               wxString foo( wxT(data) );
+               char str[150];
+               strcpy( str, (const char*)foo.mb_str(wxConvUTF8) );
+
+               char delims[] = ":";
+                char *result = NULL;
+                result = strtok( str, delims );
+                packageName += result;
+                
+                result = strtok( NULL, delims );
+                boxName += result;
+                
                _sceneManager->createGBlackBox(x,y,packageName, boxName);
-               cout<<"RaC DyD:"<<data<<" x:"<<x<<" y:"<<y<<endl;
+
+               //cout<<"result is pkg:"<<packageName<<" box:"<<boxName<<endl;
+               //cout<<"RaC DyD:"<<data<<" x:"<<x<<" t:"<<y<<endl; 
          return true;
  
        }