Skip to content

Commit

Permalink
add auto-rotate support to all view controllers
Browse files Browse the repository at this point in the history
change details
- SubmitGtpCommandViewController now uses
  group table view instead of picker view
- new utility functions to draw gradients
- ability to replicate the default group table view
  background on iPad
- PlayViewController now uses group table
  view background on iPad
- new UIElementMetrics methods
- Slider cell now has layoutSubviews() to
  support auto-rotation
  • Loading branch information
herzbube committed Jan 24, 2012
1 parent 8ca1066 commit 0674ac3
Show file tree
Hide file tree
Showing 30 changed files with 660 additions and 643 deletions.
8 changes: 4 additions & 4 deletions Little Go.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
CD10882513255AA600E83543 /* GoPoint.m in Sources */ = {isa = PBXBuildFile; fileRef = CD10882413255AA600E83543 /* GoPoint.m */; };
CD1088611326CD2400E83543 /* PlayViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CD1088601326CD2400E83543 /* PlayViewController.m */; };
CD10887D1326D2C100E83543 /* PlayView.m in Sources */ = {isa = PBXBuildFile; fileRef = CD10887C1326D2C100E83543 /* PlayView.m */; };
CD24962F14CCB51000C9D19F /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD24962E14CCB51000C9D19F /* QuartzCore.framework */; };
CD3AE6EA1343F14200B58E08 /* LICENSE.html in Resources */ = {isa = PBXBuildFile; fileRef = CD3AE6E91343F14200B58E08 /* LICENSE.html */; };
CD613D9A143CD1B70002759E /* GtpCommandModel.m in Sources */ = {isa = PBXBuildFile; fileRef = CD613D99143CD1B70002759E /* GtpCommandModel.m */; };
CD613DAB143CD65C0002759E /* GtpCommandModel.m in Sources */ = {isa = PBXBuildFile; fileRef = CD613D99143CD1B70002759E /* GtpCommandModel.m */; };
Expand Down Expand Up @@ -180,7 +181,6 @@
CDE1A18014C1CED200317ECA /* wood-on-wood-01.aiff in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A15614C1CED200317ECA /* wood-on-wood-01.aiff */; };
CDE1A18114C1CED200317ECA /* wood-on-wood-12.aiff in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A15714C1CED200317ECA /* wood-on-wood-12.aiff */; };
CDE1A18714C1CED200317ECA /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A15E14C1CED200317ECA /* MainWindow.xib */; };
CDE1A18A14C1CED200317ECA /* SubmitGtpCommandView.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A16114C1CED200317ECA /* SubmitGtpCommandView.xib */; };
CDE1A19614C1CF4D00317ECA /* RegistrationDomainDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A19314C1CF4D00317ECA /* RegistrationDomainDefaults.plist */; };
CDE1A19814C1D09A00317ECA /* RegistrationDomainDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A19314C1CF4D00317ECA /* RegistrationDomainDefaults.plist */; };
CDE1A19F14C1D9F300317ECA /* MainWindow~ipad.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE1A19E14C1D9F300317ECA /* MainWindow~ipad.xib */; };
Expand Down Expand Up @@ -296,6 +296,7 @@
CD1088601326CD2400E83543 /* PlayViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlayViewController.m; sourceTree = "<group>"; };
CD10887B1326D2C100E83543 /* PlayView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlayView.h; sourceTree = "<group>"; };
CD10887C1326D2C100E83543 /* PlayView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlayView.m; sourceTree = "<group>"; };
CD24962E14CCB51000C9D19F /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
CD3AE6E91343F14200B58E08 /* LICENSE.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = LICENSE.html; sourceTree = "<group>"; };
CD3AE865134A33A500B58E08 /* Doxyfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Doxyfile; sourceTree = "<group>"; };
CD3AE8AD134A423000B58E08 /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = index.html; path = html/index.html; sourceTree = "<group>"; };
Expand Down Expand Up @@ -408,7 +409,6 @@
CDE1A15614C1CED200317ECA /* wood-on-wood-01.aiff */ = {isa = PBXFileReference; lastKnownFileType = audio.aiff; path = "wood-on-wood-01.aiff"; sourceTree = "<group>"; };
CDE1A15714C1CED200317ECA /* wood-on-wood-12.aiff */ = {isa = PBXFileReference; lastKnownFileType = audio.aiff; path = "wood-on-wood-12.aiff"; sourceTree = "<group>"; };
CDE1A15E14C1CED200317ECA /* MainWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
CDE1A16114C1CED200317ECA /* SubmitGtpCommandView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SubmitGtpCommandView.xib; sourceTree = "<group>"; };
CDE1A19114C1CF4D00317ECA /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = "<group>"; };
CDE1A19214C1CF4D00317ECA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CDE1A19314C1CF4D00317ECA /* RegistrationDomainDefaults.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = RegistrationDomainDefaults.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -470,6 +470,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CD24962F14CCB51000C9D19F /* QuartzCore.framework in Frameworks */,
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
288765080DF74369002DB57D /* CoreGraphics.framework in Frameworks */,
Expand Down Expand Up @@ -501,6 +502,7 @@
29B97314FDCFA39411CA2CEA /* Little Go */ = {
isa = PBXGroup;
children = (
CD24962E14CCB51000C9D19F /* QuartzCore.framework */,
CDC2DD851494E85C00F6D750 /* [email protected] */,
CDC2DD831494E85700F6D750 /* appicon-iphone-fuseki-8x8.png */,
CD1087701323D07800E83543 /* LICENSE */,
Expand Down Expand Up @@ -871,7 +873,6 @@
children = (
CDE1A15E14C1CED200317ECA /* MainWindow.xib */,
CDE1A19E14C1D9F300317ECA /* MainWindow~ipad.xib */,
CDE1A16114C1CED200317ECA /* SubmitGtpCommandView.xib */,
);
path = xib;
sourceTree = "<group>";
Expand Down Expand Up @@ -1116,7 +1117,6 @@
CDE1A18014C1CED200317ECA /* wood-on-wood-01.aiff in Resources */,
CDE1A18114C1CED200317ECA /* wood-on-wood-12.aiff in Resources */,
CDE1A18714C1CED200317ECA /* MainWindow.xib in Resources */,
CDE1A18A14C1CED200317ECA /* SubmitGtpCommandView.xib in Resources */,
CDE1A19614C1CF4D00317ECA /* RegistrationDomainDefaults.plist in Resources */,
CDE1A19F14C1D9F300317ECA /* MainWindow~ipad.xib in Resources */,
);
Expand Down
8 changes: 0 additions & 8 deletions doc/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ Priority 3 (not important)
application > Resume application > The "savesgf" command from the suspend
background task is not visible > Manually scroll down to make the command
visible > Generate another command > Auto-scroll does not work!
- In SubmitGtpCommandView.xib
- Use a larger font to display the command
- Use a UITextView to edit the command (or make the UITextField multi-line)
- Try to replace UIPickerView by something else; UITableView would be more
suitable, but so far I was unable to come up with a UITableView solution
that looks good
- Play a "whoosh" sound when the user submits a GTP command
- Allow free selection of komi values. The value of this is disputable, but an
implementation is presumably rather simple since komi is treated as a
Expand Down Expand Up @@ -213,8 +207,6 @@ Priority 3 (not important)
confirmation whether the game should be restored
- Undoing a move in a human vs. computer game causes two updates in PlayView
because two moves are taken back; there should only be one update
- TableViewSliderCell: Labels should use the default table view cell background
color (currently they use white as the background color)


Future improvements to the 3rdparty build process
Expand Down
Loading

0 comments on commit 0674ac3

Please sign in to comment.