]> granicus.if.org Git - handbrake/commitdiff
MacGui: rename "Source" to "Open Source", and add the "Open Recent" menu item.
authorritsuka <damiog@gmail.com>
Sat, 4 Jul 2015 08:14:34 +0000 (08:14 +0000)
committerritsuka <damiog@gmail.com>
Sat, 4 Jul 2015 08:14:34 +0000 (08:14 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7338 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/English.lproj/MainMenu.xib
macosx/English.lproj/MainWindow.xib
macosx/HBController.m

index 5b8d5fd83e89c84a39ea08018eac76e6401c4287..0be9c7eef75dd8fc04e2eebddf97eb77702bee43 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="7702" systemVersion="14E17e" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
     <dependencies>
         <deployment version="1060" identifier="macosx"/>
         <development version="5100" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7702"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7706"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
                                     <action selector="browseSources:" target="-1" id="9Ko-Me-Xae"/>
                                 </connections>
                             </menuItem>
+                            <menuItem title="Open Recent" id="fNa-z2-K1i">
+                                <menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="ukX-HN-SXk">
+                                    <items>
+                                        <menuItem title="Clear Menu" id="wPw-Uj-Gxi">
+                                            <connections>
+                                                <action selector="clearRecentDocuments:" target="-1" id="94m-U1-U9q"/>
+                                            </connections>
+                                        </menuItem>
+                                    </items>
+                                </menu>
+                            </menuItem>
                             <menuItem isSeparatorItem="YES" id="2507">
                                 <modifierMask key="keyEquivalentModifierMask" command="YES"/>
                             </menuItem>
index 084af602f1fddb94a098d7921193b7c64f7e5a04..9ef960029ae7de0c13a9deb349c7b46484def817 100644 (file)
@@ -1,9 +1,8 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="7702" systemVersion="14E17e" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
     <dependencies>
         <deployment identifier="macosx"/>
-        <development version="6000" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7702"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7706"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner" customClass="HBController">
@@ -605,7 +604,7 @@ IA
                 <allowedToolbarItems>
                     <toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="ZEH-cS-zXY"/>
                     <toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="wjB-Tl-5qq"/>
-                    <toolbarItem implicitItemIdentifier="B3BAB305-77BF-4967-B8E6-D11F40EF822B" label="Source" paletteLabel="Source" toolTip="Open source and scan the selected title" tag="-1" image="source" id="8r8-nZ-dYs">
+                    <toolbarItem implicitItemIdentifier="B3BAB305-77BF-4967-B8E6-D11F40EF822B" label="Open Source" paletteLabel="Open Source" toolTip="Open source and scan the selected title" tag="-1" image="source" id="8r8-nZ-dYs">
                         <connections>
                             <action selector="browseSources:" target="-2" id="zi1-Tk-0YL"/>
                         </connections>
index 076a7a33658df911ec68f7d90b558ab7cfe45833..ec470c4547158b7565bab3e69c0b72d10beca31d 100644 (file)
     {
         if (action == @selector(browseSources:))
         {
-            [toolbarItem setImage: [NSImage imageNamed: @"source"]];
-            [toolbarItem setLabel: @"Source"];
-            [toolbarItem setPaletteLabel: @"Source"];
-            [toolbarItem setToolTip: @"Choose Video Source"];
+            [toolbarItem setImage:[NSImage imageNamed:@"source"]];
+            [toolbarItem setLabel:NSLocalizedString(@"Open Source", nil)];
+            [toolbarItem setPaletteLabel:NSLocalizedString(@"Open Source", nil)];
+            [toolbarItem setToolTip:NSLocalizedString(@"Open source and scan the selected title", nil)];
             return YES;
         }
     }
                  }
              }
 
+             // Add the url to the Open Recent menu.
+             [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];
+
              NSInteger titleIdx = 0;
              if (self.scanSpecificTitle)
              {