KompareDiff2::DiffHunk

Search for usage in LXR

KompareDiff2::DiffHunk Class Reference

#include <diffhunk.h>

Public Types

enum  Type { Normal , AddedByBlend }
 

Public Member Functions

 DiffHunk (int sourceLine, int destinationLine, const QString &function=QString(), Type type=Normal)
 
void add (Difference *diff)
 
int destinationLineCount () const
 
int destinationLineNumber () const
 
DifferenceList differences () const
 
QString function () const
 
QString recreateHunk () const
 
void setType (Type type)
 
int sourceLineCount () const
 
int sourceLineNumber () const
 
Type type () const
 

Detailed Description

DiffHunk.

Definition at line 26 of file diffhunk.h.

Member Enumeration Documentation

◆ Type

enum KompareDiff2::DiffHunk::Type

Definition at line 29 of file diffhunk.h.

Constructor & Destructor Documentation

◆ DiffHunk()

DiffHunk::DiffHunk ( int sourceLine,
int destinationLine,
const QString & function = QString(),
Type type = Normal )

Definition at line 16 of file diffhunk.cpp.

Member Function Documentation

◆ add()

void DiffHunk::add ( Difference * diff)

Definition at line 65 of file diffhunk.cpp.

◆ destinationLineCount()

int DiffHunk::destinationLineCount ( ) const

Definition at line 85 of file diffhunk.cpp.

◆ destinationLineNumber()

int DiffHunk::destinationLineNumber ( ) const

Definition at line 44 of file diffhunk.cpp.

◆ differences()

DifferenceList DiffHunk::differences ( ) const

Definition at line 23 of file diffhunk.cpp.

◆ function()

QString DiffHunk::function ( ) const

Definition at line 30 of file diffhunk.cpp.

◆ recreateHunk()

QString DiffHunk::recreateHunk ( ) const

Definition at line 98 of file diffhunk.cpp.

◆ setType()

void DiffHunk::setType ( Type type)

Definition at line 58 of file diffhunk.cpp.

◆ sourceLineCount()

int DiffHunk::sourceLineCount ( ) const

Definition at line 72 of file diffhunk.cpp.

◆ sourceLineNumber()

int DiffHunk::sourceLineNumber ( ) const

Definition at line 37 of file diffhunk.cpp.

◆ type()

DiffHunk::Type DiffHunk::type ( ) const

Definition at line 51 of file diffhunk.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.