Dynamic creation of XMLGuiClients (plugins)

Matthias Kretz kretz at kde.org
Sat Jan 4 22:12:24 GMT 2003


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

On Saturday 04 January 2003 22:41, David Faure wrote:
> On Saturday 04 January 2003 21:25, Matthias Kretz wrote:
> > This is what KView does for loading and merging:
> >
> > KConfigGroup cfgGroup( config, "KParts Plugins" );
> >
> > for( QValueList<KPluginSelectorPrivate::PluginInfo>::Iterator it =
> > d->pluginInfos.begin(); it != d->pluginInfos.end(); ++
> > it )
> >   cfgGroup.writeEntry( ( *it ).pluginname + "Enabled", ( *it
> > ).item->isOn() );
>
> Sounds like we should have an updatePlugins() method that compares the
> loaded plugins with the enabled/disabled ones, and adds/removes those that
> need to be added/removed...

Yep, that would help. And it's actually what 
createGUI( 0 );
createShellGUI( false );
createGUI( m_pViewer );
does. A seperate method could work with a little less instructions though ;-)

- -- 
C'ya
        Matthias
________________________________________________________
Matthias Kretz (Germany)                          <><
http://Vir.homeip.net/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+F1xIyg4WnCj6OIoRAgpYAJ0XwDuqDWOkRVCiqCuUx6fKnAcrLQCdH6d3
xfvYF7IL0UnqaF9l6D2zjVg=
=Oyqa
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list