64 NSLog(
@"GmailDisplayController.viewDidLoad: focus: %@", [
self focusEmailMsg]);
67 CGRect totalFrame =
self.view.frame;
68 CGRect topNavigationFrame = [[[
self navigationController] navigationBar] frame];
69 float topOfPageF = topNavigationFrame.origin.y + topNavigationFrame.size.height;
72 float tailHeightF = topOfPageF + 8.0;
74 float buttonBarFrameHeight = 44.0;
75 float buttonWidth = totalFrame.size.width/3.0 - 6.0;
76 float buttonLeft = 6.0;
78 CGRect itemRecipeButtonFrame = CGRectMake(buttonLeft, tailHeightF, buttonWidth, buttonBarFrameHeight);
86 UIFont *messageDisplayButtonFont = [UIFont fontWithName:@"Georgia-Bold" size:20.0];
88 [itemRecipeButton addTarget:self action:@selector(showItemRecipe) forControlEvents:UIControlEventTouchUpInside];
91 [
self.view addSubview:itemRecipeButton];
92 buttonLeft += (buttonWidth + 2.0);
94 CGRect itemUSDAButtonFrame = CGRectMake(buttonLeft, tailHeightF, buttonWidth, buttonBarFrameHeight);
103 [itemUSDAButton addTarget:self action:@selector(showItemUSDA) forControlEvents:UIControlEventTouchUpInside];
104 [
self.view addSubview:itemUSDAButton];
105 buttonLeft += (buttonWidth + 2.0);
109 CGRect itemAddToMenuButtonFrame = CGRectMake(buttonLeft, tailHeightF, buttonWidth, buttonBarFrameHeight);
118 [itemAddToMenuButton addTarget:self action:@selector(execAddMenuItem) forControlEvents:UIControlEventTouchUpInside];
119 [
self.view addSubview:itemAddToMenuButton];
120 tailHeightF += (buttonBarFrameHeight + 4.0);
122 float imageViewFrameHeight = 300.0f;
123 CGRect imageViewFrame = CGRectMake(10.0f, tailHeightF, totalFrame.size.width - 20, imageViewFrameHeight);
124 imageView = [[UIImageView alloc] initWithFrame:imageViewFrame];
125 [
self.view addSubview:imageView];
126 tailHeightF += (imageViewFrameHeight + 8.0);
128 float plainTextFrameHeight = 180.0;
129 CGRect msgPlainTextFrame = CGRectMake(10.0f, tailHeightF, totalFrame.size.width - 20, plainTextFrameHeight);
130 msgPlainText = [[UITextView alloc] initWithFrame:msgPlainTextFrame];
131 [
self.view addSubview:msgPlainText];
132 tailHeightF += (plainTextFrameHeight + 8.0);
UIButton * itemRecipeButton
UIButton * itemAddToMenuButton
EmailMessage * focusEmailMsg
UITextView * msgPlainText
UIButton * itemUSDAButton
Singleton interface to both core and remote data sources.
UIButton * makeGradientButton:withFrame:andFont:(NSString *caption, [withFrame] CGRect buttonFrame, [andFont] UIFont *buttonFont)