//
//  VasqueViewController.h
//  Vasque
//
//  Created by Victor Johnson on 8/2/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RadioBtn.h"
#import	"AdminView.h"
#import "MessageUI/MessageUI.h"
#import "MapScroller.h"


@interface VasqueViewController : UIViewController <MFMailComposeViewControllerDelegate,UITextFieldDelegate, UIPickerViewDelegate> {
	
	AdminView *admin;
	UIView *formView;
	UIView *thankyouView;
	
	NSMutableArray *buttonsArray;
	NSMutableArray *answersTextArray;
	NSMutableArray *questionsTextArray;
	
	UIButton *submit;
	
	UITextField *firstName;
	UITextField *lastName;
	UITextField *phone;
	NSMutableString *phoneNum;
	UITextField *email;
	UITextField *gender;
	UITextField *age;
	UILabel *rt1;
	UILabel *rt2;
	UILabel *rt3;
	UILabel *rt4;
	
	UIImageView *r1;
	UIImageView *r2;
	UIImageView *r3;
	UIImageView *r4;
	
	
	//MapScroller *q7;
	//NSString *q7_txt;
	//NSMutableArray *qArray;
	//int currQ7;
	NSMutableArray *rX;
	NSMutableArray *rY;
	
	RadioBtn *btn0;
	RadioBtn *btn1;
	RadioBtn *btn2;
	RadioBtn *btn3;
	RadioBtn *btn4;
	RadioBtn *btn5;
	RadioBtn *btn6;
	RadioBtn *btn7;
	RadioBtn *btn8;
	RadioBtn *btn9;
	RadioBtn *btn10;
	RadioBtn *btn11;
	
	NSString *formData;
	int currTextField;
	UIToolbar *toolbar;
}

@property (nonatomic, retain) AdminView *admin;
@property (nonatomic, retain) UIView *formView;
@property (nonatomic, retain) UIView *thankyouView;
@property (nonatomic, retain) NSMutableArray *buttonsArray;
@property (nonatomic, retain) NSMutableArray *answersTextArray;
@property (nonatomic, retain) NSMutableArray *questionsTextArray;
@property (nonatomic, retain) UIButton *submit;

@property (nonatomic, retain) UITextField *firstName;
@property (nonatomic, retain) UITextField *lastName;
@property (nonatomic, retain) UITextField *phone;
@property (nonatomic, retain) NSMutableString *phoneNum;
@property (nonatomic, retain) UITextField *email;
@property (nonatomic, retain) UITextField *gender;
@property (nonatomic, retain) UITextField *age;
@property (nonatomic, retain) UILabel *rt1;
@property (nonatomic, retain) UILabel *rt2;
@property (nonatomic, retain) UILabel *rt3;
@property (nonatomic, retain) UILabel *rt4;

@property (nonatomic, retain) UIImageView *r1;
@property (nonatomic, retain) UIImageView *r2;
@property (nonatomic, retain) UIImageView *r3;
@property (nonatomic, retain) UIImageView *r4;

//@property (nonatomic, retain) MapScroller *q7;
//@property (nonatomic, retain) NSString *q7_txt;
//@property (nonatomic, retain) NSMutableArray *qArray;

@property (nonatomic, retain) NSMutableArray *rX;
@property (nonatomic, retain) NSMutableArray *rY;

@property (nonatomic, retain) RadioBtn *btn0;
@property (nonatomic, retain) RadioBtn *btn1;
@property (nonatomic, retain) RadioBtn *btn2;
@property (nonatomic, retain) RadioBtn *btn3;
@property (nonatomic, retain) RadioBtn *btn4;
@property (nonatomic, retain) RadioBtn *btn5;
@property (nonatomic, retain) RadioBtn *btn6;
@property (nonatomic, retain) RadioBtn *btn7;
@property (nonatomic, retain) RadioBtn *btn8;
@property (nonatomic, retain) RadioBtn *btn9;
@property (nonatomic, retain) RadioBtn *btn10;
@property (nonatomic, retain) RadioBtn *btn11;
@property (nonatomic, retain) NSString *formData;

@property (nonatomic, retain) UIToolbar *toolbar;

-(void) keyboardWillHide:(NSNotification *)notification;
-(void) keyboardWillShow:(NSNotification *)notification;
-(void) updateButtons:(RadioBtn *)_btn;
//-(void) showQ7;
//-(void) hideQ7;
-(void) showReq:(UIImageView *)_v;
-(void) hideReq:(NSString *)animationID finished:(NSNumber *)finished context:(void *)_c;
-(void) showReqText:(UILabel *)_l;
-(void) hideReqText:(NSString *)animationID finished:(NSNumber *)finished context:(void *)_c;
//-(void) clearQ7:(int)i;
//-(void) clearState:(int)i;
-(BOOL) contentIsGood;
-(BOOL) emailIsValid;
-(void) hideAdminKeyboard;
-(void) hideKeyboard;
-(void) resetForm;
-(void) prevClicked;
-(void) nextClicked;
-(void) doneClicked;
-(void) formatGender;
-(void) writeContents:(NSString *)text toFile:(NSString *)filePath;
-(void) showEmailModalView;
-(void) mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error;
-(NSString *)getFullState:(int)_i;
-(NSString *)getState:(int)_i;
@end

