mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 12:40:34 +05:00
Fix for PAL10496.
This commit is contained in:
parent
08bda50cec
commit
b9f2e49233
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -73,6 +73,7 @@ protected:
|
||||
virtual bool execute( ObjectList& objects );
|
||||
|
||||
void closeEvent( QCloseEvent* e );
|
||||
void keyPressEvent( QKeyEvent* e );
|
||||
|
||||
private :
|
||||
void Init();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ private:
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
|
||||
/*! initialize "Name" field with a string "thePrefix_X" (Vertex_3)
|
||||
*/
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,9 @@ public:
|
||||
void setU( const int );
|
||||
void setV( const int );
|
||||
|
||||
private:
|
||||
void keyPressEvent(QKeyEvent*);
|
||||
|
||||
private slots:
|
||||
void ClickOnHelp();
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ protected:
|
||||
|
||||
void enterEvent( QEvent* e );
|
||||
void closeEvent( QCloseEvent* e );
|
||||
void keyPressEvent( QKeyEvent* e );
|
||||
void redisplayPreview();
|
||||
GEOM_Displayer* getDisplayer();
|
||||
|
||||
|
@ -80,7 +80,7 @@ OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (GeometryGUI* theGeometryGUI,
|
||||
Layout1->addWidget(GroupPoints, 1, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("none.htm");
|
||||
setHelpFileName("partition.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ private:
|
||||
void Init();
|
||||
void enterEvent(QEvent* e);
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void activateSelection();
|
||||
GEOM_Displayer* getDisplayer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user