#include "VVTK_MainWindow.h"
#include "VISU_View_i.hh"
+#include <qaction.h>
+
#include <vtkRenderer.h>
#include <vtkCamera.h>
#define GAUSS_NEW_VIEWER 5100
#define GAUSS_CREATE_PRS 5200
+#define GAUSS_RENAME 5210
#define GAUSS_EDIT_PRS 5300
+#define GAUSS_COPY_PRS 5310
#define GAUSS_ERASE_PRS 5400
#define GAUSS_DISPLAY_PRS 5500
#define GAUSS_DISPLAY_ONLY_PRS 5600
createMenu( action( GAUSS_CREATE_PRS ), createMenu( tr( "MEN_VISUALISATION" ), -1 ), -1 );
createTool( GAUSS_CREATE_PRS, createTool( tr( "TOOL_VISUALISATION" ) ), -1 );
+ createAction( GAUSS_RENAME, VisuGUI::tr("MEN_RENAME"), QIconSet(),
+ VisuGUI::tr("MEN_RENAME"), "", 0, this, false,
+ this, SLOT(OnRename()));
+ mgr->insert( action( GAUSS_RENAME ), -1, 0, -1 );
+ mgr->setRule( action( GAUSS_RENAME ),
+ "selcount=1 and type='VISU::TGAUSSPOINTS'",
+ true );
+
createAction( GAUSS_EDIT_PRS, VisuGUI::tr("MEN_EDIT_PRS"), QIconSet(),
VisuGUI::tr("MEN_EDIT_PRS"), "", 0, this, false,
this, SLOT(OnEditGaussPoints()));
"selcount=1 and type='VISU::TGAUSSPOINTS'",
true );
+ createAction( GAUSS_COPY_PRS, VisuGUI::tr("MEN_COPY_PRS"), QIconSet(),
+ VisuGUI::tr("MEN_COPY_PRS"), "", 0, this, false,
+ this, SLOT(OnCopyPresentation()));
+ mgr->insert( action( GAUSS_COPY_PRS ), -1, 0, -1 );
+ mgr->setRule( action( GAUSS_COPY_PRS ),
+ "selcount=1 and type='VISU::TGAUSSPOINTS'",
+ true );
+ action( GAUSS_COPY_PRS )->setEnabled(false);
+
aRule = "(selcount>0 and type='VISU::TGAUSSPOINTS')";
createAction( GAUSS_ERASE_PRS, VisuGUI::tr("MEN_ERASE"), QIconSet(),