From 00c9c61dca1927498226bdbd0eefe5a77a6fd720 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 15 Nov 2005 07:52:22 +0000 Subject: [PATCH] To add standard popup items for Gauss Points presentation --- src/VISUGUI/VisuGUI_Module.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 78f3430d..be3a6999 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -68,6 +68,8 @@ #include "VVTK_MainWindow.h" #include "VISU_View_i.hh" +#include + #include #include @@ -81,7 +83,9 @@ static int MYDEBUG = 0; #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 @@ -233,6 +237,14 @@ VisuGUI_Module 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())); @@ -241,6 +253,15 @@ VisuGUI_Module "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(), -- 2.39.2