Merge branch 'pu/pb/index_quick_fix' into stable
[GitX.git] / PBGitIndexController.h
blob184d6706b2148af393c05b99e23b71b5af0564b4
1 //
2 // PBGitIndexController.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 18-11-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitCommitController.h"
11 #import "PBChangedFile.h"
13 @interface PBGitIndexController : NSObject {
14 int contextSize;
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 - (void)stopTrackingIndex;
40 - (void)resumeTrackingIndex;
42 - (NSMenu *) menuForTable:(NSTableView *)table;
43 @end