//
//  StuntPuppyViewController.h
//  StuntPuppy
//
//  Created by Victor Johnson on 7/12/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 StuntPuppyViewController : UIViewController <MFMailComposeViewControllerDelegate,UITextFieldDelegate, UIPickerViewDelegate> {

	AdminView *admin;
	UIView *formView;
	UIView *thankyouView;
	
	NSMutableArray *buttonsArray;
	NSMutableArray *answersTextArray;
	NSMutableArray *questionsTextArray;
	
	UIButton *submit;
	
	UITextField *firstName;
	UITextField *middleName;
	UITextField *lastName;
	UITextField *address1;
	UITextField *city;
	UITextField *state;
	UIView *statesView;
	NSMutableArray *sArray;
	int currState;
	UITextField *zip;
	UITextField *address2;
	UITextField *apt;
	UITextField *phone;
	NSMutableString *phoneNum;
	UITextField *email;
	UILabel *rt1;
	UILabel *rt2;
	UILabel *rt3;
	UILabel *rt4;
	UILabel *rt5;
	UILabel *rt6;
	UILabel *rt7;
	
	UIImageView *r1;
	UIImageView *r2;
	UIImageView *r3;
	UIImageView *r4;
	UIImageView *r5;
	UIImageView *r6;

	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;
	RadioBtn *btn12;
	RadioBtn *btn13;
	RadioBtn *btn14;
	RadioBtn *btn15;
	RadioBtn *btn16;
	
	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 *middleName;
@property (nonatomic, retain) UITextField *lastName;
@property (nonatomic, retain) UITextField *address1;
@property (nonatomic, retain) UITextField *city;
@property (nonatomic, retain) UITextField *state;
@property (nonatomic, retain) UIView *statesView;
@property (nonatomic, retain) NSMutableArray *sArray;
@property (nonatomic, retain) UITextField *zip;
@property (nonatomic, retain) UITextField *address2;
@property (nonatomic, retain) UITextField *apt;
@property (nonatomic, retain) UITextField *phone;
@property (nonatomic, retain) NSMutableString *phoneNum;
@property (nonatomic, retain) UITextField *email;
@property (nonatomic, retain) UILabel *rt1;
@property (nonatomic, retain) UILabel *rt2;
@property (nonatomic, retain) UILabel *rt3;
@property (nonatomic, retain) UILabel *rt4;
@property (nonatomic, retain) UILabel *rt5;
@property (nonatomic, retain) UILabel *rt6;
@property (nonatomic, retain) UILabel *rt7;


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

@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) RadioBtn *btn12;
@property (nonatomic, retain) RadioBtn *btn13;
@property (nonatomic, retain) RadioBtn *btn14;
@property (nonatomic, retain) RadioBtn *btn15;
@property (nonatomic, retain) RadioBtn *btn16;
@property (nonatomic, retain) NSString *formData;

@property (nonatomic, retain) UIToolbar *toolbar;
-(void)initStuntPuppyViewController;
-(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) showStatesView;
-(void) hideStatesView;
-(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) deleteContents;
-(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

