5 // Created by Pieter de Bie on 19-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitCommit.h"
12 #import "PBViewController.h"
14 @interface PBGitHistoryController
: PBViewController
{
15 IBOutlet NSSearchField
*searchField
;
16 IBOutlet NSArrayController
* commitController
;
17 IBOutlet NSTreeController
* treeController
;
18 IBOutlet NSOutlineView
* fileBrowser
;
19 IBOutlet NSTableView
* commitList
;
25 PBGitCommit
* webCommit
;
26 PBGitCommit
* rawCommit
;
27 PBGitCommit
* realCommit
;
30 @
property (assign
) int selectedTab
;
31 @
property (retain
) PBGitCommit
*webCommit
, *rawCommit
;
32 @
property (retain
) PBGitTree
* gitTree
;
33 @
property (readonly
) NSArrayController
*commitController
;
35 - (IBAction
) setDetailedView
: sender
;
36 - (IBAction
) setRawView
: sender
;
37 - (IBAction
) setTreeView
: sender
;
39 - (void) selectCommit
: (NSString
*) commit
;
40 - (IBAction
) refresh
: sender
;
41 - (IBAction
) toggleQuickView
: sender
;
42 - (IBAction
) openSelectedFile
: sender
;
43 - (void) updateQuicklookForce
: (BOOL
) force
;
45 // Context menu methods
46 - (NSMenu
*)contextMenuForTreeView
;
47 - (NSArray
*)menuItemsForPaths
:(NSArray
*)paths
;
48 - (void)showCommitsFromTree
:(id
)sender
;
49 - (void)showInFinderAction
:(id
)sender
;
51 - (void) copyCommitInfo
;
53 - (BOOL
) hasNonlinearPath
;
55 - (NSMenu
*)tableColumnMenu
;