Mercurial > hg > soniczoomios
comparison TopButtonViewController.mm @ 36:a42903c61558
Added sliderview (not operational though)
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 09 Apr 2013 13:22:28 +0100 |
parents | ab7c86d0f3d8 |
children | 8ed7522deaaa |
comparison
equal
deleted
inserted
replaced
35:790939017078 | 36:a42903c61558 |
---|---|
32 { | 32 { |
33 [super viewDidLoad]; | 33 [super viewDidLoad]; |
34 // Do any additional setup after loading the view from its nib. | 34 // Do any additional setup after loading the view from its nib. |
35 self.playButton.enabled = true; | 35 self.playButton.enabled = true; |
36 self.pauseButton.enabled = false; | 36 self.pauseButton.enabled = false; |
37 self.qButton.enabled = true; | 37 self.qButton.enabled = false; |
38 self.newUserButton.enabled = true; | 38 self.newUserButton.enabled = true; |
39 //------------------------ | 39 //------------------------ |
40 // Get the reference to the current toolbar buttons | 40 // Get the reference to the current toolbar buttons |
41 NSMutableArray *toolbarButtons = [self.toolbarItems mutableCopy]; | 41 //NSMutableArray *toolbarButtons = [self.toolbarItems mutableCopy]; |
42 | 42 |
43 // This is how you remove the button from the toolbar and animate it | 43 // This is how you remove the button from the toolbar and animate it |
44 [toolbarButtons removeObject:self.qButton]; | 44 //[toolbarButtons removeObject:self.qButton]; |
45 [self setToolbarItems:toolbarButtons animated:YES]; | 45 //[self setToolbarItems:toolbarButtons animated:YES]; |
46 | 46 |
47 // This is how you add the button to the toolbar and animate it | 47 // This is how you add the button to the toolbar and animate it |
48 /* | 48 /* |
49 if (![toolbarButtons containsObject:self.qButton]) { | 49 if (![toolbarButtons containsObject:self.qButton]) { |
50 [toolbarButtons addObject:self.qButton]; | 50 [toolbarButtons addObject:self.qButton]; |
128 | 128 |
129 - (IBAction)newUser:(id)sender { | 129 - (IBAction)newUser:(id)sender { |
130 ((testApp *)self.theOFAppRef)->setupNewUser(); | 130 ((testApp *)self.theOFAppRef)->setupNewUser(); |
131 } | 131 } |
132 | 132 |
133 - (IBAction)nextSequence:(id)sender { | |
134 ((testApp *)self.theOFAppRef)->nextSequence(); | |
135 } | |
136 | |
133 - (IBAction)show:(id)sender | 137 - (IBAction)show:(id)sender |
134 { | 138 { |
135 self.theOFAppRef = sender; | 139 self.theOFAppRef = sender; |
136 self.view.hidden = NO; | 140 self.view.hidden = NO; |
137 } | 141 } |