Changeset e783b74eca272d40c90c1bf3982894e074f11808
- Timestamp:
- 06/13/08 18:46:17
(3 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1213375577 +0200
- git-parent:
[1de3029270b6aeb6a7301aead3b6587ae0a006bb]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1213375558 +0200
- Message:
Add support for the http proxy password setting to the simple prefs and make sure that the last.fm password isn't displayed as plain text
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2aff0b6 |
re783b74 |
|
| 7 | 7 | <dict> |
|---|
| 8 | 8 | <key>CLASS</key> |
|---|
| | 9 | <string>NSApplication</string> |
|---|
| | 10 | <key>LANGUAGE</key> |
|---|
| | 11 | <string>ObjC</string> |
|---|
| | 12 | <key>SUPERCLASS</key> |
|---|
| | 13 | <string>NSResponder</string> |
|---|
| | 14 | </dict> |
|---|
| | 15 | <dict> |
|---|
| | 16 | <key>CLASS</key> |
|---|
| 9 | 17 | <string>VLCHotkeyChangeWindow</string> |
|---|
| 10 | 18 | <key>LANGUAGE</key> |
|---|
| … | … | |
| 57 | 65 | <key>o_audio_last_ckb</key> |
|---|
| 58 | 66 | <string>id</string> |
|---|
| 59 | | <key>o_audio_lastpwd_fld</key> |
|---|
| | 67 | <key>o_audio_lastpwd_sfld</key> |
|---|
| 60 | 68 | <string>id</string> |
|---|
| 61 | 69 | <key>o_audio_lastpwd_txt</key> |
|---|
| … | … | |
| 129 | 137 | <key>o_input_httpproxy_txt</key> |
|---|
| 130 | 138 | <string>id</string> |
|---|
| | 139 | <key>o_input_httpproxypwd_sfld</key> |
|---|
| | 140 | <string>id</string> |
|---|
| | 141 | <key>o_input_httpproxypwd_txt</key> |
|---|
| | 142 | <string>id</string> |
|---|
| 131 | 143 | <key>o_input_mux_box</key> |
|---|
| 132 | 144 | <string>id</string> |
|---|
| … | … | |
| 263 | 275 | <dict> |
|---|
| 264 | 276 | <key>CLASS</key> |
|---|
| 265 | | <string>NSApplication</string> |
|---|
| 266 | | <key>LANGUAGE</key> |
|---|
| 267 | | <string>ObjC</string> |
|---|
| 268 | | <key>SUPERCLASS</key> |
|---|
| 269 | | <string>NSResponder</string> |
|---|
| | 277 | <string>NSObject</string> |
|---|
| | 278 | <key>LANGUAGE</key> |
|---|
| | 279 | <string>ObjC</string> |
|---|
| 270 | 280 | </dict> |
|---|
| 271 | 281 | <dict> |
|---|
| … | … | |
| 276 | 286 | <key>SUPERCLASS</key> |
|---|
| 277 | 287 | <string>NSObject</string> |
|---|
| 278 | | </dict> |
|---|
| 279 | | <dict> |
|---|
| 280 | | <key>CLASS</key> |
|---|
| 281 | | <string>NSObject</string> |
|---|
| 282 | | <key>LANGUAGE</key> |
|---|
| 283 | | <string>ObjC</string> |
|---|
| 284 | 288 | </dict> |
|---|
| 285 | 289 | <dict> |
|---|
| r2aff0b6 |
re783b74 |
|
| 4 | 4 | <dict> |
|---|
| 5 | 5 | <key>IBFramework Version</key> |
|---|
| 6 | | <string>648</string> |
|---|
| | 6 | <string>667</string> |
|---|
| 7 | 7 | <key>IBLastKnownRelativeProjectPath</key> |
|---|
| 8 | 8 | <string>../../vlc.xcodeproj</string> |
|---|
| … | … | |
| 11 | 11 | <key>IBOpenObjects</key> |
|---|
| 12 | 12 | <array> |
|---|
| | 13 | <integer>2311</integer> |
|---|
| | 14 | <integer>2410</integer> |
|---|
| | 15 | <integer>2678</integer> |
|---|
| | 16 | <integer>2523</integer> |
|---|
| 13 | 17 | <integer>2668</integer> |
|---|
| 14 | | <integer>2678</integer> |
|---|
| 15 | | <integer>2562</integer> |
|---|
| 16 | | <integer>2311</integer> |
|---|
| 17 | 18 | <integer>2330</integer> |
|---|
| 18 | | <integer>2523</integer> |
|---|
| 19 | | <integer>2410</integer> |
|---|
| | 19 | <integer>2563</integer> |
|---|
| 20 | 20 | <integer>2440</integer> |
|---|
| 21 | 21 | </array> |
|---|
| 22 | 22 | <key>IBSystem Version</key> |
|---|
| 23 | | <string>9C7010</string> |
|---|
| | 23 | <string>9D34</string> |
|---|
| 24 | 24 | <key>targetFramework</key> |
|---|
| 25 | 25 | <string>IBCocoaFramework</string> |
|---|
| r3561b9b |
re783b74 |
|
| 38 | 38 | IBOutlet id o_audio_last_box; |
|---|
| 39 | 39 | IBOutlet id o_audio_last_ckb; |
|---|
| 40 | | IBOutlet id o_audio_lastpwd_fld; |
|---|
| | 40 | IBOutlet id o_audio_lastpwd_sfld; |
|---|
| 41 | 41 | IBOutlet id o_audio_lastpwd_txt; |
|---|
| 42 | 42 | IBOutlet id o_audio_lastuser_fld; |
|---|
| … | … | |
| 75 | 75 | IBOutlet id o_input_httpproxy_fld; |
|---|
| 76 | 76 | IBOutlet id o_input_httpproxy_txt; |
|---|
| | 77 | IBOutlet id o_input_httpproxypwd_sfld; |
|---|
| | 78 | IBOutlet id o_input_httpproxypwd_txt; |
|---|
| 77 | 79 | IBOutlet id o_input_mux_box; |
|---|
| 78 | 80 | IBOutlet id o_input_net_box; |
|---|
| rde4216e |
re783b74 |
|
| 245 | 245 | [o_input_dump_ckb setTitle: _NS("Dump")]; |
|---|
| 246 | 246 | [o_input_httpproxy_txt setStringValue: _NS("HTTP Proxy")]; |
|---|
| | 247 | [o_input_httpproxypwd_txt setStringValue: _NS("Password for HTTP Proxy")]; |
|---|
| 247 | 248 | [o_input_mux_box setTitle: _NS("Codecs / Muxers")]; |
|---|
| 248 | 249 | [o_input_net_box setTitle: _NS("Network")]; |
|---|
| … | … | |
| 392 | 393 | { |
|---|
| 393 | 394 | [o_audio_lastuser_fld setStringValue: [NSString stringWithUTF8String: config_GetPsz( p_intf, "lastfm-username" )]]; |
|---|
| 394 | | [o_audio_lastpwd_fld setStringValue: [NSString stringWithUTF8String: config_GetPsz( p_intf, "lastfm-password" )]]; |
|---|
| | 395 | [o_audio_lastpwd_sfld setStringValue: [NSString stringWithUTF8String: config_GetPsz( p_intf, "lastfm-password" )]]; |
|---|
| 395 | 396 | |
|---|
| 396 | 397 | if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) |
|---|
| … | … | |
| 398 | 399 | [o_audio_last_ckb setState: NSOnState]; |
|---|
| 399 | 400 | [o_audio_lastuser_fld setEnabled: YES]; |
|---|
| 400 | | [o_audio_lastpwd_fld setEnabled: YES]; |
|---|
| | 401 | [o_audio_lastpwd_sfld setEnabled: YES]; |
|---|
| 401 | 402 | } |
|---|
| 402 | 403 | else |
|---|
| … | … | |
| 404 | 405 | [o_audio_last_ckb setState: NSOffState]; |
|---|
| 405 | 406 | [o_audio_lastuser_fld setEnabled: NO]; |
|---|
| 406 | | [o_audio_lastpwd_fld setEnabled: NO]; |
|---|
| | 407 | [o_audio_lastpwd_sfld setEnabled: NO]; |
|---|
| 407 | 408 | } |
|---|
| 408 | 409 | } |
|---|
| … | … | |
| 458 | 459 | if( config_GetPsz( p_intf, "http-proxy" ) != NULL ) |
|---|
| 459 | 460 | [o_input_httpproxy_fld setStringValue: [NSString stringWithUTF8String: config_GetPsz( p_intf, "http-proxy" )]]; |
|---|
| | 461 | if( config_GetPsz( p_intf, "http-proxy" ) != NULL ) |
|---|
| | 462 | [o_input_httpproxypwd_sfld setStringValue: [NSString stringWithUTF8String: config_GetPsz( p_intf, "http-proxy-pwd" )]]; |
|---|
| 460 | 463 | [o_input_postproc_fld setIntValue: config_GetInt( p_intf, "ffmpeg-pp-q" )]; |
|---|
| 461 | 464 | |
|---|
| … | … | |
| 739 | 742 | |
|---|
| 740 | 743 | config_PutPsz( p_intf, "lastfm-username", [[o_audio_lastuser_fld stringValue] UTF8String] ); |
|---|
| 741 | | config_PutPsz( p_intf, "lastfm-password", [[o_audio_lastpwd_fld stringValue] UTF8String] ); |
|---|
| | 744 | config_PutPsz( p_intf, "lastfm-password", [[o_audio_lastpwd_sfld stringValue] UTF8String] ); |
|---|
| 742 | 745 | } |
|---|
| 743 | 746 | else |
|---|
| … | … | |
| 796 | 799 | config_PutInt( p_intf, "server-port", [o_input_serverport_fld intValue] ); |
|---|
| 797 | 800 | config_PutPsz( p_intf, "http-proxy", [[o_input_httpproxy_fld stringValue] UTF8String] ); |
|---|
| | 801 | config_PutPsz( p_intf, "http-proxy-pwd", [[o_input_httpproxypwd_sfld stringValue] UTF8String] ); |
|---|
| 798 | 802 | config_PutInt( p_intf, "ffmpeg-pp-q", [o_input_postproc_fld intValue] ); |
|---|
| 799 | 803 | |
|---|
| … | … | |
| 980 | 984 | if( [o_audio_last_ckb state] == NSOnState ) |
|---|
| 981 | 985 | { |
|---|
| 982 | | [o_audio_lastpwd_fld setEnabled: YES]; |
|---|
| | 986 | [o_audio_lastpwd_sfld setEnabled: YES]; |
|---|
| 983 | 987 | [o_audio_lastuser_fld setEnabled: YES]; |
|---|
| 984 | 988 | } |
|---|
| 985 | 989 | else |
|---|
| 986 | 990 | { |
|---|
| 987 | | [o_audio_lastpwd_fld setEnabled: NO]; |
|---|
| | 991 | [o_audio_lastpwd_sfld setEnabled: NO]; |
|---|
| 988 | 992 | [o_audio_lastuser_fld setEnabled: NO]; |
|---|
| 989 | 993 | } |
|---|