]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for PAL10496.
authormzn <mzn@opencascade.com>
Fri, 23 Jun 2006 13:18:27 +0000 (13:18 +0000)
committermzn <mzn@opencascade.com>
Fri, 23 Jun 2006 13:18:27 +0000 (13:18 +0000)
48 files changed:
src/GUITOOLS/VisuGUI_TableDlg.cxx
src/GUITOOLS/VisuGUI_TableDlg.h
src/VISUGUI/VisuGUI_BuildProgressDlg.cxx
src/VISUGUI/VisuGUI_BuildProgressDlg.h
src/VISUGUI/VisuGUI_ClippingDlg.cxx
src/VISUGUI/VisuGUI_ClippingDlg.h
src/VISUGUI/VisuGUI_CursorDlg.cxx
src/VISUGUI/VisuGUI_CursorDlg.h
src/VISUGUI/VisuGUI_CutLinesDlg.cxx
src/VISUGUI/VisuGUI_CutLinesDlg.h
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx
src/VISUGUI/VisuGUI_CutPlanesDlg.h
src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx
src/VISUGUI/VisuGUI_DeformedShapeDlg.h
src/VISUGUI/VisuGUI_EditContainerDlg.cxx
src/VISUGUI/VisuGUI_EditContainerDlg.h
src/VISUGUI/VisuGUI_GaussPointsDlg.cxx
src/VISUGUI/VisuGUI_GaussPointsDlg.h
src/VISUGUI/VisuGUI_IsoSurfacesDlg.cxx
src/VISUGUI/VisuGUI_IsoSurfacesDlg.h
src/VISUGUI/VisuGUI_NameDlg.cxx
src/VISUGUI/VisuGUI_NameDlg.h
src/VISUGUI/VisuGUI_OffsetDlg.cxx
src/VISUGUI/VisuGUI_OffsetDlg.h
src/VISUGUI/VisuGUI_Plot3DDlg.cxx
src/VISUGUI/VisuGUI_Plot3DDlg.h
src/VISUGUI/VisuGUI_ScalarBarDlg.cxx
src/VISUGUI/VisuGUI_ScalarBarDlg.h
src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.cxx
src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.h
src/VISUGUI/VisuGUI_Selection.cxx
src/VISUGUI/VisuGUI_Selection.h
src/VISUGUI/VisuGUI_SetupPlot2dDlg.cxx
src/VISUGUI/VisuGUI_SetupPlot2dDlg.h
src/VISUGUI/VisuGUI_StreamLinesDlg.cxx
src/VISUGUI/VisuGUI_StreamLinesDlg.h
src/VISUGUI/VisuGUI_TimeAnimation.cxx
src/VISUGUI/VisuGUI_TimeAnimation.h
src/VISUGUI/VisuGUI_TransparencyDlg.cxx
src/VISUGUI/VisuGUI_TransparencyDlg.h
src/VISUGUI/VisuGUI_VectorsDlg.cxx
src/VISUGUI/VisuGUI_VectorsDlg.h
src/VVTK/VVTK_PickingDlg.cxx
src/VVTK/VVTK_PickingDlg.h
src/VVTK/VVTK_RecorderDlg.cxx
src/VVTK/VVTK_RecorderDlg.h
src/VVTK/VVTK_SegmentationCursorDlg.cxx
src/VVTK/VVTK_SegmentationCursorDlg.h

index 6987d52e7e0aa2d43e742181e46b97c200901131..e5cc2c8560623c09f11449993de3c0d58ae4ed8c 100644 (file)
@@ -449,6 +449,22 @@ void VisuGUI_TableDlg::initDlg()
   }
 }
 
+/*!
+  Provides help on F1 button click
+*/
+void VisuGUI_TableDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
 /*!
   Constructor
 */
index 5549fb85eda2d3b90290d21adb29629d87ce4bd2..76eaa10545eb1343db91ba951f4941b52b5d7dbd 100644 (file)
@@ -49,6 +49,9 @@ public:
                    bool showColumnTitles = true );
   ~VisuGUI_TableDlg();
 
+private:
+  void keyPressEvent( QKeyEvent* e );
+
 public slots:
   void onOK();
   void onHelp(); 
index 88db6399fc25fbe9185c27387dcf0026c3e8e856..c1c9988dc2c723294496ea89da6839a70387c35c 100644 (file)
@@ -422,3 +422,16 @@ void VisuGUI_BuildProgressDlg::setFileName( const QString& theFileName )
       myFileNameLineEdit->setText( myFileName.section( '/', -1 ) );
     }
 }
+
+void VisuGUI_BuildProgressDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 0d56a0dc5e81f3d046eb7e80e1b6c20f5706a4d9..8284c52df99f15c9f709c2bc9d5f075b566ac573 100644 (file)
@@ -56,6 +56,9 @@ public:
   QString          fileName() const { return myFileName; }
   void             setFileName( const QString& theFileName );
 
+private:
+  void             keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void             done( int );
 
index f9889dd02f5700546e6c6e7c9232abcb567cab47..54a1264b01861306881a6574625b23e32b6d10e6 100644 (file)
@@ -1125,3 +1125,20 @@ void VisuGUI_ClippingDlg::OnPreviewToggle (bool theIsToggled)
   if (SVTK_ViewWindow* vw = VISU::GetActiveViewWindow<SVTK_ViewWindow>(myVisuGUI))
     VISU::RenderViewWindow(vw);
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void VisuGUI_ClippingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index c649dd9328083d6e91c31faf3c477732b0853de3..c076f34d785f956bf077ff096c555907bb70c859 100644 (file)
@@ -133,6 +133,9 @@ public:
 
     ~VisuGUI_ClippingDlg();
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 private:
 
     LightApp_SelectionMgr* mySelectionMgr;
index a7c8fb1d162fd76c160a69a089127a16038681a3..d309c740783677c65914fc3791164d2d7283d999 100644 (file)
@@ -141,3 +141,20 @@ void VisuGUI_CursorDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+/*!
+  function : keyPressEvent()
+  purpose  :
+*/
+void VisuGUI_CursorDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 82a910d867dabe195b562f5c867d3fa4169f5d14..cebb7b6ed518ef078fbd4e1bd1a6a336ded8a11c 100644 (file)
@@ -52,6 +52,9 @@ public:
     QPushButton* buttonCancel;
     QPushButton* buttonHelp;
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 private slots:
     void onHelp();
 
index 0a5172adb429e699de72ddadf42b35fe9dab4f39..d189683ffedef1ed5f16db779633026331f91bb8 100644 (file)
@@ -938,3 +938,16 @@ void VisuGUI_CutLinesDlg::onHelp()
 //jfa tmp:  if (theWnd != myStudyWnd)
 //jfa tmp:    reject();
 //jfa tmp:}
+
+void VisuGUI_CutLinesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 596798bd7ea83ffd45c9a51f1b5d9db0d613464e..8b0e1da4b3cab9fac9aa897d4984c24223de7606 100644 (file)
@@ -50,6 +50,9 @@ public:
     bool isGenerateTable() { return myCreateTable->isChecked(); }
     bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void accept();
   void reject();
index 78bfc6ac0543ff3fbde19ab324a8229cd358d838..2666f0cf775a7ca455ef6532a9d3cd3feec73072 100644 (file)
@@ -587,3 +587,16 @@ QWidget* VisuGUI_NumEditItem::createEditor() const
   editline->setValidator(dvalidator);
   return editline;
 }
+
+void VisuGUI_CutPlanesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index e1726ecce9be3d07ff47585385d8a18e5ae93a13..b7f9e4cf129b1b668c801de2437bc84220ce418a 100644 (file)
@@ -111,6 +111,9 @@ public:
     void initFromPrsObject (VISU::CutPlanes_i* thePrs);
     int  storeToPrsObject  (VISU::CutPlanes_i* thePrs);
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+  
 protected slots:
     void accept();
     void reject();
index 0ab09694e83c021902388b2bf28698f85e67d743..2a092922b7575c931ebbb7794d2d96822d81b1a9 100644 (file)
@@ -175,3 +175,16 @@ void VisuGUI_DeformedShapeDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_DeformedShapeDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index a5e870b1866b713136228da6cae899a2e8bffefc..32c10f4cc79ccc77ad7c30439f09dda8b4f8588d 100644 (file)
@@ -64,6 +64,9 @@ public:
     void initFromPrsObject(VISU::DeformedShape_i* thePrs);
     int storeToPrsObject(VISU::DeformedShape_i* thePrs);
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void accept();
   void reject();
index b79e65d9f103e4a0c9061a482afd953f4951f2ad..52defc0a3ecae920b663f89d03d173ade6223cfe 100644 (file)
@@ -462,3 +462,16 @@ void VisuGUI_EditContainerDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_EditContainerDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index ced26561e936b87bfcc5cd398fb0b089c43b47a2..0ff26c94db55c7ceae04329e78f62957af11f246 100644 (file)
@@ -55,6 +55,9 @@ class VisuGUI_EditContainerDlg: public QDialog
 
   void initFromPrsObject (VISU::Container_i* theContainer);
   void storeToPrsObject  (VISU::Container_i* theContainer);
+  
+ private:
+  void keyPressEvent( QKeyEvent* e );
 
  private slots:
   void onLeftClicked();
index a5f7df0c48d5b080ad91a31b87f8a53520aab783..2c0e864d6e7ce0907df5447c54235438fa29906c 100644 (file)
@@ -750,3 +750,16 @@ void VisuGUI_GaussPointsDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_GaussPointsDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 9617d64041866bef8cfd8e3091d38c97c0223c14..1ce86e4303529931c281471990d6fd3d34669db8 100644 (file)
@@ -139,6 +139,9 @@ public:
   //! Update Gauss Points presentation using parameters from the dialog.
   int     storeToPrsObject(VISU::GaussPoints_i* thePrs);
 
+private:
+  void keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void    onToggleDefShape( bool );
   void    onHelp();
index 4e370fb9fa68772e807cb5a959f039ddd3f3aa63..909c730df5e6dd48e38b57dcad960b606954f6aa 100644 (file)
@@ -245,3 +245,16 @@ void VisuGUI_IsoSurfacesDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_IsoSurfacesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 5e3b1c51ad91e6d1a436282cada39f30ea06a6e1..385fa64668810116542701e2ace9cf0d09f97229 100644 (file)
@@ -83,6 +83,9 @@ class VisuGUI_IsoSurfacesDlg : public QDialog
   int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
     {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
 
+ private:
+  void keyPressEvent( QKeyEvent* e );
+
  protected slots:
   void accept();
   void reject();
index b4a479ffa402959a8ea02608364effa828ff9338..f0bf79f7b37f1582e21e282d687f66c968c25a73 100644 (file)
@@ -172,3 +172,16 @@ QString VisuGUI_NameDlg::getName( QWidget* parent, const QString& oldName )
   delete dlg;
   return n;
 }
+
+void VisuGUI_NameDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index c95057992151c42c8f5592e33db2dd7a3033635f..5198a631e52e0e5486b811a4eb875a9533e6581e 100644 (file)
@@ -45,6 +45,9 @@ public:
   QString         name();
     
   static QString  getName( QWidget* parent = 0, const QString& oldName = QString::null );
+
+private:
+  void keyPressEvent( QKeyEvent* e );
     
 protected slots:
   void accept();
index 759c9948cda2971b8044c6e16174dd6883dc46e3..7e535ac60f28d36e7d096f599d0c904a7b2cb481 100644 (file)
@@ -251,3 +251,16 @@ void VisuGUI_OffsetDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_OffsetDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 80a3f114060a75459c6c03d30f1e89b640e22f20..a1d67a511616a9d8a01aa9f15141434c4fabdc3a 100644 (file)
@@ -65,6 +65,9 @@ class VisuGUI_OffsetDlg: public QDialog
   void getOffset (vtkFloatingPointType* theOffset) const;
   bool isToSave() const;
 
+ private:
+  void keyPressEvent( QKeyEvent* e );
+
  public slots:
   void onReset();
 
index 2ad6cf220b91cf36bb9cc3b8897ab971af63434b..79564c950d1578a485fa1f1736f30694f09978ca 100644 (file)
@@ -646,3 +646,20 @@ void VisuGUI_Plot3DDlg::setPlane(int theOrientation, double theXRotation, double
 {
   myIsoPane->setPlane(theOrientation, theXRotation, theYRotation, thePlanePos);
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void VisuGUI_Plot3DDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index e6e227519944595a134a090497e677fee17e9334..230df0004e3b1bc1bf8887ed651441ee83e5e0f3 100644 (file)
@@ -111,6 +111,9 @@ class VisuGUI_Plot3DDlg : public QDialog
 
   void setPlane(int theOrientation, double theXRotation, double theYRotation, double thePlanePos);
 
+ private:
+  void keyPressEvent( QKeyEvent* e );
+
  protected slots:
   void accept();
   void reject();
index 6131085e80305758583e33a342011d2ac57abea3..45e47f88ce54d5d0ba08857be07a1b70bb2f982d 100644 (file)
@@ -1156,6 +1156,21 @@ void VisuGUI_ScalarBarDlg::onHelp()
   }
 }
 
+/*!
+  Provides help on F1 button click
+*/
+void VisuGUI_ScalarBarDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
 
 //#######################################################################################
 VisuGUI_TextPrefDlg::VisuGUI_TextPrefDlg (QWidget* parent)
@@ -1266,3 +1281,19 @@ void VisuGUI_TextPrefDlg::accept()
 
   QDialog::accept();
 }
+
+/*!
+  Provides help on F1 button click
+*/
+void VisuGUI_TextPrefDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 5ef53b8d8b91f3a011badc51d5a8301e531ad831..d9d0f6f2e909adce0adecc8c64e1424d89b1c5bd 100644 (file)
@@ -79,6 +79,9 @@ class VisuGUI_TextPrefDlg: public QDialog
 
   void storeBeginValues();
 
+ private:
+  void keyPressEvent( QKeyEvent* e );
+
  public:
   SVTK_FontWidget* myTitleFont;
   SVTK_FontWidget* myLabelFont;
@@ -203,6 +206,9 @@ class VisuGUI_ScalarBarDlg : public QDialog
   void initFromPrsObject(VISU::ScalarMap_i* thePrs) {myScalarPane->initFromPrsObject(thePrs);}
   int storeToPrsObject(VISU::ScalarMap_i* thePrs) {return myScalarPane->storeToPrsObject(thePrs);}
 
+ private:
+  void keyPressEvent( QKeyEvent* e );
+
  protected slots:
   void accept();
   void reject();
index 2ab7dcca97d760514e7c246fb758053791a504fb..ce2da5165f4ae75f784ff0fa83f2c7d93eeeadee 100644 (file)
@@ -480,3 +480,16 @@ float VisuGUI_ScalarMapOnDeformedShapeDlg::GetFloatValueOfTimeStamp(const char*
   }
   return ret;
 }
+
+void VisuGUI_ScalarMapOnDeformedShapeDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 7fb24fac15cf1f5289edd97a1e0c906217b5d4f1..8ca32d64ee9833a83c83483462d79e4fcf72d2f2 100644 (file)
@@ -71,6 +71,9 @@ public:
     VISU::TEntity getCurrentScalarEntity();
     void SetScalarField(int theIter,QString theFieldName=QString(""));
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void accept();
   void reject();
index 0f57d69ee20a9bc13af1dabddcbd43c7b7cae9d4..64d8b6340faccbbcaca8da7ff7aae3c21efec275 100644 (file)
@@ -636,3 +636,16 @@ void VisuGUI_SelectionDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_SelectionDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 40da2d6cb053c37c60f245d4e53f36490c7a0f8c..a6517bc1425e024f2f702746e9e9dd5ca7cee8eb 100644 (file)
@@ -47,6 +47,9 @@ public:
   VisuGUI_SelectionDlg (const SalomeApp_Module* theModule);
   virtual ~VisuGUI_SelectionDlg ();
 
+private:
+  void keyPressEvent( QKeyEvent* e );
+
 protected:
   void closeEvent (QCloseEvent* theEvent);
 
index f0e11c12613bab4310a4dc009034bb7602ef50bb..1c185b413c3ca4d1c7e2448f17dc32e89bc00889 100644 (file)
@@ -493,6 +493,22 @@ void VisuGUI_SetupPlot2dDlg::enableControls()
   myOkBtn->setEnabled( bHSet && bVSet );
 }
 
+/*!
+  Provides help on F1 button click
+*/
+void VisuGUI_SetupPlot2dDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
 // ====================================================================================
 /*!
   Constructor
@@ -722,8 +738,3 @@ void VisuGUI_ItemContainer::onHVToggled( bool on )
     emit verToggled( on );
   }
 }
-
-
-
-
-
index 4332f048750b1ed835ce784e6da94fb9e0093870..dd8a0f9d5d6ef50fbe8c02d0b15d2143ab23ea9a 100644 (file)
@@ -57,6 +57,9 @@ public:
   void getCurvesSource( int& horIndex, QValueList<int>& verIndexes );
   bool getCurveAttributes( const int vIndex, bool& isAuto, int& marker, int& line, int& lineWidth, QColor& color);
 
+private:
+  void keyPressEvent( QKeyEvent* e );
+
 private slots:
   void onHBtnToggled( bool );
   void onVBtnToggled( bool );
index d1615223a6eb751694f069b7e53d7fab803af548..7a1820c13868dad69bc36c110c3d0fef1ba81b69 100644 (file)
@@ -628,3 +628,16 @@ void VisuGUI_StreamLinesDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_StreamLinesDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index b1e33ac3071a27bdf40a870a61d202cf84bce62e..263ef4be4923dd22c7bdbe8795e138c10647d72c 100644 (file)
@@ -50,6 +50,9 @@ public:
     void setColor( QColor color );
     void enableMagnColor( bool enable );
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void accept();
   void reject();
index ce4110d9992f183d14e5542dd19a44571f4d2fc4..d177ff9130a56811b74b87c7ebe02f4834ba7fa0 100644 (file)
@@ -1535,3 +1535,18 @@ void VisuGUI_TimeAnimationDlg::onPathChanged()
 {
   myAnimator->dumpTo(myPathEdit->text());
 }
+
+//------------------------------------------------------------------------
+void VisuGUI_TimeAnimationDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
+
index 3d59282694c7d20cdc1be56bfab3e66fc27d7a48..604cd24bc4e01c096528a04d86dadc0eafbc2862 100644 (file)
@@ -154,6 +154,7 @@ class VisuGUI_TimeAnimationDlg: public QDialog
  protected:
     virtual void closeEvent(QCloseEvent* theEvent);
     virtual void showEvent(QShowEvent* theEvent);
+    virtual void keyPressEvent(QKeyEvent* theEvent);
     virtual void reject();
     void stopAnimation();
 
index bb5eff323f737a20e3f1861d9b91c1937606b700..2739cf7adad75a33d0da39a128315d70aa6b3956 100644 (file)
@@ -273,3 +273,20 @@ void VisuGUI_TransparencyDlg::onSelectionChanged()
   }
   ValueHasChanged();
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void VisuGUI_TransparencyDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}
index 9a67b25b85990ed3623a2cb8c9b5946949c0c422..2809a46055777f66492fa586cc4192e79a4aabf5 100644 (file)
@@ -56,6 +56,9 @@ public:
 
   ~VisuGUI_TransparencyDlg();
 
+private:
+  void                    keyPressEvent( QKeyEvent* e );
+
 private :
   LightApp_SelectionMgr*  mySelectionMgr;
   SVTK_ViewWindow*        myViewWindow;
index 2dd8f7192d5c46453c29d844c07cc3c6ec85082d..b9c660c0b466275a3f5d86741a5350c9ac08a896 100644 (file)
@@ -444,3 +444,16 @@ void VisuGUI_VectorsDlg::onHelp()
                           QObject::tr("BUT_OK"));
   }
 }
+
+void VisuGUI_VectorsDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 857887ce8bf31ae4c050d1d3103eac9d7d1320e9..091fec4d36e49c4b5a12946324087fd85089e658 100644 (file)
@@ -79,6 +79,10 @@ public:
     void initFromPrsObject(VISU::Vectors_i* thePrs);
     int storeToPrsObject(VISU::Vectors_i* thePrs);
 
+private:
+    void keyPressEvent( QKeyEvent* e );
+  
+
 protected slots:
   void accept();
   void reject();
index 716ae439030b00da8022e2e8a8fd688f79b1df6a..3d0a5f4de5641d61c73600484feb2b8a61c913c1 100644 (file)
@@ -407,3 +407,16 @@ void VVTK_PickingDlg::onColorButtonPressed()
   if( aColor.isValid() )
     mySelectionColorButton->setPaletteBackgroundColor( aColor );
 }
+
+void VVTK_PickingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onClickHelp();
+    }
+}
index 9cd68798953b6ad31f238af6a15463838dca0353..81b2576cfb95a4f377fb9f424d4b980e65c586ec 100644 (file)
@@ -89,6 +89,7 @@ private:
                                 void* theCallData);
 
   void             KeyPressed();
+  void             keyPressEvent( QKeyEvent* e );
 
 private:
   QtxDblSpinBox*   myCursorSizeSpinBox;
index bb495f1e788648d6c0871344e6bfd9a3464897a6..32a1c3f241374487ca037d630ab3547140bfc187 100644 (file)
@@ -203,3 +203,16 @@ bool VVTK_RecorderDlg::onBrowseFile()
 
   return true;
 }
+
+void VVTK_RecorderDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onHelp();
+    }
+}
index 5c2ead334bf9af8f1b4807d9ec32a6b0324e8e1b..23b5a1df53834b590da90871b6cf1069ecdafa68 100644 (file)
@@ -58,6 +58,9 @@ public:
 
   QString          fileName() const { return myFileName; }
 
+private:
+  void             keyPressEvent( QKeyEvent* e );
+
 protected slots:
   void             onStart();
   void             onClose();
index 4a61d9d6405b718f7ed786c0bf2b7e7a33df0853..7784042c653c2ddbfd5666a9ff52bfa5f4bf7691 100644 (file)
@@ -884,3 +884,16 @@ bool VVTK_SegmentationCursorDlg::CheckNumberOfFaces()
            myOutsidePrimitiveBox->getPrimitiveType() == VISU_OpenGLPointSpriteMapper::GeomSphere &&
            aNumberOfPoints * myOutsidePrimitiveBox->getFaceNumber() > myOutsidePrimitiveBox->getFaceLimit() );
 }
+
+void VVTK_SegmentationCursorDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      onClickHelp();
+    }
+}
index a446a4ccb92d5548ec872969e18c44a683608c3d..082608ea8b4bcceb66f098d1250602d4aea91497 100644 (file)
@@ -123,6 +123,8 @@ private:
                                 unsigned long theEvent,
                                 void* theClientData, 
                                 void* theCallData);
+  
+  void             keyPressEvent( QKeyEvent* e );
 
 protected slots:
   virtual void     done( int );