mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Common file viewer for historic and commit views
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// FileViewerController.h
|
||||
// GitX
|
||||
//
|
||||
// Created by German Laullon on 11/06/10.
|
||||
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "MGScopeBar.h"
|
||||
#import "PBGitRepository.h"
|
||||
|
||||
@interface FileViewerController : NSViewController <MGScopeBarDelegate> {
|
||||
IBOutlet NSSegmentedCell *displayControl;
|
||||
IBOutlet MGScopeBar *scopeBar;
|
||||
IBOutlet WebView *webViewFileViwer;
|
||||
|
||||
NSMutableArray *groups;
|
||||
NSString *file;
|
||||
NSString *sha;
|
||||
|
||||
PBGitRepository *repository;
|
||||
|
||||
bool commit;
|
||||
}
|
||||
|
||||
- (id)initWithRepository:(PBGitRepository *)theRepository;
|
||||
- (void)showFile:(NSString *)file sha:(NSString *)sha;
|
||||
- (NSString*)refSpec;
|
||||
|
||||
-(NSString *)parseBlame:(NSString *)string;
|
||||
|
||||
@property(retain) NSMutableArray *groups;
|
||||
@property(readwrite) bool commit;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user