createAction( VISU_DELETE_OBJS, tr("MEN_DELETE_OBJS"), QIconSet(),
tr("MEN_DELETE_OBJS"), "", 0, aParent, false,
- this, SLOT(OnDeleteObjects()));
+ this, SLOT(OnDeleteObjects()));
//aPixmap = aResourceMgr->loadPixmap("VISU",tr(""));
//createAction( 4022, tr("MEN_RENAME_TABLE"), QIconSet(aPixmap), tr("MEN_RENAME_TABLE"), "", 0, aParent, false,
this, SLOT(OnDisplayOnlyPrs()));
//aPixmap = aResourceMgr->loadPixmap("VISU",tr(""));
- createAction( VISU_DELETE_PRS, tr("MEN_DELETE_PRS"), QIconSet(), tr("MEN_DELETE_PRS"), "", 0, aParent, false,
- this, SLOT(OnDeletePrs()));
+ //createAction( VISU_DELETE_PRS, tr("MEN_DELETE_PRS"), QIconSet(), tr("MEN_DELETE_PRS"), "", 0, aParent, false,
+ // this, SLOT(OnDeletePrs()));
//aPixmap = aResourceMgr->loadPixmap("VISU",tr(""));
createAction( VISU_COPY_PRS, tr("MEN_COPY_PRS"), QIconSet(), tr("MEN_COPY_PRS"), "", 0, aParent, false,
tr("MEN_SCALING"), "", 0, aParent, false,
this, SLOT(OnScaling()));
- //aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_CUBE_AXES"));
- createAction( VISU_CUBE_AXES, tr("MEN_CUBE_AXES"), QIconSet(/*aPixmap*/),
+ aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_CUBE_AXES"));
+ createAction( VISU_CUBE_AXES, tr("MEN_CUBE_AXES"), QIconSet(aPixmap),
tr("MEN_CUBE_AXES"), "", 0, aParent, false,
this, SLOT(OnCubeAxes()));
createTool( VISU_CUT_LINES, aToolId );
createTool( VISU_STREAM_LINES, aToolId );
createTool( VISU_PLOT_3D, aToolId );
+
+ aToolId = createTool(tr("TOOL_REPRESENTATION"));
+ createTool( VISU_POINTS, aToolId );
+ createTool( VISU_WIREFRAME, aToolId );
+ createTool( VISU_SURFACE, aToolId );
+ createTool( VISU_ERASE_ALL, aToolId );
+ createTool( VISU_GLOBAL_SELECTION, aToolId );
+ createTool( VISU_PARTIAL_SELECTION, aToolId );
+ createTool( VISU_SCALING, aToolId );
+ createTool( VISU_CUBE_AXES, aToolId );
}
void
mgr->insert( action( VISU_COPY_PRS ), -1, -1, -1 );
// delete
- mgr->insert( action( VISU_DELETE_OBJS ), -1, -1, -1 );
+ //mgr->insert( action( VISU_DELETE_OBJS ), -1, -1, -1 );
//mgr->insert( action( VISU_DELETE ), -1, -1, -1 ); // TODO: remove
//mgr->insert( action( VISU_DELETE_PRS ), -1, -1, -1 ); // TODO: remove
mgr->insert( action( VISU_CLEAR_CONTAINER ), -1, -1, -1 );
//aRule = aSel_One_ObjBr + " and $type in {'VISU::TRESULT' 'VISU::TTABLE' 'VISU::TCONTAINER'}";
//mgr->setRule( action( VISU_DELETE ), aRule, true );
- QString aDeletable ("$type in {'VISU::TTABLE' 'VISU::TCURVE' 'VISU::TCONTAINER' ");
- aDeletable += aPrsAll + " 'VISU::TRESULT' 'VISU::TMESH'}";
- mgr->setRule( action( VISU_DELETE_OBJS ), aSel_Some_ObjBr + " and " + aDeletable, true );
+ //QString aDeletable ("$type in {'VISU::TTABLE' 'VISU::TCURVE' 'VISU::TCONTAINER' ");
+ //aDeletable += aPrsAll + " 'VISU::TRESULT' 'VISU::TMESH'}";
+ //mgr->setRule( action( VISU_DELETE_OBJS ), aSel_Some_ObjBr + " and " + aDeletable, true );
// timestamp commands
aRule = aSel_One_ObjBr + " and type='VISU::TTIMESTAMP'";
mgr->setRule( action( VISU_DISPLAY ), aRule + "and (isVisible=false)", true );// TODO: aRule.arg(" and isVisible=0"), true );
mgr->setRule( action( VISU_DISPLAY_ONLY ), aRule, true );
+ aRule = "selcount>0 and $type in {'VISU::TMESH' " + aPrsAll + "}";
mgr->setRule( action( VISU_TRANSLATE_PRS ), aRule, true );
+ aRule = "selcount>1 and $type in {'VISU::TMESH' " + aPrsAll + "}";
mgr->setRule( action( VISU_MERGE_SCALAR_BARS ), aRule, true );
mgr->setRule( action( VISU_FREE_SCALAR_BARS ), aRule, true );