From kde-core-devel Wed Oct 03 20:34:11 2007 From: Christoph Cullmann Date: Wed, 03 Oct 2007 20:34:11 +0000 To: kde-core-devel Subject: Re: HighlightInterface Message-Id: <200710032234.11744.cullmann () babylon2k ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119144371910304 Am Mittwoch, 3. Oktober 2007 13:54:48 schrieb Anders Lund: > On Wednesday 03 October 2007, Christoph Cullmann wrote: > > Am Mittwoch, 3. Oktober 2007 10:29:30 schrieb Thomas Zander: > > > > virtual QString highlightSection( QString highlightName ) = 0; > > > > > > highlightName should be a const ref. > > > > I would be ok with a function > > > > virtual QString highlightingModeSection (const QString &name) = 0; > > Returning the section name of highlight with *name* > > > but in addition, a > > > > virtual QString modeSection (const QString &name) = 0; > > > > should be added, too, to have the section of modes available, too. > > What is the difference between the two? The mode is a more highlevel concept, see the thread on kwrite-devel some months ago. As the both concepts are linked, it would make sense to have the method to query the section either for both or for none. cu Christoph -- Christoph Cullmann KDE Developer, Kate Maintainer http://babylon2k.de, cullmann@kde.org