diff view

Andreas Pakulat apaku at gmx.de
Fri Dec 7 20:01:59 UTC 2007


On 07.12.07 20:29:30, Vladimir Prus wrote:
> I would like to eventually implement a special view for diff files.

Thats coincidence. I just today took a look again at kompare and kdiff3
:)

> That is, when a file with extension .diff is opened, I don't want it
> to be opened with Kate, but rather using a custom code, that will
> allow, among other things, to apply individual hunks of the diff file.
> (Whether such custom code will be implementing using Kompare, or really
> custom code, is not important here).
> 
> So, how can I make kdevelop, when opening file with specific extension
> or mime type, to use a designated plugin?

Provide your own IDocument implementation and register it with the
document controller. Check the designer plugin for details.

And btw: I want a special diff-view as well for the VCS integration. My
main goals there are:

- side-by-side view of 2 files and "connection" of diff-hunks, similar
  to eclipse

- 3 way diff+merge support, for merging conflicts

Basically I'd like to have kdiff3 (including an editor area) integrated
into KDevelop4. But that would mean porting it to KDE4 first (and
kompare is unmaintained since quite some time now)

Andreas

-- 
You are fighting for survival in your own sweet and gentle way.




More information about the KDevelop-devel mailing list