]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx
The actual version updates the status bar with the highlighted object ... Also it...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.cxx
index 50b0fd6c39c8aa4abc1ef6bd4900adde01ddb594..acef109612295c56b8a24831a0ffa5eba3c9a68c 100644 (file)
@@ -75,11 +75,11 @@ namespace bbtk
                double posX=xInic,posY=yInic,posZ=zInic;
                if(_portType==GOUTPUTPORT)
                {
-                       posY = yInic+PORT_HEIGHT;
+                       posY = yFin;
                }
                else if(_portType==GINPUTPORT)
                {
-                       posY = yFin;
+                       posY = yInic+PORT_HEIGHT;
                }
 
                //Attribute '_posInBox' starts with value 0 and it represents the position of the port in the box from left to right
@@ -92,8 +92,6 @@ namespace bbtk
 
                setFinalPoint(posX,posY,posZ);          
                
-               setChanged();
-               notifyObservers();
        }
 
        //=========================================================================
@@ -103,6 +101,31 @@ namespace bbtk
                return _portType;
        }
 
+       //=========================================================================
+       
+       std::string GPortModel::getStatusText()
+       {
+               std::string temp = "Name:";
+               
+               temp+=_bbtkName;
+               temp+=" Type:";
+               temp+=_bbtkType;
+               temp+=" Box:";
+               temp+=_parentBox->getBBTKType();                
+               if(_portType==GOUTPUTPORT)
+               {
+                       temp+=" [Output Port]";
+               }
+               else if(_portType==GINPUTPORT)
+               {
+                       temp+=" [Input Port]";
+               }
+
+               return temp;
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF