Mercurial > hg > tweakathon2ios
comparison MessageOrganiser.h @ 27:27cdf475aa4b
more fiddling
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 29 Oct 2014 15:38:38 +0000 |
parents | b339acf124df |
children | 75202498bee9 |
comparison
equal
deleted
inserted
replaced
26:8d7ae43b2edd | 27:27cdf475aa4b |
---|---|
61 class MessageOrganiser { | 61 class MessageOrganiser { |
62 | 62 |
63 public: | 63 public: |
64 void init(PDSynthWrapper& cs, PDSynthWrapper& ts); // could template for ui element type?? | 64 void init(PDSynthWrapper& cs, PDSynthWrapper& ts); // could template for ui element type?? |
65 void mapButtonToAction(UIElement* control, int mappingID); | 65 void mapButtonToAction(UIElement* control, int mappingID); |
66 | 66 void setupDefaultMapping(controlPanelType whichInterfaceAreWeUsing); |
67 void setControlPanel(SliderPanel* p); | 67 void setControlPanel(SliderPanel* p); |
68 void setBottomPanel(ButtonPanel * ntb); | 68 void setBottomPanel(ButtonPanel * ntb); |
69 void setIconPanel(IconPanel * ip); | 69 void setIconPanel(IconPanel * ip); |
70 void setInstructionPanel(TextPanel * ip); | 70 void setInstructionPanel(TextPanel * ip); |
71 void setBox(Leap6DBox * box); | |
72 //----------------------------------------------------------------------------- | 71 //----------------------------------------------------------------------------- |
73 void hideMyPanels(); | 72 void hideMyPanels(); |
74 void showMyPanels(); | 73 void showMyPanels(); |
75 protected: | 74 protected: |
76 | 75 |
77 PDSynthWrapper candidateSynth; | 76 PDSynthWrapper candidateSynth; |
78 PDSynthWrapper targetSynth; | 77 PDSynthWrapper targetSynth; |
79 ButtonPanel* bottomPanel; // shows during test : play buttons and submit | 78 ButtonPanel* bottomPanel; // shows during test : play buttons and submit |
80 SliderPanel* panel; | 79 SliderPanel* controlPanel; |
81 | 80 |
82 IconPanel* presetIconPanel; | 81 IconPanel* presetIconPanel; |
83 TextPanel* instructionPanel; | 82 TextPanel* instructionPanel; |
84 Leap6DBox* box6D; | |
85 | 83 |
86 map<int,UIElement*> currentMapping; // could get more sophisticated if not 1-1 ? | 84 map<int,UIElement*> currentMapping; // could get more sophisticated if not 1-1 ? |
87 | 85 |
88 | 86 vector<int> getMappingIDsFromSynths(); |
89 void triggerCandidateSound(); | 87 void triggerCandidateSound(); |
90 void paramChangeCallback(int mappingID, int value); | 88 void paramChangeCallback(int mappingID, int value); |
91 void sendSynthValuesAgain(); | 89 void sendSynthValuesAgain(); |
92 void setAllSlidersToValues(vector<int> values); | 90 void setAllSlidersToValues(vector<int> values); |
93 void setCandidateAndSlidersToRandom(); | 91 void setCandidateAndSlidersToRandom(); |