Files
Upsilon/apps/graph/list/parameter_controller.h
Émilie Feral 5a03f8fd03 [apps] Delete useless handleEnter
Change-Id: I48bc390b1f370270b51f74dbda1d9f50c2608b81
2016-11-10 17:29:48 +01:00

37 lines
1.0 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;
int numberOfRows() override;
KDCoordinate cellHeight() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
private:
constexpr static int k_totalNumberOfCell = 3;
ChevronMenuListCell m_colorCell;
SwitchMenuListCell m_enableCell;
MenuListCell m_deleteCell;
SelectableTableView m_selectableTableView;
Function * m_function;
FunctionStore * m_functionStore;
};
}
#endif