Files
Upsilon/apps/shared/list_parameter_controller.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

38 lines
1.1 KiB
C++

#ifndef SHARED_LIST_PARAM_CONTROLLER_H
#define SHARED_LIST_PARAM_CONTROLLER_H
#include <escher.h>
#include "function.h"
#include "function_store.h"
namespace Shared {
class ListParameterController : public ViewController, public SimpleListViewDataSource {
public:
ListParameterController(Responder * parentResponder, FunctionStore * functionStore);
View * view() override;
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
virtual void setFunction(Function * function);
void didBecomeFirstResponder() override;
int numberOfRows() override;
KDCoordinate cellHeight() override;
HighlightCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
protected:
SelectableTableView m_selectableTableView;
FunctionStore * m_functionStore;
Function * m_function;
private:
constexpr static int k_totalNumberOfCell = 3;
PointerTableCellWithChevron m_colorCell;
PointerTableCellWithSwitch m_enableCell;
PointerTableCell m_deleteCell;
};
}
#endif