]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
bug #278: forced update is implemented
authorasl <asl@opencascade.com>
Tue, 24 Dec 2013 08:27:44 +0000 (08:27 +0000)
committerasl <asl@opencascade.com>
Tue, 24 Dec 2013 08:27:44 +0000 (08:27 +0000)
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_Operations.cxx
src/HYDROGUI/HYDROGUI_Operations.h
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index adf9b38c69704aa8b002c701f34818df0c166b64..039aab232e07925348200b45e3688b1c630f01c7 100644 (file)
@@ -499,6 +499,12 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
       theMenu->addAction( action( UpdateObjectId ) );
       theMenu->addSeparator();
     }
+    else
+    {
+      theMenu->addAction( action( ForcedUpdateObjectId ) );
+      theMenu->addSeparator();
+    }
+
 
     if( aSeq.Length() == 1 )
     {
index 829ca2adb65fcd22b2620bceab60780ac26db7a7..95fb864d8180f2e9b39c4810a0e4425e217019de 100644 (file)
@@ -106,6 +106,7 @@ void HYDROGUI_Module::createActions()
   createAction( PasteId, "PASTE", "", Qt::CTRL + Qt::Key_V );
 
   createAction( UpdateObjectId, "UPDATE_OBJECT" );
+  createAction( ForcedUpdateObjectId, "FORCED_UPDATE_OBJECT" );
 
   createAction( ImportImageId, "IMPORT_IMAGE", "IMPORT_IMAGE_ICO", Qt::CTRL + Qt::Key_I );
   createAction( EditImportedImageId, "EDIT_IMPORTED_IMAGE", "EDIT_IMPORTED_IMAGE_ICO" );
@@ -390,6 +391,7 @@ LightApp_Operation* HYDROGUI_Module::createOperation( const int theId ) const
     anOp = new HYDROGUI_ExportImageOp( aModule );
     break;
   case UpdateObjectId:
+  case ForcedUpdateObjectId:
     anOp = new HYDROGUI_UpdateObjectOp( aModule );
     break;
   case RemoveImageRefsId:
index 21771ffd0df9666949b09bc04bb64f4cbe88c742..e4964dc3532272dd0bd87a946523c77b4be422fa 100644 (file)
@@ -37,6 +37,7 @@ enum OperationId
   PasteId,
 
   UpdateObjectId,
+  ForcedUpdateObjectId,
 
   ImportImageId,
   EditImportedImageId,
index 6b4abbd943dd618593bb0048e5146c144aeafee5..f16d2ae864a50d1a6c6c2d167c88ea6adf642e2f 100644 (file)
@@ -737,6 +737,10 @@ Would you like to remove all references from the image?</translation>
       <source>DSK_UPDATE_OBJECT</source>
       <translation>Update</translation>
     </message>
+    <message>
+      <source>DSK_FORCED_UPDATE_OBJECT</source>
+      <translation>Forced update</translation>
+    </message>
     <message>
       <source>DSK_IMPORT_OBSTACLE_FROM_FILE</source>
       <translation>Import obstacle from file</translation>
@@ -965,6 +969,10 @@ Would you like to remove all references from the image?</translation>
       <source>MEN_UPDATE_OBJECT</source>
       <translation>Update</translation>
     </message>
+    <message>
+      <source>MEN_FORCED_UPDATE_OBJECT</source>
+      <translation>Forced update</translation>
+    </message>
     <message>
       <source>MEN_IMPORT_OBSTACLE_FROM_FILE</source>
       <translation>Import obstacle</translation>
@@ -1169,6 +1177,10 @@ Would you like to remove all references from the image?</translation>
       <source>STB_UPDATE_OBJECT</source>
       <translation>Update</translation>
     </message>
+    <message>
+      <source>STB_FORCED_UPDATE_OBJECT</source>
+      <translation>Forced update</translation>
+    </message>
     <message>
       <source>STB_IMPORT_OBSTACLE_FROM_FILE</source>
       <translation>Import obstacle from file</translation>