Salome HOME
Fix for PAL10496.
authormzn <mzn@opencascade.com>
Fri, 23 Jun 2006 12:50:16 +0000 (12:50 +0000)
committermzn <mzn@opencascade.com>
Fri, 23 Jun 2006 12:50:16 +0000 (12:50 +0000)
15 files changed:
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.h
src/GEOMBase/GEOMBase_Skeleton.cxx
src/GEOMBase/GEOMBase_Skeleton.h
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.h
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.h
src/MeasureGUI/MeasureGUI_Skeleton.cxx
src/MeasureGUI/MeasureGUI_Skeleton.h
src/OperationGUI/OperationGUI_MaterialDlg.cxx
src/RepairGUI/RepairGUI_FreeBoundDlg.cxx
src/RepairGUI/RepairGUI_FreeBoundDlg.h
src/RepairGUI/RepairGUI_FreeFacesDlg.cxx
src/RepairGUI/RepairGUI_FreeFacesDlg.h

index aaa7a3eca4653988a794ba953813106c05f2ae7d..4ab7da48484971dead683b529d6fedfef4284460 100644 (file)
@@ -1425,8 +1425,22 @@ bool EntityGUI_SketcherDlg::createShapes( GEOM::GEOM_Object_ptr theObject,
   return true;
 }
 
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void  EntityGUI_SketcherDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
 
-
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
 
 
 
index 1a1471c2da2831bbe1bcf1497fd819b955d31966..68d9759596e19d656d4352a63574741a016d7a8e 100644 (file)
@@ -73,6 +73,7 @@ protected:
     virtual bool execute( ObjectList& objects );
 
     void closeEvent( QCloseEvent* e );
+    void keyPressEvent( QKeyEvent* e );    
 
 private :
     void Init();
index 203f858347801014de8b5cee207cceb9a6c7d3aa..396ec0daacccef696eb06f7fc0b3a1533e5d428e 100644 (file)
@@ -243,3 +243,20 @@ void GEOMBase_Skeleton::setHelpFileName(const QString& theName)
 {
     myHelpFileName = theName;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void GEOMBase_Skeleton::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index f6c28aadedd0aada0aca10434182f6b272cbb660..7f1f61d6bdceac81586c770472d5e99964b3a291 100644 (file)
@@ -66,6 +66,7 @@ private:
 
 protected:
     void closeEvent(QCloseEvent* e);
+    void keyPressEvent(QKeyEvent* e);
 
     /*! initialize "Name" field with a string "thePrefix_X" (Vertex_3)
      */
index edc2bd62a60faf4e7b1f4d025d26177f2690142e..33c24e2112dcb8c3a047879dff0e0930042a14f8 100644 (file)
@@ -177,3 +177,20 @@ void GEOMToolsGUI_NbIsosDlg::ClickOnHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void GEOMToolsGUI_NbIsosDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 3e7548464236090632160f0cfc20023800456ef5..9df309039b82dfc9987a373698c26b1addb39e8b 100644 (file)
@@ -51,6 +51,9 @@ public:
     void      setU( const int );
     void      setV( const int );
 
+private:
+    void      keyPressEvent(QKeyEvent*);
+
 private slots:
     void ClickOnHelp();
 
index d739bcbc4325b4ea74168b1df456c545f22ef83d..d12ccf7a6428282594c1624e214edff2e4880ab2 100644 (file)
@@ -279,3 +279,20 @@ void GEOMToolsGUI_TransparencyDlg::ValueHasChanged( int newValue )
     ic->UpdateCurrentViewer();
   } // if ( isOCC )
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void GEOMToolsGUI_TransparencyDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 354133ccb9441bf58a210f26679c3b6a49cd5252..44e6bda8366c8167badcb3578b4e9c0b85789006 100644 (file)
@@ -50,6 +50,9 @@ public:
   GEOMToolsGUI_TransparencyDlg( QWidget* parent );    
   ~GEOMToolsGUI_TransparencyDlg();
 
+private:
+  void      keyPressEvent(QKeyEvent*);
+
 private :
   bool      myFirstInit ;   /* Inform for the first init  */
   QSlider*  mySlider; 
index bf2fe3391fe4d18776201e632fcfeea3e274e794..1c7684c144fcbb5a24c19780cf53f14f659f7838 100644 (file)
@@ -365,3 +365,19 @@ GEOM::GEOM_IOperations_ptr MeasureGUI_Skeleton::createOperation()
   return getGeomEngine()->GetIMeasureOperations( getStudyId() );
 }
 
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void MeasureGUI_Skeleton::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 59eafe37152ca96f2ce66258b59ad20a71e175d4..4a0c9d6f127421cc7eb89b9e7188c0b7dfe5342e 100644 (file)
@@ -65,6 +65,7 @@ protected:
 
     void                      enterEvent( QEvent* e );
     void                      closeEvent( QCloseEvent* e );
+    void                      keyPressEvent( QKeyEvent* e );
     void                      redisplayPreview();
     GEOM_Displayer*           getDisplayer();
 
index 5f0c9a25e4266da978109a54a94632679b020eaf..7259bdcbd977d5582eebd55f2112862e76465985 100644 (file)
@@ -80,7 +80,7 @@ OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (GeometryGUI* theGeometryGUI,
   Layout1->addWidget(GroupPoints, 1, 0);
   /***************************************************************/
 
-  setHelpFileName("none.htm"); 
+  setHelpFileName("partition.htm"); 
 
   Init();
 }
index f27424686c14d1ca87485a8841582274e94e2e54..a2fab2359bd99bb267be373ba9aeca3c7ca567e2 100644 (file)
@@ -298,3 +298,20 @@ bool RepairGUI_FreeBoundDlg::execute( ObjectList& objects )
 
   return result;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void RepairGUI_FreeBoundDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 4189527f2a103ad7a04e68eed10e467e1d34c902..0594fe2d6bf148194427d79c7188b5ff9735e321 100644 (file)
@@ -60,6 +60,7 @@ private:
   void                                  Init();
   void                                  enterEvent( QEvent* e );
   void                                  closeEvent( QCloseEvent* e );
+  void                                  keyPressEvent( QKeyEvent* e );
   void                                  activateSelection();
   
   virtual GEOM::GEOM_IOperations_ptr    createOperation();
index fbfce16383b221035f8622972820847012911daa..ea6491ff06e131c0843428c9c86927acba5d2930 100644 (file)
@@ -352,3 +352,19 @@ void RepairGUI_FreeFacesDlg::onSetEditCurrentArgument()
   onSelectionDone();
 }
 
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void RepairGUI_FreeFacesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index cafb9b1d67bce7c96ffb835b09882e8f9f65c26e..582179b4d380937b520fa25232a7d495aeee8116 100644 (file)
@@ -60,6 +60,7 @@ private:
     void Init();
     void enterEvent(QEvent* e);
     void closeEvent(QCloseEvent* e);
+    void keyPressEvent(QKeyEvent* e);
     void activateSelection();
     GEOM_Displayer* getDisplayer();