Mercurial > hg > tweakathon2ios
view UI code/buttonPanel.h @ 52:89944ab3e129 tip
fix oF linker errors ios8
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 03 Feb 2015 13:18:23 +0000 |
parents | 2bd658b44c2d |
children |
line wrap: on
line source
// // buttonPanel.h // tweakathlon // // Created by Robert Tubb on 11/02/2014. // // #ifndef __tweakathlon__buttonPanel__ #define __tweakathlon__buttonPanel__ #include <iostream> #include <iostream> #include "UIElementContainer.h" #include <iostream> #include "globalVariables.h" #include "ofMain.h" #include "UIElement.h" #include "boost/bind.hpp" #include "boost/function.hpp" #include "timeController.h" #include "ButtronSlider.h" #include "ButtronXY.h" #include "Buttron.h" // a row of buttons, spaced out nicely class ButtonPanel : public UIElementContainer{ public: ButtonPanel(float ax, float ay, float awidth, float aheight, const UIProps& aprops, vector<controllerType> elemList); ButtonPanel(float ax, float ay, float awidth, float aheight, const UIProps& aprops); vector<UIElement*> generateControls(vector<controllerType> elemList); void addButton(Buttron* aButton){ subElements.push_back(aButton); autoArrangeRow(); } void turnAllButtonsOff(){ for( auto eit = subElements.begin(); eit < subElements.end(); eit++){ (*eit)->setOn(false); } } }; #endif /* defined(__tweakathlon__buttonPanel__) */