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
This commit is contained in:
Nicola Pero 1999-11-16 23:51:01 +00:00
parent a5f9364730
commit b2bce51f18

View file

@ -1131,14 +1131,12 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
- (id) nextText - (id) nextText
{ {
// TODO return _nextKeyView;
return nil;
} }
- (id) previousText - (id) previousText
{ {
// TODO return _previousKeyView;
return nil;
} }
- (void) textDidBeginEditing: (NSNotification*)notification - (void) textDidBeginEditing: (NSNotification*)notification
@ -1165,12 +1163,12 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
- (void) setNextText: (id)anObject - (void) setNextText: (id)anObject
{ {
// TODO [self setNextKeyView: anObject];
} }
- (void) setPreviousText: (id)anObject - (void) setPreviousText: (id)anObject
{ {
// TODO [self setPreviousKeyView: anObject];
} }
- (void) setValidateSize: (BOOL)flag - (void) setValidateSize: (BOOL)flag
@ -1267,6 +1265,11 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
[self drawCellAtRow: i column: j]; [self drawCellAtRow: i column: j];
} }
- (BOOL) isOpaque
{
return drawsBackground;
}
- (void) drawCellAtRow: (int)row column: (int)column - (void) drawCellAtRow: (int)row column: (int)column
{ {
NSCell *aCell = [self cellAtRow: row column: column]; NSCell *aCell = [self cellAtRow: row column: column];
@ -2145,14 +2148,6 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
[self setNeedsDisplay: YES]; [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; - (void) keyDown: (NSEvent *)theEvent;
{ {
unsigned int flags = [theEvent modifierFlags]; unsigned int flags = [theEvent modifierFlags];
@ -2174,7 +2169,7 @@ fprintf(stderr, " NSMatrix: selectTextAtRow --- ");
} }
// Hide the cursor during typing // Hide the cursor during typing
[NSCursor hide]; // [NSCursor hide];
[selectedCell _handleKeyEvent: theEvent]; [selectedCell _handleKeyEvent: theEvent];
[selectedCell drawInteriorWithFrame: rect inView: self]; [selectedCell drawInteriorWithFrame: rect inView: self];