view UI code/buttonPanel.h @ 28:953db6518738

leap version more or less there, needs btter results feedback but thats detail. "no movement" bit is stupid cos peopel can move their hand. light flash not work.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 30 Oct 2014 18:35:00 +0000
parents a223551fdc1f
children 2bd658b44c2d
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();
    }

};

#endif /* defined(__tweakathlon__buttonPanel__) */