mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
916711324f
We shouldn't need to do this, but we still need to, because our index operations are split between two different controllers, which is a bit odd.
44 lines
1.0 KiB
Objective-C
44 lines
1.0 KiB
Objective-C
//
|
|
// PBGitIndexController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 18-11-08.
|
|
// Copyright 2008 Pieter de Bie. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitCommitController.h"
|
|
#import "PBChangedFile.h"
|
|
|
|
@interface PBGitIndexController : NSObject {
|
|
int contextSize;
|
|
|
|
IBOutlet NSArrayController *stagedFilesController, *unstagedFilesController;
|
|
IBOutlet PBGitCommitController *commitController;
|
|
|
|
IBOutlet PBIconAndTextCell* unstagedButtonCell;
|
|
IBOutlet PBIconAndTextCell* stagedButtonCell;
|
|
|
|
IBOutlet NSTableView *unstagedTable;
|
|
IBOutlet NSTableView *stagedTable;
|
|
}
|
|
|
|
@property (assign) int contextSize;
|
|
|
|
- (NSString *) contextParameter;
|
|
|
|
- (void) stageFiles:(NSArray *)files;
|
|
- (void) unstageFiles:(NSArray *)files;
|
|
|
|
- (IBAction) rowClicked:(NSCell *) sender;
|
|
- (IBAction) tableClicked:(NSTableView *)tableView;
|
|
|
|
- (NSString *) stagedChangesForFile:(PBChangedFile *)file;
|
|
- (NSString *) unstagedChangesForFile:(PBChangedFile *)file;
|
|
|
|
- (void)stopTrackingIndex;
|
|
- (void)resumeTrackingIndex;
|
|
|
|
- (NSMenu *) menuForTable:(NSTableView *)table;
|
|
@end
|