From b2bce51f183713507aa6e03b7dcffb2aa182e975 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 16 Nov 1999 23:51:01 +0000 Subject: [PATCH] Added isOpaque; implemented nextText & co. methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5215 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMatrix.m | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/Source/NSMatrix.m b/Source/NSMatrix.m index 1bc4e0f55..e7d6016b5 100644 --- a/Source/NSMatrix.m +++ b/Source/NSMatrix.m @@ -1130,15 +1130,13 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- "); } - (id) nextText -{ -// TODO - return nil; +{ + return _nextKeyView; } - (id) previousText { -// TODO - return nil; + return _previousKeyView; } - (void) textDidBeginEditing: (NSNotification*)notification @@ -1165,12 +1163,12 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- "); - (void) setNextText: (id)anObject { -// TODO + [self setNextKeyView: anObject]; } - (void) setPreviousText: (id)anObject { -// TODO + [self setPreviousKeyView: anObject]; } - (void) setValidateSize: (BOOL)flag @@ -1267,6 +1265,11 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- "); [self drawCellAtRow: i column: j]; } +- (BOOL) isOpaque +{ + return drawsBackground; +} + - (void) drawCellAtRow: (int)row column: (int)column { NSCell *aCell = [self cellAtRow: row column: column]; @@ -2145,14 +2148,6 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- "); [self setNeedsDisplay: YES]; } -/* - * Get characters until you encounter - * a carriage return, return number of characters. - * Deal with backspaces, etc. Deal with Expose events - * on all windows associated with this application. - * Deal with keyboard remapping. - */ - - (void) keyDown: (NSEvent *)theEvent; { unsigned int flags = [theEvent modifierFlags]; @@ -2174,7 +2169,7 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- "); } // Hide the cursor during typing - [NSCursor hide]; + // [NSCursor hide]; [selectedCell _handleKeyEvent: theEvent]; [selectedCell drawInteriorWithFrame: rect inView: self];