Files
Upsilon/apps/sequence/list/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

31 lines
970 B
C++

#ifndef SEQUENCE_LIST_PARAM_CONTROLLER_H
#define SEQUENCE_LIST_PARAM_CONTROLLER_H
#include "../../shared/list_parameter_controller.h"
#include "../sequence.h"
#include "../sequence_store.h"
#include "type_parameter_controller.h"
namespace Sequence {
class ListParameterController : public Shared::ListParameterController {
public:
ListParameterController(Responder * parentResponder, SequenceStore * sequenceStore);
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void setFunction(Shared::Function * function) override;
int numberOfRows() override;
HighlightCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
private:
constexpr static int k_totalNumberOfCell = 4;
PointerTableCellWithChevronAndExpression m_typeCell;
TypeParameterController m_typeParameterController;
Sequence * m_sequence;
};
}
#endif