=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > On Sunday, 11. August 2002 12:00, Eva Brucherseifer wrote: > > The large difference to kparts is here, that kparts are based on > > mimetypes and that they always have an attached document. > > Kparts-plugins also exist, but they don't have widgets. So we need > > something new here. > > AFAIK KParts::Plugins can have widgets, they just don't have to. > And again AFAIK, you don't have to use either MIME type or document with > kparts. Ohh, cool - I'll have a look at that then :-) > > Actually I know that above things work, because we (as in developers of > Kmud) use kparts and plugins that way :) > (using KTraders to query and load them) KParts::Plugins or KParts::ReadOnlyPart/ReadWritePart? > > > So how would I proceed.... > > - first I'd take ktt (or any other little math app) into a kpart. > > - implement a new interface class for kedupart (which would go into a > > new lib: libeduparts), inspired by the kparts code > > We subclassed KParts::KPart to get a customized Part with additonal > interface > (see lib/kmudpart.h in kmud2 sources) So KPart is the generic parent class which enables you do to the widget=20 embedding and the xmlgui? > > > - check with other KDE people if ktrader can be extended or reimplement > > something similar > > You can query for services implementing your own ServiceType. > (see kmud/kmudcore.cpp method loadPart in kmud2 sources for loading > KmudParts and parts/mapper/cmapmanager.cpp method initPlugins for loading > plugins which can use widgets) Even better :-) I already used such servicetypes already in my example of t= he=20 desktop file: ServiceTypes=3DKEduParts/MathLearning,KEduParts/MathTraining where KEduParts should be renamed to KEduPlugins to reflects, that it's abo= ut=20 plugins and not about document-oriented parts. it could also be: ServiceTypes=3DKEduPlugins/Math,KEduPlugins/Learning,KEduPlugins/Training > > Cheers, > Kevin Thanks for your input, eva =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9VlsKTaAgihPikKQRAqSBAJ9L5w8mVyHkgx59OTVhIAXGR2iHwwCgkBza AkJpqBjkUlBrIDhXtlshjOM=3D =3D+dHS =2D----END PGP SIGNATURE----- _______________________________________________ kde-edu-devel mailing list kde-edu-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-edu-devel