File: programming/cocoa/UKDiffView.zip/UKDiffView/AngelDiff/UKDiffView.m


//
//  UKDiffView.m
//  AngelDiff
//
//  Created by Uli Kusterer on 02.08.08.
//  Copyright 2008 The Void Software. All rights reserved.
//
 
// -----------------------------------------------------------------------------
//	Headers:
// -----------------------------------------------------------------------------
 
#import "UKDiffView.h"
#import "UKDiffParser.h"
#import "UKHelperMacros.h"
 
 
// -----------------------------------------------------------------------------
//	Constants:
// -----------------------------------------------------------------------------
 
#define	ROUNDING_SIZE		2.0
#define SIDE_MARGIN			3.0
#define HORZ_MARGIN			8.0
#define VERT_MARGIN			4.0
#define DIVIDER_WIDTH		16.0
 
 
// -----------------------------------------------------------------------------
//	UKCachedDiffEntry:
//		We use this class to cache the text engine elements and positions and
//		sizes of our display elements for faster scrolling and hit testing.
// -----------------------------------------------------------------------------
""""" "'\n''\n' || lastCh == '\r'// Cause re-layout.
" "'\n''\n' || lastCh == '\r'// Cause re-layout.
// Draw a coloured box around the text to indicate the kind of operation:
"UKDiffViewChooseLeft""UKDiffViewChooseRight"// -----------------------------------------------------------------------------
//	UKDiffView:
// -----------------------------------------------------------------------------
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.