Files
Upsilon/apps/graph/list/parameter_controller.h
Émilie Feral a29c46f662 [escher] delete list view
Change-Id: Ia3e2aa2613479e2fcc7f12e7de3b7e8b8f2cff68
2016-10-25 17:55:28 +02:00

41 lines
1.1 KiB
C++

#ifndef GRAPH_LIST_PARAM_CONTROLLER_H
#define GRAPH_LIST_PARAM_CONTROLLER_H
#include <escher.h>
#include "../function.h"
#include "../function_store.h"
namespace Graph {
class ParameterController : public ViewController, public SimpleListViewDataSource {
public:
ParameterController(Responder * parentResponder, FunctionStore * functionStore);
View * view() override;
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void setFunction(Function * function);
void didBecomeFirstResponder() override;
void setActiveCell(int index);
int numberOfRows() override;
KDCoordinate cellHeight() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
private:
bool handleEnter();
constexpr static int k_totalNumberOfCell = 3;
ListViewCell m_colorCell;
SwitchListViewCell m_enableCell;
ListViewCell m_deleteCell;
TableView m_tableView;
int m_activeCell;
Function * m_function;
FunctionStore * m_functionStore;
};
}
#endif