Files
Upsilon/apps/shared/list_parameter_controller.h
Émilie Feral 0a135fe7d7 [apps/sequence/list] Create a list parameter controller specific to
sequence

Change-Id: If6342a137715c1295b110e2d4e24499fcaf8edbc
2017-02-16 16:34:12 +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;
private:
constexpr static int k_totalNumberOfCell = 3;
ChevronMenuListCell m_colorCell;
SwitchMenuListCell m_enableCell;
MenuListCell m_deleteCell;
Function * m_function;
FunctionStore * m_functionStore;
};
}
#endif