[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: [kde-edu-devel] possible design math app
From:       Eva Brucherseifer <eva () kde ! org>
Date:       2002-08-11 12:39:38
[Download RAW message or body]

-----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 
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 the 
desktop file:
ServiceTypes=KEduParts/MathLearning,KEduParts/MathTraining

where KEduParts should be renamed to KEduPlugins to reflects, that it's about 
plugins and not about document-oriented parts.

it could also be:
ServiceTypes=KEduPlugins/Math,KEduPlugins/Learning,KEduPlugins/Training


>
> Cheers,
> Kevin

Thanks for your input,
eva
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9VlsKTaAgihPikKQRAqSBAJ9L5w8mVyHkgx59OTVhIAXGR2iHwwCgkBza
AkJpqBjkUlBrIDhXtlshjOM=
=+dHS
-----END PGP SIGNATURE-----

_______________________________________________
kde-edu-devel mailing list
kde-edu-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-edu-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic