comparison IntroViewController.mm @ 20:1e6d4ece1572

intro screen with mode options. seems to work.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 22 Oct 2014 16:47:11 +0100
parents a223551fdc1f
children 27cdf475aa4b
comparison
equal deleted inserted replaced
19:bd23c1b922be 20:1e6d4ece1572
37 37
38 - (void)setAppRef:(id)theOFApp{ 38 - (void)setAppRef:(id)theOFApp{
39 self.theOFAppRef = theOFApp; 39 self.theOFAppRef = theOFApp;
40 40
41 } 41 }
42 - (IBAction)enterExpMode:(id)sender {
43 ((testApp *)self.theOFAppRef)->introHidden(1);
44 }
45 - (IBAction)enterTrainMode:(id)sender {
46 ((testApp *)self.theOFAppRef)->introHidden(2);
47 }
48 - (IBAction)enterSearchMode:(id)sender {
49 ((testApp *)self.theOFAppRef)->introHidden(3);
50 }
42 51
43 - (IBAction)show:(id)sender 52 - (IBAction)show:(id)sender
44 { 53 {
45 self.theOFAppRef = sender; 54 self.theOFAppRef = sender;
46 self.view.hidden = NO; 55 self.view.hidden = NO;
47 } 56 }
48 - (IBAction)hide:(id)sender 57 - (IBAction)hide:(id)sender
49 { 58 {
50 self.view.hidden = YES; 59 self.view.hidden = YES;
51 ((testApp *)self.theOFAppRef)->introHidden(); 60
52 61
53 } 62 }
54 - (IBAction)disagree:(id)sender 63 - (IBAction)disagree:(id)sender
55 { 64 {
56 // shut down the app 65 // shut down the app
57 self.view.hidden = YES; 66 self.view.hidden = YES;
58 ((testApp *)self.theOFAppRef)->introHidden(); 67 ((testApp *)self.theOFAppRef)->introHidden(0);
59 } 68 }
60 - (void)dealloc { 69 - (void)dealloc {
61 [_text release]; 70 [_text release];
62 [super dealloc]; 71 [super dealloc];
63 } 72 }