2 // PBGitIndexController.h
5 // Created by Pieter de Bie on 18-11-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitCommitController.h"
11 #import "PBChangedFile.h"
13 @interface PBGitIndexController
: NSObject
{
16 IBOutlet NSArrayController
*stagedFilesController
, *unstagedFilesController
;
17 IBOutlet PBGitCommitController
*commitController
;
19 IBOutlet PBIconAndTextCell
* unstagedButtonCell
;
20 IBOutlet PBIconAndTextCell
* stagedButtonCell
;
22 IBOutlet NSTableView
*unstagedTable
;
23 IBOutlet NSTableView
*stagedTable
;
26 @
property (assign
) int contextSize
;
28 - (NSString
*) contextParameter
;
30 - (void) stageFiles
:(NSArray
*)files
;
31 - (void) unstageFiles
:(NSArray
*)files
;
33 - (IBAction
) rowClicked
:(NSCell
*) sender
;
34 - (IBAction
) tableClicked
:(NSTableView
*)tableView
;
36 - (NSString
*) stagedChangesForFile
:(PBChangedFile
*)file
;
37 - (NSString
*) unstagedChangesForFile
:(PBChangedFile
*)file
;
39 - (NSMenu
*) menuForTable
:(NSTableView
*)table
;