aboutsummaryrefslogtreecommitdiffstats
path: root/iBean/iBean/EditBeanViewController.h
diff options
context:
space:
mode:
authorEddie Ehlin <eddiex@eddiex.se>2013-01-12 19:36:34 +0100
committerEddie Ehlin <eddiex@eddiex.se>2013-01-12 19:36:34 +0100
commit18837282529f46b471a48d811ea2d86564690758 (patch)
tree38f53533743122f6e202c05ae839f3c67fa22ce0 /iBean/iBean/EditBeanViewController.h
parent0a4f78102a90f44c555320205cf54be826cb0795 (diff)
downloadiBean-18837282529f46b471a48d811ea2d86564690758.tar.gz
iBean-18837282529f46b471a48d811ea2d86564690758.zip
AddBeanViewController now implements UITextFieldDelegate and the same goes for EditBeanViewController (new and fully implemented!).
Diffstat (limited to 'iBean/iBean/EditBeanViewController.h')
-rw-r--r--iBean/iBean/EditBeanViewController.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/iBean/iBean/EditBeanViewController.h b/iBean/iBean/EditBeanViewController.h
new file mode 100644
index 0000000..7d0d8fd
--- /dev/null
+++ b/iBean/iBean/EditBeanViewController.h
@@ -0,0 +1,33 @@
+//
+// EditBeanViewController.h
+// iBean
+//
+// Created by Eddie Ehlin on 2013-01-12.
+// Copyright (c) 2013 Eddie Ehlin. All rights reserved.
+//
+@class BeanCollection;
+
+@interface EditBeanViewController : UIViewController <UITextFieldDelegate>
+
+@property (nonatomic, strong) BeanCollection *beanCollection;
+@property (nonatomic, assign) BOOL editMode;
+@property (nonatomic, assign) NSUInteger editBeanIndex;
+
+/* Utility methods */
+- (void) initWithModeAndBeanCollectionAndBeanIndex:(BOOL)editMode: (BeanCollection*) bc: (NSUInteger) beanIndex;
+- (void) initViewController;
+
+/* UI Outlets */
+@property (weak, nonatomic) IBOutlet UITextField *beanNameTextField;
+@property (weak, nonatomic) IBOutlet UILabel *amountLabel;
+@property (weak, nonatomic) IBOutlet UIStepper *amountStepper;
+@property (weak, nonatomic) IBOutlet UILabel *grinderSettingLabel;
+@property (weak, nonatomic) IBOutlet UIStepper *grinderSettingStepper;
+
+
+/* UI Actions */
+- (IBAction) amountStepperChanged:(id)sender;
+- (IBAction) grinderSettingStepperChanged:(id)sender;
+- (IBAction) commitBean:(id)sender;
+
+@end