Propagate settings from NSBrowser to underlying matrixes.

Stronger typing in NSBrowser.
Clearer drawing code in different classes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-02-02 21:01:43 +00:00
parent 63a87a8960
commit 50654211f6
5 changed files with 105 additions and 115 deletions

View file

@ -45,6 +45,7 @@
[self setFont: [NSFont titleBarFontOfSize: 0]];
// This is not exactly true
_cell.is_bezeled = YES;
_cell.is_bordered = NO;
return self;
}
@ -59,12 +60,9 @@
return NSInsetRect(theRect, borderSize.width, borderSize.height);
}
- (void) drawWithFrame: (NSRect)cellFrame
inView: (NSView *)controlView
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame
inView: (NSView*)controlView
{
if (NSIsEmptyRect(cellFrame))
return;
if (_cell.is_highlighted == YES)
{
[[GSTheme theme] drawButton: cellFrame withClip: cellFrame];
@ -73,8 +71,6 @@
{
[[GSTheme theme] drawDarkButton: cellFrame withClip: cellFrame];
}
[self drawInteriorWithFrame: cellFrame inView: controlView];
}
- (void) setHighlighted: (BOOL)flag