0020695: EDF 1076 GEOM: Add a new shape in GEOM: T-shape

Additional change: customize Object browser icons for the Advanced shapes
This commit is contained in:
vsr 2010-03-31 13:28:21 +00:00
parent 016401dbb2
commit adc2b14a52

View File

@ -231,6 +231,12 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
} else if ( aShape->GetType() == GEOM_MARKER ) {
aPixmap->SetPixMap( "ICON_OBJBROWSER_LCS" );
aShapeName = "LocalCS_";
} else if ( aShape->GetType() > ADVANCED_BASE ) {
char buf[20];
sprintf( buf, "%d", aShape->GetType() );
std::string advId = "ICON_OBJBROWSER_ADVANCED_"; advId += buf;
aPixmap->SetPixMap( advId.c_str() );
aShapeName = "Advanced_";
} else if ( aShape->GetShapeType() == GEOM::COMPOUND ) {
aPixmap->SetPixMap( "ICON_OBJBROWSER_COMPOUND" );
aShapeName = "Compound_";