Skip to content

Commit

Permalink
[ADD] Code documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyroh committed Sep 15, 2016
1 parent 14610ca commit a82cb5f
Show file tree
Hide file tree
Showing 19 changed files with 193 additions and 69 deletions.
8 changes: 6 additions & 2 deletions Fluor.xcodeproj/project.pbxproj
Expand Up @@ -21,6 +21,7 @@
3FCD16A71D79793600C57B22 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3FCD16A61D79793600C57B22 /* Assets.xcassets */; };
3FCD16AA1D79793600C57B22 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3FCD16A81D79793600C57B22 /* MainMenu.xib */; };
3FCD16B41D79797600C57B22 /* utils.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FCD16B31D79797600C57B22 /* utils.m */; };
3FE213291D89A6940023FAC2 /* Notification-Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE213281D89A6940023FAC2 /* Notification-Extension.swift */; };
3FE7E0E01D7CA14600DC754D /* LaunchAtLoginController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FE7E0DF1D7CA14600DC754D /* LaunchAtLoginController.m */; };
3FE7E0E31D7CBE1700DC754D /* AboutWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE7E0E11D7CBE1700DC754D /* AboutWindowController.swift */; };
3FE7E0E41D7CBE1700DC754D /* AboutWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3FE7E0E21D7CBE1700DC754D /* AboutWindowController.xib */; };
Expand All @@ -29,6 +30,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
3F0E64141D8A8A59003243FE /* Fluor-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Fluor-Bridging-Header.h"; sourceTree = "<group>"; };
3F2FA3FE1D79D094003E2AD8 /* StatusMenuController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatusMenuController.swift; sourceTree = "<group>"; };
3F2FA4001D79D66D003E2AD8 /* StateView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StateView.swift; sourceTree = "<group>"; };
3F2FA4021D7A059F003E2AD8 /* CurrentAppView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CurrentAppView.swift; sourceTree = "<group>"; };
Expand All @@ -44,9 +46,9 @@
3FCD16A61D79793600C57B22 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3FCD16A91D79793600C57B22 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
3FCD16AB1D79793600C57B22 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3FCD16B11D79797600C57B22 /* Fluor-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Fluor-Bridging-Header.h"; sourceTree = "<group>"; };
3FCD16B21D79797600C57B22 /* utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = utils.h; sourceTree = "<group>"; };
3FCD16B31D79797600C57B22 /* utils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = utils.m; sourceTree = "<group>"; };
3FE213281D89A6940023FAC2 /* Notification-Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Notification-Extension.swift"; sourceTree = "<group>"; };
3FE7E0DE1D7CA14600DC754D /* LaunchAtLoginController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LaunchAtLoginController.h; sourceTree = "<group>"; };
3FE7E0DF1D7CA14600DC754D /* LaunchAtLoginController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LaunchAtLoginController.m; sourceTree = "<group>"; };
3FE7E0E11D7CBE1700DC754D /* AboutWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AboutWindowController.swift; sourceTree = "<group>"; };
Expand All @@ -72,6 +74,7 @@
3F2FA4041D7A1F87003E2AD8 /* BehaviorManager.swift */,
3FC44EF91D7F169A0065D433 /* Enums.swift */,
3FC44EFB1D7F16CB0065D433 /* RulesItem.swift */,
3FE213281D89A6940023FAC2 /* Notification-Extension.swift */,
);
name = Models;
sourceTree = "<group>";
Expand All @@ -95,7 +98,7 @@
3FCD16A31D79793600C57B22 /* Fluor */ = {
isa = PBXGroup;
children = (
3FCD16B11D79797600C57B22 /* Fluor-Bridging-Header.h */,
3F0E64141D8A8A59003243FE /* Fluor-Bridging-Header.h */,
3FCD16A41D79793600C57B22 /* AppDelegate.swift */,
3FC44EF81D7F16630065D433 /* Models */,
3FE7E0E51D7CBEAE00DC754D /* Controllers */,
Expand Down Expand Up @@ -251,6 +254,7 @@
3F2FA4011D79D66D003E2AD8 /* StateView.swift in Sources */,
3FCD16B41D79797600C57B22 /* utils.m in Sources */,
3FC44EFF1D7F464C0065D433 /* RunningAppsWindowController.swift in Sources */,
3FE213291D89A6940023FAC2 /* Notification-Extension.swift in Sources */,
3FE7E0EA1D7CC01B00DC754D /* RulesEditorWindowController.swift in Sources */,
3FE7E0E31D7CBE1700DC754D /* AboutWindowController.swift in Sources */,
3FE7E0E01D7CA14600DC754D /* LaunchAtLoginController.m in Sources */,
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 10 additions & 14 deletions Fluor/Base.lproj/MainMenu.xib
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="16A322" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
Expand Down Expand Up @@ -38,7 +38,7 @@
<action selector="editRules:" target="e3h-DP-voU" id="pRc-Y7-dds"/>
</connections>
</menuItem>
<menuItem title="Running apps..." id="Ark-Du-XrQ">
<menuItem title="Running applications..." id="Ark-Du-XrQ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="showRunningApps:" target="e3h-DP-voU" id="O2m-f1-TT5"/>
Expand Down Expand Up @@ -115,10 +115,10 @@
<connections>
<outlet property="stateSelector" destination="kdK-wj-mRZ" id="Egq-Rm-zuG"/>
</connections>
<point key="canvasLocation" x="456.5" y="-343"/>
<point key="canvasLocation" x="170" y="-420"/>
</customView>
<customView id="o8r-mD-TI5" customClass="CurrentAppView" customModule="Fluor" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="248" height="80"/>
<rect key="frame" x="0.0" y="0.0" width="245" height="80"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="EUW-rh-G7n">
Expand All @@ -130,12 +130,12 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" image="NSApplicationIcon" id="voG-Is-fch"/>
</imageView>
<customView translatesAutoresizingMaskIntoConstraints="NO" id="SPz-oQ-oif">
<rect key="frame" x="92" y="21" width="136" height="39"/>
<rect key="frame" x="92" y="21" width="133" height="39"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gmQ-wu-N8N">
<rect key="frame" x="-2" y="22" width="140" height="17"/>
<rect key="frame" x="-2" y="22" width="137" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="136" id="R5y-ap-31T"/>
<constraint firstAttribute="width" constant="133" id="R5y-ap-31T"/>
</constraints>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Label" id="nND-dO-QEg">
<font key="font" metaFont="systemSemibold" size="13"/>
Expand All @@ -144,7 +144,7 @@
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gls-pL-7qN">
<rect key="frame" x="-1" y="-1" width="138" height="20"/>
<rect key="frame" x="-1" y="-1" width="135" height="20"/>
<segmentedCell key="cell" borderStyle="border" alignment="left" style="roundRect" trackingMode="selectOne" id="1I5-bW-HGh">
<font key="font" metaFont="cellTitle"/>
<segments>
Expand All @@ -157,9 +157,6 @@
<segment toolTip="Switch to Function mode" image="otherModeTemplate" width="32">
<nil key="label"/>
</segment>
<segment toolTip="Negate default mode" image="negateModeTemplate" width="32">
<nil key="label"/>
</segment>
</segments>
</segmentedCell>
<connections>
Expand Down Expand Up @@ -191,14 +188,13 @@
<outlet property="appNameLabel" destination="gmQ-wu-N8N" id="xKJ-Xc-RRC"/>
<outlet property="behaviorSegment" destination="gls-pL-7qN" id="RlX-aP-rPf"/>
</connections>
<point key="canvasLocation" x="177" y="-320"/>
<point key="canvasLocation" x="183" y="-321"/>
</customView>
</objects>
<resources>
<image name="NSApplicationIcon" width="128" height="128"/>
<image name="appleModeTemplate" width="16" height="16"/>
<image name="defaultModeTemplate" width="16" height="16"/>
<image name="negateModeTemplate" width="16" height="16"/>
<image name="otherModeTemplate" width="16" height="16"/>
</resources>
</document>
6 changes: 3 additions & 3 deletions Fluor/Base.lproj/PreferencesWindowController.xib
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="16A322" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
Expand All @@ -15,7 +15,7 @@
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
<rect key="contentRect" x="196" y="240" width="261" height="135"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="878"/>
<view key="contentView" wantsLayer="YES" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="261" height="135"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand Down
6 changes: 1 addition & 5 deletions Fluor/Base.lproj/RulesEditorWindowController.xib
Expand Up @@ -19,7 +19,7 @@
<window title="Rules" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<rect key="contentRect" x="196" y="240" width="300" height="417"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/>
<view key="contentView" wantsLayer="YES" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="300" height="417"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down Expand Up @@ -91,9 +91,6 @@
<segment toolTip="Apple keys" image="otherModeTemplate" width="32" tag="1">
<nil key="label"/>
</segment>
<segment toolTip="Function keys" image="negateModeTemplate" width="32">
<nil key="label"/>
</segment>
</segments>
</segmentedCell>
<connections>
Expand Down Expand Up @@ -233,7 +230,6 @@
<image name="NSApplicationIcon" width="128" height="128"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="appleModeTemplate" width="16" height="16"/>
<image name="negateModeTemplate" width="16" height="16"/>
<image name="otherModeTemplate" width="16" height="16"/>
</resources>
</document>
12 changes: 4 additions & 8 deletions Fluor/Base.lproj/RunningAppsWindowController.xib
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="16A322" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
Expand All @@ -15,11 +15,11 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="Running Apps" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5" customClass="NSPanel">
<window title="Running Applications" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="300" height="417"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="878"/>
<view key="contentView" wantsLayer="YES" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="300" height="417"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down Expand Up @@ -94,9 +94,6 @@
<segment toolTip="Function keys" image="otherModeTemplate" width="32">
<nil key="label"/>
</segment>
<segment image="negateModeTemplate" width="32">
<nil key="label"/>
</segment>
</segments>
</segmentedCell>
<connections>
Expand Down Expand Up @@ -198,7 +195,6 @@
<image name="NSApplicationIcon" width="128" height="128"/>
<image name="appleModeTemplate" width="16" height="16"/>
<image name="defaultModeTemplate" width="16" height="16"/>
<image name="negateModeTemplate" width="16" height="16"/>
<image name="otherModeTemplate" width="16" height="16"/>
</resources>
</document>

0 comments on commit a82cb5f

Please sign in to comment.