X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;fp=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;h=8ec6907de425efda932d4c5faae9a779cc9bd1c2;hb=d48bd5af65756f8d826169d9d975ac29a042984c;hp=a8e2efb5bdbd7da061e442307e556952a8902752;hpb=b7a2b34294c468696201b94c7020563e70440a80;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx index a8e2efb..8ec6907 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx @@ -133,17 +133,19 @@ namespace bbtk //wxMessageBox(data); - std::string stdData = crea::wx2std(data); - //std::cout << "Text drop: '" << stdData << "'" << std::endl; + + int posEndEED=data.find(""); + wxString data2( data.substr(0,posEndEED) ); + std::string stdData = crea::wx2std(data2); if(stdData.substr(0,4) == "box:") { int posT = stdData.find_first_of(':', 4); std::string packageName = stdData.substr(4, posT-4); posT = stdData.find_first_not_of(':', posT); - std::string boxType = stdData.substr(posT); - + std::string boxType = stdData.substr(posT, data.Len()-posT ); + //std::cout << "box: Package='" << packageName << "' BoxType='" << boxType << "'" < length %d %d \n", stdData.c_str(), stdData.length(), data.Len() ); + printf("EED wxGEditorTabPanel::OnDropText <%s> wxString\n",(const char*)data.mb_str() ); if ( _panelsManager->TryToOpenScriptApplication(packageName,boxType) == false ) { _sceneManager->createGBlackBox(x,y,packageName, boxType);