Skip to content

Commit

Permalink
Add links to homepage and the issue tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
taggon committed Mar 31, 2017
1 parent 54b94e1 commit f8c99bd
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Highlight.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
F24B1DCD1E2B1B1400FCE0A7 /* AppDelegate+Version.swift in Sources */ = {isa = PBXBuildFile; fileRef = F24B1DCC1E2B1B1400FCE0A7 /* AppDelegate+Version.swift */; };
F25AEB731E212C6E0083CB52 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25AEB721E212C6E0083CB52 /* AppDelegate.swift */; };
F25AEB751E212C6E0083CB52 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F25AEB741E212C6E0083CB52 /* Assets.xcassets */; };
F25AEB821E212F9B0083CB52 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F25AEB801E212F9B0083CB52 /* MainMenu.xib */; };
F25AEB871E213D230083CB52 /* AboutPreferencesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25AEB851E213D230083CB52 /* AboutPreferencesViewController.swift */; };
F25AEB8B1E213D360083CB52 /* StylePreferencesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25AEB891E213D360083CB52 /* StylePreferencesViewController.swift */; };
F25AEB8F1E213D570083CB52 /* GeneralPreferencesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F25AEB8D1E213D570083CB52 /* GeneralPreferencesViewController.swift */; };
Expand All @@ -21,6 +20,7 @@
F29B17081E8D1BF80060CA02 /* UserSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = F29B17071E8D1BF80060CA02 /* UserSettings.swift */; };
F29B170A1E8D37AA0060CA02 /* snippets in Resources */ = {isa = PBXBuildFile; fileRef = F29B17091E8D37AA0060CA02 /* snippets */; };
F29E0C221E8E4B91005A3DF3 /* Preferences.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F29E0C241E8E4B91005A3DF3 /* Preferences.storyboard */; };
F29E0C2E1E8E5AA8005A3DF3 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F25AEB801E212F9B0083CB52 /* MainMenu.xib */; };
F2A67B161E2257D2009D3AC1 /* scripts in Resources */ = {isa = PBXBuildFile; fileRef = F2A67B151E2257D2009D3AC1 /* scripts */; };
F2DFC4C51E2F5FA3009F4623 /* PrefWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2DFC4C41E2F5FA3009F4623 /* PrefWindowController.swift */; };
/* End PBXBuildFile section */
Expand All @@ -44,8 +44,8 @@
F29B17071E8D1BF80060CA02 /* UserSettings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserSettings.swift; sourceTree = "<group>"; };
F29B17091E8D37AA0060CA02 /* snippets */ = {isa = PBXFileReference; lastKnownFileType = folder; path = snippets; sourceTree = "<group>"; };
F29E0C231E8E4B91005A3DF3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Preferences.storyboard; sourceTree = "<group>"; };
F29E0C291E8E4C45005A3DF3 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/Preferences.strings; sourceTree = "<group>"; };
F29E0C2A1E8E4C45005A3DF3 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/MainMenu.strings; sourceTree = "<group>"; };
F29E0C2C1E8E581C005A3DF3 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/Preferences.strings; sourceTree = "<group>"; };
F29E0C301E8E5AC8005A3DF3 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/MainMenu.strings; sourceTree = "<group>"; };
F2A67B151E2257D2009D3AC1 /* scripts */ = {isa = PBXFileReference; lastKnownFileType = folder; path = scripts; sourceTree = "<group>"; };
F2DFC4C41E2F5FA3009F4623 /* PrefWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrefWindowController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -192,9 +192,9 @@
buildActionMask = 2147483647;
files = (
F2A67B161E2257D2009D3AC1 /* scripts in Resources */,
F29E0C2E1E8E5AA8005A3DF3 /* MainMenu.xib in Resources */,
F25AEB751E212C6E0083CB52 /* Assets.xcassets in Resources */,
F29B170A1E8D37AA0060CA02 /* snippets in Resources */,
F25AEB821E212F9B0083CB52 /* MainMenu.xib in Resources */,
F29E0C221E8E4B91005A3DF3 /* Preferences.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -274,7 +274,7 @@
isa = PBXVariantGroup;
children = (
F25AEB811E212F9B0083CB52 /* Base */,
F29E0C2A1E8E4C45005A3DF3 /* ko */,
F29E0C301E8E5AC8005A3DF3 /* ko */,
);
name = MainMenu.xib;
sourceTree = "<group>";
Expand All @@ -283,7 +283,7 @@
isa = PBXVariantGroup;
children = (
F29E0C231E8E4B91005A3DF3 /* Base */,
F29E0C291E8E4C45005A3DF3 /* ko */,
F29E0C2C1E8E581C005A3DF3 /* ko */,
);
name = Preferences.storyboard;
sourceTree = "<group>";
Expand Down
20 changes: 20 additions & 0 deletions Highlight/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,25 @@ class AppDelegate: NSObject, NSApplicationDelegate, UserSettings {
@IBAction func quitApplication(sender: AnyObject?) {
NSApplication.shared().terminate(self)
}

}

extension AppDelegate {
func openURLwithDefaultBrowser(urlKey: String) {
guard let urls = Bundle.main.object(forInfoDictionaryKey: "URLs") as? Dictionary<String, String> else {
return
}
if let urlString = urls[urlKey] {
NSWorkspace.shared().open(URL(string: urlString)!)
}
}

@IBAction func openHomepage(sender: AnyObject?) {
openURLwithDefaultBrowser(urlKey: "Homepage")
}

@IBAction func openIssuePage(sender: AnyObject?) {
openURLwithDefaultBrowser(urlKey: "Issue Tracker")
}
}

17 changes: 15 additions & 2 deletions Highlight/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="localizable" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
Expand Down Expand Up @@ -30,7 +30,7 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Styles" id="JgB-tL-Aap"/>
</menuItem>
<menuItem title="Highlight code" id="r5b-UX-VfX">
<menuItem title="Highlight Code" id="r5b-UX-VfX">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="highlightCodeActionWithSender:" target="Voe-Tx-rLC" id="k7n-3n-Dhk"/>
Expand All @@ -42,6 +42,19 @@
<action selector="openPreferenceWithSender:" target="Voe-Tx-rLC" id="mky-YS-jB2"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="fwT-2w-SHM"/>
<menuItem title="Visit Homepage..." id="q61-bd-wOJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="openHomepageWithSender:" target="Voe-Tx-rLC" id="aoG-LL-CTw"/>
</connections>
</menuItem>
<menuItem title="Report Issues..." id="cJW-q1-t5Y">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="openIssuePageWithSender:" target="Voe-Tx-rLC" id="Hw0-JP-Lzb"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="eiG-Yg-NSn"/>
<menuItem title="Quit" keyEquivalent="q" id="2kO-dj-y58">
<connections>
Expand Down
14 changes: 7 additions & 7 deletions Highlight/Base.lproj/Preferences.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -435,17 +435,17 @@
<objects>
<viewController title="About" showSeguePresentationStyle="single" id="oug-7P-IAg" customClass="AboutPreferencesViewController" customModule="Highlight" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" id="IOB-6N-VQQ">
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/>
<rect key="frame" x="0.0" y="0.0" width="450" height="369"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<box boxType="custom" borderWidth="0.0" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="XC9-xg-04Z">
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/>
<rect key="frame" x="0.0" y="0.0" width="450" height="369"/>
<view key="contentView" id="m2k-WE-ccQ">
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/>
<rect key="frame" x="0.0" y="0.0" width="450" height="369"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bam-I4-vz1">
<rect key="frame" x="123" y="98" width="205" height="35"/>
<rect key="frame" x="123" y="132" width="205" height="35"/>
<constraints>
<constraint firstAttribute="width" constant="201" id="9aZ-pd-SfV"/>
<constraint firstAttribute="height" constant="35" id="QHE-I7-GsL"/>
Expand All @@ -457,15 +457,15 @@
</textFieldCell>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="hqP-mn-3jH">
<rect key="frame" x="161" y="142" width="128" height="128"/>
<rect key="frame" x="161" y="177" width="128" height="128"/>
<constraints>
<constraint firstAttribute="width" constant="128" id="001-cQ-Psh"/>
<constraint firstAttribute="height" constant="128" id="Qls-lv-bsD"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" image="Highlight" id="1Vb-ea-M7A"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="NO" translatesAutoresizingMaskIntoConstraints="NO" id="szj-vi-jb6">
<rect key="frame" x="98" y="77" width="254" height="17"/>
<rect key="frame" x="98" y="111" width="254" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="GkG-QY-SzQ"/>
<constraint firstAttribute="width" constant="250" id="LwL-8t-Sco"/>
Expand Down Expand Up @@ -517,7 +517,7 @@
</viewController>
<customObject id="vEm-VK-Ha8" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="990" y="448"/>
<point key="canvasLocation" x="990" y="482.5"/>
</scene>
</scenes>
<resources>
Expand Down
11 changes: 9 additions & 2 deletions Highlight/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>42</string>
<string>46</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand All @@ -32,5 +32,12 @@
<string>NSApplication</string>
<key>LSUIElement</key>
<true/>
<key>URLs</key>
<dict>
<key>Homepage</key>
<string>https://github.com/taggon/highlight-for-mac</string>
<key>Issue Tracker</key>
<string>https://github.com/taggon/highlight-for-mac/issues</string>
</dict>
</dict>
</plist>
10 changes: 8 additions & 2 deletions Highlight/ko.lproj/MainMenu.strings
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
/* Class = "NSMenu"; title = "Styles"; ObjectID = "JgB-tL-Aap"; */
"JgB-tL-Aap.title" = "스타일";

/* Class = "NSMenuItem"; title = "Highlight code"; ObjectID = "r5b-UX-VfX"; */
"r5b-UX-VfX.title" = "구문강조된 코드 복사";
/* Class = "NSMenuItem"; title = "Report Issues..."; ObjectID = "cJW-q1-t5Y"; */
"cJW-q1-t5Y.title" = "버그 신고...";

/* Class = "NSMenuItem"; title = "Visit Homepage..."; ObjectID = "q61-bd-wOJ"; */
"q61-bd-wOJ.title" = "홈페이지...";

/* Class = "NSMenuItem"; title = "Highlight Code"; ObjectID = "r5b-UX-VfX"; */
"r5b-UX-VfX.title" = "구문강조 후 복사";

/* Class = "NSMenuItem"; title = "Styles"; ObjectID = "wlZ-TW-NyO"; */
"wlZ-TW-NyO.title" = "스타일";
12 changes: 9 additions & 3 deletions Highlight/ko.lproj/Preferences.strings
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
/* Class = "NSMenu"; title = "Languages"; ObjectID = "2PS-QP-pcK"; */
"2PS-QP-pcK.title" = "언어";

/* Class = "NSButtonCell"; title = "Bug Report"; ObjectID = "3S7-rh-Mnk"; */
"3S7-rh-Mnk.title" = "버그 신고";

/* Class = "NSTextFieldCell"; title = "Table View Cell"; ObjectID = "4Ye-Oh-xmM"; */
"4Ye-Oh-xmM.title" = "Table View Cell";

Expand All @@ -20,6 +23,9 @@
/* Class = "NSTableColumn"; headerCell.title = "2"; ObjectID = "65K-Ye-fLE"; */
"65K-Ye-fLE.headerCell.title" = "2";

/* Class = "NSButtonCell"; title = "Homepage"; ObjectID = "AIx-mv-Gq6"; */
"AIx-mv-Gq6.title" = "홈페이지";

/* Class = "NSTextFieldCell"; title = "Style"; ObjectID = "BLU-5E-HbM"; */
"BLU-5E-HbM.title" = "스타일";

Expand All @@ -39,7 +45,7 @@
"SUD-NV-zh2.title" = "Check";

/* Class = "NSTextFieldCell"; title = "Language detection is restricted to the selected languages."; ObjectID = "VuA-aV-eN8"; */
"VuA-aV-eN8.title" = "선택한 언어에 대해서만 언어를 자동으로 감지합니다.";
"VuA-aV-eN8.title" = "언어 자동 감지는 선택한 언어에 대해서만 동작합니다.";

/* Class = "NSTextFieldCell"; title = "Highlight"; ObjectID = "W8z-Re-N6q"; */
"W8z-Re-N6q.title" = "Highlight";
Expand All @@ -54,10 +60,10 @@
"hKW-KG-5ma.title" = "Table View Cell";

/* Class = "NSTextFieldCell"; title = "Select the above field and type the hotkey you want to use to convert your copied plain code into the highlighted one."; ObjectID = "j1b-Kg-9pB"; */
"j1b-Kg-9pB.title" = "위의 필드를 클릭한 후 코드를 구문 강조할 때 사용할 단축키를 지정하세요.";
"j1b-Kg-9pB.title" = " 필드를 선택한미리 복사한 코드를 구문 강조하여 복사할 때 사용할 단축키를 설정하세요.";

/* Class = "NSTextFieldCell"; title = "Font"; ObjectID = "jAJ-Id-PgJ"; */
"jAJ-Id-PgJ.title" = "Font";
"jAJ-Id-PgJ.title" = "글꼴";

/* Class = "NSWindow"; title = "Preferences"; ObjectID = "jgc-RP-WDF"; */
"jgc-RP-WDF.title" = "환경설정";
Expand Down

0 comments on commit f8c99bd

Please sign in to comment.