myEditedObject.Nullify();
if ( myIsEdit )
{
- myEditedObject = Handle(HYDROData_Calculation)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
+ myEditedObject = Handle(HYDROData_CalculationCase)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
if ( !myEditedObject.IsNull() )
{
anObjectName = myEditedObject->GetName();
else
{
myEditedObject =
- Handle(HYDROData_Calculation)::DownCast( doc()->CreateObject( KIND_CALCULATION ) );
+ Handle(HYDROData_CalculationCase)::DownCast( doc()->CreateObject( KIND_CALCULATION ) );
myEditedObject->SetName(anObjectName);
}
//Handle(HYDROData_Document) aDocument = doc();
- //Handle(HYDROData_Calculation) aCalculObj = myIsEdit ? myEditedObject :
- // Handle(HYDROData_Calculation)::DownCast( aDocument->CreateObject( KIND_CALCULATION ) );
+ //Handle(HYDROData_CalculationCase) aCalculObj = myIsEdit ? myEditedObject :
+ // Handle(HYDROData_CalculationCase)::DownCast( aDocument->CreateObject( KIND_CALCULATION ) );
//if ( aCalculObj.IsNull() )
// return false;