Skip to content

Commit

Permalink
enabled go to mark menu
Browse files Browse the repository at this point in the history
  • Loading branch information
psychs committed Mar 23, 2010
1 parent bb46eff commit b34fc9c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
39 changes: 35 additions & 4 deletions English.lproj/MainMenu.xib
Expand Up @@ -12,8 +12,7 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="106"/>
<integer value="327"/>
<integer value="313"/>
<integer value="233"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
Expand Down Expand Up @@ -1145,6 +1144,16 @@
<reference key="NSMixedImage" ref="353314363"/>
<int key="NSTag">412</int>
</object>
<object class="NSMenuItem" id="69206960">
<reference key="NSMenu" ref="1043433546"/>
<string key="NSTitle">Go To Mark</string>
<string key="NSKeyEquiv">l</string>
<int key="NSKeyEquivModMask">1572864</int>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="821023625"/>
<reference key="NSMixedImage" ref="353314363"/>
<int key="NSTag">414</int>
</object>
<object class="NSMenuItem" id="661884468">
<reference key="NSMenu" ref="1043433546"/>
<string key="NSTitle">Mark All as Read</string>
Expand Down Expand Up @@ -3112,6 +3121,14 @@
</object>
<int key="connectionID">982</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">onGoToMark:</string>
<reference key="source" ref="361464326"/>
<reference key="destination" ref="69206960"/>
</object>
<int key="connectionID">998</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
Expand Down Expand Up @@ -3879,6 +3896,7 @@
<reference ref="873782003"/>
<reference ref="661884468"/>
<reference ref="84156800"/>
<reference ref="69206960"/>
</object>
<reference key="parent" ref="818320124"/>
</object>
Expand Down Expand Up @@ -4451,6 +4469,11 @@
<reference key="object" ref="730010322"/>
<reference key="parent" ref="385658135"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">997</int>
<reference key="object" ref="69206960"/>
<reference key="parent" ref="1043433546"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
Expand Down Expand Up @@ -4859,6 +4882,7 @@
<string>995.IBShouldRemoveOnLegacySave</string>
<string>996.IBPluginDependency</string>
<string>996.IBShouldRemoveOnLegacySave</string>
<string>997.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -5029,7 +5053,7 @@
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>{{205, 878}, {389, 213}}</string>
<string>{{205, 858}, {389, 233}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand Down Expand Up @@ -5264,6 +5288,7 @@
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
Expand All @@ -5282,7 +5307,7 @@
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">996</int>
<int key="maxID">998</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand Down Expand Up @@ -5451,6 +5476,7 @@
<string>onDeleteChannel:</string>
<string>onDeleteServer:</string>
<string>onDisconnect:</string>
<string>onGoToMark:</string>
<string>onJoin:</string>
<string>onJoinChannel:</string>
<string>onLeave:</string>
Expand Down Expand Up @@ -5554,6 +5580,7 @@
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
Expand Down Expand Up @@ -6269,6 +6296,10 @@
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<integer value="1050" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<integer value="1050" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
<integer value="3000" key="NS.object.0"/>
Expand Down
6 changes: 3 additions & 3 deletions ruby/controller/menucontroller.rb
Expand Up @@ -111,10 +111,12 @@ def validateMenuItem(i)

when 411 # mark scrollback
true
when 412 # clear mark / go to mark
when 412 # clear mark
true
when 413 # mark all as read
true
when 414 # go to mark
true
when 421 # make text bigger
@world.console.view.canMakeTextLarger?
when 422 # make text smaller
Expand Down Expand Up @@ -534,8 +536,6 @@ def onClearMark(sender)
end

def onGoToMark(sender)
puts 'go to mark'

sel = @world.selected
return unless sel
sel.log.go_to_mark
Expand Down
2 changes: 1 addition & 1 deletion ruby/view/log.rb
Expand Up @@ -216,7 +216,7 @@ def go_to_mark
end
t = t.parentNode
end
doc.body[:scrollTop] = y - 40
doc.body[:scrollTop] = y - 20
end
end

Expand Down

0 comments on commit b34fc9c

Please sign in to comment.