Changeset 733
- Timestamp:
- Aug 7, 2006, 12:46:47 AM (17 years ago)
- Location:
- trunk/macosx
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r732 r733 897 897 [self applyFilter: nil]; 898 898 [self checkToStartWaiting: torrent]; 899 900 if ([fDefaults boolForKey: @"PlayDownloadSound"]) 901 { 902 NSSound * sound; 903 if ((sound = [NSSound soundNamed: @"Glass"])) 904 [sound play]; 905 } 899 906 900 907 [GrowlApplicationBridge notifyWithTitle: @"Download Complete" description: [torrent name] -
trunk/macosx/Defaults.plist
r695 r733 51 51 <key>MoveFolder</key> 52 52 <string>~/Desktop</string> 53 <key>PlayDownloadSound</key> 54 <true/> 53 55 <key>RatioCheck</key> 54 56 <false/> -
trunk/macosx/English.lproj/PrefsWindow.nib/classes.nib
r725 r733 14 14 setLimitCheck = id; 15 15 setMoveTorrent = id; 16 setPlaySound = id; 16 17 setPort = id; 17 18 setRatio = id; … … 39 40 fImportFolderPopUp = NSPopUpButton; 40 41 fNetworkView = NSView; 42 fPlayDownloadSoundCheck = NSButton; 41 43 fPortField = NSTextField; 42 44 fQuitCheck = NSButton; -
trunk/macosx/English.lproj/PrefsWindow.nib/info.nib
r725 r733 10 10 <string>155 441 554 217 0 0 1152 842 </string> 11 11 <key>28</key> 12 <string> 229 409 554290 0 0 1152 842 </string>12 <string>139 281 538 290 0 0 1152 842 </string> 13 13 <key>41</key> 14 <string>1 25 133 554 3210 0 1152 842 </string>14 <string>161 333 584 355 0 0 1152 842 </string> 15 15 <key>66</key> 16 16 <string>353 613 538 104 0 0 1152 842 </string> … … 18 18 <key>IBFramework Version</key> 19 19 <string>446.1</string> 20 <key>IBOpenObjects</key> 21 <array> 22 <integer>41</integer> 23 </array> 20 24 <key>IBSystem Version</key> 21 25 <string>8J135</string> -
trunk/macosx/PrefsController.h
r712 r733 38 38 * fQuitDownloadingCheck, * fRemoveDownloadingCheck, 39 39 * fBadgeDownloadRateCheck, * fBadgeUploadRateCheck, 40 * fPlayDownloadSoundCheck, 40 41 * fCopyTorrentCheck, * fDeleteOriginalTorrentCheck, 41 42 * fAutoImportCheck, * fAutoSizeCheck; … … 65 66 - (void) setShowMessage: (id) sender; 66 67 - (void) setBadge: (id) sender; 68 - (void) setPlaySound: (id) sender; 67 69 - (void) setUpdate: (id) sender; 68 70 - (void) checkUpdate; -
trunk/macosx/PrefsController.m
r720 r733 192 192 [fBadgeUploadRateCheck setState: [fDefaults boolForKey: @"BadgeUploadRate"]]; 193 193 194 //set play sound 195 [fPlayDownloadSoundCheck setState: [fDefaults boolForKey: @"PlayDownloadSound"]]; 196 194 197 //set start setting 195 198 NSString * startSetting = [fDefaults stringForKey: @"StartSetting"]; … … 511 514 } 512 515 516 - (void) setPlaySound: (id) sender 517 { 518 [fDefaults setBool: [sender state] forKey: @"PlayDownloadSound"]; 519 } 520 513 521 - (void) setUpdate: (id) sender 514 522 {
Note: See TracChangeset
for help on using the changeset viewer.