]> Creatis software - bbtkGEditor.git/commitdiff
Solved text message issue, when pointed a correct connection. bug 1371
authorriveros <>
Thu, 24 May 2012 10:54:32 +0000 (10:54 +0000)
committerriveros <>
Thu, 24 May 2012 10:54:32 +0000 (10:54 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx

index edbc145e0e32070e41f83324ef57653d10189526..192100b24a4544e00a3a20f38618f956fa461a25 100644 (file)
@@ -536,7 +536,7 @@ int wxVtkSceneManager::createGConnector(GPortModel* startPort) {
          * Width increased from 2 to 5, it simplifies line handling and spline control :P
          * @param WidthLine  
          */ 
-        manContourView->SetWidthLine( 5 ) ;
+        manContourView->SetWidthLine( 3 ) ;
        manContourView->SetShowText(false);
 
        manContourControl->SetModelView(manContourModel, manContourView);
@@ -820,7 +820,9 @@ bool wxVtkSceneManager::OnMouseMove() {
                        int state = desc->getView()->getState();
                        desc->getModel()->getCenter(px, py, pz);
 
-                       if (state == HIGHLIGHTED) {
+                        // JGRR & CM
+                       if ((state == HIGHLIGHTED) || (state == SELECTED_POSSIBLE_CONNECTION )) {
+                        // EO JGRR & CM    
                                okStatusMessage = true;
                                updateStatusBar(desc->getStatusText());
                                if (type == GBLACKBOX) {
@@ -2284,9 +2286,7 @@ int wxVtkSceneManager::addObjectController(GObjectController* objController) {
        int newId = _contLastId;//_controllers.size();
        objController->setId(newId);
        _controllers[newId] = objController;
-       std::cout
-                       << "DFCH: int wxVtkSceneManager::addObjectController(GObjectController* objController) ---- _contLastId = "
-                       << _contLastId << std::endl;
+       //std::cout << "DFCH: int wxVtkSceneManager::addObjectController(GObjectController* objController) ---- _contLastId = " << _contLastId << std::endl;
        _contLastId++;
        return newId;
 }