-
-
Notifications
You must be signed in to change notification settings - Fork 690
Expand file tree
/
Copy pathMMFindBarView.h
More file actions
37 lines (28 loc) · 1.1 KB
/
MMFindBarView.h
File metadata and controls
37 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* vi:set ts=8 sts=4 sw=4 ft=objc:
*
* VIM - Vi IMproved by Bram Moolenaar
* MacVim GUI port by Bjorn Winckler
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#import <Cocoa/Cocoa.h>
@class MMFindBarView;
@protocol MMFindBarViewDelegate <NSObject>
- (void)findBarView:(MMFindBarView *)view findNext:(BOOL)forward;
- (void)findBarView:(MMFindBarView *)view replace:(BOOL)replaceAll;
- (void)findBarViewDidClose:(MMFindBarView *)view;
// Returns the rect (in MMFindBarView's superview coordinates) within which the
// bar may be dragged. Typically this is the text-view frame, excluding the
// tabline and scrollbars.
- (NSRect)findBarViewDraggableBounds:(MMFindBarView *)view;
@end
@interface MMFindBarView : NSView <NSTextFieldDelegate>
@property (nonatomic, assign) id<MMFindBarViewDelegate> delegate;
- (void)showWithText:(NSString *)text flags:(int)flags;
- (NSString *)findString;
- (NSString *)replaceString;
- (BOOL)ignoreCase;
- (BOOL)matchWord;
@end