Salome HOME
Fix for PAL10496.
authormzn <mzn@opencascade.com>
Fri, 23 Jun 2006 12:51:59 +0000 (12:51 +0000)
committermzn <mzn@opencascade.com>
Fri, 23 Jun 2006 12:51:59 +0000 (12:51 +0000)
63 files changed:
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.h
src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx
src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.h
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx
src/SMESHGUI/SMESHGUI_ClippingDlg.h
src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx
src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePatternDlg.h
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.h
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.h
src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx
src/SMESHGUI/SMESHGUI_EditMeshDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
src/SMESHGUI/SMESHGUI_ExtrusionDlg.h
src/SMESHGUI/SMESHGUI_FilterDlg.cxx
src/SMESHGUI/SMESHGUI_FilterDlg.h
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.h
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
src/SMESHGUI/SMESHGUI_GroupDlg.h
src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx
src/SMESHGUI/SMESHGUI_GroupOpDlg.h
src/SMESHGUI/SMESHGUI_MergeNodesDlg.cxx
src/SMESHGUI/SMESHGUI_MergeNodesDlg.h
src/SMESHGUI/SMESHGUI_MeshInfosDlg.cxx
src/SMESHGUI/SMESHGUI_MeshInfosDlg.h
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
src/SMESHGUI/SMESHGUI_MeshPatternDlg.h
src/SMESHGUI/SMESHGUI_MoveNodesDlg.cxx
src/SMESHGUI/SMESHGUI_MoveNodesDlg.h
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
src/SMESHGUI/SMESHGUI_MultiEditDlg.h
src/SMESHGUI/SMESHGUI_NodesDlg.cxx
src/SMESHGUI/SMESHGUI_NodesDlg.h
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.cxx
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.h
src/SMESHGUI/SMESHGUI_RemoveNodesDlg.cxx
src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h
src/SMESHGUI/SMESHGUI_RenumberingDlg.cxx
src/SMESHGUI/SMESHGUI_RenumberingDlg.h
src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx
src/SMESHGUI/SMESHGUI_RevolutionDlg.h
src/SMESHGUI/SMESHGUI_RotationDlg.cxx
src/SMESHGUI/SMESHGUI_RotationDlg.h
src/SMESHGUI/SMESHGUI_SewingDlg.cxx
src/SMESHGUI/SMESHGUI_SewingDlg.h
src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
src/SMESHGUI/SMESHGUI_SingleEditDlg.h
src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx
src/SMESHGUI/SMESHGUI_SmoothingDlg.h
src/SMESHGUI/SMESHGUI_StandardMeshInfosDlg.cxx
src/SMESHGUI/SMESHGUI_StandardMeshInfosDlg.h
src/SMESHGUI/SMESHGUI_SymmetryDlg.cxx
src/SMESHGUI/SMESHGUI_SymmetryDlg.h
src/SMESHGUI/SMESHGUI_TranslationDlg.cxx
src/SMESHGUI/SMESHGUI_TranslationDlg.h
src/SMESHGUI/SMESHGUI_TransparencyDlg.cxx
src/SMESHGUI/SMESHGUI_TransparencyDlg.h

index d7b4cb35b97d77674fa25109fd268bf39391c668..18dc86e26af5f5a29618106e0ba2bba645b8ddc0 100644 (file)
@@ -797,3 +797,20 @@ void SMESHGUI_AddMeshElementDlg::CheckBox (int state)
     displaySimulation();
   }
 }
     displaySimulation();
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_AddMeshElementDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+  
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 7c710214e06583a5af8d83ef1349da778107a947..f092954215dfe002f5a7f391cd594395ddba41a0 100644 (file)
@@ -82,6 +82,7 @@ private:
     void closeEvent (QCloseEvent*);
     void hideEvent (QHideEvent*);                 /* ESC key */
     void enterEvent (QEvent*);                    /* mouse enter the QWidget */
     void closeEvent (QCloseEvent*);
     void hideEvent (QHideEvent*);                 /* ESC key */
     void enterEvent (QEvent*);                    /* mouse enter the QWidget */
+    void keyPressEvent(QKeyEvent*);
     void displaySimulation();
 
     SMESHGUI*                   mySMESHGUI;              /* Current SMESHGUI object */
     void displaySimulation();
 
     SMESHGUI*                   mySMESHGUI;              /* Current SMESHGUI object */
index da47fe19081e47ac2fbc9f86728dc91511288ed2..ca7d886e38ac8d1581517a974f7a68b3df618eaa 100644 (file)
@@ -1099,3 +1099,20 @@ QWidget* SMESHGUI_IdEditItem::createEditor() const
   aLineEdit->setValidator( new SMESHGUI_IdValidator(table()->viewport(), "validator", 1) );
   return aLineEdit;
 }
   aLineEdit->setValidator( new SMESHGUI_IdValidator(table()->viewport(), "validator", 1) );
   return aLineEdit;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_AddQuadraticElementDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index ea63a83ec49b6f1d92c2a64d4dc2fc204bf0469a..5a80c5e0b69bb207484e1332754d46a709bb44fc 100644 (file)
@@ -67,6 +67,7 @@ private:
     void closeEvent (QCloseEvent*);
     void hideEvent (QHideEvent*);                 /* ESC key */
     void enterEvent (QEvent*);                    /* mouse enter the QWidget */
     void closeEvent (QCloseEvent*);
     void hideEvent (QHideEvent*);                 /* ESC key */
     void enterEvent (QEvent*);                    /* mouse enter the QWidget */
+    void keyPressEvent(QKeyEvent*);
     void displaySimulation();
     void UpdateTable( bool theConersValidity = true );
     bool IsValid();
     void displaySimulation();
     void UpdateTable( bool theConersValidity = true );
     bool IsValid();
index e513577b93df12f7a15a9ae50e118461ffd86caf..6ec0c63bba281a0456635805bee1cc2394816e57 100644 (file)
@@ -769,3 +769,20 @@ void SMESHGUI_ClippingDlg::OnPreviewToggle (bool theIsToggled)
   std::for_each(myPlanes.begin(),myPlanes.end(),TSetVisiblity(theIsToggled));
   SMESH::RenderViewWindow(SMESH::GetCurrentVtkView());
 }
   std::for_each(myPlanes.begin(),myPlanes.end(),TSetVisiblity(theIsToggled));
   SMESH::RenderViewWindow(SMESH::GetCurrentVtkView());
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_ClippingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index cbf044f6033e69ed83ad96eaac42d6fabc91c174..2fe68185125e94a661644b5a779175ff78202692 100644 (file)
@@ -85,6 +85,8 @@ public:
     void   setRotation (const double theRot1, const double theRot2);
     void   Sinchronize();
 
     void   setRotation (const double theRot1, const double theRot2);
     void   Sinchronize();
 
+    void   keyPressEvent(QKeyEvent*);
+
     ~SMESHGUI_ClippingDlg();
 
 private:
     ~SMESHGUI_ClippingDlg();
 
 private:
index a5095e6a923509192faf9fff23c4a5ec60701d7f..cabea5343dad03489ef4182795dc23453e602912 100644 (file)
@@ -93,6 +93,8 @@ void SMESHGUI_ConvToQuadOp::startOperation()
   }
   connect( myDlg, SIGNAL( onClicked( int ) ), SLOT( ConnectRadioButtons( int ) ) );
 
   }
   connect( myDlg, SIGNAL( onClicked( int ) ), SLOT( ConnectRadioButtons( int ) ) );
 
+  myHelpFileName = "/files/convert_to_from_quadratic.htm";
+
   SMESHGUI_SelectionOp::startOperation();
 
   myDlg->SetMediumNdsOnGeom( false );
   SMESHGUI_SelectionOp::startOperation();
 
   myDlg->SetMediumNdsOnGeom( false );
index f4ed56a4b9d1dd5110ac9df91c39d4ab7205f4a1..85579d9f125642872bde0da3ecedd4bc5ffcbed8 100755 (executable)
@@ -744,3 +744,20 @@ void SMESHGUI_CreatePatternDlg::onTypeChanged (int theType)
   else\r
     myPicture2d->hide();\r
 }\r
   else\r
     myPicture2d->hide();\r
 }\r
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_CreatePatternDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index b7c1db78f7edc64d406f079d5d1df546c9a9bcce..314d96a0a70729f2b7625ec8c234297894ee0d8c 100755 (executable)
@@ -84,6 +84,7 @@ private:
 
   void                     closeEvent (QCloseEvent* e);
   void                     enterEvent (QEvent*);
 
   void                     closeEvent (QCloseEvent* e);
   void                     enterEvent (QEvent*);
+   void                    keyPressEvent(QKeyEvent*);
 
 private slots:
 
 
 private slots:
 
index 7b0da5d8320d741de92edb224dbaae4684c1c1d9..9d570cde430bcaa4a1000030d52026331520368e 100644 (file)
@@ -324,7 +324,7 @@ SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI
  
   mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ;
 
  
   mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ;
 
-  myHelpFileName = "/files/adding_nodes_and_elements.htm#Adding_polyhedrons?";
+  myHelpFileName = "/files/adding_nodes_and_elements.htm#Adding_polyhedrons";
   
   Init();
 }
   
   Init();
 }
@@ -1098,3 +1098,20 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onListSelectionChanged()
   
   busy = false;
 }
   
   busy = false;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_CreatePolyhedralVolumeDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 001351c3fa5ed46db2d5a3985fb298677057cd6d..49859d92a95ca4411de77f65e8e974a27ecaf191 100644 (file)
@@ -73,6 +73,7 @@ private:
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
+    void keyPressEvent( QKeyEvent* e );
     int  GetConstructorId();
     void displaySimulation();
     
     int  GetConstructorId();
     void displaySimulation();
     
index 9e02ccc4ada0c5cdce4a034a8fed88b7e0f557e9..ecbf3234ee443567fdfe007e62aae72170b18610 100644 (file)
@@ -325,3 +325,20 @@ void SMESHGUI_DeleteGroupDlg::closeEvent (QCloseEvent*)
 {
   onClose();
 }
 {
   onClose();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_DeleteGroupDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index da8b62a9ccd922cc1f475799171606a66466b863..789c888ed438d28f05710645377b4e1e2a56ebaa 100644 (file)
@@ -61,6 +61,7 @@ private:
 
   void                    closeEvent (QCloseEvent*);
   void                    enterEvent (QEvent*);
 
   void                    closeEvent (QCloseEvent*);
   void                    enterEvent (QEvent*);
+  void                    keyPressEvent(QKeyEvent*);
 
 private slots:
 
 
 private slots:
 
index 28401a22a66ee0e76d9a453faed88b6a026d9735..19b29d15ebc42b105ae8d3af26cb3bcea4cdfc18 100644 (file)
@@ -363,3 +363,21 @@ void SMESHGUI_EditMeshDlg::hideEvent (QHideEvent * e)
   if (!isMinimized())
     ClickOnCancel();
 }
   if (!isMinimized())
     ClickOnCancel();
 }
+
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_EditMeshDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index a69883fa624e7876bc476f880f614a8bd267e38e..3c5b918eabf65d8cc757bf9abe34c2b4f2aacd7b 100644 (file)
@@ -62,6 +62,7 @@ class SMESHGUI_EditMeshDlg : public QDialog
   void closeEvent (QCloseEvent*);
   void enterEvent (QEvent*);              /* mouse enter the QWidget */
   void hideEvent  (QHideEvent*);          /* ESC key */
   void closeEvent (QCloseEvent*);
   void enterEvent (QEvent*);              /* mouse enter the QWidget */
   void hideEvent  (QHideEvent*);          /* ESC key */
+  void keyPressEvent(QKeyEvent*);
 
  private:
   SMESHGUI*               mySMESHGUI;     /* Current SMESHGUI object */
 
  private:
   SMESHGUI*               mySMESHGUI;     /* Current SMESHGUI object */
index f8a3903a505625cb3471ed55e8076fa8a6a81c42..1a5d1252eda1c40f61c11e1a3551d5e9cb0cc4ac 100644 (file)
@@ -1196,3 +1196,20 @@ bool SMESHGUI_ExtrusionAlongPathDlg::eventFilter (QObject* object, QEvent* event
   }
   return QDialog::eventFilter(object, event);
 }
   }
   return QDialog::eventFilter(object, event);
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_ExtrusionAlongPathDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 296c0a9258d792c8bf5b50182d609f0c43d3b943..f52f8cab5b4f8c0a7d3ad0d31226db77c7e199ca 100644 (file)
@@ -83,6 +83,7 @@ public:
 private:
   void Init (bool ResetControls = true);
   void enterEvent (QEvent*);                           /* mouse enter the QWidget */
 private:
   void Init (bool ResetControls = true);
   void enterEvent (QEvent*);                           /* mouse enter the QWidget */
+  void keyPressEvent(QKeyEvent*);
   int  GetConstructorId();
   void SetEditCurrentArgument (QToolButton* button);
 
   int  GetConstructorId();
   void SetEditCurrentArgument (QToolButton* button);
 
index 70fa135adbf5c09087ba949195e59d9ab2fe24b0..9ec24518c92c923a98c99fb1fc9b80e79252ba2e 100644 (file)
@@ -790,3 +790,20 @@ int SMESHGUI_ExtrusionDlg::GetConstructorId()
     return GroupConstructors->id(GroupConstructors->selected());
   return -1;
 }
     return GroupConstructors->id(GroupConstructors->selected());
   return -1;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_ExtrusionDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 55b7d2bf78cbd8ac7e1ab6bead9688d06b69e821..841565f4488cd0b23d69f8de8f1b9e071be78edf 100644 (file)
@@ -71,6 +71,7 @@ public:
 private:
   void Init (bool ResetControls = true);
   void enterEvent (QEvent*);                           /* mouse enter the QWidget */
 private:
   void Init (bool ResetControls = true);
   void enterEvent (QEvent*);                           /* mouse enter the QWidget */
+  void keyPressEvent(QKeyEvent*);
   int  GetConstructorId();
   //void closeEvent (QCloseEvent*);
   //void hideEvent (QHideEvent*);                        /* ESC key */
   int  GetConstructorId();
   //void closeEvent (QCloseEvent*);
   //void hideEvent (QHideEvent*);                        /* ESC key */
index 6826b0fc914e27b72a5af95d14e4c874dd935cd3..608e09e0a298d4c2c891b81f8cf8a38f84b2ec44 100755 (executable)
@@ -2585,3 +2585,21 @@ void SMESHGUI_FilterDlg::updateSelection()
     }
   }
 }
     }
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_FilterDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
index 635b372428bafeab1ca39f84aa6cde3ac8ac560c..5e9e33984b83b761de7c81bb7fde7a9fb21bcd1d 100755 (executable)
@@ -263,6 +263,7 @@ private:
 
   void                      closeEvent (QCloseEvent*);
   void                      enterEvent (QEvent*);
 
   void                      closeEvent (QCloseEvent*);
   void                      enterEvent (QEvent*);
+  void                      keyPressEvent(QKeyEvent*);
 
   // dialog creation
   QFrame*                   createButtonFrame (QWidget*);
 
   // dialog creation
   QFrame*                   createButtonFrame (QWidget*);
index a131436a92f11e5bdb75f40e98ce168b60a6ec7b..08447f424e7d075ac601797c2210bea245522ddb 100644 (file)
@@ -1151,3 +1151,20 @@ void SMESHGUI_FilterLibraryDlg::onNeedValidation()
     }
   }
 }
     }
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_FilterLibraryDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 8b464b84ed89586c2b9b3b9f8a7a3fcdedfe4367..fd078d35640220a95b6ec5634d6ba5d779ab149a 100644 (file)
@@ -88,6 +88,7 @@ private:
 
   void                        closeEvent( QCloseEvent* e ) ;
   void                        enterEvent ( QEvent * ) ;            
 
   void                        closeEvent( QCloseEvent* e ) ;
   void                        enterEvent ( QEvent * ) ;            
+  void                        keyPressEvent( QKeyEvent* e );
   
 private slots:
 
   
 private slots:
 
index 872d98a1554175d525e22165144a30e5477238bd..5c473f329130f60745b98633ed4008434385e730 100644 (file)
@@ -1599,3 +1599,20 @@ void SMESHGUI_GroupDlg::hideEvent (QHideEvent*)
   if (!isMinimized())
     onClose();
 }
   if (!isMinimized())
     onClose();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_GroupDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index c3fae7debf2d5504c0085b6e736da3c74c8ace90..303c382235f5b8e0e7ff2bc3679ccd3ee5a8bddc 100644 (file)
@@ -114,6 +114,7 @@ private:
     void closeEvent(QCloseEvent* e);
     void enterEvent (QEvent*);
     void hideEvent (QHideEvent*);                          /* ESC key */
     void closeEvent(QCloseEvent* e);
     void enterEvent (QEvent*);
     void hideEvent (QHideEvent*);                          /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     void setSelectionMode(int theMode);
     void updateButtons();
 
     void setSelectionMode(int theMode);
     void updateButtons();
 
index 8ec058c010a13838a1f4831346a765f395be32ab..52f6d0fc4a98fdbe69a36018b059508a3046733b 100644 (file)
@@ -412,3 +412,20 @@ void SMESHGUI_GroupOpDlg::reset()
   myFocusWg = myEdit1;
   myNameEdit->setFocus();
 }
   myFocusWg = myEdit1;
   myNameEdit->setFocus();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_GroupOpDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 89e4d3ccc84336368186ab80c1558dc2ab8aab09..5b22977ad91863ba0d484d472e36d67cc142d150 100644 (file)
@@ -64,6 +64,7 @@ private:
 
   void                      closeEvent( QCloseEvent* e ) ;
   void                      enterEvent ( QEvent * ) ;            
 
   void                      closeEvent( QCloseEvent* e ) ;
   void                      enterEvent ( QEvent * ) ;            
+  void                      keyPressEvent(QKeyEvent*);
   
 private slots:
 
   
 private slots:
 
index 13e0a4b7170d9f6cb4f2f3962e971b22369dd022..f867a0ce399e01c4e8e37b70c69fb7117a6104ad 100644 (file)
@@ -727,3 +727,20 @@ void SMESHGUI_MergeNodesDlg::hideEvent (QHideEvent*)
   if (!isMinimized())
     ClickOnCancel();
 }
   if (!isMinimized())
     ClickOnCancel();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_MergeNodesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 2d50c6bbe2713181fc2fb4e731fca0653e4748d6..eda961e8c0cc58341743cf5756b24b13281a0b53 100644 (file)
@@ -79,6 +79,7 @@ private:
     void closeEvent( QCloseEvent* e );
     void enterEvent ( QEvent * );                           /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
     void closeEvent( QCloseEvent* e );
     void enterEvent ( QEvent * );                           /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
+    void keyPressEvent( QKeyEvent* e );
     void onEditNodesGroup();
 
     SMESHGUI*                     mySMESHGUI;               /* Current SMESHGUI object */
     void onEditNodesGroup();
 
     SMESHGUI*                     mySMESHGUI;               /* Current SMESHGUI object */
index 3b03a02566100d5e5c962db9a5f521fbb2a6be73..713e016257acafb38953e8409aba45edf022a2d9 100644 (file)
@@ -638,3 +638,20 @@ void SMESHGUI_MeshInfosDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
                           QObject::tr("BUT_OK"));
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_MeshInfosDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 9e44382b34ef960b2e5230b20a22adf1767949de..51bf242c596f8c987a3125a310c700a6f10e6357 100644 (file)
@@ -53,6 +53,7 @@ public:
 
 protected:
     void closeEvent( QCloseEvent* e );
 
 protected:
     void closeEvent( QCloseEvent* e );
+    void keyPressEvent( QKeyEvent* e );
     void windowActivationChange( bool oldActive );
     void DumpMeshInfos();
 
     void windowActivationChange( bool oldActive );
     void DumpMeshInfos();
 
index e9557f934d07f183869cdac5b46173cb9172b37c..ca78bb60ec75bf4d9be9de14295b7a97b3cf94fa 100755 (executable)
@@ -1361,3 +1361,20 @@ int SMESHGUI_MeshPatternDlg::getNode (bool second) const
 {
   return second ? myNode2->value() - 1 : myNode1->value() - 1;
 }
 {
   return second ? myNode2->value() - 1 : myNode1->value() - 1;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_MeshPatternDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 15af7bd6d11a814590c336e8308f9cd824fe989d..080be328c1913543e72a7013064abe219e076deb 100755 (executable)
@@ -114,6 +114,7 @@ private:
   QString                             autoExtension( const QString& theFileName ) const;
   void                                closeEvent( QCloseEvent* e ) ;
   void                                enterEvent ( QEvent * ) ;
   QString                             autoExtension( const QString& theFileName ) const;
   void                                closeEvent( QCloseEvent* e ) ;
   void                                enterEvent ( QEvent * ) ;
+  void                                keyPressEvent(QKeyEvent*);
   bool                                isValid( const bool theMess = true );
   void                                resetSelInput();
   bool                                isRefine() const;
   bool                                isValid( const bool theMess = true );
   void                                resetSelInput();
   bool                                isRefine() const;
index 9c396ade8f1e586f7028f11190e9d18efd25b012..d410958224a5e9d2e987a518d263f0814f5eff8e 100644 (file)
@@ -586,3 +586,20 @@ void SMESHGUI_MoveNodesDlg::redisplayPreview()
       aViewWindow->Repaint();
     }
 }
       aViewWindow->Repaint();
     }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_MoveNodesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 5544061d88d850c98cc550f72909734367f42e9a..67430a579ed480ca03365d9e6b3de0292b7933a6 100644 (file)
@@ -79,6 +79,7 @@ private:
   void                          closeEvent( QCloseEvent* e ) ;
   void                          enterEvent ( QEvent * ) ;
   void                          hideEvent ( QHideEvent * );
   void                          closeEvent( QCloseEvent* e ) ;
   void                          enterEvent ( QEvent * ) ;
   void                          hideEvent ( QHideEvent * );
+  void                          keyPressEvent( QKeyEvent* );
   void                          erasePreview();
   QFrame*                       createButtonFrame( QWidget* );
   QFrame*                       createMainFrame  ( QWidget* );
   void                          erasePreview();
   QFrame*                       createButtonFrame( QWidget* );
   QFrame*                       createMainFrame  ( QWidget* );
index 045ae5a1751eb774a8c51f47408bb814e094a552..cb631f0be18ba76edff732c1a7032a140460cab8 100755 (executable)
@@ -1046,6 +1046,23 @@ int SMESHGUI_MultiEditDlg::entityType()
   return myEntityType;
 }
 
   return myEntityType;
 }
 
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_MultiEditDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
 /*!
  *  Class       : SMESHGUI_ChangeOrientationDlg
  *  Description : Modification of orientation of faces
 /*!
  *  Class       : SMESHGUI_ChangeOrientationDlg
  *  Description : Modification of orientation of faces
index 8cd85ccc6f3d79b9bc2ff8649090bd7d92eec96c..8bcf3928adca0a413c8f703466f45352b3c838ad 100755 (executable)
@@ -108,6 +108,7 @@ protected:
   void                      closeEvent( QCloseEvent* e ) ;
   void                      enterEvent ( QEvent * ) ;
   void                      hideEvent ( QHideEvent * );                        /* ESC key */
   void                      closeEvent( QCloseEvent* e ) ;
   void                      enterEvent ( QEvent * ) ;
   void                      hideEvent ( QHideEvent * );                        /* ESC key */
+  void                      keyPressEvent( QKeyEvent* );
   QFrame*                   createButtonFrame( QWidget* );
   QFrame*                   createMainFrame  ( QWidget*, const bool );
   bool                      isValid( const bool ) const;
   QFrame*                   createButtonFrame( QWidget* );
   QFrame*                   createMainFrame  ( QWidget*, const bool );
   bool                      isValid( const bool ) const;
index 83e8c5723729fe91d6c3b18b00e87cdf1b8f88b7..5b71bfb2ee8a7e90fdff5b840e7437bc08b5df3d 100644 (file)
@@ -599,3 +599,20 @@ void SMESHGUI_NodesDlg::ActivateThisDialog()
 
   SelectionIntoArgument();
 }
 
   SelectionIntoArgument();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_NodesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 890f0c5d1d4eddbe63101d39ec06c0f88054fb95..5375da62e766c8d4fdea197c24f4507e8ea1e79b 100644 (file)
@@ -85,6 +85,7 @@ private:
     void enterEvent(QEvent* e);
     void closeEvent(QCloseEvent*);
     void hideEvent (QHideEvent *);                 /* ESC key */
     void enterEvent(QEvent* e);
     void closeEvent(QCloseEvent*);
     void hideEvent (QHideEvent *);                 /* ESC key */
+    void keyPressEvent(QKeyEvent*);
 
     QButtonGroup* GroupConstructors;
     QRadioButton* Constructor1;
 
     QButtonGroup* GroupConstructors;
     QRadioButton* Constructor1;
index 400d47add21b359b43a9113e3ede663283a520cc..0df620a02f22ac02ec62b4c1b9db83a2c5df899c 100644 (file)
@@ -513,3 +513,20 @@ void SMESHGUI_RemoveElementsDlg::hideEvent (QHideEvent * e)
   if (!isMinimized())
     ClickOnCancel();
 }
   if (!isMinimized())
     ClickOnCancel();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_RemoveElementsDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 4b3590818caeedf40b5285e3dff5237dc4eacc03..e6a48a7beaed47ccd06c348cc109388f19763cbf 100644 (file)
@@ -75,6 +75,7 @@ private:
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
+    void keyPressEvent( QKeyEvent* e );
 
     LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
 
     LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
index db0d13e6c367128c349275e8d20cac58f4377cc5..8625125ddfc5c7ee05c84cd323aba4eba75bb586 100644 (file)
@@ -512,3 +512,20 @@ void SMESHGUI_RemoveNodesDlg::hideEvent (QHideEvent * e)
   if (!isMinimized())
     ClickOnCancel();
 }
   if (!isMinimized())
     ClickOnCancel();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_RemoveNodesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index ec18a062f8f032a408f9bf0aa4a6e7b66cf61bfb..7f8c243e0e2fe7d6f5cfe3cbaecf78f3e092bfe4 100644 (file)
@@ -78,6 +78,7 @@ private:
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                         /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                         /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
+    void keyPressEvent( QKeyEvent* e );
 
     LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
 
     LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
index 4e4f75a830978b9ebe534cd98de7ef7c5feb69eb..9992b49fc63dced7c01574fabc20bf6babf8db56 100644 (file)
@@ -444,3 +444,20 @@ void SMESHGUI_RenumberingDlg::hideEvent (QHideEvent * e)
   if (!isMinimized())
     ClickOnCancel();
 }
   if (!isMinimized())
     ClickOnCancel();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_RenumberingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 620606a32a833f8e697f49192c2db7dcb531f7d2..af4f836c26cd4879ba0206ce633990da32fac5e7 100644 (file)
@@ -72,6 +72,7 @@ private:
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                         /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * ) ;                         /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
+    void keyPressEvent( QKeyEvent* e );
     
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
index 46e23659ecb58b7e8979f91623ce19c15ab0110a..581724f6ffbb8c36877d1680683653e629952603 100644 (file)
@@ -933,3 +933,20 @@ void SMESHGUI_RevolutionDlg::onVectorChanged()
     buttonApply->setEnabled(false);
   }
 }
     buttonApply->setEnabled(false);
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_RevolutionDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 9e33d7c5316d661febbf04b74c42e79fb76a9c18..49b391e3cb47f6b3780efc228209ca36aa887bd6 100644 (file)
@@ -78,6 +78,7 @@ private:
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                          /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                       /* ESC key */
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                          /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                       /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     int  GetConstructorId();
     bool IsAxisOk();
 
     int  GetConstructorId();
     bool IsAxisOk();
 
index 34efe7fc692dd2cf49623f6adefc7726ad90e37f..d557aab26d0d85b2b36b4608ac0eed95c092c68e 100644 (file)
@@ -840,3 +840,20 @@ void SMESHGUI_RotationDlg::onVectorChanged()
     buttonApply->setEnabled(false);
   }
 }
     buttonApply->setEnabled(false);
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_RotationDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index dcded2e239315df2adb93f1f472142ff7bb66c96..921202eadac293ee1bd0e2503653aa6e9a25b225 100644 (file)
@@ -77,6 +77,7 @@ private:
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                          /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                       /* ESC key */
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                          /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                       /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     bool IsAxisOk();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     bool IsAxisOk();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
index 67f2e0c8da6ac989c340fe746b3ad51162edd95c..957a5c44997b58ddd6e311f77c0706223e3823a8 100644 (file)
@@ -950,3 +950,20 @@ bool SMESHGUI_SewingDlg::IsValid()
 {
   return (myOk1 && myOk2 && myOk3 && myOk4 && myOk5 && myOk6);
 }
 {
   return (myOk1 && myOk2 && myOk3 && myOk4 && myOk5 && myOk6);
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_SewingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 31bac24fd5f3e47db379d81703a806bd5e6f92f0..f3ad4f8084525fb9c2fa21a71f379a6bb7eb57a2 100644 (file)
@@ -72,6 +72,7 @@ private:
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * );                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
     void closeEvent( QCloseEvent* e ) ;
     void enterEvent ( QEvent * );                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     int  GetConstructorId();
     bool IsValid();
     
     int  GetConstructorId();
     bool IsValid();
     
index ab28af48318da7eada70d8064ae722b31dfae88a..2e83ac35c94a0012c8402be3be93238d6795cbb0 100755 (executable)
@@ -535,6 +535,23 @@ bool SMESHGUI_SingleEditDlg::onApply()
   return aResult;
 }
 
   return aResult;
 }
 
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_SingleEditDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
 /*!
  *  Class       : SMESHGUI_TrianglesInversionDlg
  *  Description : Inversion of the diagonal of a pseudo-quadrangle formed by
 /*!
  *  Class       : SMESHGUI_TrianglesInversionDlg
  *  Description : Inversion of the diagonal of a pseudo-quadrangle formed by
index 6f17610062013405665f061eb55a2e730d5ebf5b..853b138cef636ef82513a7ae50373d6ebdf263c2 100755 (executable)
@@ -75,6 +75,7 @@ protected:
   void                    closeEvent (QCloseEvent*);
   void                    enterEvent (QEvent*);
   void                    hideEvent (QHideEvent*);                        /* ESC key */
   void                    closeEvent (QCloseEvent*);
   void                    enterEvent (QEvent*);
   void                    hideEvent (QHideEvent*);                        /* ESC key */
+  void                    keyPressEvent(QKeyEvent*);
   QFrame*                 createButtonFrame (QWidget*);
   QFrame*                 createMainFrame (QWidget*);
   bool                    isValid (const bool) const;
   QFrame*                 createButtonFrame (QWidget*);
   QFrame*                 createMainFrame (QWidget*);
   bool                    isValid (const bool) const;
index 541f634757d5b56602232cb30d0bde42e532f6a3..7ad48a6b02c6ddb800f3485438edc7f219754934 100644 (file)
@@ -773,3 +773,20 @@ void SMESHGUI_SmoothingDlg::onSelectMesh (bool toSelectMesh)
 
   SelectionIntoArgument();
 }
 
   SelectionIntoArgument();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_SmoothingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 977dac63fb8b5340fc9e65ef59a6ac6420b58553..4bf341efe411a4bfc3d612f8513370d9e3b34369 100644 (file)
@@ -79,6 +79,7 @@ private:
     void closeEvent(QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
     void closeEvent(QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
+    void keyPressEvent(QKeyEvent*);
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
index d05a1d472ca4f6bc94e5bdc5e5bd8d01f54e58e1..89155d209d9959b7b1eeb4c45954e4f5280cec86 100644 (file)
@@ -467,3 +467,20 @@ void SMESHGUI_StandardMeshInfosDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
                           QObject::tr("BUT_OK"));
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_StandardMeshInfosDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 74c7bb8e9992510e41888180243ca0a3f04298cd..204fe01332ed4936e581ff4c850e6069b31968b8 100644 (file)
@@ -54,6 +54,7 @@ public:
 
 protected:
     void closeEvent( QCloseEvent* e );
 
 protected:
     void closeEvent( QCloseEvent* e );
+    void keyPressEvent( QKeyEvent* e );
     void windowActivationChange( bool oldActive );
     void DumpMeshInfos();
 
     void windowActivationChange( bool oldActive );
     void DumpMeshInfos();
 
index f0689d5d8a7bef696c71532292979f3e6b1efd8e..d6653b18bd72ccdd1894f974faf2dcf1a6320f11 100644 (file)
@@ -916,3 +916,20 @@ void SMESHGUI_SymmetryDlg::onVectorChanged()
     buttonApply->setEnabled(false);
   }
 }
     buttonApply->setEnabled(false);
   }
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_SymmetryDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 49cd8cda861fcea30d7246c1342e49d4591bd542..07a54ffd200335adc85503a3512296d71e76b336 100644 (file)
@@ -76,6 +76,7 @@ private:
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     int GetConstructorId();
     bool IsMirrorOk();
 
     int GetConstructorId();
     bool IsMirrorOk();
 
index 48e6fafb553a2bc71e453dfc90649fb86020b9d5..fdda6415c025c0fa8837325cd8cd3559bd681ed9 100644 (file)
@@ -849,3 +849,20 @@ int SMESHGUI_TranslationDlg::GetConstructorId()
     return GroupConstructors->id(GroupConstructors->selected());
   return -1;
 }
     return GroupConstructors->id(GroupConstructors->selected());
   return -1;
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_TranslationDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index e1c7c971ac7d79050b9b1fb1c7a18f1de1cbddfe..66330d4b78f1a99f200db8d58e7ec01176dd216e 100644 (file)
@@ -75,6 +75,7 @@ private:
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
     void closeEvent (QCloseEvent*);
     void enterEvent (QEvent*);                             /* mouse enter the QWidget */
     void hideEvent (QHideEvent*);                          /* ESC key */
+    void keyPressEvent(QKeyEvent*);
     int GetConstructorId();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
     int GetConstructorId();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
index 6e187231173d3ad10b277a1a993db674c233c028..6dc08f4d2b4b15133a14c49e752f45022f18531a 100644 (file)
@@ -276,3 +276,20 @@ void SMESHGUI_TransparencyDlg::onSelectionChanged()
   }
   ValueHasChanged();
 }
   }
   ValueHasChanged();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_TransparencyDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 54fa8e16f103cf868ec79cb243d06c2ac932aaac..e7e8b5f5a96eefd9a8ea6cecfd4154d1910e81b5 100644 (file)
@@ -56,6 +56,9 @@ public:
 
     ~SMESHGUI_TransparencyDlg();
 
 
     ~SMESHGUI_TransparencyDlg();
 
+private:
+    void keyPressEvent(QKeyEvent*);
+
 private :
 
   SMESHGUI*               mySMESHGUI;
 private :
 
   SMESHGUI*               mySMESHGUI;