Added methods for drawing tableheader cell.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-11-27 03:51:13 +00:00
parent 5751234b4b
commit 942841a1d4
4 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2010-11-26 Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeDrawing.m: Added methods to draw NSSliderCell view.
* Source/NSTableHeaderCell.m: Added call in
tableHeaderCellDrawingRectForBounds: to drawing methods in GSTheme.
* Headers/Additions/GNUstepGUI/GSTheme.h:
Added declaration for new method.
2010-11-26 Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeDrawing.m: Added methods to draw NSSliderCell view.

View file

@ -963,6 +963,8 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
flipped: (BOOL)flipped;
- (void) drawKnobInCell: (NSCell *)cell;
- (NSRect) tableHeaderCellDrawingRectForBounds: (NSRect)theRect;
@end
/**

View file

@ -2051,4 +2051,14 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
[sliderCell knobRectFlipped:
[controlView isFlipped]]];
}
- (NSRect) tableHeaderCellDrawingRectForBounds: (NSRect)theRect
{
NSSize borderSize;
// This adjustment must match the drawn border
borderSize = NSMakeSize(1, 1);
return NSInsetRect(theRect, borderSize.width, borderSize.height);
}
@end

View file

@ -53,12 +53,7 @@
- (NSRect) drawingRectForBounds: (NSRect)theRect
{
NSSize borderSize;
// This adjustment must match the drawn border
borderSize = NSMakeSize(1, 1);
return NSInsetRect(theRect, borderSize.width, borderSize.height);
return [[GSTheme theme] tableHeaderCellDrawingRectForBounds: theRect];
}
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame