]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx
*** empty log message ***
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GConnectorController.cxx
index 30468e790f1772abddcc34c8b95e33cf04b5e560..c9d8f74885f8781a412685a36860370ef1c46356 100644 (file)
@@ -104,6 +104,11 @@ namespace bbtk
                        wxVTKiren->GetEventPosition(X, Y);
 
                        _controller->MouseReleaseLeft(X,Y);
+                       if(_controller->GetManualViewBaseContour()->GetSelected()==true)
+                       {
+                               _view->setState(SELECTED);
+                               _model->notifyObservers(getId(),ADD_TO_SELECTED);
+                       }
                        
                }
                return true;
@@ -194,12 +199,19 @@ namespace bbtk
                GConnectorModel *conMod = (GConnectorModel*)_model;
                conMod->disconnectConnection();
 
-               _controller->SetEditable(true);
+               _controller->SetEditable(false);
                _controller->DeleteContour();
        }
 
        //=========================================================================
 
+       void GConnectorController::endContourCreation()
+       {
+               _controller->endContourCreation();
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF