mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +00:00
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:
parent
a5f9364730
commit
b2bce51f18
1 changed files with 11 additions and 16 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue