[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Dynamic creation of XMLGuiClients (plugins)
From: Matthias Kretz <kretz () kde ! org>
Date: 2003-01-04 22:12:24
[Download RAW message or body]
-----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@gmx.net, kretz@kde.org,
Matthias.Kretz@urz.uni-heidelberg.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE+F1xIyg4WnCj6OIoRAgpYAJ0XwDuqDWOkRVCiqCuUx6fKnAcrLQCdH6d3
xfvYF7IL0UnqaF9l6D2zjVg=
=Oyqa
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic