mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 11:50:33 +05:00
Mantis issue 0021716: EDF 1679 : Create the bounding box in the GUI
This commit is contained in:
parent
e39ee4040b
commit
9023c3cda7
@ -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 :
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user