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

List:       kdevelop-devel
Subject:    Re: Documents without files?
From:       Alexander Dymo <dymo () ukrpost ! ua>
Date:       2007-10-09 15:02:03
Message-ID: 200710091802.03471.dymo () ukrpost ! ua
[Download RAW message or body]

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).

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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