MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / UpdateObjectList

Method UpdateObjectList

src/s3tool.cpp:535–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535void 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
553void ObjectEditor::UpdatePropertyValues()

Callers 4

fcall_createFunction · 0.80
fcall_propertyFunction · 0.80
fcall_deleteFunction · 0.80
OnUpdateObjectListMethod · 0.80

Calls 7

GetStringSelectionMethod · 0.80
sizeMethod · 0.80
IsVisibleMethod · 0.80
ClearMethod · 0.45
GetObjectsMethod · 0.45
GetStringMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected