From 5d3c92ebc7588193b1a3fd7c1a03349b05192fc3 Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 11 May 2006 06:56:08 +0000 Subject: [PATCH] Modifications to avoid displaying long IOR's values on nodes' ports, display ports type from corresponding XML catalog instead. --- src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx index 6f03a18..4811512 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx @@ -887,8 +887,18 @@ QString SUPERVGUI_CanvasPortPrs::getText() const QString aText; if ( !CORBA::is_nil( aPort ) ) { aText = aPort->Name(); - if (aPort->IsParam() || aPort->IsInLine() || myPort->isStream()) - aText = aText + "=" + aPort->ToString(); + if (aPort->IsParam() || aPort->IsInLine() || myPort->isStream()) { + // mkr : modifications to avoid displaying long IOR's values on nodes' ports, + // display ports type from corresponding XML catalog instead. + QString aPortValue = aPort->ToString(); + QString aPortType = aPort->Type(); + if ( aPortType.compare("string") // not "string" type + && + aPortValue.find("IOR:") >= 0 ) // has IOR:... in value + aText = aText + "=" + aPortType; + else + aText = aText + "=" + aPortValue; + } } // printf( "--- return text of port : %s ---\n", aText.latin1() ); return aText; -- 2.30.2