HistoryController: Use a programatically created context menu
[GitX.git] / PBRefController.h
blob0706fc5c9381680cdfafa15f8fa5014cda518c7d
1 //
2 // PBLabelController.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 21-10-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitHistoryController.h"
11 #import "PBCommitList.h"
12 #import "PBGitRef.h"
13 #import "PBGitCommit.h"
14 #import "PBRefContextDelegate.h"
16 @interface PBRefController : NSObject <PBRefContextDelegate> {
17 IBOutlet __weak PBGitHistoryController *historyController;
18 IBOutlet NSArrayController *commitController;
19 IBOutlet PBCommitList *commitList;
21 IBOutlet NSWindow *newBranchSheet;
22 IBOutlet NSTextField *newBranchName;
23 IBOutlet NSTextField *errorMessage;
25 IBOutlet NSPopUpButton *branchPopUp;
28 - (IBAction)addRef:(id)sender;
29 - (IBAction)closeSheet:(id) sender;
30 - (IBAction)saveSheet:(id) sender;
32 - (NSArray *) menuItemsForRef:(PBGitRef *)ref commit:(PBGitCommit *)commit;
34 - (void) changeBranch:(NSMenuItem *)sender;
35 - (void) selectCurrentBranch;
36 - (void) updateBranchMenu;
38 @end