1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +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;
- (NSRect) quickLookFrameWithURL: (NSURL*) url;
- (void) toggleQuickLook;
- (void) toggleQuickLook: (id) sender;
- (void) linkHomepage: (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 setImage: [NSImage imageNamed: NSImageNameQuickLookTemplate]];
[item setTarget: self];
[item setAction: @selector(toggleQuickLook)];
[item setAction: @selector(toggleQuickLook:)];
return item;
}
@ -4077,8 +4077,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
return NSZeroRect;
}
#warning move to QuickLookController?
- (void) toggleQuickLook
- (void) toggleQuickLook: (id) sender
{
[[QuickLookController quickLook] toggleQuickLook];
}

View file

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