Files
Upsilon/apps/shared/list_parameter_controller.h
Émilie Feral 64280be6ac [apps/sequence/list] Enable to delete all sequences
Change-Id: I923a5461b81352730ed4cba182c851c53b4cd33e
2017-02-17 16:35:06 +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;
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;
protected:
SelectableTableView m_selectableTableView;
FunctionStore * m_functionStore;
Function * m_function;
private:
constexpr static int k_totalNumberOfCell = 3;
ChevronMenuListCell m_colorCell;
SwitchMenuListCell m_enableCell;
MenuListCell m_deleteCell;
};
}
#endif