Fix for PAL10496.

This commit is contained in:
mzn 2006-06-23 12:50:16 +00:00
parent 08bda50cec
commit b9f2e49233
15 changed files with 128 additions and 3 deletions

View File

@ -1425,8 +1425,22 @@ bool EntityGUI_SketcherDlg::createShapes( GEOM::GEOM_Object_ptr theObject,
return true;
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void EntityGUI_SketcherDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
ClickOnHelp();
}
}

View File

@ -73,6 +73,7 @@ protected:
virtual bool execute( ObjectList& objects );
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
private :
void Init();

View File

@ -243,3 +243,20 @@ void GEOMBase_Skeleton::setHelpFileName(const QString& theName)
{
myHelpFileName = theName;
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void GEOMBase_Skeleton::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
ClickOnHelp();
}
}

View File

@ -66,6 +66,7 @@ private:
protected:
void closeEvent(QCloseEvent* e);
void keyPressEvent(QKeyEvent* e);
/*! initialize "Name" field with a string "thePrefix_X" (Vertex_3)
*/

View File

@ -177,3 +177,20 @@ void GEOMToolsGUI_NbIsosDlg::ClickOnHelp()
QObject::tr("BUT_OK"));
}
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void GEOMToolsGUI_NbIsosDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
ClickOnHelp();
}
}

View File

@ -51,6 +51,9 @@ public:
void setU( const int );
void setV( const int );
private:
void keyPressEvent(QKeyEvent*);
private slots:
void ClickOnHelp();

View File

@ -279,3 +279,20 @@ void GEOMToolsGUI_TransparencyDlg::ValueHasChanged( int newValue )
ic->UpdateCurrentViewer();
} // if ( isOCC )
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void GEOMToolsGUI_TransparencyDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
ClickOnHelp();
}
}

View File

@ -50,6 +50,9 @@ public:
GEOMToolsGUI_TransparencyDlg( QWidget* parent );
~GEOMToolsGUI_TransparencyDlg();
private:
void keyPressEvent(QKeyEvent*);
private :
bool myFirstInit ; /* Inform for the first init */
QSlider* mySlider;

View File

@ -365,3 +365,19 @@ GEOM::GEOM_IOperations_ptr MeasureGUI_Skeleton::createOperation()
return getGeomEngine()->GetIMeasureOperations( getStudyId() );
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void MeasureGUI_Skeleton::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
ClickOnHelp();
}
}

View File

@ -65,6 +65,7 @@ protected:
void enterEvent( QEvent* e );
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
void redisplayPreview();
GEOM_Displayer* getDisplayer();

View File

@ -80,7 +80,7 @@ OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (GeometryGUI* theGeometryGUI,
Layout1->addWidget(GroupPoints, 1, 0);
/***************************************************************/
setHelpFileName("none.htm");
setHelpFileName("partition.htm");
Init();
}

View File

@ -298,3 +298,20 @@ bool RepairGUI_FreeBoundDlg::execute( ObjectList& objects )
return result;
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void RepairGUI_FreeBoundDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
onHelp();
}
}

View File

@ -60,6 +60,7 @@ private:
void Init();
void enterEvent( QEvent* e );
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
void activateSelection();
virtual GEOM::GEOM_IOperations_ptr createOperation();

View File

@ -352,3 +352,19 @@ void RepairGUI_FreeFacesDlg::onSetEditCurrentArgument()
onSelectionDone();
}
//=================================================================================
// function : keyPressEvent()
// purpose :
//=================================================================================
void RepairGUI_FreeFacesDlg::keyPressEvent( QKeyEvent* e )
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Key_F1 )
{
e->accept();
onHelp();
}
}

View File

@ -60,6 +60,7 @@ private:
void Init();
void enterEvent(QEvent* e);
void closeEvent(QCloseEvent* e);
void keyPressEvent(QKeyEvent* e);
void activateSelection();
GEOM_Displayer* getDisplayer();