1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

add quick look menu item

This commit is contained in:
Mitchell Livingston 2008-05-21 16:28:21 +00:00
parent d154c2870d
commit 29ee9a2a6f
3 changed files with 57 additions and 13 deletions

View file

@ -257,7 +257,7 @@ typedef enum
- (NSArray *) quickLookURLs; - (NSArray *) quickLookURLs;
- (NSRect) quickLookFrameWithURL: (NSURL*) url; - (NSRect) quickLookFrameWithURL: (NSURL*) url;
- (void) toggleQuickLook; - (void) toggleQuickLook: (id) sender;
- (void) linkHomepage: (id) sender; - (void) linkHomepage: (id) sender;
- (void) linkForums: (id) sender; - (void) linkForums: (id) sender;

View file

@ -3276,7 +3276,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[item setToolTip: NSLocalizedString(@"Quick Look", "QuickLook toolbar item -> tooltip")]; [item setToolTip: NSLocalizedString(@"Quick Look", "QuickLook toolbar item -> tooltip")];
[item setImage: [NSImage imageNamed: NSImageNameQuickLookTemplate]]; [item setImage: [NSImage imageNamed: NSImageNameQuickLookTemplate]];
[item setTarget: self]; [item setTarget: self];
[item setAction: @selector(toggleQuickLook)]; [item setAction: @selector(toggleQuickLook:)];
return item; return item;
} }
@ -4077,8 +4077,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
return NSZeroRect; return NSZeroRect;
} }
#warning move to QuickLookController? - (void) toggleQuickLook: (id) sender
- (void) toggleQuickLook
{ {
[[QuickLookController quickLook] toggleQuickLook]; [[QuickLookController quickLook] toggleQuickLook];
} }

View file

@ -8,7 +8,7 @@
<string key="IBDocument.HIToolboxVersion">352.00</string> <string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="302"/> <integer value="3166"/>
<integer value="1041"/> <integer value="1041"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
@ -1994,6 +1994,7 @@ zJLMsszTzPPNFM00zVXNdc2GzabNx83nzgjOKM5JzmnOis6qzrrO2877zxzPPM9dz33Pns++z9/P79AA
</object> </object>
<string key="NSFrameSize">{468, 173}</string> <string key="NSFrameSize">{468, 173}</string>
<reference key="NSSuperview" ref="87647552"/> <reference key="NSSuperview" ref="87647552"/>
<reference key="NSNextKeyView" ref="675318801"/>
<reference key="NSDocView" ref="675318801"/> <reference key="NSDocView" ref="675318801"/>
<reference key="NSBGColor" ref="139722115"/> <reference key="NSBGColor" ref="139722115"/>
<int key="NScvFlags">4</int> <int key="NScvFlags">4</int>
@ -2020,6 +2021,7 @@ zJLMsszTzPPNFM00zVXNdc2GzabNx83nzgjOKM5JzmnOis6qzrrO2877zxzPPM9dz33Pns++z9/P79AA
</object> </object>
<string key="NSFrame">{{0, 23}, {468, 173}}</string> <string key="NSFrame">{{0, 23}, {468, 173}}</string>
<reference key="NSSuperview" ref="303120456"/> <reference key="NSSuperview" ref="303120456"/>
<reference key="NSNextKeyView" ref="306237956"/>
<int key="NSsFlags">528</int> <int key="NSsFlags">528</int>
<reference key="NSVScroller" ref="1068338331"/> <reference key="NSVScroller" ref="1068338331"/>
<reference key="NSHScroller" ref="365285506"/> <reference key="NSHScroller" ref="365285506"/>
@ -2288,6 +2290,26 @@ zJLMsszTzPPNFM00zVXNdc2GzabNx83nzgjOKM5JzmnOis6qzrrO2877zxzPPM9dz33Pns++z9/P79AA
<reference key="NSOnImage" ref="322614661"/> <reference key="NSOnImage" ref="322614661"/>
<reference key="NSMixedImage" ref="3851078"/> <reference key="NSMixedImage" ref="3851078"/>
</object> </object>
<object class="NSMenuItem" id="414623283">
<reference key="NSMenu" ref="455126894"/>
<string key="NSTitle">Quick Look</string>
<string key="NSKeyEquiv">y</string>
<int key="NSKeyEquivModMask">1048576</int>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="322614661"/>
<reference key="NSMixedImage" ref="3851078"/>
</object>
<object class="NSMenuItem" id="765429693">
<reference key="NSMenu" ref="455126894"/>
<bool key="NSIsDisabled">YES</bool>
<bool key="NSIsSeparator">YES</bool>
<string key="NSTitle"/>
<string key="NSKeyEquiv"/>
<int key="NSKeyEquivModMask">1048576</int>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="322614661"/>
<reference key="NSMixedImage" ref="3851078"/>
</object>
<object class="NSMenuItem" id="521960375"> <object class="NSMenuItem" id="521960375">
<reference key="NSMenu" ref="455126894"/> <reference key="NSMenu" ref="455126894"/>
<string type="base64-UTF8" key="NSTitle">U2F2ZSBhIFRvcnJlbnQgQ29weSBBc+KApg</string> <string type="base64-UTF8" key="NSTitle">U2F2ZSBhIFRvcnJlbnQgQ29weSBBc+KApg</string>
@ -6275,6 +6297,14 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
</object> </object>
<int key="connectionID">3165</int> <int key="connectionID">3165</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">toggleQuickLook:</string>
<reference key="source" ref="30116300"/>
<reference key="destination" ref="414623283"/>
</object>
<int key="connectionID">3168</int>
</object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects"> <object class="NSArray" key="orderedObjects">
@ -6494,6 +6524,8 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<reference ref="500522949"/> <reference ref="500522949"/>
<reference ref="690856088"/> <reference ref="690856088"/>
<reference ref="1043081358"/> <reference ref="1043081358"/>
<reference ref="414623283"/>
<reference ref="765429693"/>
</object> </object>
<reference key="parent" ref="5799201"/> <reference key="parent" ref="5799201"/>
</object> </object>
@ -8336,6 +8368,16 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<reference key="object" ref="136352131"/> <reference key="object" ref="136352131"/>
<reference key="parent" ref="354817592"/> <reference key="parent" ref="354817592"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">3166</int>
<reference key="object" ref="414623283"/>
<reference key="parent" ref="455126894"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">3167</int>
<reference key="object" ref="765429693"/>
<reference key="parent" ref="455126894"/>
</object>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="flattenedProperties"> <object class="NSMutableDictionary" key="flattenedProperties">
@ -8869,6 +8911,9 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>3163.ImportedFromIB2</string> <string>3163.ImportedFromIB2</string>
<string>3164.IBPluginDependency</string> <string>3164.IBPluginDependency</string>
<string>3164.ImportedFromIB2</string> <string>3164.ImportedFromIB2</string>
<string>3166.IBPluginDependency</string>
<string>3167.IBPluginDependency</string>
<string>3167.ImportedFromIB2</string>
<string>418.IBPluginDependency</string> <string>418.IBPluginDependency</string>
<string>418.ImportedFromIB2</string> <string>418.ImportedFromIB2</string>
<string>456.IBPluginDependency</string> <string>456.IBPluginDependency</string>
@ -8911,6 +8956,7 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>73.ImportedFromIB2</string> <string>73.ImportedFromIB2</string>
<string>79.IBPluginDependency</string> <string>79.IBPluginDependency</string>
<string>79.ImportedFromIB2</string> <string>79.ImportedFromIB2</string>
<string>81.IBEditorWindowLastContentRect</string>
<string>81.IBPluginDependency</string> <string>81.IBPluginDependency</string>
<string>81.ImportedFromIB2</string> <string>81.ImportedFromIB2</string>
<string>81.editorWindowContentRectSynchronizationRect</string> <string>81.editorWindowContentRectSynchronizationRect</string>
@ -9449,6 +9495,9 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
@ -9490,6 +9539,7 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{240, 742}, {294, 213}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{597, 705}, {294, 183}}</string> <string>{{597, 705}, {294, 183}}</string>
@ -9519,7 +9569,7 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">3165</int> <int key="maxID">3168</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -9596,6 +9646,7 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>toggleAvailabilityBar:</string> <string>toggleAvailabilityBar:</string>
<string>toggleFilterBar:</string> <string>toggleFilterBar:</string>
<string>togglePiecesBar:</string> <string>togglePiecesBar:</string>
<string>toggleQuickLook:</string>
<string>toggleSmallView:</string> <string>toggleSmallView:</string>
<string>toggleSpeedLimit:</string> <string>toggleSpeedLimit:</string>
<string>toggleStatusBar:</string> <string>toggleStatusBar:</string>
@ -9658,6 +9709,7 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="outlets"> <object class="NSMutableDictionary" key="outlets">
@ -9898,13 +9950,6 @@ ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
<string key="minorKey"/> <string key="minorKey"/>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">macosx/IPCController.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">