From kde-edu-devel Sun Aug 11 11:56:58 2002 From: Kevin Krammer Date: Sun, 11 Aug 2002 11:56:58 +0000 To: kde-edu-devel Subject: Re: [kde-edu-devel] possible design math app X-MARC-Message: https://marc.info/?l=kde-edu-devel&m=102906720519900 -----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=20 kparts. Actually I know that above things work, because we (as in developers of=20 Kmud) use kparts and plugins that way :) (using KTraders to query and load them) > 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=20 interface (see lib/kmudpart.h in kmud2 sources) > - 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=20 KmudParts and parts/mapper/cmapmanager.cpp method initPlugins for loading= =20 plugins which can use widgets) Cheers, Kevin - --=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Krammer Developer at the Kmud Project http://www.kmud.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9VlEQnKMhG6pzZJIRAkfaAJ4iOuz8ROeRjBhFIx0dSciIFLAbYwCeKQQr WNIvjYDvkRIoI7E2q78kas0=3D =3DFjvr -----END PGP SIGNATURE----- _______________________________________________ kde-edu-devel mailing list kde-edu-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-edu-devel