[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:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2002-08-11 14:20:35
[Download RAW message or body]

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

On Sunday, 11. August 2002 14:39, Eva Brucherseifer wrote:
> > 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?

Both.
Kmud, the application, embeds KmudParts which are direct subclasses of 
KParts::Part.
Currently we have only one such KmudPart called mapper.
Mapper uses KParts::Plugin subclasses called CMapPluginBase to extend 
itself (such a plugin can provide views and tools, where tools are merged 
into a mapper toolbar and a tool menu)

> > 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?

Yes, think so, mappers actions are merged without problems.

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

IMHO that depends on the definition of "document".
A lesson or lesson collection could be seen as a document too.

Anyway, the document related API (openURL, etc) is introduced at 
KParts::ReadOnlyPart. If you subclass KParts::Part directly, you don't 
have to implement ULR related things.

Cheers,
Kevin

- -- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9VnLCnKMhG6pzZJIRAsOgAJ0Yl0h7SGpQZGiuHUNGnDzhj+4j7QCfUItf
/q9r0eabRak/QBcQjFTE+M8=
=SsiG
-----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