X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_TranslationDlg.cxx;fp=src%2FSMESHGUI%2FSMESHGUI_TranslationDlg.cxx;h=efaaa78fbff5ce17f982c540f2ddcda6230c1646;hb=e36717feb00b623f5bc7ffbbc47d28ea0b95f842;hp=33f2ae886a5fd197686d121999b07333fcad01f8;hpb=961309c8a41786c455e6415ce543ca692f2016c8;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx b/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx index 33f2ae886..efaaa78fb 100644 --- a/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_TranslationDlg.cxx @@ -257,12 +257,12 @@ SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg( SMESHGUI* theModule, const cha SMESHGUI_TranslationDlgLayout->addWidget(GroupArguments, 1, 0); /* Initialisations */ - SpinBox1_1->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); - SpinBox1_2->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); - SpinBox1_3->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); - SpinBox2_1->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); - SpinBox2_2->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); - SpinBox2_3->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3); + SpinBox1_1->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); + SpinBox1_2->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); + SpinBox1_3->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); + SpinBox2_1->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); + SpinBox2_2->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); + SpinBox2_3->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, 3); GroupArguments->show(); RadioButton1->setChecked(TRUE); @@ -855,3 +855,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(); + } +}