From d63b571c2b256cd3bac5d8aa54f7e160bd486f2b Mon Sep 17 00:00:00 2001 From: Eddie Ehlin Date: Wed, 20 Mar 2013 21:53:45 +0100 Subject: Added support for disabling the extraction time roof in insta bean (values > 0 are considered enabled roof) --- .../UserInterfaceState.xcuserstate | Bin 58038 -> 60285 bytes .../xcdebugger/Breakpoints.xcbkptlist | 6 +- iBean/iBean/InstantExtractionViewController.m | 9 +- iBean/iBean/iPadStoryboard.storyboard | 2 +- iBean/iBean/iPhoneStoryboard.storyboard | 151 ++++++++++++++++++++- 5 files changed, 162 insertions(+), 6 deletions(-) (limited to 'iBean') diff --git a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate index a4aeb08..ab4c43e 100644 Binary files a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate and b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/iBean/iBean.xcodeproj/xcuserdata/eddiex.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/iBean/iBean.xcodeproj/xcuserdata/eddiex.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist index 8003b60..a13acb1 100644 --- a/iBean/iBean.xcodeproj/xcuserdata/eddiex.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist +++ b/iBean/iBean.xcodeproj/xcuserdata/eddiex.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist @@ -8,11 +8,11 @@ ignoreCount = "0" continueAfterRunningActions = "No" filePath = "iBean/InstantExtractionViewController.m" - timestampString = "385501866.06976" + timestampString = "385505467.151572" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" - startingLineNumber = "97" - endingLineNumber = "97" + startingLineNumber = "104" + endingLineNumber = "104" landmarkName = "-haltExtractionTimer" landmarkType = "5"> diff --git a/iBean/iBean/InstantExtractionViewController.m b/iBean/iBean/InstantExtractionViewController.m index 2b4c386..1b0aebd 100644 --- a/iBean/iBean/InstantExtractionViewController.m +++ b/iBean/iBean/InstantExtractionViewController.m @@ -73,7 +73,8 @@ self.extractionProgress += 0.1f; self.extractionProgressLabel.text = [NSString stringWithFormat:@"%1.1f", self.extractionProgress]; - if (self.extractionProgress >= self.extractionSettingStepper.value) + //We will only increment extractions iff extraction setting/roof is set to a value > 0 + if (self.extractionProgress >= self.extractionSettingStepper.value && self.extractionSettingStepper.value > 0) { [self haltExtractionTimer]; @@ -89,6 +90,12 @@ - (void) updateExtractionSettingLabel { + //If value is < 0 (change color to hint user that roof is disabled). + if (self.extractionSettingStepper.value > 0) + self.extractionSettingLabel.textColor = [UIColor blackColor]; + else + self.extractionSettingLabel.textColor = [UIColor lightGrayColor]; + self.extractionSettingLabel.text = [NSString stringWithFormat:@"%1.1f", self.extractionSettingStepper.value]; } diff --git a/iBean/iBean/iPadStoryboard.storyboard b/iBean/iBean/iPadStoryboard.storyboard index ba076a3..e32b625 100644 --- a/iBean/iBean/iPadStoryboard.storyboard +++ b/iBean/iBean/iPadStoryboard.storyboard @@ -102,7 +102,7 @@ - + diff --git a/iBean/iBean/iPhoneStoryboard.storyboard b/iBean/iBean/iPhoneStoryboard.storyboard index bf68193..308bbbb 100644 --- a/iBean/iBean/iPhoneStoryboard.storyboard +++ b/iBean/iBean/iPhoneStoryboard.storyboard @@ -97,7 +97,7 @@ - + @@ -1343,6 +1343,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3