Dynamic creation of XMLGuiClients (plugins)

David Faure dfaure at klaralvdalens-datakonsult.se
Sat Jan 4 21:40:46 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 04 January 2003 20:54, Andreas Zehender wrote:
> Hi!
> 
> I want to dynamical activate and deactivate plugins at runtime. If a plugin is 
> loaded at program start, the menu items are created. If the plugin is loaded 
> later at runtime, the plugins menu items are not created.
> 
> I load the plugins with the KParts::Plugin::loadPlugins( QObject*, 
> KXMLGUIClient*, KInstance*, bool ) method, the parent object and parent xml 
> gui client is a KParts::Part.
> 
> What is the most efficient way to trigger an update of the xml gui when a 
> XMLGuiClient is added?

factory()->removeClient() + factory()->addClient() ?

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+F1Te72KcVAmwbhARAt8WAJ0UcXhu7P/agRmq9XjTFwyIHINcxACdFByw
HwMssByT9xs9z6TBolEqQZI=
=Bjno
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list