Re: Plug-ins

Andreas Zehender <[email protected]> Mon, 29 Dec 2003 21:11:20 +0100
Newsgroups gmane.comp.kde.devel.kpovmodeler
Message-ID <[email protected]>
Hi Leon!

On Monday, 29. December 2003 20:39, Leon Pennington wrote:
> Well I've been using format->registerMethod(), but the format is created
> whithin the render code, and my method is obviously not registered. or am I
> missing something? I tried various other ways but this seemed to be the
> only way to get it to work.

Uh, now you got me ;-)
That was meant to work this way:

All formats are registered with PMIOManager::registerFormat()

Formats are kind of singletons and should never be created but only accessed 
and used with PMIOManager::format( const QString& name )

That way you can register your serialization methods once at plugin loading 
time to the already registered format that is used each time.

PMPart uses the registered formats when exporting, but not yet when rendering 
a scene.

Andreas
-- 
--------------------------------------------------
 Andreas Zehender
 Master of Computer Science, Dipl. Ing. (BA)
 http://www.azweb.de
 [email protected] | [email protected]      
--------------------------------------------------

List archive and information: https://mail.kde.org/mailman/listinfo/kpovmodeler-devel