mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Correct flip adjustment for table header.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ecf8c2aed
commit
3b7fca1db8
3 changed files with 27 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-10-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTableHeaderView.m (-drawRect:): Switch drawing cases for flipping.
|
||||
* Source/NSTableView.m (GSTableCornerView): Made flipped and
|
||||
adjust drawing code.
|
||||
|
||||
2007-10-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSDocument.m (-setPrintInfo:, -runPageLayout:): Move
|
||||
|
@ -16,7 +22,7 @@
|
|||
* Source/NSNibAXRelationshipConnector.m
|
||||
* Source/NSNibBindingConnector.m: Implementation of special
|
||||
connectors for Key-Value binding.
|
||||
* Source/NSSplitView.m: Added ode for keyed coding
|
||||
* Source/NSSplitView.m: Added code for keyed coding
|
||||
|
||||
2007-10-02 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
lastColumnToDraw = [_tableView numberOfColumns] - 1;
|
||||
|
||||
drawingRect = [self headerRectOfColumn: firstColumnToDraw];
|
||||
if ([self isFlipped])
|
||||
if (![self isFlipped])
|
||||
{
|
||||
drawingRect.origin.y++;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@
|
|||
NSRectEdge dn_sides[] = {NSMaxYEdge, NSMaxXEdge};
|
||||
float grays[] = {NSBlack, NSBlack};
|
||||
|
||||
if ([self isFlipped])
|
||||
if (![self isFlipped])
|
||||
{
|
||||
NSDrawTiledRects(_bounds, aRect, up_sides, grays, 2);
|
||||
}
|
||||
|
|
|
@ -1923,18 +1923,30 @@ static void computeNewSelection
|
|||
|
||||
@implementation GSTableCornerView
|
||||
|
||||
- (BOOL) isFlipped
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void) drawRect: (NSRect)aRect
|
||||
{
|
||||
NSRect divide = NSMakeRect (aRect.origin.x, aRect.origin.y, aRect.size.width, 1);
|
||||
NSRect rect = aRect;
|
||||
rect.origin.y += 1;
|
||||
rect.size.height -= 1;
|
||||
NSRect divide;
|
||||
NSRect rect;
|
||||
|
||||
if ([self isFlipped])
|
||||
{
|
||||
NSDivideRect(aRect, ÷, &rect, 1.0, NSMaxYEdge);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSDivideRect(aRect, ÷, &rect, 1.0, NSMinYEdge);
|
||||
}
|
||||
|
||||
[[NSColor blackColor] set];
|
||||
NSRectFill (divide);
|
||||
NSRectFill(divide);
|
||||
rect = [[GSTheme theme] drawDarkButton: rect withClip: aRect];
|
||||
[[NSColor controlShadowColor] set];
|
||||
NSRectFill (rect);
|
||||
NSRectFill(rect);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue