Changeset e783b74eca272d40c90c1bf3982894e074f11808

Show
Ignore:
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
  • extras/package/macosx/Resources/English.lproj/Preferences.nib/classes.nib

    r2aff0b6 re783b74  
    77        <dict> 
    88            <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> 
    917            <string>VLCHotkeyChangeWindow</string> 
    1018            <key>LANGUAGE</key> 
     
    5765                <key>o_audio_last_ckb</key> 
    5866                <string>id</string> 
    59                 <key>o_audio_lastpwd_fld</key> 
     67                <key>o_audio_lastpwd_sfld</key> 
    6068                <string>id</string> 
    6169                <key>o_audio_lastpwd_txt</key> 
     
    129137                <key>o_input_httpproxy_txt</key> 
    130138                <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> 
    131143                <key>o_input_mux_box</key> 
    132144                <string>id</string> 
     
    263275        <dict> 
    264276            <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> 
    270280        </dict> 
    271281        <dict> 
     
    276286            <key>SUPERCLASS</key> 
    277287            <string>NSObject</string> 
    278         </dict> 
    279         <dict> 
    280             <key>CLASS</key> 
    281             <string>NSObject</string> 
    282             <key>LANGUAGE</key> 
    283             <string>ObjC</string> 
    284288        </dict> 
    285289        <dict> 
  • extras/package/macosx/Resources/English.lproj/Preferences.nib/info.nib

    r2aff0b6 re783b74  
    44<dict> 
    55    <key>IBFramework Version</key> 
    6     <string>648</string> 
     6    <string>667</string> 
    77    <key>IBLastKnownRelativeProjectPath</key> 
    88    <string>../../vlc.xcodeproj</string> 
     
    1111    <key>IBOpenObjects</key> 
    1212    <array> 
     13        <integer>2311</integer> 
     14        <integer>2410</integer> 
     15        <integer>2678</integer> 
     16        <integer>2523</integer> 
    1317        <integer>2668</integer> 
    14         <integer>2678</integer> 
    15         <integer>2562</integer> 
    16         <integer>2311</integer> 
    1718        <integer>2330</integer> 
    18         <integer>2523</integer> 
    19         <integer>2410</integer> 
     19        <integer>2563</integer> 
    2020        <integer>2440</integer> 
    2121    </array> 
    2222    <key>IBSystem Version</key> 
    23     <string>9C7010</string> 
     23    <string>9D34</string> 
    2424    <key>targetFramework</key> 
    2525    <string>IBCocoaFramework</string> 
  • modules/gui/macosx/simple_prefs.h

    r3561b9b re783b74  
    3838    IBOutlet id o_audio_last_box; 
    3939    IBOutlet id o_audio_last_ckb; 
    40     IBOutlet id o_audio_lastpwd_fld; 
     40    IBOutlet id o_audio_lastpwd_sfld; 
    4141    IBOutlet id o_audio_lastpwd_txt; 
    4242    IBOutlet id o_audio_lastuser_fld; 
     
    7575    IBOutlet id o_input_httpproxy_fld; 
    7676    IBOutlet id o_input_httpproxy_txt; 
     77    IBOutlet id o_input_httpproxypwd_sfld; 
     78    IBOutlet id o_input_httpproxypwd_txt; 
    7779    IBOutlet id o_input_mux_box; 
    7880    IBOutlet id o_input_net_box; 
  • modules/gui/macosx/simple_prefs.m

    rde4216e re783b74  
    245245    [o_input_dump_ckb setTitle: _NS("Dump")]; 
    246246    [o_input_httpproxy_txt setStringValue: _NS("HTTP Proxy")]; 
     247    [o_input_httpproxypwd_txt setStringValue: _NS("Password for HTTP Proxy")]; 
    247248    [o_input_mux_box setTitle: _NS("Codecs / Muxers")]; 
    248249    [o_input_net_box setTitle: _NS("Network")]; 
     
    392393    { 
    393394        [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" )]]; 
    395396 
    396397        if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) 
     
    398399            [o_audio_last_ckb setState: NSOnState]; 
    399400            [o_audio_lastuser_fld setEnabled: YES]; 
    400             [o_audio_lastpwd_fld setEnabled: YES]; 
     401            [o_audio_lastpwd_sfld setEnabled: YES]; 
    401402        } 
    402403        else 
     
    404405            [o_audio_last_ckb setState: NSOffState]; 
    405406            [o_audio_lastuser_fld setEnabled: NO]; 
    406             [o_audio_lastpwd_fld setEnabled: NO]; 
     407            [o_audio_lastpwd_sfld setEnabled: NO]; 
    407408        } 
    408409    } 
     
    458459    if( config_GetPsz( p_intf, "http-proxy" ) != NULL ) 
    459460        [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" )]]; 
    460463    [o_input_postproc_fld setIntValue: config_GetInt( p_intf, "ffmpeg-pp-q" )]; 
    461464 
     
    739742 
    740743            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] ); 
    742745        } 
    743746        else 
     
    796799        config_PutInt( p_intf, "server-port", [o_input_serverport_fld intValue] ); 
    797800        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] ); 
    798802        config_PutInt( p_intf, "ffmpeg-pp-q", [o_input_postproc_fld intValue] ); 
    799803 
     
    980984        if( [o_audio_last_ckb state] == NSOnState ) 
    981985        { 
    982             [o_audio_lastpwd_fld setEnabled: YES]; 
     986            [o_audio_lastpwd_sfld setEnabled: YES]; 
    983987            [o_audio_lastuser_fld setEnabled: YES]; 
    984988        } 
    985989        else 
    986990        { 
    987             [o_audio_lastpwd_fld setEnabled: NO]; 
     991            [o_audio_lastpwd_sfld setEnabled: NO]; 
    988992            [o_audio_lastuser_fld setEnabled: NO]; 
    989993        }