mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Implement all op methods
This commit is contained in:
parent
fc617321fe
commit
40d84d7284
1 changed files with 80 additions and 13 deletions
|
@ -32,38 +32,105 @@
|
|||
|
||||
@implementation NSTextFinder
|
||||
|
||||
// Operation methods
|
||||
- (void) _showFindInterface
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _nextMatch
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _previousMatch
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _replaceAll
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _replace
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _replaceAndFind
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _setSearchString
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _replaceAllInSelection
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _selectAll
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _selectAllInSelection
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _hideFindInterface
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _showReplaceInterface
|
||||
{
|
||||
}
|
||||
|
||||
- (void) _hideReplaceInterface
|
||||
{
|
||||
}
|
||||
|
||||
// Validating and performing
|
||||
- (void) performAction: (NSTextFinderAction)op
|
||||
{
|
||||
switch (op)
|
||||
{
|
||||
case NSTextFinderActionShowFindInterface:
|
||||
break;
|
||||
[self _showFindInterface];
|
||||
break;
|
||||
case NSTextFinderActionNextMatch:
|
||||
break;
|
||||
[self _nextMatch];
|
||||
break;
|
||||
case NSTextFinderActionPreviousMatch:
|
||||
break;
|
||||
[self _previousMatch];
|
||||
break;
|
||||
case NSTextFinderActionReplaceAll:
|
||||
break;
|
||||
[self _replaceAll];
|
||||
break;
|
||||
case NSTextFinderActionReplace:
|
||||
break;
|
||||
[self _replace];
|
||||
break;
|
||||
case NSTextFinderActionReplaceAndFind:
|
||||
break;
|
||||
[self _replaceAndFind];
|
||||
break;
|
||||
case NSTextFinderActionSetSearchString:
|
||||
break;
|
||||
[self _setSearchString];
|
||||
break;
|
||||
case NSTextFinderActionReplaceAllInSelection:
|
||||
break;
|
||||
[self _replaceAllInSelection];
|
||||
break;
|
||||
case NSTextFinderActionSelectAll:
|
||||
break;
|
||||
[self _selectAll];
|
||||
break;
|
||||
case NSTextFinderActionSelectAllInSelection:
|
||||
break;
|
||||
[self _selectAllInSelection];
|
||||
break;
|
||||
case NSTextFinderActionHideFindInterface:
|
||||
break;
|
||||
[self _hideFindInterface];
|
||||
break;
|
||||
case NSTextFinderActionShowReplaceInterface:
|
||||
break;
|
||||
[self _showReplaceInterface];
|
||||
break;
|
||||
case NSTextFinderActionHideReplaceInterface:
|
||||
break;
|
||||
[self _hideReplaceInterface];
|
||||
break;
|
||||
default:
|
||||
NSLog(@"Unknown operation: %ld", op);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue