Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (54 sloc) 2.05 kb
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
1 //
708c08a @pieter First part of splitting views
pieter authored
2 // PBGitHistoryView.h
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
3 // GitX
4 //
708c08a @pieter First part of splitting views
pieter authored
5 // Created by Pieter de Bie on 19-09-08.
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitCommit.h"
11 #import "PBGitTree.h"
53dfea5 @pieter PBViewController: Extract common code to a superclass
pieter authored
12 #import "PBViewController.h"
d669050 @heipei Add PBCollapsibleSplitView as subclass of PBNiceSplitView
heipei authored
13 #import "PBCollapsibleSplitView.h"
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
14
53dfea5 @pieter PBViewController: Extract common code to a superclass
pieter authored
15 @interface PBGitHistoryController : PBViewController {
e329493 @pieter Move toolbar to view xib
pieter authored
16 IBOutlet NSSearchField *searchField;
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
17 IBOutlet NSArrayController* commitController;
cc6ac22 @pieter Allow double click to open file
pieter authored
18 IBOutlet NSTreeController* treeController;
19 IBOutlet NSOutlineView* fileBrowser;
23c9186 @pieter HistoryView: Allow creation of branches
pieter authored
20 IBOutlet NSTableView* commitList;
d669050 @heipei Add PBCollapsibleSplitView as subclass of PBNiceSplitView
heipei authored
21 IBOutlet PBCollapsibleSplitView *historySplitView;
4cefe8e @pieter HistoryView: Allow dragging of refs to move them
pieter authored
22
1028157 @pieter Fix memory leaks
pieter authored
23 IBOutlet id webView;
2b0a4da @ciaran There’s no need for selectedTab to be an NSNumber (and certainly not an ...
ciaran authored
24 int selectedTab;
708c08a @pieter First part of splitting views
pieter authored
25
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
26 PBGitTree* gitTree;
27 PBGitCommit* webCommit;
28 PBGitCommit* rawCommit;
29 PBGitCommit* realCommit;
30 }
31
2b0a4da @ciaran There’s no need for selectedTab to be an NSNumber (and certainly not an ...
ciaran authored
32 @property (assign) int selectedTab;
708c08a @pieter First part of splitting views
pieter authored
33 @property (retain) PBGitCommit *webCommit, *rawCommit;
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
34 @property (retain) PBGitTree* gitTree;
708c08a @pieter First part of splitting views
pieter authored
35 @property (readonly) NSArrayController *commitController;
0def8d3 @ciaran Splitting the window and it’s associated controllers into a separate nib...
ciaran authored
36
e6da252 @pieter Add shortcuts and menu items for different views
pieter authored
37 - (IBAction) setDetailedView: sender;
38 - (IBAction) setRawView: sender;
39 - (IBAction) setTreeView: sender;
40
8c076bb @pieter Fix the 'parent' link in commits
pieter authored
41 - (void) selectCommit: (NSString*) commit;
3c481e4 @pieter Add a Refresh menu item
pieter authored
42 - (IBAction) refresh: sender;
28e8bac @pieter Add QuickLook support in tree view
pieter authored
43 - (IBAction) toggleQuickView: sender;
cc6ac22 @pieter Allow double click to open file
pieter authored
44 - (IBAction) openSelectedFile: sender;
b18b957 @pieter Allow QuickLook to activate by pressing space
pieter authored
45 - (void) updateQuicklookForce: (BOOL) force;
1199c56 @pieter HistoryController: Use a programatically created context menu
pieter authored
46
47 // Context menu methods
48 - (NSMenu *)contextMenuForTreeView;
49 - (NSArray *)menuItemsForPaths:(NSArray *)paths;
dc234cf @heipei PBGitHistory: Add "Show in Finder" to files
heipei authored
50 - (void)showCommitsFromTree:(id)sender;
51 - (void)showInFinderAction:(id)sender;
7427cbe @pieter HistoryController: Add "Open Files" menu item
pieter authored
52 - (void)openFilesAction:(id)sender;
cc6ac22 @pieter Allow double click to open file
pieter authored
53
9f048f6 @brotherbard Update Create Branch
brotherbard authored
54 // Repository Methods
55 - (IBAction) createBranch:(id)sender;
56
de9f4dd @pieter HistoryView: Add copy behaviour in commit list
pieter authored
57 - (void) copyCommitInfo;
58
8c01a29 @pieter HistoryView: Don't show path lines if the list is changed
pieter authored
59 - (BOOL) hasNonlinearPath;
8273aec Allow a user to select which columns to display
Pieter de Bie authored
60
61 - (NSMenu *)tableColumnMenu;
d669050 @heipei Add PBCollapsibleSplitView as subclass of PBNiceSplitView
heipei authored
62
63 - (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview;
64 - (BOOL)splitView:(NSSplitView *)splitView shouldCollapseSubview:(NSView *)subview forDoubleClickOnDividerAtIndex:(NSInteger)dividerIndex;
65 - (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset;
66 - (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset;
67
d6a0b1b @pieter Use a separate controller for tabs
pieter authored
68 @end
Something went wrong with that request. Please try again.