X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.cxx;h=645d959e12e38b7e2dcbe18bd699ecb206bb2772;hb=fea0c6ff7e209a7bb61bcc8176742e5f1a609443;hp=b080d31f1933b9544d03025e4e07760b8579206f;hpb=775c8164b5f679027b8bbafa97c0e0110711909b;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx index b080d31..645d959 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx @@ -685,6 +685,7 @@ void wxVtkSceneManager::update(int idController, int command) { if (finPort->getGObjectType() == GPORT) { GPortModel* modelPort = (GPortModel*) finPort->getModel(); modelContour->setEndPort(modelPort); + _parent->saveTempDiagram(); } manualConnectorContourController @@ -819,6 +820,7 @@ bool wxVtkSceneManager::OnLeftButtonDown() { CancelConnection(); UnSelectBlackBoxes(); } // isOverPort + } else { //_worldState @@ -845,7 +847,7 @@ bool wxVtkSceneManager::OnLeftButtonDown() { cont->getView()->setState(DRAG); cont->getModel()->notifyObservers(_idManager); } // for - + } // if _selectedObjects.size @@ -1104,6 +1106,7 @@ void wxVtkSceneManager::deleteObject(int id) { _controllers.erase(it); }//if }// for + _parent->saveTempDiagram(); } //========================================================================= @@ -1641,12 +1644,13 @@ void wxVtkSceneManager::saveDiagram(std::string &content) { //========================================================================= -void wxVtkSceneManager::loadDiagram(ifstream &inputStream) { +void wxVtkSceneManager::loadDiagram(stringstream &inputStream) { std::string version = ""; std::string line = ""; char delims[] = ":"; char *result = NULL; + getline(inputStream, line); bool start = false;