| 533 | |
| 534 | |
| 535 | void ObjectEditor::UpdateObjectList( ) |
| 536 | { |
| 537 | m_objList->Clear(); |
| 538 | |
| 539 | if ( !m_view ) return; |
| 540 | |
| 541 | wxString sel = m_objList->GetStringSelection(); |
| 542 | std::vector<VObject*> list = m_view->GetObjects(); |
| 543 | for( size_t i=0; i<list.size(); i++ ) |
| 544 | { |
| 545 | m_objList->Append( list[i]->Property("Name").GetString() + " (" + list[i]->GetTypeName() + ")" ); |
| 546 | m_objList->Check( m_objList->GetCount()-1, list[i]->IsVisible() ); |
| 547 | } |
| 548 | |
| 549 | if ( !sel.IsEmpty() ) m_objList->SetStringSelection( sel ); |
| 550 | } |
| 551 | |
| 552 | |
| 553 | void ObjectEditor::UpdatePropertyValues() |
no test coverage detected