Mercurial > hg > tweakathon2ios
comparison testApp.h @ 7:4e00f92567d9
separated GUI setup stuff
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 17 Oct 2014 15:13:35 +0100 |
parents | 92850a2b099c |
children | d59de9fd3496 |
comparison
equal
deleted
inserted
replaced
6:92850a2b099c | 7:4e00f92567d9 |
---|---|
45 | 45 |
46 class testApp : public ofxiOSApp , public ofxMidiListener, public ofxMidiConnectionListener { | 46 class testApp : public ofxiOSApp , public ofxMidiListener, public ofxMidiConnectionListener { |
47 | 47 |
48 | 48 |
49 public: | 49 public: |
50 | |
50 ofTrueTypeFont verdBig; | 51 ofTrueTypeFont verdBig; |
51 bool sendMIDIAndOSC; | 52 bool sendMIDIAndOSC; |
52 bool paused; | 53 bool paused; |
53 | 54 |
54 int midiChannel; | 55 int midiChannel; |
61 void initialiseMIDI(); | 62 void initialiseMIDI(); |
62 void setupUIElements(); | 63 void setupUIElements(); |
63 void setupExpressViewPanels(); | 64 void setupExpressViewPanels(); |
64 void setupTrainingViewPanels(); | 65 void setupTrainingViewPanels(); |
65 void setupSearchViewPanels(); | 66 void setupSearchViewPanels(); |
66 | 67 void setupSliderPanel(); |
67 void setup(); | 68 void setup(); |
68 void update(); | 69 void update(); |
69 void draw(); | 70 void draw(); |
70 void drawUIElements(); | 71 void drawUIElements(); |
71 void exit(); | 72 void exit(); |
78 MessageOrganiser messageOrganiser; | 79 MessageOrganiser messageOrganiser; |
79 TestController* testController; | 80 TestController* testController; |
80 //TimeController timeController; | 81 //TimeController timeController; |
81 interfaceType whichInterfaceShowing, previousInterface; | 82 interfaceType whichInterfaceShowing, previousInterface; |
82 | 83 |
83 // pannels buttrons and slidertrons | 84 // various views |
84 vector<UIElement *> UIElements; | 85 vector<UIElement *> UIElements; |
85 | 86 |
86 void touchToUIElements(int x, int y, touchType ttype, int tid); | 87 void touchToUIElements(int x, int y, touchType ttype, int tid); |
87 void touchDown(ofTouchEventArgs &touch); | 88 void touchDown(ofTouchEventArgs &touch); |
88 void touchMoved(ofTouchEventArgs &touch); | 89 void touchMoved(ofTouchEventArgs &touch); |