]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
Feature #1347
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index b080d31f1933b9544d03025e4e07760b8579206f..645d959e12e38b7e2dcbe18bd699ecb206bb2772 100644 (file)
@@ -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 = "<void>";
        std::string line = "";
        char delims[] = ":";
        char *result = NULL;
+
        getline(inputStream, line);
 
        bool start = false;