mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
56 lines
1.5 KiB
Objective-C
56 lines
1.5 KiB
Objective-C
//
|
|
// GLFileView.h
|
|
// GitX
|
|
//
|
|
// Created by German Laullon on 14/09/10.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBWebController.h"
|
|
#import "MGScopeBarDelegateProtocol.h"
|
|
#import "PBGitCommit.h"
|
|
#import "PBGitHistoryController.h"
|
|
#import "PBRefContextDelegate.h"
|
|
#import "SearchWebView.h"
|
|
|
|
@class PBGitGradientBarView;
|
|
|
|
@interface GLFileView : PBWebController <MGScopeBarDelegate> {
|
|
IBOutlet PBGitHistoryController* historyController;
|
|
IBOutlet MGScopeBar *typeBar;
|
|
NSMutableArray *groups;
|
|
NSString *logFormat;
|
|
NSString *diffType;
|
|
IBOutlet NSView *accessoryView;
|
|
IBOutlet NSSplitView *fileListSplitView;
|
|
IBOutlet NSSearchField *searchField;
|
|
PBGitTree *lastFile;
|
|
}
|
|
|
|
- (void)showFile;
|
|
- (void)didLoad;
|
|
- (NSString *)parseBlame:(NSString *)txt;
|
|
+ (NSString *)escapeHTML:(NSString *)txt;
|
|
+ (NSString *)parseDiff:(NSString *)txt;
|
|
+ (NSString *)parseDiffTree:(NSString *)txt withStats:(NSMutableDictionary *)stats;
|
|
+ (NSString *)getFileName:(NSString *)line;
|
|
|
|
+(BOOL)isStartDiff:(NSString *)line;
|
|
+(BOOL)isStartBlock:(NSString *)line;
|
|
|
|
+(NSArray *)getFilesNames:(NSString *)line;
|
|
+(BOOL)isBinaryFile:(NSString *)line;
|
|
+(NSString*)mimeTypeForFileName:(NSString*)file;
|
|
+(BOOL)isImage:(NSString*)file;
|
|
+(BOOL)isDiffHeader:(NSString*)line;
|
|
|
|
- (void) openFileMerge:(NSString*)file sha:(NSString *)sha sha2:(NSString *)sha2;
|
|
|
|
-(IBAction)updateSearch:(NSSearchField *)sender;
|
|
|
|
@property(retain) NSMutableArray *groups;
|
|
@property(retain) NSString *logFormat;
|
|
|
|
@end
|