X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGPortModel.cxx;h=acef109612295c56b8a24831a0ffa5eba3c9a68c;hb=3babfd57a9b4b3cffba34415e928239592e7d4a1;hp=227b31320c26224f6fbd15ef31c97fb2b7a7c87c;hpb=eaf825847b9ac4bd762deafa59a7df1c2ceba433;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx index 227b313..acef109 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx @@ -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