comparison UI code/sliderPanel.h @ 2:851833072cf1

panel has 8 sliders if needed. sliders should get set by midi input.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 10 Oct 2014 18:13:24 +0100
parents a223551fdc1f
children f83635861187
comparison
equal deleted inserted replaced
1:7e0a19a538d4 2:851833072cf1
69 69
70 } 70 }
71 //------------------------ 71 //------------------------
72 vector<UIElement*> generateControls(vector<controllerType> elemList, controlPanelType panelType); 72 vector<UIElement*> generateControls(vector<controllerType> elemList, controlPanelType panelType);
73 //------------------------ 73 //------------------------
74 74 UIElement* getSlider(int index){
75 if (index < subElements.size()){
76 return subElements[index];
77 }else{
78 cout << "ERROR: index too big for sldiers" << endl;
79 return NULL;
80 }
81 };
75 // TODO override touch thing to make revisitable 82 // TODO override touch thing to make revisitable
76 private: 83 private:
77 bool flashing; 84 bool flashing;
78 controlPanelType panelType; 85 controlPanelType panelType;
79 }; 86 };