}
}
+/*!
+ 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
*/
bool showColumnTitles = true );
~VisuGUI_TableDlg();
+private:
+ void keyPressEvent( QKeyEvent* e );
+
public slots:
void onOK();
void onHelp();
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();
+ }
+}
QString fileName() const { return myFileName; }
void setFileName( const QString& theFileName );
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void done( int );
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();
+ }
+}
~VisuGUI_ClippingDlg();
+private:
+ void keyPressEvent( QKeyEvent* e );
+
private:
LightApp_SelectionMgr* mySelectionMgr;
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();
+ }
+}
QPushButton* buttonCancel;
QPushButton* buttonHelp;
+private:
+ void keyPressEvent( QKeyEvent* e );
+
private slots:
void 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();
+ }
+}
bool isGenerateTable() { return myCreateTable->isChecked(); }
bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
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();
+ }
+}
void initFromPrsObject (VISU::CutPlanes_i* thePrs);
int storeToPrsObject (VISU::CutPlanes_i* thePrs);
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
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();
+ }
+}
void initFromPrsObject(VISU::DeformedShape_i* thePrs);
int storeToPrsObject(VISU::DeformedShape_i* thePrs);
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
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();
+ }
+}
void initFromPrsObject (VISU::Container_i* theContainer);
void storeToPrsObject (VISU::Container_i* theContainer);
+
+ private:
+ void keyPressEvent( QKeyEvent* e );
private slots:
void onLeftClicked();
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();
+ }
+}
//! 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();
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();
+ }
+}
int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
{return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
+ private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
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();
+ }
+}
QString name();
static QString getName( QWidget* parent = 0, const QString& oldName = QString::null );
+
+private:
+ void keyPressEvent( QKeyEvent* e );
protected slots:
void accept();
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();
+ }
+}
void getOffset (vtkFloatingPointType* theOffset) const;
bool isToSave() const;
+ private:
+ void keyPressEvent( QKeyEvent* e );
+
public slots:
void onReset();
{
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();
+ }
+}
void setPlane(int theOrientation, double theXRotation, double theYRotation, double thePlanePos);
+ private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
}
}
+/*!
+ 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)
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();
+ }
+}
void storeBeginValues();
+ private:
+ void keyPressEvent( QKeyEvent* e );
+
public:
SVTK_FontWidget* myTitleFont;
SVTK_FontWidget* myLabelFont;
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();
}
return ret;
}
+
+void VisuGUI_ScalarMapOnDeformedShapeDlg::keyPressEvent( QKeyEvent* e )
+{
+ QDialog::keyPressEvent( e );
+ if ( e->isAccepted() )
+ return;
+
+ if ( e->key() == Key_F1 )
+ {
+ e->accept();
+ onHelp();
+ }
+}
VISU::TEntity getCurrentScalarEntity();
void SetScalarField(int theIter,QString theFieldName=QString(""));
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
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();
+ }
+}
VisuGUI_SelectionDlg (const SalomeApp_Module* theModule);
virtual ~VisuGUI_SelectionDlg ();
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected:
void closeEvent (QCloseEvent* theEvent);
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
emit verToggled( on );
}
}
-
-
-
-
-
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 );
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();
+ }
+}
void setColor( QColor color );
void enableMagnColor( bool enable );
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void accept();
void reject();
{
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();
+ }
+}
+
protected:
virtual void closeEvent(QCloseEvent* theEvent);
virtual void showEvent(QShowEvent* theEvent);
+ virtual void keyPressEvent(QKeyEvent* theEvent);
virtual void reject();
void stopAnimation();
}
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();
+ }
+}
~VisuGUI_TransparencyDlg();
+private:
+ void keyPressEvent( QKeyEvent* e );
+
private :
LightApp_SelectionMgr* mySelectionMgr;
SVTK_ViewWindow* myViewWindow;
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();
+ }
+}
void initFromPrsObject(VISU::Vectors_i* thePrs);
int storeToPrsObject(VISU::Vectors_i* thePrs);
+private:
+ void keyPressEvent( QKeyEvent* e );
+
+
protected slots:
void accept();
void reject();
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();
+ }
+}
void* theCallData);
void KeyPressed();
+ void keyPressEvent( QKeyEvent* e );
private:
QtxDblSpinBox* myCursorSizeSpinBox;
return true;
}
+
+void VVTK_RecorderDlg::keyPressEvent( QKeyEvent* e )
+{
+ QDialog::keyPressEvent( e );
+ if ( e->isAccepted() )
+ return;
+
+ if ( e->key() == Key_F1 )
+ {
+ e->accept();
+ onHelp();
+ }
+}
QString fileName() const { return myFileName; }
+private:
+ void keyPressEvent( QKeyEvent* e );
+
protected slots:
void onStart();
void onClose();
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();
+ }
+}
unsigned long theEvent,
void* theClientData,
void* theCallData);
+
+ void keyPressEvent( QKeyEvent* e );
protected slots:
virtual void done( int );