diff options
author | avenjamin <avenjamin@gmail.com> | 2009-06-10 11:25:33 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-06-10 11:25:33 +0000 |
commit | 65ad99e8fdbce63bcf65151d5f77403683959349 (patch) | |
tree | 969beaba0b5058f39d9668f67b3a9352806c55ad /Source/SPTableInfo.m | |
parent | 33f0e7a530714b3f95ef45860565934528b2f575 (diff) | |
download | sequelpro-65ad99e8fdbce63bcf65151d5f77403683959349.tar.gz sequelpro-65ad99e8fdbce63bcf65151d5f77403683959349.tar.bz2 sequelpro-65ad99e8fdbce63bcf65151d5f77403683959349.zip |
- Table Info pane now has fixed height
- Table Info pane is collapsable
- Export Controller code cleanup
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r-- | Source/SPTableInfo.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m index e9f3e3a1..9295aa38 100644 --- a/Source/SPTableInfo.m +++ b/Source/SPTableInfo.m @@ -159,6 +159,12 @@ return [info objectAtIndex:rowIndex]; } +- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row +{ + return (row == 0 ? 25 : [tableView rowHeight]); +} + + - (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(int)rowIndex { // row 1 and 6 should be editable - ie be able to rename the table and change the auto_increment value. @@ -176,9 +182,12 @@ if ((rowIndex > 0) && [[aTableColumn identifier] isEqualToString:@"info"]) { [(ImageAndTextCell*)aCell setImage:[NSImage imageNamed:@"table-property"]]; [(ImageAndTextCell*)aCell setIndentationLevel:1]; + [(ImageAndTextCell*)aCell setDrawsBackground:NO]; } else { [(ImageAndTextCell*)aCell setImage:nil]; [(ImageAndTextCell*)aCell setIndentationLevel:0]; + //[(ImageAndTextCell*)aCell setDrawsBackground:YES]; + //[(ImageAndTextCell*)aCell setBackgroundColor:[NSColor colorWithDeviceRed:0.894 green:0.917 blue:0.945 alpha:1]]; } } |