mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
bbeedd10ce
This uses more Cocoa classes to draw the lines, making it easier to understand and hopefully maintain. Furthermore, we use less memory now, which is nice, but all the dynamic arrays probably mean more CPU usage.
29 lines
522 B
Objective-C
29 lines
522 B
Objective-C
//
|
|
// PBGitGrapher.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 17-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitCommit.h"
|
|
#import "PBLine.h"
|
|
#import "PBGraphCellInfo.h"
|
|
|
|
struct PBGitGraphColumn {
|
|
NSString* commit; // Commit that we're looking for
|
|
int color;
|
|
};
|
|
|
|
|
|
#define PBGitMaxColumns 100
|
|
|
|
@interface PBGitGrapher : NSObject {
|
|
NSMutableArray* cellsInfo;
|
|
}
|
|
|
|
- (void) parseCommits: (NSArray *) array;
|
|
- (PBGraphCellInfo*) cellInfoForRow: (int) row;
|
|
@end
|