summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-07-04 08:14:34 +0000
committerritsuka <[email protected]>2015-07-04 08:14:34 +0000
commit32a305bcc81475098b12dbeea26c3d2202100b54 (patch)
tree19fd4c25810307a8f7427a95b004f495e6382040
parentb77948c513aea1fb4168ac886e6901de93d1c083 (diff)
MacGui: rename "Source" to "Open Source", and add the "Open Recent" menu item.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7338 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/English.lproj/MainMenu.xib15
-rw-r--r--macosx/English.lproj/MainWindow.xib7
-rw-r--r--macosx/HBController.m11
3 files changed, 23 insertions, 10 deletions
diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib
index 5b8d5fd83..0be9c7eef 100644
--- a/macosx/English.lproj/MainMenu.xib
+++ b/macosx/English.lproj/MainMenu.xib
@@ -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">
@@ -81,6 +81,17 @@
<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>
diff --git a/macosx/English.lproj/MainWindow.xib b/macosx/English.lproj/MainWindow.xib
index 084af602f..9ef960029 100644
--- a/macosx/English.lproj/MainWindow.xib
+++ b/macosx/English.lproj/MainWindow.xib
@@ -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>
diff --git a/macosx/HBController.m b/macosx/HBController.m
index 076a7a336..ec470c454 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -280,10 +280,10 @@
{
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;
}
}
@@ -611,6 +611,9 @@
}
}
+ // Add the url to the Open Recent menu.
+ [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];
+
NSInteger titleIdx = 0;
if (self.scanSpecificTitle)
{