Fix for PAL10496.

This commit is contained in:
mzn 2006-06-23 12:51:59 +00:00
parent e47cfba9f6
commit 1335ea8843
63 changed files with 566 additions and 1 deletions

View File

@ -797,3 +797,20 @@ void SMESHGUI_AddMeshElementDlg::CheckBox (int state)
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();
}
}

View File

@ -82,6 +82,7 @@ private:
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 */

View File

@ -1099,3 +1099,20 @@ QWidget* SMESHGUI_IdEditItem::createEditor() const
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();
}
}

View File

@ -67,6 +67,7 @@ private:
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();

View File

@ -769,3 +769,20 @@ void SMESHGUI_ClippingDlg::OnPreviewToggle (bool theIsToggled)
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();
}
}

View File

@ -85,6 +85,8 @@ public:
void setRotation (const double theRot1, const double theRot2);
void Sinchronize();
void keyPressEvent(QKeyEvent*);
~SMESHGUI_ClippingDlg();
private:

View File

@ -93,6 +93,8 @@ void SMESHGUI_ConvToQuadOp::startOperation()
}
connect( myDlg, SIGNAL( onClicked( int ) ), SLOT( ConnectRadioButtons( int ) ) );
myHelpFileName = "/files/convert_to_from_quadratic.htm";
SMESHGUI_SelectionOp::startOperation();
myDlg->SetMediumNdsOnGeom( false );

View File

@ -744,3 +744,20 @@ void SMESHGUI_CreatePatternDlg::onTypeChanged (int theType)
else
myPicture2d->hide();
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void SMESHGUI_CreatePatternDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
onHelp();
}
}

View File

@ -84,6 +84,7 @@ private:
void closeEvent (QCloseEvent* e);
void enterEvent (QEvent*);
void keyPressEvent(QKeyEvent*);
private slots:

View File

@ -324,7 +324,7 @@ SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI
mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ;
myHelpFileName = "/files/adding_nodes_and_elements.htm#Adding_polyhedrons?";
myHelpFileName = "/files/adding_nodes_and_elements.htm#Adding_polyhedrons";
Init();
}
@ -1098,3 +1098,20 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onListSelectionChanged()
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();
}
}

View File

@ -73,6 +73,7 @@ private:
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
void hideEvent ( QHideEvent * ); /* ESC key */
void keyPressEvent( QKeyEvent* e );
int GetConstructorId();
void displaySimulation();

View File

@ -325,3 +325,20 @@ void SMESHGUI_DeleteGroupDlg::closeEvent (QCloseEvent*)
{
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();
}
}

View File

@ -61,6 +61,7 @@ private:
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*);
void keyPressEvent(QKeyEvent*);
private slots:

View File

@ -363,3 +363,21 @@ void SMESHGUI_EditMeshDlg::hideEvent (QHideEvent * e)
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();
}
}

View 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 keyPressEvent(QKeyEvent*);
private:
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */

View File

@ -1196,3 +1196,20 @@ bool SMESHGUI_ExtrusionAlongPathDlg::eventFilter (QObject* object, QEvent* 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();
}
}

View File

@ -83,6 +83,7 @@ public:
private:
void Init (bool ResetControls = true);
void enterEvent (QEvent*); /* mouse enter the QWidget */
void keyPressEvent(QKeyEvent*);
int GetConstructorId();
void SetEditCurrentArgument (QToolButton* button);

View File

@ -790,3 +790,20 @@ int SMESHGUI_ExtrusionDlg::GetConstructorId()
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();
}
}

View File

@ -71,6 +71,7 @@ public:
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 */

View File

@ -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();
}
}

View File

@ -263,6 +263,7 @@ private:
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*);
void keyPressEvent(QKeyEvent*);
// dialog creation
QFrame* createButtonFrame (QWidget*);

View 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();
}
}

View File

@ -88,6 +88,7 @@ private:
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ;
void keyPressEvent( QKeyEvent* e );
private slots:

View File

@ -1599,3 +1599,20 @@ void SMESHGUI_GroupDlg::hideEvent (QHideEvent*)
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();
}
}

View File

@ -114,6 +114,7 @@ private:
void closeEvent(QCloseEvent* e);
void enterEvent (QEvent*);
void hideEvent (QHideEvent*); /* ESC key */
void keyPressEvent(QKeyEvent*);
void setSelectionMode(int theMode);
void updateButtons();

View File

@ -412,3 +412,20 @@ void SMESHGUI_GroupOpDlg::reset()
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();
}
}

View File

@ -64,6 +64,7 @@ private:
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ;
void keyPressEvent(QKeyEvent*);
private slots:

View File

@ -727,3 +727,20 @@ void SMESHGUI_MergeNodesDlg::hideEvent (QHideEvent*)
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();
}
}

View File

@ -79,6 +79,7 @@ private:
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 */

View File

@ -638,3 +638,20 @@ void SMESHGUI_MeshInfosDlg::onHelp()
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();
}
}

View File

@ -53,6 +53,7 @@ public:
protected:
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
void windowActivationChange( bool oldActive );
void DumpMeshInfos();

View File

@ -1361,3 +1361,20 @@ int SMESHGUI_MeshPatternDlg::getNode (bool second) const
{
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();
}
}

View File

@ -114,6 +114,7 @@ private:
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;

View File

@ -586,3 +586,20 @@ void SMESHGUI_MoveNodesDlg::redisplayPreview()
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();
}
}

View File

@ -79,6 +79,7 @@ private:
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ;
void hideEvent ( QHideEvent * );
void keyPressEvent( QKeyEvent* );
void erasePreview();
QFrame* createButtonFrame( QWidget* );
QFrame* createMainFrame ( QWidget* );

View File

@ -1046,6 +1046,23 @@ int SMESHGUI_MultiEditDlg::entityType()
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

View File

@ -108,6 +108,7 @@ protected:
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;

View File

@ -599,3 +599,20 @@ void SMESHGUI_NodesDlg::ActivateThisDialog()
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();
}
}

View File

@ -85,6 +85,7 @@ private:
void enterEvent(QEvent* e);
void closeEvent(QCloseEvent*);
void hideEvent (QHideEvent *); /* ESC key */
void keyPressEvent(QKeyEvent*);
QButtonGroup* GroupConstructors;
QRadioButton* Constructor1;

View File

@ -513,3 +513,20 @@ void SMESHGUI_RemoveElementsDlg::hideEvent (QHideEvent * e)
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();
}
}

View File

@ -75,6 +75,7 @@ private:
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;

View File

@ -512,3 +512,20 @@ void SMESHGUI_RemoveNodesDlg::hideEvent (QHideEvent * e)
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();
}
}

View File

@ -78,6 +78,7 @@ private:
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;

View File

@ -444,3 +444,20 @@ void SMESHGUI_RenumberingDlg::hideEvent (QHideEvent * e)
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();
}
}

View File

@ -72,6 +72,7 @@ private:
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 */

View File

@ -933,3 +933,20 @@ void SMESHGUI_RevolutionDlg::onVectorChanged()
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();
}
}

View File

@ -78,6 +78,7 @@ private:
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*); /* mouse enter the QWidget */
void hideEvent (QHideEvent*); /* ESC key */
void keyPressEvent(QKeyEvent*);
int GetConstructorId();
bool IsAxisOk();

View File

@ -840,3 +840,20 @@ void SMESHGUI_RotationDlg::onVectorChanged()
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();
}
}

View File

@ -77,6 +77,7 @@ private:
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 */

View File

@ -950,3 +950,20 @@ bool SMESHGUI_SewingDlg::IsValid()
{
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();
}
}

View File

@ -72,6 +72,7 @@ private:
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ); /* mouse enter the QWidget */
void hideEvent ( QHideEvent * ); /* ESC key */
void keyPressEvent(QKeyEvent*);
int GetConstructorId();
bool IsValid();

View File

@ -535,6 +535,23 @@ bool SMESHGUI_SingleEditDlg::onApply()
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

View File

@ -75,6 +75,7 @@ protected:
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;

View File

@ -773,3 +773,20 @@ void SMESHGUI_SmoothingDlg::onSelectMesh (bool toSelectMesh)
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();
}
}

View File

@ -79,6 +79,7 @@ private:
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 */

View File

@ -467,3 +467,20 @@ void SMESHGUI_StandardMeshInfosDlg::onHelp()
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();
}
}

View File

@ -54,6 +54,7 @@ public:
protected:
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
void windowActivationChange( bool oldActive );
void DumpMeshInfos();

View File

@ -916,3 +916,20 @@ void SMESHGUI_SymmetryDlg::onVectorChanged()
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();
}
}

View File

@ -76,6 +76,7 @@ private:
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*); /* mouse enter the QWidget */
void hideEvent (QHideEvent*); /* ESC key */
void keyPressEvent(QKeyEvent*);
int GetConstructorId();
bool IsMirrorOk();

View File

@ -849,3 +849,20 @@ int SMESHGUI_TranslationDlg::GetConstructorId()
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();
}
}

View File

@ -75,6 +75,7 @@ private:
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 */

View File

@ -276,3 +276,20 @@ void SMESHGUI_TransparencyDlg::onSelectionChanged()
}
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();
}
}

View File

@ -56,6 +56,9 @@ public:
~SMESHGUI_TransparencyDlg();
private:
void keyPressEvent(QKeyEvent*);
private :
SMESHGUI* mySMESHGUI;