mgr->setRule( action( VISU_EXPORT_TABLE ), aRule, true );
mgr->insert( separator(), -1, -1, -1 );
aRule = "(client='ObjectBrowser' and selcount>0 and ((type='VISU::TTABLE' and nbChildren>0) "
- "or (type='VISU::TCURVE'%1) or (type='VISU::TCONTAINER'))) "
+ "or (type='VISU::TCURVE') or (type='VISU::TCONTAINER'))) "
" or (selcount>0 and $type in {"
"'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' "
"'VISU::TCUTPLANES' 'VISU::TCUTLINES' 'VISU::TVECTORS' 'VISU::TSTREAMLINES'})";
mgr->insert( action( VISU_ERASE ), -1, -1, -1 ); // erase
- mgr->setRule( action( VISU_ERASE ), aRule.arg(""), true );// TODO: aRule.arg(" and isVisible=1"), true );
+ mgr->setRule( action( VISU_ERASE ), aRule + "and (isVisible=true)", true );// TODO: aRule.arg(" and isVisible=1"), true );
mgr->insert( action( VISU_DISPLAY ), -1, -1, -1 ); // display
- mgr->setRule( action( VISU_DISPLAY ), aRule.arg(""), true );// TODO: aRule.arg(" and isVisible=0"), true );
+ mgr->setRule( action( VISU_DISPLAY ), aRule + "and (isVisible=false)", true );// TODO: aRule.arg(" and isVisible=0"), true );
mgr->insert( action( VISU_DISPLAY_ONLY ), -1, -1, -1 ); // display only
- mgr->setRule( action( VISU_DISPLAY_ONLY ), aRule.arg(""), true );
+ mgr->setRule( action( VISU_DISPLAY_ONLY ), aRule, true );
aRule = "client='ObjectBrowser' and selcount=1 and $type in {'VISU::TTABLE' "
"'VISU::TCURVE' 'VISU::TCONTAINER' 'VISU::TMESH' 'VISU::TSCALARMAP' "
mgr->setRule( action( VISU_SWEEP ), aRule, true );
// Selection info popup item
- // aRule = "client='ObjectBrowser' and selcount=1" + aInsideType;
- // mgr->insert( action( VISU_SELECTION_INFO ), -1, -1, -1 ); // Selection info
- // mgr->setRule( action( VISU_SELECTION_INFO ), aRule, true );
+ aRule = "client='ObjectBrowser' and selcount=1" + aInsideType;
+ mgr->insert( action( VISU_SELECTION_INFO ), -1, -1, -1 ); // Selection info
+ mgr->setRule( action( VISU_SELECTION_INFO ), aRule, true );
aRule = "client='ObjectBrowser' and selcount>0 and $type in {'VISU::TFIELD'} and nbTimeStamps>1";
mgr->insert( action( VISU_ANIMATION ), -1, -1, -1 ); // animation