Changeset 2aff0b64902f7e164b7cc12f956aa06bfbb6ae7e

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

    r4d8b370 r2aff0b6  
    1414        </dict> 
    1515        <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> 
    2416            <key>ACTIONS</key> 
    2517            <dict> 
     
    123115                <key>o_input_bandwidth_ckb</key> 
    124116                <string>id</string> 
     117                <key>o_input_cachelevel_custom_txt</key> 
     118                <string>id</string> 
    125119                <key>o_input_cachelevel_pop</key> 
    126120                <string>id</string> 
     
    266260            <key>SUPERCLASS</key> 
    267261            <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> 
    268270        </dict> 
    269271        <dict> 
  • extras/package/macosx/Resources/English.lproj/Preferences.nib/info.nib

    r8679868 r2aff0b6  
    44<dict> 
    55    <key>IBFramework Version</key> 
    6     <string>644</string> 
     6    <string>648</string> 
    77    <key>IBLastKnownRelativeProjectPath</key> 
    88    <string>../../vlc.xcodeproj</string> 
     
    1212    <array> 
    1313        <integer>2668</integer> 
     14        <integer>2678</integer> 
    1415        <integer>2562</integer> 
     16        <integer>2311</integer> 
     17        <integer>2330</integer> 
     18        <integer>2523</integer> 
    1519        <integer>2410</integer> 
    1620        <integer>2440</integer> 
    17         <integer>2311</integer> 
    18         <integer>2523</integer> 
    19         <integer>2330</integer> 
    20         <integer>2678</integer> 
    2121    </array> 
    2222    <key>IBSystem Version</key> 
    23     <string>9C31</string> 
     23    <string>9C7010</string> 
    2424    <key>targetFramework</key> 
    2525    <string>IBCocoaFramework</string> 
  • modules/gui/macosx/simple_prefs.h

    rff83b90 r2aff0b6  
    7070    IBOutlet id o_input_cachelevel_pop; 
    7171    IBOutlet id o_input_cachelevel_txt; 
     72    IBOutlet id o_input_cachelevel_custom_txt; 
    7273    IBOutlet id o_input_caching_box; 
    7374    IBOutlet id o_input_dump_ckb; 
  • modules/gui/macosx/simple_prefs.m

    r17b9394 r2aff0b6  
    242242    [o_input_cachelevel_txt setStringValue: _NS("Default Caching Level")]; 
    243243    [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.")]; 
    244245    [o_input_dump_ckb setTitle: _NS("Dump")]; 
    245246    [o_input_httpproxy_txt setStringValue: _NS("HTTP Proxy")]; 
     
    394395 
    395396        if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) 
     397        { 
    396398            [o_audio_last_ckb setState: NSOnState]; 
     399            [o_audio_lastuser_fld setEnabled: YES]; 
     400            [o_audio_lastpwd_fld setEnabled: YES]; 
     401        } 
    397402        else 
     403        { 
    398404            [o_audio_last_ckb setState: NSOffState]; 
     405            [o_audio_lastuser_fld setEnabled: NO]; 
     406            [o_audio_lastpwd_fld setEnabled: NO]; 
     407        } 
    399408    } 
    400409    else 
     
    504513    TestCaCi( "mms-caching", 19 ); 
    505514    if( b_cache_equal ) 
     515    { 
    506516        [o_input_cachelevel_pop selectItemWithTag: i_cache]; 
     517        [o_input_cachelevel_custom_txt setHidden: YES]; 
     518    } 
    507519    else 
     520    { 
    508521        [o_input_cachelevel_pop selectItemWithTitle: _NS("Custom")]; 
     522        [o_input_cachelevel_custom_txt setHidden: NO]; 
     523    } 
    509524 
    510525    /********************* 
     
    716731        /* Last.FM is optional */ 
    717732        if( module_Exists( p_intf, "audioscrobbler" ) ) 
    718         {     
     733        {    
     734            [o_audio_last_ckb setEnabled: YES]; 
    719735            if( [o_audio_last_ckb state] == NSOnState ) 
    720736                config_AddIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ); 
     
    725741            config_PutPsz( p_intf, "lastfm-password", [[o_audio_lastuser_fld stringValue] UTF8String] ); 
    726742        } 
     743        else 
     744            [o_audio_last_ckb setEnabled: NO]; 
    727745 
    728746        /* okay, let's save our changes to vlcrc */ 
     
    954972    if( sender == o_audio_vol_sld ) 
    955973        [o_audio_vol_fld setIntValue: [o_audio_vol_sld intValue]]; 
    956      
     974 
    957975    if( sender == o_audio_vol_fld ) 
    958976        [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 
    960992    b_audioSettingChanged = YES; 
    961993} 
     
    10431075- (IBAction)inputSettingChanged:(id)sender 
    10441076{ 
     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 
    10451085    b_inputSettingChanged = YES; 
    10461086}