Files
textmate/Frameworks/OakAppKit/src/OakPasteboard.h
2014-03-02 21:10:15 +07:00

40 lines
1.3 KiB
Objective-C

#import <oak/oak.h>
#import <regexp/find.h> // for find::options_t
extern PUBLIC NSString* const OakReplacePboard;
extern PUBLIC NSString* const OakPasteboardDidChangeNotification;
extern PUBLIC NSString* const kUserDefaultsFindWrapAround;
extern PUBLIC NSString* const kUserDefaultsFindIgnoreCase;
extern PUBLIC NSString* const OakFindIgnoreWhitespaceOption;
extern PUBLIC NSString* const OakFindFullWordsOption;
extern PUBLIC NSString* const OakFindRegularExpressionOption;
PUBLIC @interface OakPasteboardEntry : NSManagedObject
@property (nonatomic) NSString* string;
@property (nonatomic) NSDictionary* options;
@property (nonatomic) BOOL fullWordMatch;
@property (nonatomic) BOOL ignoreWhitespace;
@property (nonatomic) BOOL regularExpression;
@property (nonatomic, readonly) find::options_t findOptions;
@end
PUBLIC @interface OakPasteboard : NSManagedObject
+ (OakPasteboard*)pasteboardWithName:(NSString*)aName;
- (void)addEntryWithString:(NSString*)aString;
- (void)addEntryWithString:(NSString*)aString andOptions:(NSDictionary*)someOptions;
- (OakPasteboardEntry*)previous;
- (OakPasteboardEntry*)current;
- (OakPasteboardEntry*)next;
@property (nonatomic) OakPasteboardEntry* currentEntry;
@property (nonatomic) NSDictionary* auxiliaryOptionsForCurrent;
- (void)selectItemForControl:(NSView*)controlView;
@end