mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add switch/case to handle app ops
This commit is contained in:
parent
214ff9e638
commit
fc617321fe
2 changed files with 36 additions and 5 deletions
|
@ -87,9 +87,9 @@ APPKIT_EXPORT NSPasteboardTypeTextFinderOptionKey const NSTextFinderMatchingType
|
|||
}
|
||||
|
||||
// Validating and performing
|
||||
- (void)performAction:(NSTextFinderAction)op;
|
||||
- (BOOL)validateAction:(NSTextFinderAction)op;
|
||||
- (void)cancelFindIndicator;
|
||||
- (void) performAction: (NSTextFinderAction)op;
|
||||
- (BOOL) validateAction: (NSTextFinderAction)op;
|
||||
- (void) cancelFindIndicator;
|
||||
|
||||
// Properties
|
||||
- (id<NSTextFinderClient>) client;
|
||||
|
|
|
@ -33,11 +33,42 @@
|
|||
@implementation NSTextFinder
|
||||
|
||||
// Validating and performing
|
||||
- (void)performAction:(NSTextFinderAction)op
|
||||
- (void) performAction: (NSTextFinderAction)op
|
||||
{
|
||||
switch (op)
|
||||
{
|
||||
case NSTextFinderActionShowFindInterface:
|
||||
break;
|
||||
case NSTextFinderActionNextMatch:
|
||||
break;
|
||||
case NSTextFinderActionPreviousMatch:
|
||||
break;
|
||||
case NSTextFinderActionReplaceAll:
|
||||
break;
|
||||
case NSTextFinderActionReplace:
|
||||
break;
|
||||
case NSTextFinderActionReplaceAndFind:
|
||||
break;
|
||||
case NSTextFinderActionSetSearchString:
|
||||
break;
|
||||
case NSTextFinderActionReplaceAllInSelection:
|
||||
break;
|
||||
case NSTextFinderActionSelectAll:
|
||||
break;
|
||||
case NSTextFinderActionSelectAllInSelection:
|
||||
break;
|
||||
case NSTextFinderActionHideFindInterface:
|
||||
break;
|
||||
case NSTextFinderActionShowReplaceInterface:
|
||||
break;
|
||||
case NSTextFinderActionHideReplaceInterface:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL)validateAction:(NSTextFinderAction)op
|
||||
- (BOOL) validateAction: (NSTextFinderAction)op
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue