]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To correct order of buttons in question message boxes.
authorouv <ouv@opencascade.com>
Thu, 3 Dec 2009 12:02:37 +0000 (12:02 +0000)
committerouv <ouv@opencascade.com>
Thu, 3 Dec 2009 12:02:37 +0000 (12:02 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_NoteBookDlg.cxx
src/SalomeApp/resources/SalomeApp_msg_en.ts

index 4776a739580b27e697710771da76896d00af088d..07ce76db3c586caaaeb0a4ec7072cefd69e3676d 100644 (file)
@@ -1508,8 +1508,7 @@ bool SalomeApp_Application::defineAbsentParameters( const QStringList& theParame
   if( SUIT_MessageBox::question( desktop(),
                                  QObject::tr( "WRN_WARNING" ),
                                  QObject::tr( "ERR_NO_VARIABLE" ).arg( aParametersString ),
-                                 SUIT_MessageBox::Yes | SUIT_MessageBox::No,
-                                 SUIT_MessageBox::No ) == SUIT_MessageBox::Yes )
+                                 QObject::tr( "YES" ), QObject::tr( "NO" ), 0, 1 ) == 0 )
   {
     showNoteBook( aParameters, true );
     return true;
index 3be7525644c52fc71c1090ee22d4757d74c95627..51565bdbd60c283b7a4198480135a714fd5bb804 100644 (file)
@@ -946,8 +946,7 @@ void SalomeApp_NoteBookDlg::onClose()
   bool isTableValid = myTable->isValid();
   if( !isTableValid &&
       SUIT_MessageBox::question( this, tr( "CLOSE_CAPTION" ), tr( "INCORRECT_DATA_ON_CLOSE" ),
-                                 QMessageBox::Ok | QMessageBox::Cancel,
-                                 QMessageBox::Cancel ) == QMessageBox::Cancel )
+                                 tr( "OK" ), tr( "CANCEL" ), 0, 1 ) == 1 )
     return;
 
   // update only variables
index 88c110be7b3f87ac8dc6cf15169337b1c67629fc..87c31c97335e23362df5d231c2d1272e12b87136 100644 (file)
 -->
 <context>
     <name>@default</name>
+    <message>
+        <source>YES</source>
+        <translation>Yes</translation>
+    </message>
+    <message>
+        <source>NO</source>
+        <translation>No</translation>
+    </message>
     <message>
         <source>WRN_FILE_NAME_BAD</source>
         <translation>Please enter correct file name.