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

List:       kwrite-devel
Subject:    Re: Is KTextEditor::Document a real KPart::Part?
From:       Christoph Cullmann <cullmann () babylon2k ! de>
Date:       2005-06-27 21:26:35
Message-ID: 200506272326.38416 () cullmann
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 27 June 2005 21:11, Jeroen Wijnhout wrote:
> After taking a peak at KDevelop, it seems that one gets away with:
> 
> KTextEditor::Document *doc =
> static_cast<KTextEditor::Document*>(KTextEditor::EditorChooser::createDocument(...));
>  
> Looking at kdelibs/interfaces/ktexteditor/editor.h, I see:
> class KTEXTEDITOR_EXPORT Editor : public KParts::ReadWritePart
> {
> ...
> };
> 
> So the Editor interface does not explicitly inherit KTextEditor::Document, 
> probably most (all?) implementations inherits this interface. Is it safe to 
> rely on this?
in KDE 3.x, I guess, yes, as only yzis and kate part provide this interface at all \
(beside broken qeditor) and that will work there, for KDE 4, there is no \
KTextEditor::Editor any longer

-- 
Christoph Cullmann
KDE Developer, kde.org Maintainance Team
http://www.babylon2k.de, cullmann@kde.org


[Attachment #5 (application/pgp-signature)]

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


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

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