#4902 Check all/Uncheck all buttons in the inspector

This commit is contained in:
Mitchell Livingston
2012-05-14 00:00:19 +00:00
parent 7a478b1e0e
commit 375f701203
5 changed files with 303 additions and 42 deletions

View File

@@ -378,6 +378,20 @@ typedef enum
[fOutline setNeedsDisplay: YES];
}
- (void) checkAll
{
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTorrent fileCount])];
[fTorrent setFileCheckState: NSOnState forIndexes: indexSet];
[fOutline setNeedsDisplay: YES];
}
- (void) uncheckAll
{
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTorrent fileCount])];
[fTorrent setFileCheckState: NSOffState forIndexes: indexSet];
[fOutline setNeedsDisplay: YES];
}
- (void) setPriority: (id) sender
{
tr_priority_t priority;