Changeset 734


Ignore:
Timestamp:
Aug 7, 2006, 1:03:14 AM (17 years ago)
Author:
livings124
Message:

Play sound when seeding completes.

Location:
trunk/macosx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r733 r734  
    13451345    [fInfoController updateInfoStatsAndSettings];
    13461346   
     1347    if ([fDefaults boolForKey: @"PlaySeedingSound"])
     1348    {
     1349        NSSound * sound;
     1350        if ((sound = [NSSound soundNamed: @"Submarine"]))
     1351            [sound play];
     1352    }
     1353   
    13471354    [GrowlApplicationBridge notifyWithTitle: @"Seeding Complete" description: [[notification object] name]
    13481355        notificationName: GROWL_SEEDING_COMPLETE iconData: nil priority: 0 isSticky: NO clickContext: nil];
  • trunk/macosx/Defaults.plist

    r733 r734  
    33<plist version="1.0">
    44<dict>
    5         <key></key>
    6         <string></string>
    75        <key>AutoImport</key>
    86        <false/>
     
    5351        <key>PlayDownloadSound</key>
    5452        <true/>
     53        <key>PlaySeedingSound</key>
     54        <false/>
    5555        <key>RatioCheck</key>
    5656        <false/>
  • trunk/macosx/English.lproj/PrefsWindow.nib/classes.nib

    r733 r734  
    4141                fNetworkView = NSView;
    4242                fPlayDownloadSoundCheck = NSButton;
     43                fPlaySeedingSoundCheck = NSButton;
    4344                fPortField = NSTextField;
    4445                fQuitCheck = NSButton;
  • trunk/macosx/English.lproj/PrefsWindow.nib/info.nib

    r733 r734  
    1212                <string>139 281 538 290 0 0 1152 842 </string>
    1313                <key>41</key>
    14                 <string>161 333 584 355 0 0 1152 842 </string>
     14                <string>115 371 538 378 0 0 1152 842 </string>
    1515                <key>66</key>
    1616                <string>353 613 538 104 0 0 1152 842 </string>
  • trunk/macosx/PrefsController.h

    r733 r734  
    3838                            * fQuitDownloadingCheck, * fRemoveDownloadingCheck,
    3939                            * fBadgeDownloadRateCheck, * fBadgeUploadRateCheck,
    40                             * fPlayDownloadSoundCheck,
     40                            * fPlayDownloadSoundCheck, * fPlaySeedingSoundCheck,
    4141                            * fCopyTorrentCheck, * fDeleteOriginalTorrentCheck,
    4242                            * fAutoImportCheck, * fAutoSizeCheck;
  • trunk/macosx/PrefsController.m

    r733 r734  
    194194    //set play sound
    195195    [fPlayDownloadSoundCheck setState: [fDefaults boolForKey: @"PlayDownloadSound"]];
     196    [fPlaySeedingSoundCheck setState: [fDefaults boolForKey: @"PlaySeedingSound"]];
    196197   
    197198    //set start setting
     
    516517- (void) setPlaySound: (id) sender
    517518{
    518     [fDefaults setBool: [sender state] forKey: @"PlayDownloadSound"];
     519    if (sender == fPlayDownloadSoundCheck)
     520        [fDefaults setBool: [sender state] forKey: @"PlayDownloadSound"];
     521    else if (sender == fPlaySeedingSoundCheck)
     522        [fDefaults setBool: [sender state] forKey: @"PlaySeedingSound"];
     523    else;
    519524}
    520525
Note: See TracChangeset for help on using the changeset viewer.