Merge branch 'jake' of git://github.com/280north/cappuccino into jake

This commit is contained in:
Klaas Pieter Annema committed 2010-02-04 10:35:47 +01:00
commit 5f0a60f61c
3 files changed
+21 -8

No files matched your search

+13
View File
@@ -38,6 +38,14 @@ var CPThemeStatePressed = CPThemeState("pressed");
{
_textField = [[CPTextField alloc] initWithFrame:[self bounds]];
[_textField setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[_textField setTextColor: [CPColor colorWithHexString: @"333333"]];
[_textField setValue:[CPFont boldSystemFontOfSize:12.0] forThemeAttribute:@"font"];
[_textField setValue:CPLeftTextAlignment forThemeAttribute:@"alignment"];
[_textField setVerticalAlignment:CPCenterVerticalTextAlignment];
[_textField setValue:CGSizeMake(0,1) forThemeAttribute:@"text-shadow-offset"];
[_textField setValue:[CPColor whiteColor] forThemeAttribute:@"text-shadow-color"];
[self addSubview:_textField];
}
@@ -77,6 +85,11 @@ var CPThemeStatePressed = CPThemeState("pressed");
{
[_textField sizeToFit];
}
- (void)setValue:(id)aValue forThemeAttribute:(id)aKey
{
[_textField setValue:aValue forThemeAttribute:aKey];
}
@end
@implementation CPTableHeaderView : CPView
+7 -3
View File
@@ -2220,9 +2220,13 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
}
}
CGContextMoveToPoint(context, minX, maxY);
CGContextAddLineToPoint(context, maxX, maxY);
//if the row after the current row is not selected then there is no need to draw the bottom grid line white.
if([indexes containsObject:indexes[i]+1])
{
CGContextMoveToPoint(context, minX, maxY);
CGContextAddLineToPoint(context, maxX, maxY);
}
}
CGContextClosePath(context);
+1 -5
View File
@@ -22,7 +22,7 @@ CPLogRegister(CPLogConsole);
dataSet1 = [],
dataSet2 = [];
for(var i = 1; i < 100; i++)
for(var i = 1; i < 500000; i++)
{
dataSet1[i - 1] = i;
dataSet2[i - 1] = i + 10;
@@ -75,8 +75,6 @@ CPLogRegister(CPLogConsole);
var column = [[CPTableColumn alloc] initWithIdentifier:String(i)];
[[column headerView] setStringValue:"Number "+i];
[[column headerView] sizeToFit];
//[column setWidth:[[column headerView] frame].size.width + 20];
[column setWidth:200.0];
[column setMinWidth:150.0];
@@ -160,8 +158,6 @@ CPLogRegister(CPLogConsole);
var column = [[CPTableColumn alloc] initWithIdentifier:String(i)];
[[column headerView] setStringValue:"Number "+i];
[[column headerView] sizeToFit];
//[column setWidth:[[column headerView] frame].size.width + 20];
[column setWidth:200.0];
[column setMinWidth:150.0];