// TRUE to construct a modal dialog.
//=================================================================================
EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent,
- const char* name, bool modal, WFlags fl)
+ const char* name, bool modal, WFlags fl,
+ const double lineWidth)
:EntityGUI_Skeleton_QTD(parent, name, modal, WStyle_Customize |
WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose),
myIsAllAdded( false ),
GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
- myGeometryGUI( GUI )
+ myGeometryGUI( GUI ),
+ myLineWidth( lineWidth )
{
myGeometryGUI->SetActiveDialogBox(this);
resize( 0, 0 );
TypeClicked(0);
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
Group2Spin->show();
Group2Spin->buttonApply->setFocus();
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
else if ( constructorId == 0 )
{ // DXDY
Group2Spin->show();
Group2Spin->buttonApply->setFocus();
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
else if ( constructorId == 2 )
{ // Selection
}
}
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
setEnabledUndo(true);
setEnabledRedo(false);
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
// Set focus to SpinBox_DX
if (sender() == Group1Spin->buttonApply) {
setEnabledRedo(true);
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
//=================================================================================
if(myUndoCommand.count() == 1)
setEnabledRedo(false);
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
//=================================================================================
}
}
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
myEditCurrentArgument = Group1Sel->LineEdit1;
myEditCurrentArgument->setFocus();
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
}
}
- GEOMBase_Helper::displayPreview();
+ GEOMBase_Helper::displayPreview(false, true, true, myLineWidth);
}
getDisplayer()->SetColor( Quantity_NOC_RED );
// set width of displayed shape
- getDisplayer()->SetWidth( lineWidth );
+ getDisplayer()->SetWidth( (lineWidth == -1)?myLineWidth:lineWidth );
// Disable activation of selection
getDisplayer()->SetToActivate( activate );
public:
EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent = 0,
- const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ const char* name = 0, bool modal = FALSE, WFlags fl = 0,
+ const double lineWidth = 2.);
~EntityGUI_SketcherDlg();
bool eventFilter (QObject* object, QEvent* event);
DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y,
DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y};
+ double myLineWidth;
virtual void displayPreview ( GEOM::GEOM_Object_ptr obj,
const bool append = false,
const bool activate = false,