Changeset 614
- Timestamp:
- Jul 16, 2006, 5:59:20 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.h
r606 r614 70 70 IBOutlet BarButton * fNoFilterButton, * fPauseFilterButton, 71 71 * fSeedFilterButton, * fDownloadFilterButton; 72 IBOutlet NSSearchField * fSearchFilterField; 72 73 73 74 IBOutlet NSMenuItem * fNextInfoTabItem, * fPrevInfoTabItem; … … 134 135 - (void) sortTorrentsIgnoreSelected; 135 136 - (void) setSort: (id) sender; 136 - (void) applyFilter ;137 - (void) applyFilter: (id) sender; 137 138 - (void) setFilter: (id) sender; 138 139 -
trunk/macosx/Controller.m
r606 r614 315 315 [[NSRunLoop currentRunLoop] addTimer: fAutoImportTimer forMode: NSDefaultRunLoopMode]; 316 316 317 [self applyFilter ];317 [self applyFilter: nil]; 318 318 319 319 [fWindow makeKeyAndOrderFront: nil]; … … 475 475 476 476 [self updateUI: nil]; 477 [self applyFilter ];477 [self applyFilter: nil]; 478 478 [self updateTorrentHistory]; 479 479 } … … 548 548 549 549 [self updateUI: nil]; 550 [self applyFilter ];550 [self applyFilter: nil]; 551 551 [fInfoController updateInfoStatsAndSettings]; 552 552 [self updateTorrentHistory]; … … 574 574 575 575 [self updateUI: nil]; 576 [self applyFilter ];576 [self applyFilter: nil]; 577 577 [fInfoController updateInfoStatsAndSettings]; 578 578 [self updateTorrentHistory]; … … 841 841 if ([torrent justFinished]) 842 842 { 843 [self applyFilter ];843 [self applyFilter: nil]; 844 844 [self checkToStartWaiting: torrent]; 845 845 … … 992 992 } 993 993 994 - (void) applyFilter 994 - (void) applyFilter: (id) sender 995 995 { 996 996 //remember selected rows if needed … … 1026 1026 else 1027 1027 [tempTorrents setArray: fTorrents]; 1028 1029 NSString * searchString = [fSearchFilterField stringValue]; 1030 if (![searchString isEqualToString: @""]) 1031 { 1032 int i; 1033 for (i = [tempTorrents count] - 1; i >= 0; i--) 1034 if ([[[tempTorrents objectAtIndex: i] name] rangeOfString: searchString 1035 options: NSCaseInsensitiveSearch].location == NSNotFound) 1036 [tempTorrents removeObjectAtIndex: i]; 1037 } 1028 1038 1029 1039 [fFilteredTorrents setArray: tempTorrents]; … … 1079 1089 } 1080 1090 1081 [self applyFilter ];1091 [self applyFilter: nil]; 1082 1092 } 1083 1093 … … 1199 1209 [torrentToStart startTransfer]; 1200 1210 1201 [self applyFilter ];1211 [self applyFilter: nil]; 1202 1212 [self updateUI: nil]; 1203 1213 [fInfoController updateInfoStatsAndSettings]; … … 1210 1220 [self attemptToStartMultipleAuto: [notification object]]; 1211 1221 1212 [self applyFilter ];1222 [self applyFilter: nil]; 1213 1223 [self updateUI: nil]; 1214 1224 [fInfoController updateInfoStatsAndSettings]; … … 1220 1230 [self attemptToStartMultipleAuto: fTorrents]; 1221 1231 1222 [self applyFilter ];1232 [self applyFilter: nil]; 1223 1233 [self updateUI: nil]; 1224 1234 [fInfoController updateInfoStatsAndSettings]; … … 1228 1238 - (void) torrentStoppedForRatio: (NSNotification *) notification 1229 1239 { 1230 [self applyFilter ];1240 [self applyFilter: nil]; 1231 1241 [fInfoController updateInfoStatsAndSettings]; 1232 1242 … … 1562 1572 - (void) toggleFilterBar: (id) sender 1563 1573 { 1574 if (!fFilterBarVisible) 1575 [fSearchFilterField setEnabled: YES]; 1576 1564 1577 [self showFilterBar: !fFilterBarVisible animate: YES]; 1565 1578 [fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"]; … … 1567 1580 //disable filtering when hiding 1568 1581 if (!fFilterBarVisible) 1582 { 1583 [fSearchFilterField setEnabled: NO]; 1584 [fSearchFilterField setStringValue: @""]; 1569 1585 [self setFilter: fNoFilterButton]; 1586 } 1570 1587 } 1571 1588 -
trunk/macosx/English.lproj/MainMenu.nib/classes.nib
r597 r614 4 4 { 5 5 ACTIONS = { 6 applyFilter = id; 6 7 checkUpdate = id; 7 8 copyTorrentFile = id; … … 55 56 fRatioSetItem = NSMenuItem; 56 57 fScrollView = NSScrollView; 58 fSearchFilterField = NSSearchField; 57 59 fSeedFilterButton = BarButton; 58 60 fSmallViewItem = NSMenuItem; -
trunk/macosx/English.lproj/MainMenu.nib/info.nib
r608 r614 12 12 <string>364 490 420 60 0 0 1152 842 </string> 13 13 <key>1603</key> 14 <string> 188 407477 65 0 0 1152 842 </string>14 <string>241 540 477 65 0 0 1152 842 </string> 15 15 <key>29</key> 16 16 <string>9 780 451 44 0 0 1152 842 </string> … … 32 32 <key>IBOpenObjects</key> 33 33 <array> 34 <integer>1603</integer> 34 35 <integer>29</integer> 35 <integer>1603</integer>36 36 </array> 37 37 <key>IBSystem Version</key> -
trunk/macosx/TorrentCell.m
r613 r614 286 286 isEqual: [NSColor alternateSelectedControlColor]]; 287 287 NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: 288 highlighted ? [NSColor whiteColor] : [NSColor blackColor], 289 NSForegroundColorAttributeName, 288 highlighted ? [NSColor whiteColor] : [NSColor blackColor], NSForegroundColorAttributeName, 290 289 [NSFont messageFontOfSize: 12.0], NSFontAttributeName, nil]; 291 290 NSDictionary * statusAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: 292 highlighted ? [NSColor whiteColor] : [NSColor darkGrayColor], 293 NSForegroundColorAttributeName, 291 highlighted ? [NSColor whiteColor] : [NSColor darkGrayColor], NSForegroundColorAttributeName, 294 292 [NSFont messageFontOfSize: 9.0], NSFontAttributeName, nil]; 295 293
Note: See TracChangeset
for help on using the changeset viewer.