]> 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 227b31320c26224f6fbd15ef31c97fb2b7a7c87c..acef109612295c56b8a24831a0ffa5eba3c9a68c 100644 (file)
@@ -92,7 +92,6 @@ namespace bbtk
 
                setFinalPoint(posX,posY,posZ);          
                
-               //notifyObservers();
        }
 
        //=========================================================================
@@ -102,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