OS X port :
authorChristophe Massiot <massiot@videolan.org>
Sun, 29 Dec 2002 01:16:28 +0000 (01:16 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sun, 29 Dec 2002 01:16:28 +0000 (01:16 +0000)
* Reenabled fullscreen shortcut, due to popular requests,
* Fixed charset encoding in the Preferences window,
* New implementation of --loop.

extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
modules/gui/macosx/controls.m
modules/gui/macosx/intf.m
modules/gui/macosx/prefs.m
po/fr.po

index 7700266..af0d561 100644 (file)
                <string>93 566 72 114 0 0 1600 1178 </string>
        </dict>
        <key>IBFramework Version</key>
-       <string>286.0</string>
+       <string>291.0</string>
        <key>IBOpenObjects</key>
        <array>
-               <integer>29</integer>
                <integer>636</integer>
+               <integer>29</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>6F21</string>
+       <string>6G30</string>
 </dict>
 </plist>
index bf61ec0..1d88f2a 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ
index 2db12b7..13c2f7a 100644 (file)
@@ -2,7 +2,7 @@
  * controls.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: controls.m,v 1.3 2002/12/25 02:23:36 massiot Exp $
+ * $Id: controls.m,v 1.4 2002/12/29 01:16:28 massiot Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
     if( p_intf->p_sys->b_loop )
     {
         [o_mi setState: NSOffState];
-        playlist_Delete( p_playlist, p_playlist->i_size - 1 );
+        config_PutInt( p_playlist, "loop", 0 );
     }
     else
     {
         [o_mi setState: NSOnState];
-        playlist_Add( p_playlist, "vlc:loop",
-                      PLAYLIST_APPEND, PLAYLIST_END );
+        config_PutInt( p_playlist, "loop", 1 );
     }
 
     p_intf->p_sys->b_loop = !p_intf->p_sys->b_loop;
index e9142de..0db9c0c 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: intf.m,v 1.12 2002/12/25 02:23:36 massiot Exp $
+ * $Id: intf.m,v 1.13 2002/12/29 01:16:28 massiot Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -529,6 +529,15 @@ static void Run( intf_thread_t *p_intf )
         [o_mi_channels setEnabled: FALSE];
         [o_mi_screen setEnabled: FALSE];
     }
+
+    if ( (p_intf->p_sys->b_loop = config_GetInt( p_intf, "loop" )) )
+    {
+        [o_mi_loop setState: NSOnState];
+    }
+    else
+    {
+        [o_mi_loop setState: NSOffState];
+    }
 }
 
 - (void)setupMenus
index 77dc505..695dc68 100644 (file)
@@ -2,7 +2,7 @@
  * prefs.m: MacOS X plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: prefs.m,v 1.3 2002/12/25 02:23:36 massiot Exp $
+ * $Id: prefs.m,v 1.4 2002/12/29 01:16:28 massiot Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
  *
         [o_text_field setEditable: NO]; \
         [o_text_field setSelectable: NO]; \
         [o_text_field setStringValue: \
-                [NSString stringWithCString: label]]; \
+            [NSApp localizedString: label]]; \
         [o_view addSubview: [o_text_field autorelease]]; \
     }
 
 #define INPUT_FIELD( ctype, cname, label, w, msg, param ) \
     { \
-        s_rc.size.height = 23; \
+        s_rc.size.height = 25; \
         s_rc.size.width = w; \
         s_rc.origin.y += 10; \
         CHECK_VIEW_HEIGHT; \
             NSString *o_label;
             NSToolbarItem *o_tbi;
 
-            o_label = [NSString stringWithCString: p_item->psz_text];
+            o_label = [NSApp localizedString: p_item->psz_text];
             o_tbi = [[NSToolbarItem alloc] initWithItemIdentifier: o_label]; 
             [o_tbi setImage: [NSImage imageNamed: @"NSApplicationIcon"]];
             [o_tbi setLabel: o_label];
 
 #define MODULE_BUTTON( button, title, sel ) \
     { \
-        s_brc.size.height = 25; \
+        s_brc.size.height = 32; \
         s_brc.origin.x += s_brc.size.width + 10; \
         s_brc.size.width = s_crc.size.width - s_brc.origin.x - 10; \
         button = [[NSButton alloc] initWithFrame: s_brc]; \
         [o_cview addSubview: [button autorelease]]; \
     }
 
-            s_rc.size.height = 100;
+            s_rc.size.height = 107;
             s_rc.size.width = s_vrc.size.width - X_ORIGIN * 2 - 20;
             s_rc.origin.y += i_module_tag == 3 ? Y_ORIGIN : 20;
 
             CHECK_VIEW_HEIGHT;
 
             o_box = [[NSBox alloc] initWithFrame: s_rc];
-            [o_box setTitle: [NSString stringWithCString: p_item->psz_text]];
+            [o_box setTitle: [NSApp localizedString: p_item->psz_text]];
             [o_view addSubview: [o_box autorelease]];
             s_rc.origin.y += s_rc.size.height + 10;
             o_cview = [[VLCFlippedView alloc] initWithFrame: s_rc];
             [o_box setContentView: [o_cview autorelease]];
             s_crc = [o_cview bounds];
 
-            s_brc = NSMakeRect( 5, 10, 200, 23 ); 
+            s_brc = NSMakeRect( 5, 10, 200, 30 ); 
             o_modules = [[NSPopUpButton alloc] initWithFrame: s_brc];
             [o_modules setTag: i_module_tag++];
             [o_modules setTarget: self];
                            configureModule: );
 
             s_brc = NSMakeRect( 8, s_brc.origin.y + s_brc.size.height + 10, 
-                                194, 23 ); 
+                                194, 25 ); 
             o_text_field = [[VLCTextField alloc] initWithFrame: s_brc];
             [o_text_field setTag: i_module_tag++];
             [o_text_field setAlignment: NSLeftTextAlignment];
                 int i;
                 VLCComboBox *o_combo_box;
 
-                s_rc.size.height = 25;
+                s_rc.size.height = 27;
                 s_rc.size.width = 150;
                 s_rc.origin.y += 10;
 
         {
             VLCButton *o_btn_bool;
 
-            s_rc.size.height = 20;
+            s_rc.size.height = 27;
             s_rc.size.width = s_vrc.size.width - X_ORIGIN * 2 - 20;
             s_rc.origin.y += 10;
 
             [o_btn_bool setButtonType: NSSwitchButton];
             [o_btn_bool setIntValue: p_item->i_value];
             [o_btn_bool setTitle: 
-                [NSString stringWithCString: p_item->psz_text]]; 
+                  [NSApp localizedString: p_item->psz_text]];
             [o_btn_bool setTarget: self];
             [o_btn_bool setAction: @selector(configChanged:)];
             CONTROL_CONFIG( o_btn_bool, o_module_name, 
index a1459d3..4ab0b78 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -1582,7 +1582,7 @@ msgstr "Ouvrir un fichier"
 #: modules/gui/familiar/interface.c:106 modules/gui/familiar/interface.c:107
 #: modules/gui/macosx/intf.m:191 modules/gui/macosx/prefs.m:196
 msgid "Preferences"
-msgstr "_Préférences"
+msgstr "Préférences"
 
 #: modules/gui/familiar/interface.c:121
 msgid "Rewind"