]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Bug fixes. T3_0_0_a3
authorasv <asv@opencascade.com>
Fri, 10 Jun 2005 12:43:15 +0000 (12:43 +0000)
committerasv <asv@opencascade.com>
Fri, 10 Jun 2005 12:43:15 +0000 (12:43 +0000)
src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
src/BlocksGUI/BlocksGUI_ExplodeDlg.h
src/GEOMGUI/GEOM_msg_en.po
src/GEOMGUI/GeometryGUI.cxx
src/MeasureGUI/MeasureGUI_Skeleton.cxx
src/RepairGUI/RepairGUI_FreeFacesDlg.cxx
src/RepairGUI/RepairGUI_GlueDlg.cxx

index ac63e413521d8ab4cc92673b37aa4b2948460fc0..9ebdd93eccaca6923b2441c292d5ab7c6e9c84fa 100644 (file)
@@ -494,3 +494,12 @@ GEOM::GEOM_Object_ptr BlocksGUI_ExplodeDlg::getFather (GEOM::GEOM_Object_ptr)
 {
   return myObject;
 }
+
+//================================================================
+// Function : getNewObjectName
+// Purpose  : Redefine this method to return proper name for a new object
+//================================================================
+const char* BlocksGUI_ExplodeDlg::getNewObjectName() const
+{
+  return "";
+}
index 53b55e8c3f39e7e91d0c1f51e9da92874f4a021a..7c83e73bf2ff26b40f0c4db6f73bcc2439055257 100644 (file)
@@ -54,6 +54,8 @@ protected:
   virtual bool                       execute (ObjectList& objects);
   virtual GEOM::GEOM_Object_ptr      getFather(GEOM::GEOM_Object_ptr theObj);
 
+  virtual const char*                getNewObjectName() const; 
+
 private:
   void Init();
   void enterEvent (QEvent* e);
index 19646195fa911ab8e8e44f5f4f7a4d8d84f3d4cc..430772f209b4b7d5268810907b448b32ea602101 100644 (file)
@@ -2478,13 +2478,13 @@ msgid "STB_MUL_TRANSFORM"
 msgstr "Multi-transformation"
 
 msgid "TOP_EXPLODE_BLOCKS"
-msgstr "Expload on Blocks"
+msgstr "Explode on Blocks"
 
 msgid "MEN_EXPLODE_BLOCKS"
-msgstr "Expload on Blocks"
+msgstr "Explode on Blocks"
 
 msgid "STB_EXPLODE_BLOCKS"
-msgstr "Expload on Blocks"
+msgstr "Explode on Blocks"
 
 msgid "TOP_PROPAGATE"
 msgstr "Propagate"
@@ -2592,13 +2592,13 @@ msgid "MEN_MEASURES"
 msgstr "Measures"
 
 msgid "TOP_POINT_COORDS"
-msgstr "Point corrdinates"
+msgstr "Point coordinates"
 
 msgid "MEN_POINT_COORDS"
-msgstr "Point corrdinates"
+msgstr "Point coordinates"
 
 msgid "STB_POINT_COORDS"
-msgstr "Point corrdinates"
+msgstr "Point coordinates"
 
 msgid "TOP_BASIC_PROPS"
 msgstr "Basic properties"
index 811f5b1ba53c1404ab0302952191c7f1a7e648e7..ec47ce98d01d53531c1ba62ffee752e5cc1f24ef 100644 (file)
@@ -682,7 +682,7 @@ void GeometryGUI::initialize( CAM_Application* app )
   createGeomAction( 504, "ARCHIMEDE" );
   createGeomAction( 505, "FILLET" );
   createGeomAction( 506, "CHAMFER" );
-  createGeomAction( 507, "CLIPPING" );
+  //createGeomAction( 507, "CLIPPING" );
 
   createGeomAction( 9998, "MUL_TRANSFORM" );
   createGeomAction( 9995, "EXPLODE_BLOCKS" );
@@ -822,7 +822,7 @@ void GeometryGUI::initialize( CAM_Application* app )
   createMenu( separator(), operId, -1 );
   createMenu( 505, transId, -1 );  
   createMenu( 506, transId, -1 );  
-  createMenu( 507, transId, -1 );  
+  //createMenu( 507, transId, -1 );  
 
   int blockId = createMenu( tr( "MEN_BLOCKS" ), operId, -1 );
   createMenu( 9998, blockId, -1 );  
index 402285c3d8a51bfd823620a22da2d8c88224419a..85eac7a0ad4d33525408e33d8da6a444c1c70b44 100644 (file)
@@ -35,6 +35,7 @@
 #include "SalomeApp_SelectionMgr.h"
 #include "SalomeApp_Tools.h"
 #include "SUIT_Session.h"
+#include "SUIT_OverrideCursor.h"
 
 #include <qlineedit.h>
 #include <qlayout.h>
@@ -287,7 +288,7 @@ void MeasureGUI_Skeleton::redisplayPreview()
 
   try
   {
-    QApplication::setOverrideCursor( Qt::waitCursor );
+    SUIT_OverrideCursor();
 
     getDisplayer()->SetColor( Quantity_NOC_VIOLET );
     getDisplayer()->SetToActivate( false );
index 35831e001cefc1046c926ba05a755ad90d55da81..fef1a3ac00df19e672de00a968077052cab70cf9 100644 (file)
@@ -32,7 +32,9 @@ using namespace std;
 #include "SalomeApp_Application.h"
 #include "SalomeApp_SelectionMgr.h"
 #include "SalomeApp_Tools.h"
+
 #include "SUIT_Session.h"
+#include "SUIT_OverrideCursor.h"
 
 #include "SALOME_ListIteratorOfListIO.hxx"
 
@@ -278,11 +280,12 @@ bool RepairGUI_FreeFacesDlg::execute( ObjectList& objects )
       erasePreview( true );
       return false;
     }
+    
+    SUIT_OverrideCursor();
 
     TopExp::MapShapes( aSelShape, anIndices);
     SALOME_Prs* aPrs = 0;
-    QApplication::setOverrideCursor( Qt::waitCursor );
-
+    
     for ( int i = 0, n = aFaceLst->length(); i < n; i++ )
     {
       aFace = anIndices.FindKey( aFaceLst[i] );
index 52572ac82170e56976e1203357b893446d34e0b5..218697875369a2f35dda5e548b996bb07a4bd3d0 100644 (file)
@@ -36,8 +36,10 @@ using namespace std;
 #include "SalomeApp_SelectionMgr.h"
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Tools.h"
+
 #include "SUIT_Session.h"
 #include "SUIT_MessageBox.h"
+#include "SUIT_OverrideCursor.h"
 
 #include "SALOME_ListIteratorOfListIO.hxx"
 
@@ -375,14 +377,15 @@ bool RepairGUI_GlueDlg::onAcceptLocal( const bool publish, const bool useTransac
 
   try {
     if ( ( !publish && !useTransaction ) || openCommand() ) {
-      QApplication::setOverrideCursor( Qt::waitCursor );
+
+      SUIT_OverrideCursor wc;
+
       SUIT_Session::session()->activeApplication()->putInfo( "" );
       ObjectList objects;
       // JFA 28.12.2004 if ( !execute( objects ) || !getOperation()->IsDone() ) {
       if ( !execute( objects ) ) { // JFA 28.12.2004 // To enable warnings
-       while( QApplication::overrideCursor() ) 
-         QApplication::restoreOverrideCursor(); 
-       abortCommand();
+       wc.suspend();
+        abortCommand();
        showError();
       }
       else {
@@ -423,9 +426,8 @@ bool RepairGUI_GlueDlg::onAcceptLocal( const bool publish, const bool useTransac
         // JFA 28.12.2004 BEGIN // To enable warnings
         if ( !getOperation()->_is_nil() ) {
           if ( !getOperation()->IsDone() ) {
-           while( QApplication::overrideCursor() ) 
-             QApplication::restoreOverrideCursor();
-            QString msgw = QObject::tr( getOperation()->GetErrorCode() );
+            wc.suspend();
+           QString msgw = QObject::tr( getOperation()->GetErrorCode() );
             SUIT_MessageBox::warn1((QWidget*)(SUIT_Session::session()->activeApplication()->desktop()),
                                   QObject::tr( "WRN_WARNING" ), 
                                   msgw,