Changeset 2140


Ignore:
Timestamp:
Jun 17, 2007, 6:04:27 PM (15 years ago)
Author:
livings124
Message:

add a check box for opening torrent files in the app

Location:
branches/file_selection/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/CreatorWindowController.h

    r2137 r2140  
    3232    IBOutlet NSTextField * fNameField, * fStatusField, * fPiecesField, * fTrackerField, * fLocationField;
    3333    IBOutlet NSTextView * fCommentView;
    34     IBOutlet NSButton * fPrivateCheck;
     34    IBOutlet NSButton * fPrivateCheck, * fOpenCheck;
    3535   
    3636    IBOutlet NSView * fProgressView;
  • branches/file_selection/macosx/CreatorWindowController.m

    r2139 r2140  
    260260        else
    261261        {
    262             #warning make optional
    263             NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: fLocation, @"File",
    264                                     [fPath stringByDeletingLastPathComponent], @"Path", nil];
    265             [[NSNotificationCenter defaultCenter] postNotificationName: @"OpenCreatedTorrentFile" object: self userInfo: dict];
     262            if ([fOpenCheck state] == NSOnState)
     263            {
     264                NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: fLocation, @"File",
     265                                        [fPath stringByDeletingLastPathComponent], @"Path", nil];
     266                [[NSNotificationCenter defaultCenter] postNotificationName: @"OpenCreatedTorrentFile" object: self userInfo: dict];
     267            }
    266268        }
    267269       
  • branches/file_selection/macosx/DragOverlayWindow.m

    r2137 r2140  
    117117        NSString * fileString;
    118118        if (fileCount == 1)
    119             fileString = NSLocalizedString(@"1 File, ", "Drag overlay -> drag files");
     119            fileString = NSLocalizedString(@"1 File, ", "Drag overlay -> torrents");
    120120        else
    121             fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files, ", "Drag overlay -> drag files"), fileCount];
     121            fileString= [NSString stringWithFormat: NSLocalizedString(@"%d Files, ", "Drag overlay -> torrents"), fileCount];
    122122         secondString = [fileString stringByAppendingString: secondString];
    123123    }
     
    127127    else
    128128    {
    129         name = [NSString stringWithFormat: NSLocalizedString(@"%d Torrent Files", "Drag overlay -> drag files"), count];
     129        name = [NSString stringWithFormat: NSLocalizedString(@"%d Torrent Files", "Drag overlay -> torrents"), count];
    130130        secondString = [secondString stringByAppendingString: @" Total"];
    131131    }
  • branches/file_selection/macosx/English.lproj/Creator.nib/classes.nib

    r2130 r2140  
    1515                fLocationField = NSTextField;
    1616                fNameField = NSTextField;
     17                fOpenCheck = NSButton;
    1718                fPiecesField = NSTextField;
    1819                fPrivateCheck = NSButton;
  • branches/file_selection/macosx/English.lproj/Creator.nib/info.nib

    r2130 r2140  
    88        <dict>
    99                <key>56</key>
    10                 <string>365 224 368 126 0 0 1152 842 </string>
     10                <string>392 515 368 126 0 0 1152 842 </string>
    1111        </dict>
    1212        <key>IBFramework Version</key>
     
    1414        <key>IBOpenObjects</key>
    1515        <array>
     16                <integer>5</integer>
    1617                <integer>56</integer>
    17                 <integer>5</integer>
    1818        </array>
    1919        <key>IBSystem Version</key>
Note: See TracChangeset for help on using the changeset viewer.