]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authormkr <mkr@opencascade.com>
Thu, 12 Jul 2007 08:25:26 +0000 (08:25 +0000)
committermkr <mkr@opencascade.com>
Thu, 12 Jul 2007 08:25:26 +0000 (08:25 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/resources/SalomeApp_msg_en.po
src/SalomeApp/resources/SalomeApp_msg_en.ts

index 3bbb36abcc11ff79b1c6c95d07e3f649476c3f9a..ac6572fbf4a77c3f848f92eaf95968df990fc53f 100644 (file)
@@ -900,14 +900,14 @@ int SalomeApp_Application::closeChoice( const QString& docName )
 {
   int answer = SUIT_MessageBox::question( desktop(), tr( "APPCLOSE_CAPTION" ), tr( "APPCLOSE_DESCRIPTION" ).arg( docName ),
                                           tr ("APPCLOSE_SAVE"), tr ("APPCLOSE_CLOSE"),
-                                         tr ("APPCLOSE_UNLOAD"), tr ("APPCLOSE_CANCEL"), 1 );
+                                         tr ("APPCLOSE_UNLOAD"), tr ("APPCLOSE_CANCEL"), 0 );
 
   int res = CloseCancel;
-  if ( answer == 1 )
+  if ( answer == 0 )
     res = CloseSave;
-  else if ( answer == 2 )
+  else if ( answer == 1 )
     res = CloseDiscard;
-  else if ( answer == 3 )
+  else if ( answer == 2 )
     res = CloseUnload;
 
   return res;
index 445306db75848423dbc47190b726f01dd45ccc62..c5c5fe7bd5dc96556a07cf6b9814c822b402c527 100644 (file)
@@ -249,21 +249,21 @@ msgstr "Delete"
 
 //=======================================================================================
 
-msgid "APPCLOSE_SAVE"
+msgid "SalomeApp_Application::APPCLOSE_SAVE"
 msgstr "&Save&&Close"
 
-msgid "APPCLOSE_CLOSE"
+msgid "SalomeApp_Application::APPCLOSE_CLOSE"
 msgstr "&Close w/o saving"
 
-msgid "APPCLOSE_UNLOAD"
+msgid "SalomeApp_Application::APPCLOSE_UNLOAD"
 msgstr "&Unload"
 
-msgid "APPCLOSE_CANCEL"
+msgid "SalomeApp_Application::APPCLOSE_CANCEL"
 msgstr "&Cancel"
 
-msgid "APPCLOSE_CAPTION"
+msgid "SalomeApp_Application::APPCLOSE_CAPTION"
 msgstr "Close active study"
 
-msgid "APPCLOSE_DESCRIPTION"
+msgid "SalomeApp_Application::APPCLOSE_DESCRIPTION"
 msgstr "Do you want to close or only unload the study"
 
index 9439392b029e0cfe5b048a46fa277643c51e5498..18d079edb4742d7615908f662c25cf3ddc5fa38c 100644 (file)
         <source>ALL_FILES_FILTER</source>
         <translation>All files (*.*)</translation>
     </message>
+    <message>
+        <source>APPCLOSE_UNLOAD</source>
+        <translation>&amp;Unload</translation>
+    </message>
+    <message>
+        <source>APPCLOSE_CLOSE</source>
+        <translation>&amp;Close w/o saving</translation>
+    </message>
     <message>
         <source>MEN_WINDOWS_NEW</source>
         <translation>New window</translation>
         <source>MEN_DESK_REGISTRY_DISPLAY</source>
         <translation>Registry &amp;display</translation>
     </message>
+    <message>
+        <source>APPCLOSE_SAVE</source>
+        <translation>&amp;Save&amp;&amp;Close</translation>
+    </message>
     <message>
         <source>TOT_DESK_FILE_LOAD_SCRIPT</source>
         <translation>Load python script</translation>
@@ -133,6 +145,10 @@ Do you want to reload it ?</translation>
         <source>PYTHON_FILES_FILTER</source>
         <translation>PYTHON Files (*.py)</translation>
     </message>
+    <message>
+        <source>APPCLOSE_DESCRIPTION</source>
+        <translation>Do you want to close or only unload the study</translation>
+    </message>
     <message>
         <source>PRP_DESK_PROPERTIES</source>
         <translation>Edits study properties</translation>
@@ -145,6 +161,10 @@ Do you want to reload it ?</translation>
         <source>STUDY_LOCKED</source>
         <translation>LOCKED</translation>
     </message>
+    <message>
+        <source>APPCLOSE_CANCEL</source>
+        <translation>&amp;Cancel</translation>
+    </message>
     <message>
         <source>OBJ_BROWSER_NAME</source>
         <translation>Object</translation>
@@ -221,6 +241,10 @@ Do you want to reload it ?</translation>
         <source>MEN_DESK_CATALOG_GENERATOR</source>
         <translation>Catalog &amp;generator</translation>
     </message>
+    <message>
+        <source>APPCLOSE_CAPTION</source>
+        <translation>Close active study</translation>
+    </message>
     <message>
         <source>MEN_DESK_MRU</source>
         <translation>Most recently used</translation>
@@ -229,10 +253,6 @@ Do you want to reload it ?</translation>
         <source>TOT_DESK_MRU</source>
         <translation>Most recently used</translation>
     </message>
-    <message>
-        <source>ACTIVATE_MODULE_OP_LOAD</source>
-        <translation>Load...</translation>
-    </message>
 </context>
 <context>
     <name>SalomeApp_StudyPropertiesDlg</name>