2018-06-13 10:44:30 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
|
|
|
<dependencies>
|
2018-06-23 15:05:58 +08:00
|
|
|
<deployment identifier="macosx"/>
|
2018-06-13 10:44:30 +08:00
|
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14113"/>
|
|
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
|
|
</dependencies>
|
|
|
|
<scenes>
|
|
|
|
<!--Application-->
|
|
|
|
<scene sceneID="JPo-4y-FX3">
|
|
|
|
<objects>
|
|
|
|
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
|
|
|
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6"/>
|
|
|
|
<connections>
|
|
|
|
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
|
|
|
|
</connections>
|
|
|
|
</application>
|
|
|
|
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="ClashX" customModuleProvider="target">
|
|
|
|
<connections>
|
2018-06-14 16:16:00 +08:00
|
|
|
<outlet property="autoStartMenuItem" destination="B1J-XB-BiZ" id="xaS-h5-qd0"/>
|
2018-06-13 10:44:30 +08:00
|
|
|
<outlet property="proxySettingMenuItem" destination="8se-yr-wmp" id="yvm-QP-yoA"/>
|
|
|
|
<outlet property="statusMenu" destination="Afa-lD-EbR" id="cov-E9-WrO"/>
|
|
|
|
</connections>
|
|
|
|
</customObject>
|
|
|
|
<menu id="Afa-lD-EbR">
|
|
|
|
<items>
|
|
|
|
<menuItem title="set as system proxy" id="8se-yr-wmp">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="actionSetSystemProxy:" target="Voe-Tx-rLC" id="jrp-iz-ljC"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
|
|
|
<menuItem title="start at login" id="B1J-XB-BiZ">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
2018-06-14 16:16:00 +08:00
|
|
|
<connections>
|
|
|
|
<action selector="actionStartAtLogin:" target="Voe-Tx-rLC" id="aie-1F-HjZ"/>
|
|
|
|
</connections>
|
2018-06-13 10:44:30 +08:00
|
|
|
</menuItem>
|
|
|
|
<menuItem title="copy export command" id="Jmb-PK-rMW">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="actionCopyExportCommand:" target="Voe-Tx-rLC" id="82r-sY-7xb"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
|
|
|
<menuItem title="Config" id="JMV-Dy-CI0">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<menu key="submenu" title="Config" id="tck-zU-JKQ">
|
|
|
|
<items>
|
|
|
|
<menuItem title="generate config" id="5Ab-VJ-iIm">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
2018-06-14 16:16:00 +08:00
|
|
|
<action selector="actionGenConfig:" target="Voe-Tx-rLC" id="SBd-vV-e1R"/>
|
2018-06-13 10:44:30 +08:00
|
|
|
</connections>
|
|
|
|
</menuItem>
|
2018-06-14 16:16:00 +08:00
|
|
|
<menuItem title="edit config" id="DwE-WX-ETZ">
|
2018-06-13 10:44:30 +08:00
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="openConfigFolder:" target="Voe-Tx-rLC" id="6Ke-Bi-AAZ"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
2018-06-14 16:16:00 +08:00
|
|
|
<menuItem title="reload config" id="q3G-VH-eyy">
|
2018-06-13 10:44:30 +08:00
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="actionUpdateConfig:" target="Voe-Tx-rLC" id="oW5-Ll-SY8"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
2018-06-14 16:16:00 +08:00
|
|
|
<menuItem title="import config" id="GRE-Ra-Pkx">
|
2018-06-13 10:44:30 +08:00
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
</menuItem>
|
|
|
|
</items>
|
|
|
|
</menu>
|
|
|
|
</menuItem>
|
2018-06-23 15:05:58 +08:00
|
|
|
<menuItem title="Help" id="Dd9-2F-FVY">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<menu key="submenu" title="Help" id="ogW-pn-jeR">
|
|
|
|
<items>
|
|
|
|
<menuItem title="check update" id="p0T-J8-Emx">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="checkForUpdates:" target="fth-rt-saN" id="gaF-35-d7h"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
|
|
|
</items>
|
|
|
|
</menu>
|
|
|
|
</menuItem>
|
2018-06-13 10:44:30 +08:00
|
|
|
<menuItem title="quit" id="NXU-86-Eem">
|
|
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
|
|
<connections>
|
|
|
|
<action selector="actionQuit:" target="Voe-Tx-rLC" id="ZtA-Bb-6xk"/>
|
|
|
|
</connections>
|
|
|
|
</menuItem>
|
|
|
|
</items>
|
|
|
|
</menu>
|
|
|
|
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
|
2018-06-23 15:05:58 +08:00
|
|
|
<customObject id="fth-rt-saN" customClass="SUUpdater"/>
|
2018-06-13 10:44:30 +08:00
|
|
|
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
|
|
</objects>
|
|
|
|
<point key="canvasLocation" x="75" y="0.0"/>
|
|
|
|
</scene>
|
|
|
|
<!--Window Controller-->
|
|
|
|
<scene sceneID="seD-T7-5qr">
|
|
|
|
<objects>
|
2018-06-14 16:16:00 +08:00
|
|
|
<windowController storyboardIdentifier="sampleConfigGenerator" id="Byh-1P-5fs" sceneMemberID="viewController">
|
2018-06-13 10:44:30 +08:00
|
|
|
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="q8i-4q-6dO">
|
|
|
|
<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="294" y="313" width="480" height="270"/>
|
|
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
|
|
|
|
<connections>
|
|
|
|
<outlet property="delegate" destination="Byh-1P-5fs" id="pxR-Kp-c8L"/>
|
|
|
|
</connections>
|
|
|
|
</window>
|
|
|
|
<connections>
|
|
|
|
<segue destination="HdM-On-UrR" kind="relationship" relationship="window.shadowedContentViewController" id="nAQ-Yb-JTm"/>
|
|
|
|
</connections>
|
|
|
|
</windowController>
|
|
|
|
<customObject id="qnw-vI-E5o" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
|
|
</objects>
|
|
|
|
<point key="canvasLocation" x="678" y="10"/>
|
|
|
|
</scene>
|
|
|
|
<!--Sample Config Generator-->
|
|
|
|
<scene sceneID="BM0-mm-BUh">
|
|
|
|
<objects>
|
|
|
|
<viewController title="Sample Config Generator" id="HdM-On-UrR" customClass="SampleConfigViewController" customModule="ClashX" customModuleProvider="target" sceneMemberID="viewController">
|
|
|
|
<view key="view" id="8rY-uh-JEl">
|
|
|
|
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
|
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
|
|
<subviews>
|
|
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZHC-RX-R69">
|
|
|
|
<rect key="frame" x="106" y="198" width="71" height="17"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="服务器地址" id="D1f-Cw-42v">
|
|
|
|
<font key="font" usesAppearanceFont="YES"/>
|
|
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="85H-oC-l4Y">
|
|
|
|
<rect key="frame" x="106" y="173" width="31" height="17"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="端口" id="TvM-SN-PIX">
|
|
|
|
<font key="font" usesAppearanceFont="YES"/>
|
|
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="oFA-yE-6xN">
|
|
|
|
<rect key="frame" x="106" y="148" width="31" height="17"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="密码" id="Pnz-Id-ZXs">
|
|
|
|
<font key="font" usesAppearanceFont="YES"/>
|
|
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4XJ-Py-Gyq">
|
|
|
|
<rect key="frame" x="198" y="196" width="96" height="22"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="pQU-gt-i5v">
|
|
|
|
<font key="font" metaFont="system"/>
|
|
|
|
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="trr-AX-8af">
|
|
|
|
<rect key="frame" x="106" y="123" width="58" height="17"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="加密方式" id="VCn-Oh-1Fg">
|
|
|
|
<font key="font" usesAppearanceFont="YES"/>
|
|
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="2ic-db-leA">
|
|
|
|
<rect key="frame" x="198" y="169" width="96" height="22"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Zcf-6H-pVA">
|
|
|
|
<font key="font" metaFont="system"/>
|
|
|
|
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</textFieldCell>
|
|
|
|
</textField>
|
|
|
|
<secureTextField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qiG-Ou-jgy">
|
|
|
|
<rect key="frame" x="198" y="143" width="96" height="22"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<secureTextFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesSingleLineMode="YES" id="Hda-3T-qDm">
|
|
|
|
<font key="font" metaFont="system"/>
|
|
|
|
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<allowedInputSourceLocales>
|
|
|
|
<string>NSAllRomanInputSourcesLocaleIdentifier</string>
|
|
|
|
</allowedInputSourceLocales>
|
|
|
|
</secureTextFieldCell>
|
|
|
|
</secureTextField>
|
|
|
|
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="OQp-TS-dYw">
|
|
|
|
<rect key="frame" x="374" y="13" width="78" height="32"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<buttonCell key="cell" type="push" title="确定" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="aOh-Mt-ZGu">
|
|
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
|
|
<font key="font" usesAppearanceFont="YES"/>
|
|
|
|
</buttonCell>
|
|
|
|
<connections>
|
|
|
|
<action selector="actionConfirm:" target="HdM-On-UrR" id="Xj6-r6-juZ"/>
|
|
|
|
</connections>
|
|
|
|
</button>
|
|
|
|
<comboBox verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MdP-r6-8PB">
|
|
|
|
<rect key="frame" x="198" y="116" width="139" height="26"/>
|
|
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
|
|
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" completes="NO" numberOfVisibleItems="11" id="7yV-TN-Npa">
|
|
|
|
<font key="font" metaFont="system"/>
|
|
|
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
|
|
|
</comboBoxCell>
|
|
|
|
</comboBox>
|
|
|
|
</subviews>
|
|
|
|
</view>
|
|
|
|
<connections>
|
|
|
|
<outlet property="serverAddressTextField" destination="4XJ-Py-Gyq" id="XZr-UF-erL"/>
|
|
|
|
<outlet property="serverPasswordTextField" destination="qiG-Ou-jgy" id="zSO-58-ixh"/>
|
|
|
|
<outlet property="serverPortTextField" destination="2ic-db-leA" id="iW2-74-wKA"/>
|
|
|
|
<outlet property="serverencryptMethodBox" destination="MdP-r6-8PB" id="pgk-ff-azt"/>
|
|
|
|
</connections>
|
|
|
|
</viewController>
|
|
|
|
<customObject id="GXm-g7-KED" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
|
|
</objects>
|
|
|
|
<point key="canvasLocation" x="1277" y="-1"/>
|
|
|
|
</scene>
|
|
|
|
</scenes>
|
|
|
|
</document>
|