Mercurial > hg > soniczoomios
comparison QuestionnaireViewController.mm @ 33:92dba082d957
Added trail and EVALUATION_POINT event type.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 Mar 2013 18:41:42 +0000 |
parents | ab7c86d0f3d8 |
children | a42903c61558 |
comparison
equal
deleted
inserted
replaced
32:ab7c86d0f3d8 | 33:92dba082d957 |
---|---|
57 self.currentQuestionIndex = 0; | 57 self.currentQuestionIndex = 0; |
58 | 58 |
59 // load question 1 | 59 // load question 1 |
60 [self loadQuestion:self.currentQuestionIndex]; | 60 [self loadQuestion:self.currentQuestionIndex]; |
61 | 61 |
62 self.previousButton.hidden = YES; // dont bother | 62 self.previousButton.hidden = NO; // bother |
63 self.commentText.hidden = YES; | 63 self.commentText.hidden = YES; |
64 self.finishButton.hidden = YES; | 64 self.finishButton.hidden = YES; |
65 self.nextButton.hidden = YES; | 65 self.nextButton.hidden = YES; |
66 | 66 |
67 self.lickertOptions.hidden = NO; | 67 self.lickertOptions.hidden = NO; |
169 | 169 |
170 self.titleText.text = @"Thank you!"; | 170 self.titleText.text = @"Thank you!"; |
171 self.numberChooser.hidden = YES; | 171 self.numberChooser.hidden = YES; |
172 self.commentText.hidden = NO; | 172 self.commentText.hidden = NO; |
173 | 173 |
174 self.questionText.text = @"Thanks for helping science help you. Feel free to add further comments in the text box below, and then press 'finish' to go back and use the app, unhassled."; | 174 self.questionText.text = @"Thanks for helping science help you. Feel free to add further comments in the text box below, and then press 'finish' to go back and use the app."; |
175 } | 175 } |
176 | 176 |
177 //---------------------------------------------------------------- | 177 //---------------------------------------------------------------- |
178 - (void)loadQuestion:(NSInteger)questionIndex { | 178 - (void)loadQuestion:(NSInteger)questionIndex { |
179 // populate text fields with question | 179 // populate text fields with question |
185 | 185 |
186 self.questionText.text = curQ.questionText; | 186 self.questionText.text = curQ.questionText; |
187 | 187 |
188 | 188 |
189 // refresh picker view content | 189 // refresh picker view content |
190 [picker reloadComponent:0]; | 190 //[picker reloadComponent:0]; |
191 | 191 |
192 // show correct option number labels | 192 // show correct option number labels |
193 if(curQ.questionType == AGREE_DISAGREE){ | 193 if(curQ.questionType == AGREE_DISAGREE){ |
194 self.lickertOptions.hidden = NO; | 194 self.lickertOptions.hidden = NO; |
195 self.interfacePreferenceOptions.hidden = YES; | 195 self.interfacePreferenceOptions.hidden = YES; |
197 self.lickertOptions.hidden = YES; | 197 self.lickertOptions.hidden = YES; |
198 self.interfacePreferenceOptions.hidden = NO; | 198 self.interfacePreferenceOptions.hidden = NO; |
199 } | 199 } |
200 | 200 |
201 //NSLog(@"Prev answer answerInt %d", curQ.answer); | 201 //NSLog(@"Prev answer answerInt %d", curQ.answer); |
202 [picker selectRow:2 inComponent:0 animated:YES]; | 202 //[picker selectRow:2 inComponent:0 animated:YES]; |
203 | |
204 // what about unselecting segment? | |
203 | 205 |
204 } | 206 } |
205 // 1/3/13 removed q 6 and 15. now only 15 qs | 207 // 1/3/13 removed q 6 and 15. now only 15 qs |
206 //---------------------------------------------------------------- | 208 //---------------------------------------------------------------- |
207 - (void)populateQuestionArray{ | 209 - (void)populateQuestionArray{ |
218 [[Question alloc] initWithTextAndType:@"The interface that felt more creative was...":SLIDERS_ZOOMER], | 220 [[Question alloc] initWithTextAndType:@"The interface that felt more creative was...":SLIDERS_ZOOMER], |
219 [[Question alloc] initWithTextAndType:@"The range of sounds was too limited to be able to judge the eventual usefulness of the interface.":AGREE_DISAGREE], | 221 [[Question alloc] initWithTextAndType:@"The range of sounds was too limited to be able to judge the eventual usefulness of the interface.":AGREE_DISAGREE], |
220 [[Question alloc] initWithTextAndType:@"The interface better for generating new ideas was...":SLIDERS_ZOOMER], | 222 [[Question alloc] initWithTextAndType:@"The interface better for generating new ideas was...":SLIDERS_ZOOMER], |
221 [[Question alloc] initWithTextAndType:@"The interface better for performing live would be...":SLIDERS_ZOOMER], | 223 [[Question alloc] initWithTextAndType:@"The interface better for performing live would be...":SLIDERS_ZOOMER], |
222 [[Question alloc] initWithTextAndType:@"The Zoomer was an improvement on just using a randomiser.":AGREE_DISAGREE], | 224 [[Question alloc] initWithTextAndType:@"The Zoomer was an improvement on just using a randomiser.":AGREE_DISAGREE], |
223 | |
224 [[Question alloc] initWithTextAndType:@"The combination of Zoomer and Sliders was better than either individually.":AGREE_DISAGREE], | 225 [[Question alloc] initWithTextAndType:@"The combination of Zoomer and Sliders was better than either individually.":AGREE_DISAGREE], |
225 [[Question alloc] initWithTextAndType:@"Overall, the interface I preferred using was...":SLIDERS_ZOOMER], // ?????? | 226 [[Question alloc] initWithTextAndType:@"Overall, the interface I preferred using was...":SLIDERS_ZOOMER], // ?????? |
226 nil]; | 227 nil]; |
227 // The zoomer seemed more appropriate to explore the synth sound controls (red) than the note sequence controls (blue) | 228 // The zoomer seemed more appropriate to explore the synth sound controls (red) than the note sequence controls (blue) |
228 // I enjoyed the sounds produced | 229 // I enjoyed the sounds produced |