#import <Z6ParamEditTotalView.h>
Definition at line 17 of file Z6ParamEditTotalView.h.
◆ addParameter:()
- (void) addParameter: |
|
(NSDictionary *) |
newComponentSpecDict |
|
|
implementation |
◆ appear:()
- (void) appear: |
|
(CGRect) |
bound |
|
|
implementation |
Definition at line 86 of file Z6ParamEditTotalView.m.
88 NSLog(
@"ParamEditTotalView.appear: bound: %3.2f/%3.2f, %3.2f/%3.2f",
89 bound.origin.x, bound.origin.y, bound.size.width, bound.size.height);
90 [valueEditPickerView appear:bound];
91 [controlBarView appear:bound];
92 [
self placeControlViews];
◆ clickAcceptButton()
- (void) clickAcceptButton |
|
|
|
|
implementation |
add to USDA dictionary at this point to add that quantity of that nutrient to menu item. Value appears on table, picker disappears, control bar retruns to initial state. controlbar -> initial-state picker -> value read, disappears parameter info added to model within local-data redisplay of menu=item in table
Definition at line 191 of file Z6ParamEditTotalView.m.
193 NSDictionary *freshParameter = [valueEditPickerView originateParameter];
194 [delegate addParameter:freshParameter];
196 [
self configureToState:INITIAL_STATE];
◆ clickCancelButton()
- (void) clickCancelButton |
|
|
|
|
implementation |
Definition at line 177 of file Z6ParamEditTotalView.m.
179 NSLog(
@"ParamEditTotalView.clickCancelButton");
180 [
self configureToState:INITIAL_STATE];
◆ clickPlusButton90()
- (void) clickPlusButton90 |
|
|
|
|
implementation |
◆ clickRemoveButton()
- (void) clickRemoveButton |
|
|
|
|
implementation |
Definition at line 171 of file Z6ParamEditTotalView.m.
173 NSLog(
@"ParamEditTotalView.clickRemoveButton");
174 [delegate clickRemoveButton];
◆ configureToState:()
Definition at line 100 of file Z6ParamEditTotalView.m.
102 NSLog(
@"ParamEditTotalView.configureToState: state: %d", state);
104 CGRect totalEditBounds;
109 totalEditBounds = CGRectMake(0, 0, [
self viewWidth], 44);
110 [valueEditPickerView initializeSelection];
116 totalEditBounds = CGRectMake(0, 0, [
self viewWidth], 144);
120 [
self setFrame:totalEditBounds];
121 [
self appear:self.bounds];
122 [delegate showUpdatedHeaderFooter];
123 [delegate scrollForControlPanel];
TotalEditStateEnum totalEditState
◆ getTotalEditState()
◆ heightRequirement()
- (float) heightRequirement |
|
|
|
|
implementation |
◆ initWithDelegate:()
- (instancetype) initWithDelegate: |
|
(id<Z6ParamEditTotalDelegate>) |
dele |
|
Definition at line 27 of file Z6ParamEditTotalView.m.
27 : (id<Z6ParamEditTotalDelegate>) dele
id< U7ParamEditControlDelegate > delegate
◆ originate()
Definition at line 36 of file Z6ParamEditTotalView.m.
39 self.userInteractionEnabled = YES;
41 [
self setClipsToBounds:YES];
46 [
self configureToState:INITIAL_STATE];
47 [
self placeControlViews];
49 [
self addSubview:controlBarView];
50 [
self addSubview:valueEditPickerView];
Z6ParamValueEditView * valueEditPickerView
TotalEditStateEnum totalEditState
U7ParamEditControlbarView * controlBarView
◆ placeControlViews()
- (void) placeControlViews |
|
|
|
|
implementation |
Definition at line 53 of file Z6ParamEditTotalView.m.
59 [valueEditPickerView setHidden:YES];
69 [valueEditPickerView setHidden:NO];
75 [valueEditPickerView setFrame:valueEditPickerFrame];
76 [controlBarView setFrame:controlBarFrame];
float usdaParameterEditPickerHeight
TotalEditStateEnum totalEditState
id< U7ParamEditControlDelegate > delegate
float USDAparameterEditConrolbarHeight
CGRect valueEditPickerFrame
◆ screenBound()
◆ selectedParameterList()
- (NSDictionary *) selectedParameterList |
|
|
|
|
implementation |
◆ showPickerView:()
- (void) showPickerView: |
|
(Boolean) |
flag |
|
|
implementation |
Definition at line 143 of file Z6ParamEditTotalView.m.
149 NSLog(
@"ParamEditTotalView.showPickerView: set picker view to appear");
150 [
self configureToState:PICK_COMPONENT];
152 [delegate showUpdatedHeaderFooter];
156 NSLog(
@"ParamEditTotalView.showPickerView: set picker view hidden");
◆ showRemoveOption:()
- (void) showRemoveOption: |
|
(Boolean) |
flag |
|
◆ showWithinEdit:()
- (void) showWithinEdit: |
|
(NSInteger) |
parameterIndexRow |
|
|
implementation |
Definition at line 201 of file Z6ParamEditTotalView.m.
201 : (NSInteger) parameterIndexRow
203 NSDictionary *editSource = [nutritionComponents objectAtIndex:parameterIndexRow];
205 [valueEditPickerView specializePickerView:editSource];
◆ specializePickerView:()
- (void) specializePickerView: |
|
(NSInteger) |
rowNum |
|
|
implementation |
Definition at line 159 of file Z6ParamEditTotalView.m.
161 NSLog(
@"ParamEditTotalView.specializePickerView");
162 NSArray *nutrComp = [delegate nutritionComponents];
163 NSDictionary *parameterData = [nutrComp objectAtIndex:rowNum];
164 [valueEditPickerView specializePickerView:parameterData];
◆ viewWidth()
The documentation for this class was generated from the following files: