mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
0021858: EDF 2171 SMESH : Add an information about the groups an element or node belongs to
- additional minor change: trim long group names
This commit is contained in:
parent
c6270448c0
commit
75be4ee0eb
@ -1152,7 +1152,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
|
|||||||
myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
|
myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
|
||||||
top_created = true;
|
top_created = true;
|
||||||
}
|
}
|
||||||
myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName ) );
|
myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName.trimmed() ) );
|
||||||
if ( grp_details ) {
|
if ( grp_details ) {
|
||||||
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
||||||
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
||||||
@ -1399,7 +1399,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
|
|||||||
myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
|
myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
|
||||||
top_created = true;
|
top_created = true;
|
||||||
}
|
}
|
||||||
myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName ) );
|
myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName.trimmed() ) );
|
||||||
if ( grp_details ) {
|
if ( grp_details ) {
|
||||||
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
||||||
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
||||||
@ -1652,7 +1652,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
|
|||||||
groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
|
groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
|
||||||
}
|
}
|
||||||
QTreeWidgetItem* it = createItem( groupsItem, Bold );
|
QTreeWidgetItem* it = createItem( groupsItem, Bold );
|
||||||
it->setText( 0, aName );
|
it->setText( 0, aName.trimmed() );
|
||||||
if ( grp_details ) {
|
if ( grp_details ) {
|
||||||
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
||||||
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
||||||
@ -1970,7 +1970,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
|
|||||||
groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
|
groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
|
||||||
}
|
}
|
||||||
QTreeWidgetItem* it = createItem( groupsItem, Bold );
|
QTreeWidgetItem* it = createItem( groupsItem, Bold );
|
||||||
it->setText( 0, aName );
|
it->setText( 0, aName.trimmed() );
|
||||||
if ( grp_details ) {
|
if ( grp_details ) {
|
||||||
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
SMESH::SMESH_Group_var aStdGroup = SMESH::SMESH_Group::_narrow( aGrp );
|
||||||
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
SMESH::SMESH_GroupOnGeom_var aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
|
||||||
|
Loading…
Reference in New Issue
Block a user