5 // Created by Pieter de Bie on 21-10-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitHistoryController.h"
11 #import "PBCommitList.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
;