main code repository.
Révision | 73d503748fe3b547d1332c869380f38146874b21 (tree) |
---|---|
l'heure | 2015-12-05 21:20:31 |
Auteur | masakih <masakih@user...> |
Commiter | masakih |
環境設定からスワイプによる連合艦隊ビューの切り替えの可否を変更できるようにした
@@ -342,6 +342,8 @@ static NSString *loginPageURLPrefix = @"https://www.dmm.com/my/-/login/=/"; | ||
342 | 342 | |
343 | 343 | - (void)swipeWithEvent:(NSEvent *)event |
344 | 344 | { |
345 | + if(!HMStandardDefaults.useSwipeChangeCombinedView) return; | |
346 | + | |
345 | 347 | if([event deltaX] > 0) { |
346 | 348 | [self showCombinedView]; |
347 | 349 | } |
@@ -144,4 +144,9 @@ extern HMUserDefaults *HMStandardDefaults; | ||
144 | 144 | */ |
145 | 145 | @property BOOL autoCombinedView; |
146 | 146 | |
147 | +/** | |
148 | + * スワイプで連合艦隊ビューの切り替えをするか | |
149 | + */ | |
150 | +@property BOOL useSwipeChangeCombinedView; | |
151 | + | |
147 | 152 | @end |
@@ -456,4 +456,12 @@ HMUserDefaults *HMStandardDefaults = nil; | ||
456 | 456 | { |
457 | 457 | return [self boolForKey:@"autoCombinedView"]; |
458 | 458 | } |
459 | +- (void)setUseSwipeChangeCombinedView:(BOOL)useSwipeChangeCombinedView | |
460 | +{ | |
461 | + [self setBool:useSwipeChangeCombinedView forKey:@"useSwipeChangeCombinedView"]; | |
462 | +} | |
463 | +- (BOOL)useSwipeChangeCombinedView | |
464 | +{ | |
465 | + return [self boolForKey:@"useSwipeChangeCombinedView"]; | |
466 | +} | |
459 | 467 | @end |
@@ -16,14 +16,14 @@ | ||
16 | 16 | <window title="環境設定" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" frameAutosaveName="preferencewindow" animationBehavior="default" id="F0z-JX-Cv5" customClass="NSPanel"> |
17 | 17 | <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/> |
18 | 18 | <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> |
19 | - <rect key="contentRect" x="196" y="240" width="486" height="280"/> | |
19 | + <rect key="contentRect" x="196" y="240" width="486" height="301"/> | |
20 | 20 | <rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/> |
21 | 21 | <view key="contentView" id="se5-gp-TjO"> |
22 | - <rect key="frame" x="0.0" y="5" width="486" height="280"/> | |
22 | + <rect key="frame" x="0.0" y="-9" width="486" height="301"/> | |
23 | 23 | <autoresizingMask key="autoresizingMask"/> |
24 | 24 | <subviews> |
25 | 25 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KN7-sy-a0j"> |
26 | - <rect key="frame" x="18" y="243" width="186" height="17"/> | |
26 | + <rect key="frame" x="18" y="264" width="186" height="17"/> | |
27 | 27 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="スクリーンショットの保存先:" id="nxM-71-Zg6"> |
28 | 28 | <font key="font" metaFont="system"/> |
29 | 29 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -31,7 +31,7 @@ | ||
31 | 31 | </textFieldCell> |
32 | 32 | </textField> |
33 | 33 | <popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bu3-qp-Qbv"> |
34 | - <rect key="frame" x="208" y="238" width="180" height="26"/> | |
34 | + <rect key="frame" x="208" y="259" width="180" height="26"/> | |
35 | 35 | <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1000" inset="2" selectedItem="HeK-3M-4cT" id="Y49-eY-VPt"> |
36 | 36 | <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> |
37 | 37 | <font key="font" metaFont="menu"/> |
@@ -49,7 +49,7 @@ | ||
49 | 49 | </popUpButtonCell> |
50 | 50 | </popUpButton> |
51 | 51 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tlH-Nm-il8"> |
52 | - <rect key="frame" x="18" y="189" width="186" height="17"/> | |
52 | + <rect key="frame" x="18" y="210" width="186" height="17"/> | |
53 | 53 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="通知音を鳴らす:" id="KUF-ch-Mbw"> |
54 | 54 | <font key="font" metaFont="system"/> |
55 | 55 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -57,7 +57,7 @@ | ||
57 | 57 | </textFieldCell> |
58 | 58 | </textField> |
59 | 59 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HSc-Bc-B00"> |
60 | - <rect key="frame" x="208" y="188" width="48" height="18"/> | |
60 | + <rect key="frame" x="208" y="209" width="48" height="18"/> | |
61 | 61 | <buttonCell key="cell" type="check" title="遠征" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="wdw-X4-3nk"> |
62 | 62 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
63 | 63 | <font key="font" size="13" name="AquaKana"/> |
@@ -67,7 +67,7 @@ | ||
67 | 67 | </connections> |
68 | 68 | </button> |
69 | 69 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="08f-KI-u1l"> |
70 | - <rect key="frame" x="260" y="188" width="87" height="18"/> | |
70 | + <rect key="frame" x="260" y="209" width="87" height="18"/> | |
71 | 71 | <buttonCell key="cell" type="check" title="入渠ドック" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="FQU-PU-UhE"> |
72 | 72 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
73 | 73 | <font key="font" size="13" name="AquaKana"/> |
@@ -77,7 +77,7 @@ | ||
77 | 77 | </connections> |
78 | 78 | </button> |
79 | 79 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="otX-MN-x7l"> |
80 | - <rect key="frame" x="18" y="154" width="186" height="17"/> | |
80 | + <rect key="frame" x="18" y="175" width="186" height="17"/> | |
81 | 81 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="参加作戦カラー:" id="6kd-P6-Bwt"> |
82 | 82 | <font key="font" metaFont="system"/> |
83 | 83 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -85,7 +85,7 @@ | ||
85 | 85 | </textFieldCell> |
86 | 86 | </textField> |
87 | 87 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5vm-EO-1Eg"> |
88 | - <rect key="frame" x="208" y="153" width="87" height="18"/> | |
88 | + <rect key="frame" x="208" y="174" width="87" height="18"/> | |
89 | 89 | <buttonCell key="cell" type="check" title="色付けする" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="Z4X-Rv-dnI"> |
90 | 90 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
91 | 91 | <font key="font" metaFont="system"/> |
@@ -95,7 +95,7 @@ | ||
95 | 95 | </connections> |
96 | 96 | </button> |
97 | 97 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6ca-TN-zpl"> |
98 | - <rect key="frame" x="260" y="124" width="44" height="23"/> | |
98 | + <rect key="frame" x="260" y="145" width="44" height="23"/> | |
99 | 99 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
100 | 100 | <connections> |
101 | 101 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan01Color" id="eKF-ss-O5E"> |
@@ -106,7 +106,7 @@ | ||
106 | 106 | </connections> |
107 | 107 | </colorWell> |
108 | 108 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5PE-z1-0Ij"> |
109 | - <rect key="frame" x="229" y="127" width="30" height="17"/> | |
109 | + <rect key="frame" x="229" y="148" width="30" height="17"/> | |
110 | 110 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="1:" id="WNG-o8-8aW"> |
111 | 111 | <font key="font" metaFont="system"/> |
112 | 112 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -114,7 +114,7 @@ | ||
114 | 114 | </textFieldCell> |
115 | 115 | </textField> |
116 | 116 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ljj-uV-GaN"> |
117 | - <rect key="frame" x="341" y="124" width="44" height="23"/> | |
117 | + <rect key="frame" x="341" y="145" width="44" height="23"/> | |
118 | 118 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
119 | 119 | <connections> |
120 | 120 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan02Color" id="d33-aQ-aRU"> |
@@ -125,7 +125,7 @@ | ||
125 | 125 | </connections> |
126 | 126 | </colorWell> |
127 | 127 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p6j-a1-mSb"> |
128 | - <rect key="frame" x="310" y="127" width="30" height="17"/> | |
128 | + <rect key="frame" x="310" y="148" width="30" height="17"/> | |
129 | 129 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="2:" id="Pzg-hJ-M2Q"> |
130 | 130 | <font key="font" metaFont="system"/> |
131 | 131 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -133,7 +133,7 @@ | ||
133 | 133 | </textFieldCell> |
134 | 134 | </textField> |
135 | 135 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uAH-FY-G1V"> |
136 | - <rect key="frame" x="422" y="124" width="44" height="23"/> | |
136 | + <rect key="frame" x="422" y="145" width="44" height="23"/> | |
137 | 137 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
138 | 138 | <connections> |
139 | 139 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan03Color" id="gaf-XQ-Jjo"> |
@@ -144,7 +144,7 @@ | ||
144 | 144 | </connections> |
145 | 145 | </colorWell> |
146 | 146 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="h3d-pw-NLI"> |
147 | - <rect key="frame" x="391" y="127" width="30" height="17"/> | |
147 | + <rect key="frame" x="391" y="148" width="30" height="17"/> | |
148 | 148 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="3:" id="yiJ-tP-64S"> |
149 | 149 | <font key="font" metaFont="system"/> |
150 | 150 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -152,7 +152,7 @@ | ||
152 | 152 | </textFieldCell> |
153 | 153 | </textField> |
154 | 154 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JH5-aR-VeH"> |
155 | - <rect key="frame" x="351" y="187" width="87" height="18"/> | |
155 | + <rect key="frame" x="351" y="208" width="87" height="18"/> | |
156 | 156 | <buttonCell key="cell" type="check" title="建造ドック" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="FO7-lH-5xk"> |
157 | 157 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
158 | 158 | <font key="font" size="13" name="AquaKana"/> |
@@ -162,7 +162,7 @@ | ||
162 | 162 | </connections> |
163 | 163 | </button> |
164 | 164 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="P0h-6y-57H"> |
165 | - <rect key="frame" x="229" y="218" width="204" height="18"/> | |
165 | + <rect key="frame" x="229" y="239" width="204" height="18"/> | |
166 | 166 | <buttonCell key="cell" type="check" title="撮影後リストウインドウを表示" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="fvW-fR-dOk"> |
167 | 167 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
168 | 168 | <font key="font" size="13" name="AquaKana"/> |
@@ -172,7 +172,7 @@ | ||
172 | 172 | </connections> |
173 | 173 | </button> |
174 | 174 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qg1-uY-Jyo"> |
175 | - <rect key="frame" x="260" y="95" width="44" height="23"/> | |
175 | + <rect key="frame" x="260" y="116" width="44" height="23"/> | |
176 | 176 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
177 | 177 | <connections> |
178 | 178 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan04Color" id="ixe-Oo-o2e"> |
@@ -183,7 +183,7 @@ | ||
183 | 183 | </connections> |
184 | 184 | </colorWell> |
185 | 185 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="OSN-EO-NJW"> |
186 | - <rect key="frame" x="229" y="98" width="30" height="17"/> | |
186 | + <rect key="frame" x="229" y="119" width="30" height="17"/> | |
187 | 187 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="4:" id="gvs-zZ-7bl"> |
188 | 188 | <font key="font" metaFont="system"/> |
189 | 189 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -191,7 +191,7 @@ | ||
191 | 191 | </textFieldCell> |
192 | 192 | </textField> |
193 | 193 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="G6P-ks-Ttd"> |
194 | - <rect key="frame" x="341" y="95" width="44" height="23"/> | |
194 | + <rect key="frame" x="341" y="116" width="44" height="23"/> | |
195 | 195 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
196 | 196 | <connections> |
197 | 197 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan05Color" id="xHk-s3-FaE"> |
@@ -202,7 +202,7 @@ | ||
202 | 202 | </connections> |
203 | 203 | </colorWell> |
204 | 204 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wrP-ky-n1g"> |
205 | - <rect key="frame" x="310" y="98" width="30" height="17"/> | |
205 | + <rect key="frame" x="310" y="119" width="30" height="17"/> | |
206 | 206 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="5:" id="Qqm-cr-nBv"> |
207 | 207 | <font key="font" size="13" name="HiraKakuProN-W3"/> |
208 | 208 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -210,7 +210,7 @@ | ||
210 | 210 | </textFieldCell> |
211 | 211 | </textField> |
212 | 212 | <colorWell fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Eha-BF-mrE"> |
213 | - <rect key="frame" x="422" y="95" width="44" height="23"/> | |
213 | + <rect key="frame" x="422" y="116" width="44" height="23"/> | |
214 | 214 | <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
215 | 215 | <connections> |
216 | 216 | <binding destination="DTu-dT-pUA" name="value" keyPath="values.plan06Color" id="VZj-5B-dSo"> |
@@ -221,7 +221,7 @@ | ||
221 | 221 | </connections> |
222 | 222 | </colorWell> |
223 | 223 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="oUs-l4-bGp"> |
224 | - <rect key="frame" x="391" y="98" width="30" height="17"/> | |
224 | + <rect key="frame" x="391" y="119" width="30" height="17"/> | |
225 | 225 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="6:" id="heb-je-e2Z"> |
226 | 226 | <font key="font" size="13" name="HiraKakuProN-W3"/> |
227 | 227 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -229,7 +229,7 @@ | ||
229 | 229 | </textFieldCell> |
230 | 230 | </textField> |
231 | 231 | <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UVY-fV-YyH"> |
232 | - <rect key="frame" x="18" y="60" width="186" height="17"/> | |
232 | + <rect key="frame" x="18" y="81" width="186" height="17"/> | |
233 | 233 | <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="連合艦隊表示:" id="tWu-Vc-uAA"> |
234 | 234 | <font key="font" metaFont="system"/> |
235 | 235 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
@@ -237,7 +237,7 @@ | ||
237 | 237 | </textFieldCell> |
238 | 238 | </textField> |
239 | 239 | <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="BAL-yn-Hzt"> |
240 | - <rect key="frame" x="208" y="59" width="139" height="18"/> | |
240 | + <rect key="frame" x="208" y="80" width="139" height="18"/> | |
241 | 241 | <buttonCell key="cell" type="check" title="自動的に連動させる" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="Mb9-b0-Q0s"> |
242 | 242 | <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> |
243 | 243 | <font key="font" metaFont="system"/> |
@@ -270,12 +270,22 @@ | ||
270 | 270 | <action selector="removeDatabaseFile:" target="-1" id="awI-pe-VnN"/> |
271 | 271 | </connections> |
272 | 272 | </button> |
273 | + <button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="O0m-0s-Yai"> | |
274 | + <rect key="frame" x="208" y="58" width="173" height="18"/> | |
275 | + <buttonCell key="cell" type="check" title="3本指スワイプで切り替え" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="jWo-0e-bjf"> | |
276 | + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> | |
277 | + <font key="font" metaFont="system"/> | |
278 | + </buttonCell> | |
279 | + <connections> | |
280 | + <binding destination="DTu-dT-pUA" name="value" keyPath="values.useSwipeChangeCombinedView" id="Rp3-Kb-2iV"/> | |
281 | + </connections> | |
282 | + </button> | |
273 | 283 | </subviews> |
274 | 284 | </view> |
275 | 285 | <connections> |
276 | 286 | <outlet property="delegate" destination="-2" id="0bl-1N-AYu"/> |
277 | 287 | </connections> |
278 | - <point key="canvasLocation" x="591" y="405"/> | |
288 | + <point key="canvasLocation" x="591" y="415.5"/> | |
279 | 289 | </window> |
280 | 290 | <userDefaultsController representsSharedInstance="YES" id="DTu-dT-pUA"/> |
281 | 291 | </objects> |