- /* init variables */
- myEditCurrentArgument = GroupC1->LineEdit1;
-
- /* signals and slots connections */
- connect(GroupC1->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupC1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- /* displays Dialog */
- GroupC1->show();
- this->show();
-
- return;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void MeasureGUI_PropertiesDlg::SelectionIntoArgument()
-{
- myGeomBase->EraseSimulationShape();
- mySimulationTopoDs.Nullify();
- myEditCurrentArgument->setText("");
- QString aString = "";
-
- GroupC1->LineEdit2->setText("");
- GroupC1->LineEdit3->setText("");
- GroupC1->LineEdit4->setText("");
-
- int nbSel = myGeomBase->GetNameOfSelectedIObjects(mySelection, aString);
- if(nbSel != 1)
- return;
-
- /* nbSel == 1 */
- TopoDS_Shape S;
- if(!myGeomBase->GetTopoFromSelection(mySelection, S))
- return;
-
-
- if(S.IsNull() || S.ShapeType() == TopAbs_VERTEX)
- return;
-
- GroupC1->LineEdit1->setText(aString);
-
- /* Try to display of a cone simulation shape to show direction of a linear edge only in OCC viewer */
- if(myGeomBase->CreateArrowForLinearEdge(S, mySimulationTopoDs))
- myGeomBase->DisplaySimulationShape(mySimulationTopoDs);
-
- this->CalculateAndDisplayProperties(S);
- return;