add Auto/Forced mode control for MBP15.1 (2018)

This commit is contained in:
Jeff Le
2018-11-07 21:29:54 +07:00
parent de3988463a
commit a2e290859e
13 changed files with 332 additions and 224 deletions

View File

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10115" systemVersion="15D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment version="1060" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10115"/>
<capability name="box content view" minToolsVersion="7.0"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication"/>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="smcFanControl" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="MainWindow" animationBehavior="default" id="21" userLabel="Window" customClass="StatusItemWindow">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="519" y="155" width="337" height="436"/>
<rect key="contentRect" x="519" y="155" width="374" height="436"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
<value key="minSize" type="size" width="213" height="107"/>
<view key="contentView" id="2">
<rect key="frame" x="0.0" y="0.0" width="337" height="436"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="436"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="0.0" verticalLineScroll="16" verticalPageScroll="0.0" hasVerticalScroller="NO" usesPredominantAxisScrolling="NO" id="439">
<rect key="frame" x="20" y="292" width="297" height="99"/>
<rect key="frame" x="20" y="292" width="334" height="99"/>
<autoresizingMask key="autoresizingMask"/>
<clipView key="contentView" id="ANX-d3-y3X">
<rect key="frame" x="1" y="0.0" width="295" height="98"/>
<rect key="frame" x="1" y="0.0" width="332" height="98"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="none" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" rowHeight="14" headerView="882" id="440">
<rect key="frame" x="0.0" y="0.0" width="295" height="75"/>
<rect key="frame" x="0.0" y="0.0" width="332" height="75"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@ -109,24 +109,38 @@
</binding>
</connections>
</tableColumn>
<tableColumn identifier="automode" width="45" minWidth="45" maxWidth="1000" id="k7u-zt-Zu0">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Auto">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
<buttonCell key="dataCell" type="check" bezelStyle="regularSquare" imagePosition="left" inset="2" id="pTb-gv-bpD">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<connections>
<binding destination="492" name="value" keyPath="arrangedObjects.auto" id="iMd-of-nPJ"/>
</connections>
</tableColumn>
</tableColumns>
<connections>
<outlet property="delegate" destination="212" id="702"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</clipView>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" controlSize="small" horizontal="YES" id="875">
<rect key="frame" x="1" y="84" width="295" height="14"/>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" controlSize="small" horizontal="YES" id="875">
<rect key="frame" x="1" y="84" width="327" height="14"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" controlSize="small" horizontal="NO" id="873">
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" controlSize="small" horizontal="NO" id="873">
<rect key="frame" x="-100" y="-100" width="11" height="81"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="882">
<rect key="frame" x="0.0" y="0.0" width="295" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="332" height="23"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
@ -182,10 +196,10 @@
</connections>
</button>
<box title="Options" id="479">
<rect key="frame" x="17" y="41" width="303" height="243"/>
<rect key="frame" x="17" y="41" width="340" height="243"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" id="ILw-66-YcF">
<rect key="frame" x="2" y="2" width="299" height="226"/>
<rect key="frame" x="3" y="3" width="334" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button id="455">
@ -200,7 +214,7 @@
</connections>
</button>
<popUpButton verticalHuggingPriority="750" id="456">
<rect key="frame" x="107" y="58" width="168" height="22"/>
<rect key="frame" x="107" y="57" width="210" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="push" title="Item1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" selectedItem="460" id="840">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
@ -220,7 +234,7 @@
</connections>
</popUpButton>
<popUpButton verticalHuggingPriority="750" id="461">
<rect key="frame" x="107" y="33" width="168" height="22"/>
<rect key="frame" x="107" y="32" width="210" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="push" title="Item1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" selectedItem="465" id="841">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
@ -240,7 +254,7 @@
</connections>
</popUpButton>
<popUpButton verticalHuggingPriority="750" id="466">
<rect key="frame" x="107" y="8" width="168" height="22"/>
<rect key="frame" x="107" y="7" width="210" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="push" title="Item1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" selectedItem="470" id="842">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
@ -345,7 +359,7 @@
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" id="609">
<rect key="frame" x="74" y="188" width="154" height="22"/>
<rect key="frame" x="74" y="187" width="196" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="push" title="Icon only" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" selectedItem="631" id="849">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
@ -377,7 +391,7 @@
</connections>
</button>
<colorWell id="716">
<rect key="frame" x="233" y="192" width="39" height="17"/>
<rect key="frame" x="275" y="191" width="39" height="17"/>
<autoresizingMask key="autoresizingMask"/>
<color key="color" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<connections>
@ -390,33 +404,7 @@
</colorWell>
</subviews>
</view>
<color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
<color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</box>
<button verticalHuggingPriority="750" id="482">
<rect key="frame" x="242" y="13" width="80" height="28"/>
<autoresizingMask key="autoresizingMask"/>
<buttonCell key="cell" type="push" title="Save" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" inset="2" id="851">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="savePreferences:" target="212" id="550"/>
</connections>
</button>
<button verticalHuggingPriority="750" id="483">
<rect key="frame" x="159" y="13" width="85" height="28"/>
<autoresizingMask key="autoresizingMask"/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" inset="2" id="852">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<string key="keyEquivalent">w</string>
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</buttonCell>
<connections>
<action selector="closePreferences:" target="212" id="485"/>
</connections>
</button>
<button hidden="YES" id="695">
<rect key="frame" x="97" y="289" width="85" height="22"/>
<autoresizingMask key="autoresizingMask"/>
@ -429,8 +417,33 @@
<binding destination="486" name="value" keyPath="selection.sync" id="715"/>
</connections>
</button>
<button verticalHuggingPriority="750" id="482">
<rect key="frame" x="279" y="12" width="80" height="28"/>
<autoresizingMask key="autoresizingMask"/>
<buttonCell key="cell" type="push" title="Save" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" inset="2" id="851">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<action selector="savePreferences:" target="212" id="550"/>
</connections>
</button>
<button verticalHuggingPriority="750" id="483">
<rect key="frame" x="196" y="12" width="85" height="28"/>
<autoresizingMask key="autoresizingMask"/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" controlSize="small" borderStyle="border" inset="2" id="852">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<string key="keyEquivalent">w</string>
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</buttonCell>
<connections>
<action selector="closePreferences:" target="212" id="485"/>
</connections>
</button>
</subviews>
</view>
<point key="canvasLocation" x="128" y="146"/>
</window>
<customObject id="212" userLabel="FanControl" customClass="FanControl">
<connections>
@ -476,16 +489,17 @@
<scrollView autohidesScrollers="YES" horizontalLineScroll="0.0" horizontalPageScroll="0.0" verticalLineScroll="0.0" verticalPageScroll="0.0" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="375">
<rect key="frame" x="0.0" y="0.0" width="575" height="603"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" id="ecH-fN-YuT">
<clipView key="contentView" drawsBackground="NO" id="ecH-fN-YuT">
<rect key="frame" x="1" y="1" width="573" height="601"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView editable="NO" importsGraphics="NO" findStyle="panel" usesRuler="YES" usesFontPanel="YES" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="376">
<textView editable="NO" importsGraphics="NO" verticallyResizable="YES" usesFontPanel="YES" findStyle="panel" usesRuler="YES" spellingCorrection="YES" smartInsertDelete="YES" id="376">
<rect key="frame" x="0.0" y="0.0" width="573" height="3934"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="573" height="601"/>
<size key="maxSize" width="573" height="10000000"/>
<size key="maxSize" width="575" height="10000000"/>
<attributedString key="textStorage">
<fragment>
<mutableString key="content"> GNU GENERAL PUBLIC LICENSE
@ -770,23 +784,21 @@ POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
</mutableString>
<attributes>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" size="12" name="Helvetica"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0" allowsDefaultTighteningForTruncation="NO"/>
</attributes>
</fragment>
</attributedString>
<color key="insertionPointColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="573" height="601"/>
<size key="maxSize" width="573" height="10000000"/>
</textView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</clipView>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="877">
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="877">
<rect key="frame" x="-100" y="-100" width="87" height="18"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="876">
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="876">
<rect key="frame" x="558" y="1" width="16" height="601"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
@ -942,6 +954,7 @@ POSSIBILITY OF SUCH DAMAGES.
</connections>
</menuItem>
</items>
<point key="canvasLocation" x="-241" y="85"/>
</menu>
<arrayController automaticallyPreparesContent="YES" id="486" userLabel="Favorites">
<declaredKeys>
@ -961,6 +974,7 @@ POSSIBILITY OF SUCH DAMAGES.
<string>selspeed</string>
<string>sync</string>
<string>menu</string>
<string>auto</string>
</declaredKeys>
<connections>
<binding destination="486" name="contentArray" keyPath="selection.FanData" id="507"/>
@ -990,7 +1004,7 @@ POSSIBILITY OF SUCH DAMAGES.
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="869">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
@ -1051,28 +1065,26 @@ be used.</string>
<scrollView autohidesScrollers="YES" horizontalLineScroll="0.0" horizontalPageScroll="0.0" verticalLineScroll="0.0" verticalPageScroll="0.0" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="621">
<rect key="frame" x="0.0" y="0.0" width="575" height="665"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" id="cip-8t-T6q">
<clipView key="contentView" drawsBackground="NO" id="cip-8t-T6q">
<rect key="frame" x="1" y="1" width="573" height="663"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView editable="NO" importsGraphics="NO" findStyle="panel" usesRuler="YES" usesFontPanel="YES" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="622">
<textView editable="NO" importsGraphics="NO" verticallyResizable="YES" usesFontPanel="YES" findStyle="panel" usesRuler="YES" spellingCorrection="YES" smartInsertDelete="YES" id="622">
<rect key="frame" x="0.0" y="0.0" width="573" height="663"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="573" height="663"/>
<size key="maxSize" width="573" height="10000000"/>
<size key="maxSize" width="575" height="10000000"/>
<color key="insertionPointColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="573" height="663"/>
<size key="maxSize" width="573" height="10000000"/>
</textView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</clipView>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="879">
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="879">
<rect key="frame" x="-100" y="-100" width="87" height="18"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="878">
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="878">
<rect key="frame" x="-30" y="1" width="15" height="587"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>