X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_GroupOpDlg.cxx;h=01747af903d70a4d44302a1e7cff7cf71f12de4a;hb=c3e2a7b12ebefec0110115c2a571d809d6097d3d;hp=8ec058c010a13838a1f4831346a765f395be32ab;hpb=c63ee099ad2b149bd70136839c973e8910137bc5;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx index 8ec058c01..01747af90 100644 --- a/src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx @@ -78,15 +78,15 @@ SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg( SMESHGUI* theModule, const int theMode if (myMode == UNION) { setCaption(tr("UNION_OF_TWO_GROUPS")); - myHelpFileName = "/files/using_operations_on_groups.htm#Union"; + myHelpFileName = "using_operations_on_groups_page.html#union_anchor"; } else if (myMode == INTERSECT) { setCaption(tr("INTERSECTION_OF_TWO_GROUPS")); - myHelpFileName = "/files/using_operations_on_groups.htm#Intersection"; + myHelpFileName = "using_operations_on_groups_page.html#intersection_anchor"; } else { setCaption(tr("CUT_OF_TWO_GROUPS")); - myHelpFileName = "/files/using_operations_on_groups.htm#Cut"; + myHelpFileName = "using_operations_on_groups_page.html#cut_anchor"; } mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector(); @@ -149,7 +149,7 @@ QFrame* SMESHGUI_GroupOpDlg::createButtonFrame (QWidget* theParent) QFrame* aFrame = new QFrame(theParent); aFrame->setFrameStyle(QFrame::Box | QFrame::Sunken); - myOkBtn = new QPushButton(tr("SMESH_BUT_OK" ), aFrame); + myOkBtn = new QPushButton(tr("SMESH_BUT_APPLY_AND_CLOSE"), aFrame); myApplyBtn = new QPushButton(tr("SMESH_BUT_APPLY"), aFrame); myCloseBtn = new QPushButton(tr("SMESH_BUT_CLOSE"), aFrame); myHelpBtn = new QPushButton(tr("SMESH_BUT_HELP"), aFrame); @@ -317,9 +317,15 @@ void SMESHGUI_GroupOpDlg::onHelp() if (app) app->onHelpContextModule(mySMESHGUI ? app->moduleName(mySMESHGUI->moduleName()) : QString(""), myHelpFileName); else { + QString platform; +#ifdef WIN32 + platform = "winapplication"; +#else + platform = "application"; +#endif SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"), QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName), + arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(myHelpFileName), QObject::tr("BUT_OK")); } } @@ -412,3 +418,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(); + } +}