Mercurial > hg > soniczoomios
comparison TopButtonViewController.mm @ 38:0dfe9e0c01aa
Evnt trails fit with uploads. Smooth button.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 10 Apr 2013 18:57:05 +0100 |
parents | 8ed7522deaaa |
children | df7c08faf541 |
comparison
equal
deleted
inserted
replaced
37:8ed7522deaaa | 38:0dfe9e0c01aa |
---|---|
132 | 132 |
133 - (IBAction)nextSequence:(id)sender { | 133 - (IBAction)nextSequence:(id)sender { |
134 ((testApp *)self.theOFAppRef)->nextSequence(); | 134 ((testApp *)self.theOFAppRef)->nextSequence(); |
135 } | 135 } |
136 | 136 |
137 - (IBAction)smoothSwitchChanged:(id)sender { | |
138 UISwitch * smoothswitch = (UISwitch *)sender; | |
139 NSLog(@"SMOOTH SWITCH %d", smoothswitch.on); | |
140 ((testApp *)self.theOFAppRef)->setInterp(smoothswitch.on); | |
141 | |
142 if(smoothswitch.on){ | |
143 self.savePresetButton.enabled = NO; | |
144 | |
145 }else{ | |
146 self.savePresetButton.enabled = YES; | |
147 } | |
148 } | |
149 | |
137 - (IBAction)show:(id)sender | 150 - (IBAction)show:(id)sender |
138 { | 151 { |
139 self.theOFAppRef = sender; | 152 self.theOFAppRef = sender; |
140 self.view.hidden = NO; | 153 self.view.hidden = NO; |
141 } | 154 } |
142 | 155 - (void)enableSmoothSwitch:(id)sender{ |
156 self.smoothToggle.hidden = NO; | |
157 self.smoothText.hidden = NO; | |
158 } | |
143 /* | 159 /* |
144 helpViewController = [[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle:nil]; | 160 helpViewController = [[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle:nil]; |
145 [ofxiPhoneGetGLParentView() addSubview:helpViewController.view]; | 161 [ofxiPhoneGetGLParentView() addSubview:helpViewController.view]; |
146 [helpViewController hide:(id)this]; | 162 [helpViewController hide:(id)this]; |
147 */ | 163 */ |
149 [_playButton release]; | 165 [_playButton release]; |
150 [_pauseButton release]; | 166 [_pauseButton release]; |
151 [_qButton release]; | 167 [_qButton release]; |
152 | 168 |
153 [_newUserButton release]; | 169 [_newUserButton release]; |
170 [_smoothText release]; | |
171 [_smoothSwitch release]; | |
172 [_smoothToggle release]; | |
173 [_savePresetButton release]; | |
154 [super dealloc]; | 174 [super dealloc]; |
155 } | 175 } |
156 - (void)viewDidUnload { | 176 - (void)viewDidUnload { |
157 [self setPlayButton:nil]; | 177 [self setPlayButton:nil]; |
158 [self setPauseButton:nil]; | 178 [self setPauseButton:nil]; |
159 [self setQButton:nil]; | 179 [self setQButton:nil]; |
160 [self setNewUserButton:nil]; | 180 [self setNewUserButton:nil]; |
181 [self setSmoothText:nil]; | |
182 [self setSmoothSwitch:nil]; | |
183 [self setSmoothToggle:nil]; | |
184 [self setSavePresetButton:nil]; | |
161 [super viewDidUnload]; | 185 [super viewDidUnload]; |
162 } | 186 } |
163 @end | 187 @end |