kdevelop/kdevelop/lib

Bernd Gehrmann bernd at physik.hu-berlin.de
Fri Jun 23 08:52:57 UTC 2000


On Fri, 23 Jun 2000, Simon Hausmann wrote:
> Out of curiousity: Why don't you make it inherit from KParts::Part ? :-)

Good question :-) This should be regarded as preliminary
(and it can easily be changed). I have the impression that 
the Part semantics do not fit well for components in general. 
A part is something that can be "activated", and the GUI of 
the application changes dependent on whether it's active or 
not. This is appropriate for the text editor or the html
viewer: when a text editor is active, the "Edit" menu should
have a "Search" item that searches in the text; when the
html view is active, the "Search" item should search in the
html content.

However, for other things, it's different: A "Grep" component
should always offer a menu item "Grep". The debugger should
always offer a menu item "Continue", regardless whether one
of its windows is focused or not. Maybe this can be achieved
with KParts, but I couldn't find any example doing it.

> Just a random thought :-) Feel free to ingore :-) (My opinion doesn't
> count as I didn't contribute - the one who codes decides :-)

Nooooo. Opinions of people who know what they're talking about
are _definitely_ important. Good advice on program design has
already saved lives ;-)

Bernd.





More information about the KDevelop-devel mailing list