Files
gitx/PBGitIndexController.h
T
Pieter de Bie 9c4c2a347b CommitView: Allow changing of context size
This adds a slider in the commit view with
which the user can change the context size.

This is useful for example if the hunks are too
big; by changing the context size, a hunk can be
split and then the changes can be committed.
2009-01-19 21:37:37 +00:00

39 lines
969 B
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;
@end