Changeset 2aff0b64902f7e164b7cc12f956aa06bfbb6ae7e
- Timestamp:
- 18/04/08 14:50:48
(6 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1208523048 +0200
- git-parent:
[677e34942c2d70c884291329dafab13c7b2cc601]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1208523048 +0200
- Message:
Improved functionality, thanks to the feedback by Robert Swain.
Fixed the last.fm settings (items weren't enabled properly) and added an additional note to the Caching level selector explaining the 'Custom' entry.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4d8b370 |
r2aff0b6 |
|
| 14 | 14 | </dict> |
|---|
| 15 | 15 | <dict> |
|---|
| 16 | | <key>CLASS</key> |
|---|
| 17 | | <string>NSApplication</string> |
|---|
| 18 | | <key>LANGUAGE</key> |
|---|
| 19 | | <string>ObjC</string> |
|---|
| 20 | | <key>SUPERCLASS</key> |
|---|
| 21 | | <string>NSResponder</string> |
|---|
| 22 | | </dict> |
|---|
| 23 | | <dict> |
|---|
| 24 | 16 | <key>ACTIONS</key> |
|---|
| 25 | 17 | <dict> |
|---|
| … | … | |
| 123 | 115 | <key>o_input_bandwidth_ckb</key> |
|---|
| 124 | 116 | <string>id</string> |
|---|
| | 117 | <key>o_input_cachelevel_custom_txt</key> |
|---|
| | 118 | <string>id</string> |
|---|
| 125 | 119 | <key>o_input_cachelevel_pop</key> |
|---|
| 126 | 120 | <string>id</string> |
|---|
| … | … | |
| 266 | 260 | <key>SUPERCLASS</key> |
|---|
| 267 | 261 | <string>NSObject</string> |
|---|
| | 262 | </dict> |
|---|
| | 263 | <dict> |
|---|
| | 264 | <key>CLASS</key> |
|---|
| | 265 | <string>NSApplication</string> |
|---|
| | 266 | <key>LANGUAGE</key> |
|---|
| | 267 | <string>ObjC</string> |
|---|
| | 268 | <key>SUPERCLASS</key> |
|---|
| | 269 | <string>NSResponder</string> |
|---|
| 268 | 270 | </dict> |
|---|
| 269 | 271 | <dict> |
|---|
| r8679868 |
r2aff0b6 |
|
| 4 | 4 | <dict> |
|---|
| 5 | 5 | <key>IBFramework Version</key> |
|---|
| 6 | | <string>644</string> |
|---|
| | 6 | <string>648</string> |
|---|
| 7 | 7 | <key>IBLastKnownRelativeProjectPath</key> |
|---|
| 8 | 8 | <string>../../vlc.xcodeproj</string> |
|---|
| … | … | |
| 12 | 12 | <array> |
|---|
| 13 | 13 | <integer>2668</integer> |
|---|
| | 14 | <integer>2678</integer> |
|---|
| 14 | 15 | <integer>2562</integer> |
|---|
| | 16 | <integer>2311</integer> |
|---|
| | 17 | <integer>2330</integer> |
|---|
| | 18 | <integer>2523</integer> |
|---|
| 15 | 19 | <integer>2410</integer> |
|---|
| 16 | 20 | <integer>2440</integer> |
|---|
| 17 | | <integer>2311</integer> |
|---|
| 18 | | <integer>2523</integer> |
|---|
| 19 | | <integer>2330</integer> |
|---|
| 20 | | <integer>2678</integer> |
|---|
| 21 | 21 | </array> |
|---|
| 22 | 22 | <key>IBSystem Version</key> |
|---|
| 23 | | <string>9C31</string> |
|---|
| | 23 | <string>9C7010</string> |
|---|
| 24 | 24 | <key>targetFramework</key> |
|---|
| 25 | 25 | <string>IBCocoaFramework</string> |
|---|
| rff83b90 |
r2aff0b6 |
|
| 70 | 70 | IBOutlet id o_input_cachelevel_pop; |
|---|
| 71 | 71 | IBOutlet id o_input_cachelevel_txt; |
|---|
| | 72 | IBOutlet id o_input_cachelevel_custom_txt; |
|---|
| 72 | 73 | IBOutlet id o_input_caching_box; |
|---|
| 73 | 74 | IBOutlet id o_input_dump_ckb; |
|---|
| r17b9394 |
r2aff0b6 |
|
| 242 | 242 | [o_input_cachelevel_txt setStringValue: _NS("Default Caching Level")]; |
|---|
| 243 | 243 | [o_input_caching_box setTitle: _NS("Caching")]; |
|---|
| | 244 | [o_input_cachelevel_custom_txt setStringValue: _NS("Use the complete preferences to configure custom caching values for each access module.")]; |
|---|
| 244 | 245 | [o_input_dump_ckb setTitle: _NS("Dump")]; |
|---|
| 245 | 246 | [o_input_httpproxy_txt setStringValue: _NS("HTTP Proxy")]; |
|---|
| … | … | |
| 394 | 395 | |
|---|
| 395 | 396 | if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) |
|---|
| | 397 | { |
|---|
| 396 | 398 | [o_audio_last_ckb setState: NSOnState]; |
|---|
| | 399 | [o_audio_lastuser_fld setEnabled: YES]; |
|---|
| | 400 | [o_audio_lastpwd_fld setEnabled: YES]; |
|---|
| | 401 | } |
|---|
| 397 | 402 | else |
|---|
| | 403 | { |
|---|
| 398 | 404 | [o_audio_last_ckb setState: NSOffState]; |
|---|
| | 405 | [o_audio_lastuser_fld setEnabled: NO]; |
|---|
| | 406 | [o_audio_lastpwd_fld setEnabled: NO]; |
|---|
| | 407 | } |
|---|
| 399 | 408 | } |
|---|
| 400 | 409 | else |
|---|
| … | … | |
| 504 | 513 | TestCaCi( "mms-caching", 19 ); |
|---|
| 505 | 514 | if( b_cache_equal ) |
|---|
| | 515 | { |
|---|
| 506 | 516 | [o_input_cachelevel_pop selectItemWithTag: i_cache]; |
|---|
| | 517 | [o_input_cachelevel_custom_txt setHidden: YES]; |
|---|
| | 518 | } |
|---|
| 507 | 519 | else |
|---|
| | 520 | { |
|---|
| 508 | 521 | [o_input_cachelevel_pop selectItemWithTitle: _NS("Custom")]; |
|---|
| | 522 | [o_input_cachelevel_custom_txt setHidden: NO]; |
|---|
| | 523 | } |
|---|
| 509 | 524 | |
|---|
| 510 | 525 | /********************* |
|---|
| … | … | |
| 716 | 731 | /* Last.FM is optional */ |
|---|
| 717 | 732 | if( module_Exists( p_intf, "audioscrobbler" ) ) |
|---|
| 718 | | { |
|---|
| | 733 | { |
|---|
| | 734 | [o_audio_last_ckb setEnabled: YES]; |
|---|
| 719 | 735 | if( [o_audio_last_ckb state] == NSOnState ) |
|---|
| 720 | 736 | config_AddIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ); |
|---|
| … | … | |
| 725 | 741 | config_PutPsz( p_intf, "lastfm-password", [[o_audio_lastuser_fld stringValue] UTF8String] ); |
|---|
| 726 | 742 | } |
|---|
| | 743 | else |
|---|
| | 744 | [o_audio_last_ckb setEnabled: NO]; |
|---|
| 727 | 745 | |
|---|
| 728 | 746 | /* okay, let's save our changes to vlcrc */ |
|---|
| … | … | |
| 954 | 972 | if( sender == o_audio_vol_sld ) |
|---|
| 955 | 973 | [o_audio_vol_fld setIntValue: [o_audio_vol_sld intValue]]; |
|---|
| 956 | | |
|---|
| | 974 | |
|---|
| 957 | 975 | if( sender == o_audio_vol_fld ) |
|---|
| 958 | 976 | [o_audio_vol_sld setIntValue: [o_audio_vol_fld intValue]]; |
|---|
| 959 | | |
|---|
| | 977 | |
|---|
| | 978 | if( sender == o_audio_last_ckb ) |
|---|
| | 979 | { |
|---|
| | 980 | if( [o_audio_last_ckb state] == NSOnState ) |
|---|
| | 981 | { |
|---|
| | 982 | [o_audio_lastpwd_fld setEnabled: YES]; |
|---|
| | 983 | [o_audio_lastuser_fld setEnabled: YES]; |
|---|
| | 984 | } |
|---|
| | 985 | else |
|---|
| | 986 | { |
|---|
| | 987 | [o_audio_lastpwd_fld setEnabled: NO]; |
|---|
| | 988 | [o_audio_lastuser_fld setEnabled: NO]; |
|---|
| | 989 | } |
|---|
| | 990 | } |
|---|
| | 991 | |
|---|
| 960 | 992 | b_audioSettingChanged = YES; |
|---|
| 961 | 993 | } |
|---|
| … | … | |
| 1043 | 1075 | - (IBAction)inputSettingChanged:(id)sender |
|---|
| 1044 | 1076 | { |
|---|
| | 1077 | if( sender == o_input_cachelevel_pop ) |
|---|
| | 1078 | { |
|---|
| | 1079 | if( [[[o_input_cachelevel_pop selectedItem] title] isEqualToString: _NS("Custom")] ) |
|---|
| | 1080 | [o_input_cachelevel_custom_txt setHidden: NO]; |
|---|
| | 1081 | else |
|---|
| | 1082 | [o_input_cachelevel_custom_txt setHidden: YES]; |
|---|
| | 1083 | } |
|---|
| | 1084 | |
|---|
| 1045 | 1085 | b_inputSettingChanged = YES; |
|---|
| 1046 | 1086 | } |
|---|