Files
Upsilon/apps/shared/list_parameter_controller.h
Émilie Feral 44317d5c95 [apps/shared] Move apps/graph/list/parameter_controller to shared/
folder to be used by sequence

Change-Id: I33d245c819ceb01bf5b0b277a0faebfc99a66c68
2017-02-13 17:15:07 +01:00

37 lines
1.0 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;
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