| 326 | } |
| 327 | |
| 328 | void CShapePanel::SetShape( CShapeObject *shape ) |
| 329 | { |
| 330 | assert( shape ); |
| 331 | m_shape = shape; |
| 332 | |
| 333 | if (shape->GetPointCount() > 1) |
| 334 | m_editShapeButton.SetToolClass( RUNTIME_CLASS(CEditShapeObjectTool),m_shape ); |
| 335 | else |
| 336 | m_editShapeButton.EnableWindow( FALSE ); |
| 337 | |
| 338 | ReloadEntities(); |
| 339 | |
| 340 | CString str; |
| 341 | str.Format( "Num Points: %d",shape->GetPointCount() ); |
| 342 | GetDlgItem(IDC_NUM_POINTS)->SetWindowText( str ); |
| 343 | } |
| 344 | |
| 345 | ////////////////////////////////////////////////////////////////////////// |
| 346 | void CShapePanel::OnPick( CBaseObject *picked ) |
no test coverage detected