Lines Matching refs:objectID
357 wxClassInfo* wxReader::GetObjectClassInfo(int objectID)
359 if ( objectID == wxNullObjectID || objectID == wxInvalidObjectID )
364 if ( m_data->m_classInfos.find(objectID) == m_data->m_classInfos.end() )
369 return m_data->m_classInfos[objectID] ;
372 void wxReader::SetObjectClassInfo(int objectID, wxClassInfo *classInfo )
374 if ( objectID == wxNullObjectID || objectID == wxInvalidObjectID )
379 if ( m_data->m_classInfos.find(objectID) != m_data->m_classInfos.end() )
384 m_data->m_classInfos[objectID] = classInfo ;
387 bool wxReader::HasObjectClassInfo( int objectID )
389 if ( objectID == wxNullObjectID || objectID == wxInvalidObjectID )
394 return m_data->m_classInfos.find(objectID) != m_data->m_classInfos.end() ;
417 void SetObject(int objectID, wxObject *obj )
419 if ( m_objects.find(objectID) != m_objects.end() )
424 m_objects[objectID] = obj ;
426 wxObject* GetObject( int objectID )
428 if ( objectID == wxNullObjectID )
430 if ( m_objects.find(objectID) == m_objects.end() )
436 return m_objects[objectID] ;
450 void wxRuntimeDepersister::AllocateObject(int objectID, wxClassInfo *classInfo ,
455 m_data->SetObject(objectID, O);
458 void wxRuntimeDepersister::CreateObject(int objectID,
467 o = m_data->GetObject(objectID);
487 void wxRuntimeDepersister::ConstructObject(int objectID,
513 m_data->SetObject(objectID, o);
517 void wxRuntimeDepersister::DestroyObject(int objectID, wxClassInfo *WXUNUSED(classInfo))
520 o = m_data->GetObject(objectID);
524 void wxRuntimeDepersister::SetProperty(int objectID,
530 o = m_data->GetObject(objectID);
534 void wxRuntimeDepersister::SetPropertyAsObject(int objectID,
540 o = m_data->GetObject(objectID);
585 wxObject *wxRuntimeDepersister::GetObject(int objectID)
587 return m_data->GetObject( objectID ) ;
591 void wxRuntimeDepersister::AddToPropertyCollection( int objectID ,
597 o = m_data->GetObject(objectID);
602 void wxRuntimeDepersister::AddToPropertyCollectionAsObject(int objectID,
608 o = m_data->GetObject(objectID);
635 void SetObjectName(int objectID, const wxString &name )
637 if ( m_objectNames.find(objectID) != m_objectNames.end() )
642 m_objectNames[objectID] = (const wxChar *)name;
645 wxString GetObjectName( int objectID )
647 if ( objectID == wxNullObjectID )
650 if ( m_objectNames.find(objectID) == m_objectNames.end() )
655 return wxString( m_objectNames[objectID].c_str() ) ;
670 void wxCodeDepersister::AllocateObject(int objectID, wxClassInfo *classInfo ,
673 wxString objectName = wxString::Format( wxT("LocalObject_%d") , objectID ) ;
678 m_data->SetObjectName( objectID , objectName ) ;
681 void wxCodeDepersister::DestroyObject(int objectID, wxClassInfo *WXUNUSED(classInfo))
684 m_data->GetObjectName( objectID).c_str() ) );
714 void wxCodeDepersister::CreateObject(int objectID,
724 m_fp->WriteString( wxString::Format( wxT("\t%s->Create("), m_data->GetObjectName(objectID).c_str() ) );
739 void wxCodeDepersister::ConstructObject(int objectID,
748 wxString objectName = wxString::Format( wxT("LocalObject_%d") , objectID ) ;
753 m_data->SetObjectName( objectID , objectName ) ;
770 void wxCodeDepersister::SetProperty(int objectID,
776 m_data->GetObjectName(objectID).c_str(),
781 void wxCodeDepersister::SetPropertyAsObject(int objectID,
788 m_data->GetObjectName(objectID).c_str(),
793 m_data->GetObjectName(objectID).c_str(),
798 void wxCodeDepersister::AddToPropertyCollection( int objectID ,
804 m_data->GetObjectName(objectID).c_str(),
810 void wxCodeDepersister::AddToPropertyCollectionAsObject(int WXUNUSED(objectID),