1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-228 Add stub IBActions and menu items

This commit is contained in:
Tae Won Ha 2016-08-09 22:33:07 +02:00
parent 71fdb30f62
commit f33ba3f3e3
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 26 additions and 19 deletions

View File

@ -82,12 +82,21 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// MARK: - IBActions
extension AppDelegate {
@IBAction func newDocument(sender: AnyObject!) {
self.mainWindowManager.newMainWindow()
}
@IBAction func showPrefWindow(sender: AnyObject!) {
self.prefWindowComponent.show()
}
@IBAction func newDocument(sender: AnyObject!) {
self.mainWindowManager.newMainWindow()
}
@IBAction func newTab(sender: AnyObject!) {
}
@IBAction func openDocument(sender: AnyObject!) {
}
@IBAction func openInTab(sender: AnyObject!) {
}
}

View File

@ -76,25 +76,23 @@
<action selector="newDocument:" target="-1" id="4Si-XN-c54"/>
</connections>
</menuItem>
<menuItem title="Open…" keyEquivalent="o" id="IAo-SY-fd9">
<menuItem title="New Tab" keyEquivalent="t" id="TX9-92-Oe2">
<connections>
<action selector="openDocument:" target="-1" id="bVn-NM-KNZ"/>
<action selector="newTab:" target="-1" id="RfK-C0-Bu9"/>
</connections>
</menuItem>
<menuItem title="Open Recent" id="tXI-mr-wws">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="oas-Oc-fiZ">
<items>
<menuItem title="Clear Menu" id="vNY-rz-j42">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="clearRecentDocuments:" target="-1" id="Daa-9d-B3U"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
<menuItem title="Open…" keyEquivalent="o" id="IAo-SY-fd9">
<connections>
<action selector="openDocument:" target="-1" id="zbe-h0-oBM"/>
</connections>
</menuItem>
<menuItem title="Open in New Tab…" keyEquivalent="T" id="u9z-N4-Ksj">
<connections>
<action selector="openInTab:" target="-1" id="OwX-O7-EMJ"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="t9v-Ee-SaA"/>
<menuItem title="Close" keyEquivalent="w" id="DVo-aG-piG">
<connections>
<action selector="performClose:" target="-1" id="HmO-Ls-i7Q"/>