Today's Menu  Portugal
journal and plan nutrition
Instance Methods | List of all members
Z3MenuApprovalView Class Reference

#import <Z3MenuApprovalView.h>

Inheritance diagram for Z3MenuApprovalView:
Inheritance graph
[legend]
Collaboration diagram for Z3MenuApprovalView:
Collaboration graph
[legend]

Instance Methods

(instancetype) - initWithDelegate:
 
(float) - heightRequirement [implementation]
 
(void) - appear: [implementation]
 
(void) - clickedCancel [implementation]
 
(void) - clickedApproval [implementation]
 

Detailed Description

Definition at line 13 of file Z3MenuApprovalView.h.

Method Documentation

◆ appear:()

- (void) appear: (CGRect)  bound
implementation

Definition at line 35 of file Z3MenuApprovalView.m.

35  :(CGRect)bound
36 {
37  [self setBackgroundColor:[UIColor brownColor]];
38 
39  CGRect cancelButtonFrame = CGRectMake(2.0, 2.0, bound.size.width/2 - 4, makeMealBarViewHeight - 4.0);
40  cancelButton = [[UIButton alloc] initWithFrame:cancelButtonFrame];
41  [cancelButton setTitle:@"clear" forState:UIControlStateNormal];
42  [cancelButton addTarget:self action:@selector(clickedCancel) forControlEvents:UIControlEventTouchUpInside];
43  [self addSubview:cancelButton];
44 
45  // add a button to approve the selected menu item for today's (right now) meal
46  CGRect approvalButtonFrame = CGRectMake(bound.size.width/2 + 2, 2.0, bound.size.width/2 - 8, makeMealBarViewHeight - 4.0);
47  approvalButton = [[UIButton alloc] initWithFrame:approvalButtonFrame];
48  [approvalButton setTitle:@"Bravo" forState:UIControlStateNormal];
49  [approvalButton addTarget:self action:@selector(clickedApproval) forControlEvents:UIControlEventTouchUpInside];
50  [self addSubview:approvalButton];
51  // end - add a button to approve the selected menu item for today's (right now) meal
52 
53 
54 }
float makeMealBarViewHeight
UIButton * approvalButton

◆ clickedApproval()

- (void) clickedApproval
implementation

Definition at line 62 of file Z3MenuApprovalView.m.

63 {
64  NSLog(@"MenuApprovalBar.clickedApproval");
65  [menuApprovalDelegate didTapBravoFooter];
66 }

◆ clickedCancel()

- (void) clickedCancel
implementation

Definition at line 56 of file Z3MenuApprovalView.m.

57 {
58  NSLog(@"MenuApprovalBar.clickedCancel");
59  [menuApprovalDelegate didTapClearFooter];
60 }

◆ heightRequirement()

- (float) heightRequirement
implementation

Definition at line 30 of file Z3MenuApprovalView.m.

31 {
32  float ret = makeMealBarViewHeight;
33  return ret;
34 }
float makeMealBarViewHeight

◆ initWithDelegate:()

- (instancetype) initWithDelegate: (id<Z6MenuApprovalDelegate>)  delegate

Definition at line 21 of file Z3MenuApprovalView.m.

21  :(id<Z6MenuApprovalDelegate>) delegate
22 {
23  self = [super init];
24  if (self) {
26  }
27  return self;
28 }
id< Z6MenuApprovalDelegate > menuApprovalDelegate
id< U7ParamEditControlDelegate > delegate

The documentation for this class was generated from the following files: