dynamic_cast<OCCViewer_ViewManager*>( anApp->createViewManager( OCCViewer_Viewer::Type() ) );
if( myPreviewViewManager )
{
- anApp->selectionMgr()->setEnabled(false);
- myPreviewViewManager->setTitle( tr( "CREATE_CURVE" ) );
+ //anApp->selectionMgr()->setEnabled(false); // what the hell?!
+ myPreviewViewManager->setTitle( tr( "CREATE_POLYLINE" ) );
OCCViewer_Viewer* aViewer = myPreviewViewManager->getOCCViewer();
aViewer->enableSelection(true);
aViewer->enableMultiselection(true);
else{
myCurve = new CurveCreator_Curve(CurveCreator::Dim3d);
aPanel->setCurve(myCurve);
- QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), tr("POLYLINE_PREFIX") );
+ QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), "Polyline" );
aPanel->setPolylineName(aNewName);
}
aPanel->setCurve(myCurve);