-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHQView.h
72 lines (59 loc) · 1.83 KB
/
HQView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//
// HQView.h
// TRx
//
// Created by Mark Bellott on 4/7/13.
// Copyright (c) 2013 Team Ecuador. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HQCheckBox.h"
#import "HQHelper.h"
#import "HQLabel.h"
#import "HQSelector.h"
#import "HQTextField.h"
#import "HQYesNo.h"
#import "HQHelper.h"
typedef enum{
YES_NO,
SELECTION_LIKE,
MULTIPLE_SELECTION,
TEXT_ENTRY
}qType;
@interface HQView : UIView <UITextFieldDelegate>{
BOOL hasAnswer;
float totalHeight;
float responseHeight;
NSString *responseString;
NSString *previousTextEntry;
qType type;
HQLabel *questionLabel;
HQSelector *yesNoSelector;
HQYesNo *yesButton;
HQYesNo *noButton;
HQTextField *textEntryField;
NSMutableArray *response;
NSMutableArray *checkBoxes;
NSMutableArray *selectionTextFields;
NSMutableArray *questionUnion;
HQView *connectedView;
}
@property(nonatomic, readwrite) BOOL hasAnswer;
@property(nonatomic, readwrite) qType type;
@property(nonatomic, readwrite) HQLabel* questionLabel;
@property(nonatomic, retain) HQTextField *textEntryField;
@property(nonatomic, retain) HQSelector *yesNoSelector;
@property(nonatomic, retain) HQYesNo *yesButton;
@property(nonatomic, retain) HQYesNo *noButton;
@property(nonatomic, retain) NSString *previousTextEntry;
@property(nonatomic, retain) NSString *responseString;
@property(nonatomic, retain) NSMutableArray *checkBoxes;
@property(nonatomic, retain) NSMutableArray *selectionTextFields;
@property(nonatomic, retain) HQView *connectedView;
-(void) checkHasAnswer;
-(void) setQuestionLabelText:(NSString *)text;
-(void) buildQuestionOfType:(NSInteger)t withHelper:(HQHelper*)h;
-(void) buildYesNo;
-(void) buildSingleSelection;
-(void) buildMultipleSelectionWithOptions:(NSMutableArray*)options;
-(void) buildTextEntry;
@end