* Added a Next and Previous item to the dockmenu
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 5 Feb 2003 01:36:00 +0000 (01:36 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 5 Feb 2003 01:36:00 +0000 (01:36 +0000)
* Prelimanary support for making VLC the handler of ftp http mms and udp
  URLs (on a systemwide level)

extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
extras/MacOSX/vlc.pbproj/project.pbxproj
modules/gui/macosx/intf.h
modules/gui/macosx/intf.m

index 91f40bb..b180990 100644 (file)
@@ -54,7 +54,9 @@
                 "o_btn_slower" = id; 
                 "o_btn_stop" = id; 
                 "o_controls" = id; 
+                "o_dmi_next" = id; 
                 "o_dmi_play" = id; 
+                "o_dmi_previous" = id; 
                 "o_dmi_stop" = id; 
                 "o_err_btn_dismiss" = id; 
                 "o_err_btn_msgs" = id; 
index dbc2dfb..3eb73cf 100644 (file)
@@ -7,9 +7,9 @@
        <key>IBEditorPositions</key>
        <dict>
                <key>29</key>
-               <string>22 973 419 44 0 0 1600 1178 </string>
+               <string>16 822 419 44 0 0 1280 1002 </string>
                <key>303</key>
-               <string>60 509 104 66 0 0 1280 1002 </string>
+               <string>60 509 104 114 0 0 1280 1002 </string>
                <key>909</key>
                <string>72 297 430 172 0 0 1152 746 </string>
                <key>915</key>
@@ -23,8 +23,9 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
-               <integer>29</integer>
                <integer>21</integer>
+               <integer>29</integer>
+               <integer>303</integer>
        </array>
        <key>IBSystem Version</key>
        <string>6G30</string>
index f292144..67709c7 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 da0fac3..5dbc67f 100644 (file)
        <string>BNDL</string>
        <key>CFBundleSignature</key>
        <string>VLC#</string>
+       <key>CFBundleURLTypes</key>
+       <array>
+               <dict>
+                       <key>CFBundleURLIconFile</key>
+                       <string>generic</string>
+                       <key>CFBundleURLName</key>
+                       <string>http url</string>
+                       <key>CFBundleURLSchemes</key>
+                       <array>
+                               <string>http</string>
+                       </array>
+               </dict>
+               <dict>
+                       <key>CFBundleURLIconFile</key>
+                       <string>generic</string>
+                       <key>CFBundleURLName</key>
+                       <string>ftp url</string>
+                       <key>CFBundleURLSchemes</key>
+                       <array>
+                               <string>ftp</string>
+                       </array>
+               </dict>
+               <dict>
+                       <key>CFBundleURLIconFile</key>
+                       <string>generic</string>
+                       <key>CFBundleURLName</key>
+                       <string>Multimedia Stream URL</string>
+                       <key>CFBundleURLSchemes</key>
+                       <array>
+                               <string>mms</string>
+                       </array>
+               </dict>
+               <dict>
+                       <key>CFBundleURLIconFile</key>
+                       <string>generic</string>
+                       <key>CFBundleURLName</key>
+                       <string>udp url</string>
+                       <key>CFBundleURLSchemes</key>
+                       <array>
+                               <string>udp</string>
+                       </array>
+               </dict>
+       </array>
        <key>CFBundleVersion</key>
        <string>0.5.0</string>
        <key>NSMainNibFile</key>
index a7c207a..9e4e060 100644 (file)
@@ -2,7 +2,7 @@
  * intf.h: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: intf.h,v 1.20 2003/01/31 02:53:52 jlj Exp $
+ * $Id: intf.h,v 1.21 2003/02/05 01:36:00 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -192,6 +192,8 @@ struct intf_sys_t
     /* dock menu */
     IBOutlet id o_dmi_play;
     IBOutlet id o_dmi_stop;
+    IBOutlet id o_dmi_next;
+    IBOutlet id o_dmi_previous;
 }
 
 - (void)terminate;
index df688e9..7d9854f 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.44 2003/02/02 23:11:17 massiot Exp $
+ * $Id: intf.m,v 1.45 2003/02/05 01:36:00 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -330,6 +330,8 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
     /* dock menu */
     [o_dmi_play setTitle: _NS("Play")];
     [o_dmi_stop setTitle: _NS("Stop")];
+    [o_dmi_next setTitle: _NS("Next")];
+    [o_dmi_previous setTitle: _NS("Previous")];
 
     /* error panel */
     [o_error setTitle: _NS("Error")];