Browse Source

Smaller resizable window using constraints

Thomas Buck 9 years ago
parent
commit
b0236fc56d

BIN
SerialGamepad.xcodeproj/project.xcworkspace/xcuserdata/thomas.xcuserdatad/UserInterfaceState.xcuserstate View File


+ 47
- 20
SerialGamepad/Base.lproj/MainMenu.xib View File

@@ -668,16 +668,16 @@
668 668
             </items>
669 669
         </menu>
670 670
         <window title="SerialGamepad" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainWindow">
671
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
671
+            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
672 672
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
673
-            <rect key="contentRect" x="335" y="390" width="330" height="258"/>
673
+            <rect key="contentRect" x="335" y="390" width="242" height="258"/>
674 674
             <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
675 675
             <view key="contentView" id="EiT-Mj-1SZ">
676
-                <rect key="frame" x="0.0" y="0.0" width="330" height="258"/>
676
+                <rect key="frame" x="0.0" y="0.0" width="242" height="258"/>
677 677
                 <autoresizingMask key="autoresizingMask"/>
678 678
                 <subviews>
679
-                    <button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fCd-m1-NwV">
680
-                        <rect key="frame" x="14" y="169" width="302" height="32"/>
679
+                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fCd-m1-NwV">
680
+                        <rect key="frame" x="14" y="169" width="214" height="32"/>
681 681
                         <buttonCell key="cell" type="push" title="Connect" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="adp-gD-EEf">
682 682
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
683 683
                             <font key="font" metaFont="system"/>
@@ -686,32 +686,32 @@
686 686
                             <action selector="connectButtonPressed:" target="QvC-M9-y7g" id="3UW-Gk-OUp"/>
687 687
                         </connections>
688 688
                     </button>
689
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Bo5-fb-a0u">
690
-                        <rect key="frame" x="20" y="140" width="290" height="16"/>
689
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Bo5-fb-a0u">
690
+                        <rect key="frame" x="20" y="140" width="202" height="16"/>
691 691
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="xcx-tB-hUl"/>
692 692
                     </levelIndicator>
693
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="LlC-lV-IAQ">
694
-                        <rect key="frame" x="20" y="116" width="290" height="16"/>
693
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="LlC-lV-IAQ">
694
+                        <rect key="frame" x="20" y="116" width="202" height="16"/>
695 695
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="sb6-cl-NKs"/>
696 696
                     </levelIndicator>
697
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="URz-Id-X9n">
698
-                        <rect key="frame" x="20" y="92" width="290" height="16"/>
697
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="URz-Id-X9n">
698
+                        <rect key="frame" x="20" y="92" width="202" height="16"/>
699 699
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="Sov-4g-u59"/>
700 700
                     </levelIndicator>
701
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="txY-x4-Zyp">
702
-                        <rect key="frame" x="20" y="68" width="290" height="16"/>
701
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="txY-x4-Zyp">
702
+                        <rect key="frame" x="20" y="68" width="202" height="16"/>
703 703
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="RKp-wa-VLB"/>
704 704
                     </levelIndicator>
705
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VyV-eY-7y9">
706
-                        <rect key="frame" x="20" y="44" width="290" height="16"/>
705
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="VyV-eY-7y9">
706
+                        <rect key="frame" x="20" y="44" width="202" height="16"/>
707 707
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="CyL-Tq-w7d"/>
708 708
                     </levelIndicator>
709
-                    <levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vCW-tD-iWD">
710
-                        <rect key="frame" x="20" y="20" width="290" height="16"/>
709
+                    <levelIndicator verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="vCW-tD-iWD">
710
+                        <rect key="frame" x="20" y="20" width="202" height="16"/>
711 711
                         <levelIndicatorCell key="cell" alignment="left" maxValue="1023" warningValue="2000" criticalValue="2000" levelIndicatorStyle="continuousCapacity" id="nfv-aV-cRB"/>
712 712
                     </levelIndicator>
713
-                    <popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mvV-p0-WO6">
714
-                        <rect key="frame" x="18" y="214" width="295" height="26"/>
713
+                    <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mvV-p0-WO6">
714
+                        <rect key="frame" x="18" y="214" width="207" height="26"/>
715 715
                         <popUpButtonCell key="cell" type="push" title="Serial Port" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" enabled="NO" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="W0M-vU-Ybd" id="p4h-ja-UZg">
716 716
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
717 717
                             <font key="font" metaFont="menu"/>
@@ -723,6 +723,33 @@
723 723
                         </popUpButtonCell>
724 724
                     </popUpButton>
725 725
                 </subviews>
726
+                <constraints>
727
+                    <constraint firstItem="URz-Id-X9n" firstAttribute="trailing" secondItem="txY-x4-Zyp" secondAttribute="trailing" id="07f-qh-Scb"/>
728
+                    <constraint firstAttribute="trailing" secondItem="mvV-p0-WO6" secondAttribute="trailing" constant="20" symbolic="YES" id="0Z8-0x-w3K"/>
729
+                    <constraint firstItem="txY-x4-Zyp" firstAttribute="leading" secondItem="URz-Id-X9n" secondAttribute="leading" id="Ifx-OK-nzf"/>
730
+                    <constraint firstItem="mvV-p0-WO6" firstAttribute="top" secondItem="EiT-Mj-1SZ" secondAttribute="top" constant="20" symbolic="YES" id="N0d-Aw-e8G"/>
731
+                    <constraint firstItem="txY-x4-Zyp" firstAttribute="top" secondItem="URz-Id-X9n" secondAttribute="bottom" constant="8" symbolic="YES" id="N39-6b-2NX"/>
732
+                    <constraint firstItem="LlC-lV-IAQ" firstAttribute="leading" secondItem="Bo5-fb-a0u" secondAttribute="leading" id="NDG-Sz-Kql"/>
733
+                    <constraint firstItem="VyV-eY-7y9" firstAttribute="top" secondItem="txY-x4-Zyp" secondAttribute="bottom" constant="8" symbolic="YES" id="PAc-J3-hYW"/>
734
+                    <constraint firstAttribute="bottom" secondItem="vCW-tD-iWD" secondAttribute="bottom" constant="20" id="W0Z-Ta-1Ta"/>
735
+                    <constraint firstItem="URz-Id-X9n" firstAttribute="trailing" secondItem="LlC-lV-IAQ" secondAttribute="trailing" id="X9s-qo-KFt"/>
736
+                    <constraint firstItem="vCW-tD-iWD" firstAttribute="top" secondItem="VyV-eY-7y9" secondAttribute="bottom" constant="8" symbolic="YES" id="XQf-DW-DiW"/>
737
+                    <constraint firstItem="VyV-eY-7y9" firstAttribute="trailing" secondItem="vCW-tD-iWD" secondAttribute="trailing" id="a7p-z4-EV6"/>
738
+                    <constraint firstItem="mvV-p0-WO6" firstAttribute="leading" secondItem="EiT-Mj-1SZ" secondAttribute="leading" constant="20" symbolic="YES" id="b0b-Gh-4oj"/>
739
+                    <constraint firstItem="fCd-m1-NwV" firstAttribute="top" secondItem="mvV-p0-WO6" secondAttribute="bottom" constant="20" symbolic="YES" id="bDw-ED-yYf"/>
740
+                    <constraint firstItem="VyV-eY-7y9" firstAttribute="leading" secondItem="vCW-tD-iWD" secondAttribute="leading" id="bQC-oV-s9H"/>
741
+                    <constraint firstItem="LlC-lV-IAQ" firstAttribute="trailing" secondItem="Bo5-fb-a0u" secondAttribute="trailing" id="blp-4C-YDS"/>
742
+                    <constraint firstItem="LlC-lV-IAQ" firstAttribute="leading" secondItem="URz-Id-X9n" secondAttribute="leading" id="bto-Td-nLV"/>
743
+                    <constraint firstItem="fCd-m1-NwV" firstAttribute="trailing" secondItem="Bo5-fb-a0u" secondAttribute="trailing" id="dDd-Lu-0Uw"/>
744
+                    <constraint firstItem="Bo5-fb-a0u" firstAttribute="leading" secondItem="fCd-m1-NwV" secondAttribute="leading" id="dvb-eu-kGQ"/>
745
+                    <constraint firstItem="fCd-m1-NwV" firstAttribute="leading" secondItem="mvV-p0-WO6" secondAttribute="leading" id="fTx-d3-64h"/>
746
+                    <constraint firstItem="URz-Id-X9n" firstAttribute="top" secondItem="LlC-lV-IAQ" secondAttribute="bottom" constant="8" symbolic="YES" id="flg-Yj-gL4"/>
747
+                    <constraint firstItem="LlC-lV-IAQ" firstAttribute="top" secondItem="Bo5-fb-a0u" secondAttribute="bottom" constant="8" symbolic="YES" id="gBD-9W-mSY"/>
748
+                    <constraint firstItem="VyV-eY-7y9" firstAttribute="trailing" secondItem="txY-x4-Zyp" secondAttribute="trailing" id="pZ5-Rl-nd8"/>
749
+                    <constraint firstItem="Bo5-fb-a0u" firstAttribute="top" secondItem="fCd-m1-NwV" secondAttribute="bottom" constant="20" symbolic="YES" id="qe4-JT-iKz"/>
750
+                    <constraint firstItem="fCd-m1-NwV" firstAttribute="trailing" secondItem="mvV-p0-WO6" secondAttribute="trailing" id="qk4-kr-Hsn"/>
751
+                    <constraint firstItem="VyV-eY-7y9" firstAttribute="leading" secondItem="txY-x4-Zyp" secondAttribute="leading" id="ra0-kd-Oll"/>
752
+                </constraints>
726 753
             </view>
727 754
             <connections>
728 755
                 <outlet property="connectButton" destination="fCd-m1-NwV" id="3l3-JM-thL"/>
@@ -734,7 +761,7 @@
734 761
                 <outlet property="level6" destination="vCW-tD-iWD" id="Il2-Xb-sB9"/>
735 762
                 <outlet property="portList" destination="mvV-p0-WO6" id="TqL-rb-GiB"/>
736 763
             </connections>
737
-            <point key="canvasLocation" x="598" y="439"/>
764
+            <point key="canvasLocation" x="554" y="439"/>
738 765
         </window>
739 766
     </objects>
740 767
 </document>

+ 1
- 1
SerialGamepad/Info.plist View File

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>94</string>
24
+	<string>98</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Loading…
Cancel
Save