Lines Matching defs:handler
126 const wxAnimationDecoder *handler;
132 handler=(const wxAnimationDecoder*)node->GetData();
134 if ( handler->CanRead(stream) )
136 // do a copy of the handler from the static list which we will own
138 m_refData = handler->Clone();
144 wxLogWarning( _("No handler found for animation type.") );
148 handler = FindHandler(type);
150 // do a copy of the handler from the static list which we will own
152 m_refData = handler->Clone();
154 if (handler == NULL)
156 wxLogWarning( _("No animation handler for type %ld defined."), type );
175 void wxAnimation::AddHandler( wxAnimationDecoder *handler )
177 // Check for an existing handler of the type being added.
178 if (FindHandler( handler->GetType() ) == 0)
180 sm_handlers.Append( handler );
189 wxLogDebug( _T("Adding duplicate animation handler for '%d' type"),
190 handler->GetType() );
191 delete handler;
195 void wxAnimation::InsertHandler( wxAnimationDecoder *handler )
197 // Check for an existing handler of the type being added.
198 if (FindHandler( handler->GetType() ) == 0)
200 sm_handlers.Insert( handler );
205 wxLogDebug( _T("Inserting duplicate animation handler for '%d' type"),
206 handler->GetType() );
207 delete handler;
216 const wxAnimationDecoder *handler = (const wxAnimationDecoder *)node->GetData();
217 if (handler->GetType() == animType) return handler;
238 wxAnimationDecoder *handler = (wxAnimationDecoder *)node->GetData();
240 delete handler;