Documents without files?
Alexander Dymo
dymo at ukrpost.ua
Tue Oct 9 15:02:03 UTC 2007
On Tuesday 09 October 2007 00:20, Andreas Pakulat wrote:
> So are documents without actual url's possible with the current
> API/Platform?
If what you need is a text document shown in kate part without any url you can
use create PartDocument with KUrl() just like UiController::openEmptyDocument
does:
PartDocument *doc = new PartDocument(KUrl(), Core::self());
Sublime::View *view = doc->createView();
activeArea()->addView(view);
activeSublimeWindow()->activateView(view);
If you want your own document (say with your own diff widget), create your own
subclass of IDocument that returns KUrl() as url. Docs with empty urls
shouldn't break the shell (dunno about plugins that might rely on urls).
More information about the KDevelop-devel
mailing list