mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
the interval parameter controller and the future window parameter controller Change-Id: Ibe061ff1792efc4a1795ee40ea5cd4b9f63e7086
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#ifndef GRAPH_FLOAT_PARAMETER_CONTROLLER_H
|
|
#define GRAPH_FLOAT_PARAMETER_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Graph {
|
|
|
|
/* This controller edits float parameter of any model (given through
|
|
* parameterAtIndex and setParameterAtIndex). */
|
|
|
|
class FloatParameterController : public ViewController, public SimpleListViewDataSource {
|
|
public:
|
|
FloatParameterController(Responder * parentResponder);
|
|
int activeCell();
|
|
void editParameter(const char * initialText = nullptr);
|
|
|
|
View * view() override;
|
|
//const char * title() const override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
//int numberOfRows() override;
|
|
KDCoordinate cellHeight() override;
|
|
//TableViewCell * reusableCell(int index) override;
|
|
//int reusableCellCount() override;
|
|
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
|
|
private:
|
|
virtual float parameterAtIndex(int index) = 0;
|
|
virtual void setParameterAtIndex(int parameterIndex, float f) = 0;
|
|
SelectableTableView m_selectableTableView;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|