HistoryController: Use a programatically created context menu
[GitX.git] / PBGitHistoryController.h
blobf7298c40a9c969bf70c31b347d49a773e31e6821
1 //
2 // PBGitHistoryView.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 19-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitCommit.h"
11 #import "PBGitTree.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;
21 IBOutlet id webView;
22 int selectedTab;
24 PBGitTree* gitTree;
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;
56 @end