Changeset 23985
- Timestamp:
- 06/14/2008 09:23:52 PM (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/Adium Framework/Source/AIAbstractListController.m
r23983 r23985 408 408 } 409 409 410 //Collapsed group counting 411 //The preference is to hide (so that by default it's NO), so invert it 412 [groupCell setShowCollapsedCount:![[[NSUserDefaults standardUserDefaults] objectForKey:@"AIHideCollapsedGroupCount"] boolValue]]; 413 410 414 //Fonts 411 415 NSFont *theFont; trunk/Frameworks/Adium Framework/Source/AIListGroupCell.h
r23671 r23985 25 25 BOOL drawsBackground; 26 26 BOOL drawsGradientEdges; 27 BOOL showCollapsedCount; 27 28 NSLayoutManager *layoutManager; 28 29 … … 32 33 33 34 - (int)flippyIndent; 35 - (void)setShowCollapsedCount:(BOOL)inValue; 34 36 - (void)setShadowColor:(NSColor *)inColor; 35 37 - (NSColor *)shadowColor; trunk/Frameworks/Adium Framework/Source/AIListGroupCell.m
r23710 r23985 112 112 } 113 113 114 - (void)setShowCollapsedCount:(BOOL)inValue 115 { 116 showCollapsedCount = inValue; 117 } 118 114 119 115 120 … … 146 151 [displayName release]; 147 152 148 if (([[listObject displayArrayObjectForKey:@"Show Count"] boolValue] || ![controlView isItemExpanded:listObject]) && 149 [listObject displayArrayObjectForKey:@"Count Text"]) { 153 if ((([[listObject displayArrayObjectForKey:@"Show Count"] boolValue]) || 154 ((showCollapsedCount) && 155 (![controlView isItemExpanded:listObject]))) && 156 ([listObject displayArrayObjectForKey:@"Count Text"])) { 150 157 NSAttributedString *countText = [[NSAttributedString alloc] initWithString:[listObject displayArrayObjectForKey:@"Count Text"] attributes:[self labelAttributes]]; 151 158 width += ceil([countText size].width) + 1; … … 198 205 // } 199 206 200 if ([[listObject displayArrayObjectForKey:@"Show Count"] boolValue] || ![controlView isItemExpanded:listObject]) { 207 if (([[listObject displayArrayObjectForKey:@"Show Count"] boolValue]) || 208 ((showCollapsedCount) && 209 (![controlView isItemExpanded:listObject]))) { 201 210 rect = [self drawGroupCountWithFrame:rect]; 202 211 }