Changeset 6175138560eec61cb77424374b244818b0412fdc

Show
Ignore:
Timestamp:
06/13/08 19:54:08 (3 months ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1213379648 +0200
git-parent:

[ca0d8dc71f0b9250b2afb5f672c720970c87ab67]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1213379648 +0200
Message:

Implement the full/basic switch correctly and completely. Additionally, fixed a rare sprefs init failure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/package/macosx/Resources/English.lproj/Preferences.nib/classes.nib

    re783b74 r6175138  
    1 <?xml version="1.0" encoding="UTF-8"?> 
    2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    3 <plist version="1.0"> 
    4 <dict> 
    5     <key>IBClasses</key> 
    6     <array> 
    7         <dict> 
    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> 
    17             <string>VLCHotkeyChangeWindow</string> 
    18             <key>LANGUAGE</key> 
    19             <string>ObjC</string> 
    20             <key>SUPERCLASS</key> 
    21             <string>NSWindow</string> 
    22         </dict> 
    23         <dict> 
    24             <key>ACTIONS</key> 
    25             <dict> 
    26                 <key>audioSettingChanged</key> 
    27                 <string>id</string> 
    28                 <key>buttonAction</key> 
    29                 <string>id</string> 
    30                 <key>hotkeySettingChanged</key> 
    31                 <string>id</string> 
    32                 <key>inputSettingChanged</key> 
    33                 <string>id</string> 
    34                 <key>interfaceSettingChanged</key> 
    35                 <string>id</string> 
    36                 <key>osdSettingChanged</key> 
    37                 <string>id</string> 
    38                 <key>videoSettingChanged</key> 
    39                 <string>id</string> 
    40             </dict> 
    41             <key>CLASS</key> 
    42             <string>VLCSimplePrefs</string> 
    43             <key>LANGUAGE</key> 
    44             <string>ObjC</string> 
    45             <key>OUTLETS</key> 
    46             <dict> 
    47                 <key>o_audio_dolby_pop</key> 
    48                 <string>id</string> 
    49                 <key>o_audio_dolby_txt</key> 
    50                 <string>id</string> 
    51                 <key>o_audio_effects_box</key> 
    52                 <string>id</string> 
    53                 <key>o_audio_enable_ckb</key> 
    54                 <string>id</string> 
    55                 <key>o_audio_general_box</key> 
    56                 <string>id</string> 
    57                 <key>o_audio_headphone_ckb</key> 
    58                 <string>id</string> 
    59                 <key>o_audio_lang_fld</key> 
    60                 <string>id</string> 
    61                 <key>o_audio_lang_txt</key> 
    62                 <string>id</string> 
    63                 <key>o_audio_last_box</key> 
    64                 <string>id</string> 
    65                 <key>o_audio_last_ckb</key> 
    66                 <string>id</string> 
    67                 <key>o_audio_lastpwd_sfld</key> 
    68                 <string>id</string> 
    69                 <key>o_audio_lastpwd_txt</key> 
    70                 <string>id</string> 
    71                 <key>o_audio_lastuser_fld</key> 
    72                 <string>id</string> 
    73                 <key>o_audio_lastuser_txt</key> 
    74                 <string>id</string> 
    75                 <key>o_audio_norm_ckb</key> 
    76                 <string>id</string> 
    77                 <key>o_audio_norm_fld</key> 
    78                 <string>id</string> 
    79                 <key>o_audio_spdif_ckb</key> 
    80                 <string>id</string> 
    81                 <key>o_audio_view</key> 
    82                 <string>id</string> 
    83                 <key>o_audio_visual_pop</key> 
    84                 <string>id</string> 
    85                 <key>o_audio_visual_txt</key> 
    86                 <string>id</string> 
    87                 <key>o_audio_vol_fld</key> 
    88                 <string>id</string> 
    89                 <key>o_audio_vol_sld</key> 
    90                 <string>id</string> 
    91                 <key>o_audio_vol_txt</key> 
    92                 <string>id</string> 
    93                 <key>o_currentlyShownCategoryView</key> 
    94                 <string>id</string> 
    95                 <key>o_hotkeys_change_btn</key> 
    96                 <string>id</string> 
    97                 <key>o_hotkeys_change_cancel_btn</key> 
    98                 <string>id</string> 
    99                 <key>o_hotkeys_change_keys_lbl</key> 
    100                 <string>id</string> 
    101                 <key>o_hotkeys_change_lbl</key> 
    102                 <string>id</string> 
    103                 <key>o_hotkeys_change_ok_btn</key> 
    104                 <string>id</string> 
    105                 <key>o_hotkeys_change_taken_lbl</key> 
    106                 <string>id</string> 
    107                 <key>o_hotkeys_change_win</key> 
    108                 <string>id</string> 
    109                 <key>o_hotkeys_clear_btn</key> 
    110                 <string>id</string> 
    111                 <key>o_hotkeys_lbl</key> 
    112                 <string>id</string> 
    113                 <key>o_hotkeys_listbox</key> 
    114                 <string>id</string> 
    115                 <key>o_hotkeys_view</key> 
    116                 <string>id</string> 
    117                 <key>o_input_access_box</key> 
    118                 <string>id</string> 
    119                 <key>o_input_avi_pop</key> 
    120                 <string>id</string> 
    121                 <key>o_input_avi_txt</key> 
    122                 <string>id</string> 
    123                 <key>o_input_bandwidth_ckb</key> 
    124                 <string>id</string> 
    125                 <key>o_input_cachelevel_custom_txt</key> 
    126                 <string>id</string> 
    127                 <key>o_input_cachelevel_pop</key> 
    128                 <string>id</string> 
    129                 <key>o_input_cachelevel_txt</key> 
    130                 <string>id</string> 
    131                 <key>o_input_caching_box</key> 
    132                 <string>id</string> 
    133                 <key>o_input_dump_ckb</key> 
    134                 <string>id</string> 
    135                 <key>o_input_httpproxy_fld</key> 
    136                 <string>id</string> 
    137                 <key>o_input_httpproxy_txt</key> 
    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> 
    143                 <key>o_input_mux_box</key> 
    144                 <string>id</string> 
    145                 <key>o_input_net_box</key> 
    146                 <string>id</string> 
    147                 <key>o_input_postproc_fld</key> 
    148                 <string>id</string> 
    149                 <key>o_input_postproc_txt</key> 
    150                 <string>id</string> 
    151                 <key>o_input_record_ckb</key> 
    152                 <string>id</string> 
    153                 <key>o_input_rtsp_ckb</key> 
    154                 <string>id</string> 
    155                 <key>o_input_serverport_fld</key> 
    156                 <string>id</string> 
    157                 <key>o_input_serverport_txt</key> 
    158                 <string>id</string> 
    159                 <key>o_input_timeshift_ckb</key> 
    160                 <string>id</string> 
    161                 <key>o_input_view</key> 
    162                 <string>id</string> 
    163                 <key>o_intf_art_pop</key> 
    164                 <string>id</string> 
    165                 <key>o_intf_art_txt</key> 
    166                 <string>id</string> 
    167                 <key>o_intf_embedded_ckb</key> 
    168                 <string>id</string> 
    169                 <key>o_intf_fspanel_ckb</key> 
    170                 <string>id</string> 
    171                 <key>o_intf_lang_pop</key> 
    172                 <string>id</string> 
    173                 <key>o_intf_lang_txt</key> 
    174                 <string>id</string> 
    175                 <key>o_intf_meta_ckb</key> 
    176                 <string>id</string> 
    177                 <key>o_intf_network_box</key> 
    178                 <string>id</string> 
    179                 <key>o_intf_view</key> 
    180                 <string>id</string> 
    181                 <key>o_osd_encoding_pop</key> 
    182                 <string>id</string> 
    183                 <key>o_osd_encoding_txt</key> 
    184                 <string>id</string> 
    185                 <key>o_osd_font_box</key> 
    186                 <string>id</string> 
    187                 <key>o_osd_font_btn</key> 
    188                 <string>id</string> 
    189                 <key>o_osd_font_color_pop</key> 
    190                 <string>id</string> 
    191                 <key>o_osd_font_color_txt</key> 
    192                 <string>id</string> 
    193                 <key>o_osd_font_effect_pop</key> 
    194                 <string>id</string> 
    195                 <key>o_osd_font_effect_txt</key> 
    196                 <string>id</string> 
    197                 <key>o_osd_font_fld</key> 
    198                 <string>id</string> 
    199                 <key>o_osd_font_size_pop</key> 
    200                 <string>id</string> 
    201                 <key>o_osd_font_size_txt</key> 
    202                 <string>id</string> 
    203                 <key>o_osd_font_txt</key> 
    204                 <string>id</string> 
    205                 <key>o_osd_lang_box</key> 
    206                 <string>id</string> 
    207                 <key>o_osd_lang_fld</key> 
    208                 <string>id</string> 
    209                 <key>o_osd_lang_txt</key> 
    210                 <string>id</string> 
    211                 <key>o_osd_osd_box</key> 
    212                 <string>id</string> 
    213                 <key>o_osd_osd_ckb</key> 
    214                 <string>id</string> 
    215                 <key>o_osd_view</key> 
    216                 <string>id</string> 
    217                 <key>o_sprefs_basicFull_matrix</key> 
    218                 <string>id</string> 
    219                 <key>o_sprefs_basic_box</key> 
    220                 <string>id</string> 
    221                 <key>o_sprefs_cancel_btn</key> 
    222                 <string>id</string> 
    223                 <key>o_sprefs_controls_box</key> 
    224                 <string>id</string> 
    225                 <key>o_sprefs_reset_btn</key> 
    226                 <string>id</string> 
    227                 <key>o_sprefs_save_btn</key> 
    228                 <string>id</string> 
    229                 <key>o_sprefs_win</key> 
    230                 <string>id</string> 
    231                 <key>o_video_black_ckb</key> 
    232                 <string>id</string> 
    233                 <key>o_video_device_pop</key> 
    234                 <string>id</string> 
    235                 <key>o_video_device_txt</key> 
    236                 <string>id</string> 
    237                 <key>o_video_display_box</key> 
    238                 <string>id</string> 
    239                 <key>o_video_enable_ckb</key> 
    240                 <string>id</string> 
    241                 <key>o_video_fullscreen_ckb</key> 
    242                 <string>id</string> 
    243                 <key>o_video_onTop_ckb</key> 
    244                 <string>id</string> 
    245                 <key>o_video_output_pop</key> 
    246                 <string>id</string> 
    247                 <key>o_video_output_txt</key> 
    248                 <string>id</string> 
    249                 <key>o_video_skipFrames_ckb</key> 
    250                 <string>id</string> 
    251                 <key>o_video_snap_box</key> 
    252                 <string>id</string> 
    253                 <key>o_video_snap_folder_btn</key> 
    254                 <string>id</string> 
    255                 <key>o_video_snap_folder_fld</key> 
    256                 <string>id</string> 
    257                 <key>o_video_snap_folder_txt</key> 
    258                 <string>id</string> 
    259                 <key>o_video_snap_format_pop</key> 
    260                 <string>id</string> 
    261                 <key>o_video_snap_format_txt</key> 
    262                 <string>id</string> 
    263                 <key>o_video_snap_prefix_fld</key> 
    264                 <string>id</string> 
    265                 <key>o_video_snap_prefix_txt</key> 
    266                 <string>id</string> 
    267                 <key>o_video_snap_seqnum_ckb</key> 
    268                 <string>id</string> 
    269                 <key>o_video_view</key> 
    270                 <string>id</string> 
    271             </dict> 
    272             <key>SUPERCLASS</key> 
    273             <string>NSObject</string> 
    274         </dict> 
    275         <dict> 
    276             <key>CLASS</key> 
    277             <string>NSObject</string> 
    278             <key>LANGUAGE</key> 
    279             <string>ObjC</string> 
    280         </dict> 
    281         <dict> 
    282             <key>CLASS</key> 
    283             <string>FirstResponder</string> 
    284             <key>LANGUAGE</key> 
    285             <string>ObjC</string> 
    286             <key>SUPERCLASS</key> 
    287             <string>NSObject</string> 
    288         </dict> 
    289         <dict> 
    290             <key>ACTIONS</key> 
    291             <dict> 
    292                 <key>advancedToggle</key> 
    293                 <string>id</string> 
    294                 <key>closePrefs</key> 
    295                 <string>id</string> 
    296                 <key>resetAll</key> 
    297                 <string>id</string> 
    298                 <key>savePrefs</key> 
    299                 <string>id</string> 
    300             </dict> 
    301             <key>CLASS</key> 
    302             <string>VLCPrefs</string> 
    303             <key>LANGUAGE</key> 
    304             <string>ObjC</string> 
    305             <key>OUTLETS</key> 
    306             <dict> 
    307                 <key>o_advanced_ckb</key> 
    308                 <string>id</string> 
    309                 <key>o_cancel_btn</key> 
    310                 <string>id</string> 
    311                 <key>o_prefs_view</key> 
    312                 <string>id</string> 
    313                 <key>o_prefs_window</key> 
    314                 <string>id</string> 
    315                 <key>o_reset_btn</key> 
    316                 <string>id</string> 
    317                 <key>o_save_btn</key> 
    318                 <string>id</string> 
    319                 <key>o_title</key> 
    320                 <string>id</string> 
    321                 <key>o_tree</key> 
    322                 <string>id</string> 
    323             </dict> 
    324             <key>SUPERCLASS</key> 
    325             <string>NSObject</string> 
    326         </dict> 
    327     </array> 
    328     <key>IBVersion</key> 
    329     <string>1</string> 
    330 </dict> 
    331 </plist> 
     1
     2    IBClasses =     ( 
     3                { 
     4            CLASS = FirstResponder; 
     5            LANGUAGE = ObjC; 
     6            SUPERCLASS = NSObject; 
     7        }, 
     8                { 
     9            CLASS = NSApplication; 
     10            LANGUAGE = ObjC; 
     11            SUPERCLASS = NSResponder; 
     12        }, 
     13                { 
     14            CLASS = NSObject; 
     15            LANGUAGE = ObjC; 
     16        }, 
     17                { 
     18            CLASS = VLCHotkeyChangeWindow; 
     19            LANGUAGE = ObjC; 
     20            SUPERCLASS = NSWindow; 
     21        }, 
     22                { 
     23            ACTIONS =             { 
     24                advancedToggle = id; 
     25                buttonAction = id; 
     26                closePrefs = id; 
     27                resetAll = id; 
     28                savePrefs = id; 
     29            }; 
     30            CLASS = VLCPrefs; 
     31            LANGUAGE = ObjC; 
     32            OUTLETS =             { 
     33                "o_advanced_ckb" = id; 
     34                "o_basicFull_matrix" = id; 
     35                "o_cancel_btn" = id; 
     36                "o_prefs_view" = id; 
     37                "o_prefs_window" = id; 
     38                "o_reset_btn" = id; 
     39                "o_save_btn" = id; 
     40                "o_title" = id; 
     41                "o_tree" = id; 
     42            }; 
     43            SUPERCLASS = NSObject; 
     44        }, 
     45                { 
     46            ACTIONS =             { 
     47                audioSettingChanged = id; 
     48                buttonAction = id; 
     49                hotkeySettingChanged = id; 
     50                inputSettingChanged = id; 
     51                interfaceSettingChanged = id; 
     52                osdSettingChanged = id; 
     53                videoSettingChanged = id; 
     54            }; 
     55            CLASS = VLCSimplePrefs; 
     56            LANGUAGE = ObjC; 
     57            OUTLETS =             { 
     58                "o_audio_dolby_pop" = id; 
     59                "o_audio_dolby_txt" = id; 
     60                "o_audio_effects_box" = id; 
     61                "o_audio_enable_ckb" = id; 
     62                "o_audio_general_box" = id; 
     63                "o_audio_headphone_ckb" = id; 
     64                "o_audio_lang_fld" = id; 
     65                "o_audio_lang_txt" = id; 
     66                "o_audio_last_box" = id; 
     67                "o_audio_last_ckb" = id; 
     68                "o_audio_lastpwd_sfld" = id; 
     69                "o_audio_lastpwd_txt" = id; 
     70                "o_audio_lastuser_fld" = id; 
     71                "o_audio_lastuser_txt" = id; 
     72                "o_audio_norm_ckb" = id; 
     73                "o_audio_norm_fld" = id; 
     74                "o_audio_spdif_ckb" = id; 
     75                "o_audio_view" = id; 
     76                "o_audio_visual_pop" = id; 
     77                "o_audio_visual_txt" = id; 
     78                "o_audio_vol_fld" = id; 
     79                "o_audio_vol_sld" = id; 
     80                "o_audio_vol_txt" = id; 
     81                "o_hotkeys_change_btn" = id; 
     82                "o_hotkeys_change_cancel_btn" = id; 
     83                "o_hotkeys_change_keys_lbl" = id; 
     84                "o_hotkeys_change_lbl" = id; 
     85                "o_hotkeys_change_ok_btn" = id; 
     86                "o_hotkeys_change_taken_lbl" = id; 
     87                "o_hotkeys_change_win" = id; 
     88                "o_hotkeys_clear_btn" = id; 
     89                "o_hotkeys_lbl" = id; 
     90                "o_hotkeys_listbox" = id; 
     91                "o_hotkeys_view" = id; 
     92                "o_input_access_box" = id; 
     93                "o_input_avi_pop" = id; 
     94                "o_input_avi_txt" = id; 
     95                "o_input_bandwidth_ckb" = id; 
     96                "o_input_cachelevel_custom_txt" = id; 
     97                "o_input_cachelevel_pop" = id; 
     98                "o_input_cachelevel_txt" = id; 
     99                "o_input_caching_box" = id; 
     100                "o_input_dump_ckb" = id; 
     101                "o_input_httpproxy_fld" = id; 
     102                "o_input_httpproxy_txt" = id; 
     103                "o_input_httpproxypwd_sfld" = id; 
     104                "o_input_httpproxypwd_txt" = id; 
     105                "o_input_mux_box" = id; 
     106                "o_input_net_box" = id; 
     107                "o_input_postproc_fld" = id; 
     108                "o_input_postproc_txt" = id; 
     109                "o_input_record_ckb" = id; 
     110                "o_input_rtsp_ckb" = id; 
     111                "o_input_serverport_fld" = id; 
     112                "o_input_serverport_txt" = id; 
     113                "o_input_timeshift_ckb" = id; 
     114                "o_input_view" = id; 
     115                "o_intf_art_pop" = id; 
     116                "o_intf_art_txt" = id; 
     117                "o_intf_embedded_ckb" = id; 
     118                "o_intf_fspanel_ckb" = id; 
     119                "o_intf_lang_pop" = id; 
     120                "o_intf_lang_txt" = id; 
     121                "o_intf_meta_ckb" = id; 
     122                "o_intf_network_box" = id; 
     123                "o_intf_view" = id; 
     124                "o_osd_encoding_pop" = id; 
     125                "o_osd_encoding_txt" = id; 
     126                "o_osd_font_box" = id; 
     127                "o_osd_font_btn" = id; 
     128                "o_osd_font_color_pop" = id; 
     129                "o_osd_font_color_txt" = id; 
     130                "o_osd_font_effect_pop" = id; 
     131                "o_osd_font_effect_txt" = id; 
     132                "o_osd_font_fld" = id; 
     133                "o_osd_font_size_pop" = id; 
     134                "o_osd_font_size_txt" = id; 
     135                "o_osd_font_txt" = id; 
     136                "o_osd_lang_box" = id; 
     137                "o_osd_lang_fld" = id; 
     138                "o_osd_lang_txt" = id; 
     139                "o_osd_osd_box" = id; 
     140                "o_osd_osd_ckb" = id; 
     141                "o_osd_view" = id; 
     142                "o_sprefs_basicFull_matrix" = id; 
     143                "o_sprefs_basic_box" = id; 
     144                "o_sprefs_cancel_btn" = id; 
     145                "o_sprefs_controls_box" = id; 
     146                "o_sprefs_reset_btn" = id; 
     147                "o_sprefs_save_btn" = id; 
     148                "o_sprefs_win" = id; 
     149                "o_video_black_ckb" = id; 
     150                "o_video_device_pop" = id; 
     151                "o_video_device_txt" = id; 
     152                "o_video_display_box" = id; 
     153                "o_video_enable_ckb" = id; 
     154                "o_video_fullscreen_ckb" = id; 
     155                "o_video_onTop_ckb" = id; 
     156                "o_video_output_pop" = id; 
     157                "o_video_output_txt" = id; 
     158                "o_video_skipFrames_ckb" = id; 
     159                "o_video_snap_box" = id; 
     160                "o_video_snap_folder_btn" = id; 
     161                "o_video_snap_folder_fld" = id; 
     162                "o_video_snap_folder_txt" = id; 
     163                "o_video_snap_format_pop" = id; 
     164                "o_video_snap_format_txt" = id; 
     165                "o_video_snap_prefix_fld" = id; 
     166                "o_video_snap_prefix_txt" = id; 
     167                "o_video_snap_seqnum_ckb" = id; 
     168                "o_video_view" = id; 
     169            }; 
     170            SUPERCLASS = NSObject; 
     171        } 
     172    ); 
     173    IBVersion = 1; 
     174
  • extras/package/macosx/Resources/English.lproj/Preferences.nib/info.nib

    re783b74 r6175138  
    33<plist version="1.0"> 
    44<dict> 
     5    <key>IBDocumentLocation</key> 
     6    <string>48 424 356 240 0 0 1280 778 </string> 
     7    <key>IBEditorPositions</key> 
     8    <dict> 
     9        <key>2311</key> 
     10        <string>345 402 590 264 0 0 1280 778 </string> 
     11        <key>2330</key> 
     12        <string>345 223 590 502 0 0 1280 778 </string> 
     13        <key>2440</key> 
     14        <string>345 308 590 389 0 0 1280 778 </string> 
     15        <key>2523</key> 
     16        <string>345 320 590 373 0 0 1280 778 </string> 
     17        <key>2562</key> 
     18        <string>345 221 590 505 0 0 1280 778 </string> 
     19        <key>2668</key> 
     20        <string>345 257 590 457 0 0 1280 778 </string> 
     21    </dict> 
    522    <key>IBFramework Version</key> 
    6     <string>667</string> 
     23    <string>489.0</string> 
    724    <key>IBLastKnownRelativeProjectPath</key> 
    825    <string>../../vlc.xcodeproj</string> 
     
    1128    <key>IBOpenObjects</key> 
    1229    <array> 
     30        <integer>2265</integer> 
    1331        <integer>2311</integer> 
    14         <integer>2410</integer> 
    15         <integer>2678</integer> 
     32        <integer>2668</integer> 
     33        <integer>2440</integer> 
     34        <integer>2562</integer> 
     35        <integer>2330</integer> 
    1636        <integer>2523</integer> 
    17         <integer>2668</integer> 
    18         <integer>2330</integer> 
    19         <integer>2563</integer> 
    20         <integer>2440</integer> 
     37        <integer>1530</integer> 
    2138    </array> 
    2239    <key>IBSystem Version</key> 
  • modules/gui/macosx/intf.m

    r6a5fc04 r6175138  
    424424 
    425425    o_about = [[VLAboutBox alloc] init]; 
    426     o_prefs = [[VLCPrefs alloc] init]
     426    o_prefs = nil
    427427    o_open = [[VLCOpen alloc] init]; 
    428428    o_wizard = [[VLCWizard alloc] init]; 
     
    18021802    /* release some other objects here, because it isn't sure whether dealloc 
    18031803     * will be called later on */ 
    1804      
     1804 
    18051805    if( nib_about_loaded ) 
    18061806        [o_about release]; 
    1807      
     1807 
    18081808    if( nib_prefs_loaded ) 
     1809    { 
     1810        [o_sprefs release]; 
    18091811        [o_prefs release]; 
    1810      
     1812    } 
     1813 
    18111814    if( nib_open_loaded ) 
    18121815        [o_open release]; 
    1813   
     1816 
    18141817    if( nib_extended_loaded ) 
    18151818    { 
     
    18171820        [o_extended release]; 
    18181821    } 
    1819   
     1822 
    18201823    if( nib_bookmarks_loaded ) 
    18211824        [o_bookmarks release]; 
     
    20042007{ 
    20052008    if( !nib_prefs_loaded ) 
     2009    { 
    20062010        nib_prefs_loaded = [NSBundle loadNibNamed:@"Preferences" owner: self]; 
     2011        o_sprefs = [[VLCSimplePrefs alloc] init]; 
     2012        o_prefs= [[VLCPrefs alloc] init]; 
     2013    } 
    20072014 
    20082015    if( sender == o_mi_sprefs ) 
    20092016    { 
    2010         o_sprefs = [[VLCSimplePrefs alloc] init]; 
    20112017        [o_sprefs showSimplePrefs]; 
    20122018    } 
  • modules/gui/macosx/prefs.h

    r449fd28 r6175138  
    6767    IBOutlet id o_reset_btn; 
    6868    IBOutlet id o_advanced_ckb; 
     69    IBOutlet id o_basicFull_matrix; 
    6970} 
    7071 
     
    7879- (IBAction)resetAll: (id)sender; 
    7980- (IBAction)advancedToggle: (id)sender; 
     81- (IBAction)buttonAction: (id)sender; 
    8082 
    8183@end 
  • modules/gui/macosx/prefs.m

    r9649c59 r6175138  
    5454#include <vlc_config_cat.h> 
    5555 
    56 #include "intf.h" 
    57 #include "prefs.h" 
    58 #include "prefs_widgets.h" 
    59 #include "vlc_keys.h" 
     56#import "intf.h" 
     57#import "prefs.h" 
     58#import "simple_prefs.h" 
     59#import "prefs_widgets.h" 
     60#import "vlc_keys.h" 
    6061 
    6162/***************************************************************************** 
     
    113114- (void)showPrefs 
    114115{ 
     116    [[o_basicFull_matrix cellAtRow:0 column:0] setState: NSOffState]; 
     117    [[o_basicFull_matrix cellAtRow:0 column:1] setState: NSOnState]; 
     118     
    115119    [o_prefs_window center]; 
    116120    [o_prefs_window makeKeyAndOrderFront:self]; 
     
    124128    [o_reset_btn setTitle: _NS("Reset All")]; 
    125129    [o_advanced_ckb setTitle: _NS("Advanced")]; 
     130    [[o_basicFull_matrix cellAtRow: 0 column: 0] setStringValue: _NS("Basic")]; 
     131    [[o_basicFull_matrix cellAtRow: 0 column: 1] setStringValue: _NS("All")]; 
    126132} 
    127133 
     
    169175    [[o_tree itemAtRow:[o_tree selectedRow]] showView:o_prefs_view advancedView: 
    170176        ( [o_advanced_ckb state] == NSOnState ) ? true : false]; 
     177} 
     178 
     179- (IBAction)buttonAction: (id)sender 
     180{ 
     181    [o_prefs_window orderOut: self]; 
     182    [[o_basicFull_matrix cellAtRow:0 column:0] setState: NSOnState]; 
     183    [[o_basicFull_matrix cellAtRow:0 column:1] setState: NSOffState]; 
     184    [[[VLCMain sharedInstance] getSimplePreferences] showSimplePrefs]; 
    171185} 
    172186 
  • modules/gui/macosx/simple_prefs.m

    re783b74 r6175138  
    4949        [self dealloc]; 
    5050    } else { 
     51        _o_sharedInstance = [super init]; 
    5152        p_intf = VLCIntf; 
    52         _o_sharedInstance = [super init]; 
    53     } 
    54      
     53    } 
     54 
    5555    return _o_sharedInstance; 
    5656} 
     
    275275    [o_osd_osd_ckb setTitle: _NS("Enable OSD")]; 
    276276 
    277     /* generic stuff */ 
    278     [[o_sprefs_basicFull_matrix cellAtRow: 0 column: 0] setStringValue: _NS("Basic")]; 
    279     [[o_sprefs_basicFull_matrix cellAtRow: 0 column: 1] setStringValue: _NS("All")]; 
    280     [o_sprefs_cancel_btn setTitle: _NS("Cancel")]; 
    281     [o_sprefs_reset_btn setTitle: _NS("Reset Preferences")]; 
    282     [o_sprefs_save_btn setTitle: _NS("Save")]; 
    283     [o_sprefs_win setTitle: _NS("Preferences")]; 
    284  
    285277    /* video */ 
    286278    [o_video_black_ckb setTitle: _NS("Black screens in Fullscreen mode")]; 
     
    298290    [o_video_snap_prefix_txt setStringValue: _NS("Prefix")]; 
    299291    [o_video_snap_seqnum_ckb setTitle: _NS("Sequential numbering")]; 
     292     
     293    /* generic stuff */ 
     294    [[o_sprefs_basicFull_matrix cellAtRow: 0 column: 0] setStringValue: _NS("Basic")]; 
     295    [[o_sprefs_basicFull_matrix cellAtRow: 0 column: 1] setStringValue: _NS("All")]; 
     296    [o_sprefs_cancel_btn setTitle: _NS("Cancel")]; 
     297    [o_sprefs_reset_btn setTitle: _NS("Reset Preferences")]; 
     298    [o_sprefs_save_btn setTitle: _NS("Save")]; 
     299    [o_sprefs_win setTitle: _NS("Preferences")]; 
    300300} 
    301301 
     
    357357    [object setToolTip: _NS(p_item->psz_longtext)] 
    358358 
     359    [[o_sprefs_basicFull_matrix cellAtRow:0 column:0] setState: NSOnState]; 
     360    [[o_sprefs_basicFull_matrix cellAtRow:0 column:1] setState: NSOffState]; 
     361     
    359362    /********************** 
    360363     * interface settings * 
     
    611614    { 
    612615        [o_sprefs_win orderOut: self]; 
     616        [[o_sprefs_basicFull_matrix cellAtRow:0 column:0] setState: NSOffState]; 
     617        [[o_sprefs_basicFull_matrix cellAtRow:0 column:1] setState: NSOnState]; 
    613618        [[[VLCMain sharedInstance] getPreferences] showPrefs]; 
    614         [self resetControls]; 
    615619    } 
    616620    else