Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (47 sloc) 1.7 kB
//
// PBHistorySearchController.h
// GitX
//
// Created by Nathan Kinsinger on 8/21/10.
// Copyright 2010 Nathan Kinsinger. All rights reserved.
//
#import <Cocoa/Cocoa.h>
typedef enum historySearchModes {
kGitXBasicSeachMode = 1,
kGitXPickaxeSearchMode,
kGitXRegexSearchMode,
kGitXPathSearchMode,
kGitXMaxSearchMode // always keep this item last
} PBHistorySearchMode;
@class PBGitHistoryController;
@interface PBHistorySearchController : NSObject {
__unsafe_unretained PBGitHistoryController *historyController;
NSArrayController *commitController;
PBHistorySearchMode searchMode;
NSIndexSet *results;
NSSearchField *searchField;
NSSegmentedControl *stepper;
NSTextField *numberOfMatchesField;
NSProgressIndicator *progressIndicator;
NSTimer *searchTimer;
NSTask *backgroundSearchTask;
NSPanel *rewindPanel;
}
@property (unsafe_unretained) IBOutlet PBGitHistoryController *historyController;
@property (strong) IBOutlet NSArrayController *commitController;
@property (strong) IBOutlet NSSearchField *searchField;
@property (strong) IBOutlet NSSegmentedControl *stepper;
@property (strong) IBOutlet NSTextField *numberOfMatchesField;
@property (strong) IBOutlet NSProgressIndicator *progressIndicator;
@property (nonatomic,assign) PBHistorySearchMode searchMode;
- (BOOL)isRowInSearchResults:(NSInteger)rowIndex;
- (BOOL)hasSearchResults;
- (void)selectSearchMode:(id)sender;
- (void)selectNextResult;
- (void)selectPreviousResult;
- (IBAction)stepperPressed:(id)sender;
- (void)clearSearch;
- (IBAction)updateSearch:(id)sender;
- (void)setHistorySearch:(NSString *)searchString mode:(NSInteger)mode;
- (void)setSearchMode:(PBHistorySearchMode)mode;
@end
Jump to Line
Something went wrong with that request. Please try again.