]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
It works !! Basic D&D and creation of VTK rectangle... Good work
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index e5c437be980fae4303cf7578d12c805f110a6259..d6adae8528c1554746271ecc367f083529176dfa 100644 (file)
@@ -57,7 +57,7 @@ namespace bbtk
        //=========================================================================
        wxGEditorTabPanel::~wxGEditorTabPanel()
        {
-               delete _sceneManager;
+               _sceneManager->disconnectDrop();
        }
        
        //=========================================================================
@@ -76,10 +76,12 @@ namespace bbtk
 
        bool wxGEditorTabPanel::OnDropText(wxCoord x, wxCoord y, const wxString& data)
        {
-               _sceneManager->createGBlackBox();
+               std::string packageName="";
+               std::string boxName="";
+               _sceneManager->createGBlackBox(x,y,packageName, boxName);
                cout<<"RaC DyD:"<<data<<" x:"<<x<<" y:"<<y<<endl;
          return true;
-
        }
 
        //=========================================================================