add group menu to open window

This commit is contained in:
Mitchell Livingston
2008-01-04 14:50:28 +00:00
parent 1647bd629a
commit 05dbbc028c
3 changed files with 380 additions and 245 deletions

View File

@@ -24,6 +24,7 @@
#import "AddWindowController.h"
#import "Controller.h"
#import "GroupsWindowController.h"
#import "NSStringAdditions.h"
#import "ExpandedPathToIconTransformer.h"
@@ -35,8 +36,6 @@
@implementation AddWindowController
#warning add check to delete torrent file
- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path controller: (Controller *) controller
deleteTorrent: (torrentFileState) deleteTorrent
{
@@ -78,6 +77,10 @@
}
[fStatusField setStringValue: statusString];
#warning make dynamic
#warning reset if remove
[fGroupPopUp setMenu: [[GroupsWindowController groups] groupMenuWithTarget: nil action: NULL isSmall: NO]];
[fStartCheck setState: [[NSUserDefaults standardUserDefaults] boolForKey: @"AutoStartDownload"] ? NSOnState : NSOffState];
if (fDestination)
@@ -123,6 +126,7 @@
- (void) add: (id) sender
{
[fTorrent setWaitToStart: [fStartCheck state] == NSOnState];
[fTorrent setGroupValue: [[fGroupPopUp selectedItem] tag]];
[fController askOpenConfirmed: fTorrent];