Mantis issue 0021716: EDF 1679 : Create the bounding box in the GUI

This commit is contained in:
jfa 2012-12-21 08:58:22 +00:00
parent e39ee4040b
commit 9023c3cda7
2 changed files with 27 additions and 0 deletions

View File

@ -150,6 +150,31 @@ bool MeasureGUI_BndBoxDlg::ClickOnApply()
return true;
}
//=================================================================================
// function : ActivateThisDialog()
// purpose :
//=================================================================================
void MeasureGUI_BndBoxDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
this, SLOT(SelectionIntoArgument()));
globalSelection();
displayPreview(true);
}
//=================================================================================
// function : enterEvent()
// purpose :
//=================================================================================
void MeasureGUI_BndBoxDlg::enterEvent(QEvent*)
{
if (!mainFrame()->GroupConstructors->isEnabled())
ActivateThisDialog();
}
//=================================================================================
// function : processObject
// purpose :

View File

@ -54,6 +54,7 @@ protected:
private:
void Init();
void enterEvent (QEvent*);
bool getParameters (double&, double&, double&, double&, double&, double&);
private:
@ -64,6 +65,7 @@ private slots:
void ClickOnOk();
bool ClickOnApply();
void SelectionIntoArgument();
void ActivateThisDialog();
};
#endif // MEASUREGUI_BNDBOXDLG_H