Files
Upsilon/apps/sequence/list/list_parameter_controller.h
Émilie Feral 282447d14e [apps/sequence/list] display the page change type when clicking on the
sequence type row in the list parameters

Change-Id: I11a2931cb81eda8a14a9e163ded93148dba5bb4c
2017-02-17 16:35:06 +01:00

33 lines
1.0 KiB
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 "change_type_parameter_controller.h"
namespace Sequence {
class ListParameterController : public Shared::ListParameterController {
public:
ListParameterController(Responder * parentResponder, SequenceStore * sequenceStore);
~ListParameterController();
const char * title() const override;
bool handleEvent(Ion::Events::Event event) override;
void setSequence(Sequence * sequence);
int numberOfRows() override;
TableViewCell * reusableCell(int index) override;
int reusableCellCount() override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
private:
constexpr static int k_totalNumberOfCell = 4;
ChevronExpressionMenuListCell m_typeCell;
Poincare::ExpressionLayout * m_typeLayout;
ChangeTypeParameterController m_changeTypeParameterController;
Sequence * m_sequence;
};
}
#endif