Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[box #38049][EDF] (2023-T3) Usages in SMESH
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI.cxx
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index 69cbc7390bcfaa078d777a057ee03f7710147467..bbf36ce1eae6e140b7f6b591d570d37da8ea19b4 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-2560,6
+2560,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
SVTK_ViewWindow* vtkwnd = dynamic_cast<SVTK_ViewWindow*>( view );
//QAction* act = action( theCommandID );
SVTK_ViewWindow* vtkwnd = dynamic_cast<SVTK_ViewWindow*>( view );
//QAction* act = action( theCommandID );
+ bool logAction(false);
switch (theCommandID) {
case SMESHOp::OpDelete:
switch (theCommandID) {
case SMESHOp::OpDelete:
@@
-2877,6
+2878,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
break;
case SMESHOp::OpCopyMesh:
{
break;
case SMESHOp::OpCopyMesh:
{
+ logAction = true;
if (isStudyLocked()) break;
EmitSignalDeactivateDialog();
( new SMESHGUI_CopyMeshDlg( this ) )->show();
if (isStudyLocked()) break;
EmitSignalDeactivateDialog();
( new SMESHGUI_CopyMeshDlg( this ) )->show();
@@
-3702,6
+3704,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
}
case SMESHOp::OpTranslation:
{
}
case SMESHOp::OpTranslation:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-3717,6
+3720,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
}
case SMESHOp::OpRotation:
{
}
case SMESHOp::OpRotation:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-3732,6
+3736,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
}
case SMESHOp::OpSymmetry:
{
}
case SMESHOp::OpSymmetry:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-3747,6
+3752,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
}
case SMESHOp::OpScale:
{
}
case SMESHOp::OpScale:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-3763,6
+3769,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case SMESHOp::OpOffset:
{
case SMESHOp::OpOffset:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-3779,6
+3786,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case SMESHOp::OpSewing:
{
case SMESHOp::OpSewing:
{
+ logAction = true;
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
if(isStudyLocked()) break;
if ( warnOnGeomModif() )
break; // action forbidden as geometry modified
@@
-4008,6
+4016,14
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
anApp->updateActions(); //SRN: To update a Save button in the toolbar
//updateObjBrowser();
anApp->updateActions(); //SRN: To update a Save button in the toolbar
//updateObjBrowser();
+ if(logAction)
+ {
+ QAction* anAction = action( theCommandID );
+ CAM_Application::logStructuredUserEvent( "Mesh",
+ "Operation",
+ anAction->text(),
+ "activated" );
+ }
return true;
}
return true;
}