11 m_sequenceTitleCells{},
13 m_sequenceStore(sequenceStore),
15 m_sequenceParameterController(
'n'),
17 m_intervalParameterController(
this, m_interval)
24 if (j == 0 && i == 0) {
30 if (j == 0 && i > 0) {
40 return I18n::Message::NoSequence;
42 return I18n::Message::NoActivatedSequence;
46 return &m_intervalParameterController;
49 bool ValuesController::setDataAtLocation(
double floatBody,
int columnIndex,
int rowIndex) {
56 int ValuesController::maxNumberOfCells() {
57 return k_maxNumberOfCells;
60 int ValuesController::maxNumberOfFunctions() {
61 return k_maxNumberOfSequences;
64 SequenceTitleCell * ValuesController::functionTitleCells(
int j) {
65 assert(j >= 0 && j < k_maxNumberOfSequences);
66 return m_sequenceTitleCells[j];
70 assert(j >= 0 && j < k_maxNumberOfCells);
71 return m_floatCells[j];
74 SequenceStore * ValuesController::functionStore()
const {
75 return m_sequenceStore;
80 return &m_sequenceParameterController;
86 View * ValuesController::loadView() {
87 for (
int i = 0; i < k_maxNumberOfSequences; i++) {
88 m_sequenceTitleCells[i] =
new SequenceTitleCell(FunctionTitleCell::Orientation::HorizontalIndicator);
90 for (
int i = 0; i < k_maxNumberOfCells; i++) {
96 void ValuesController::unloadView(
View * view) {
97 for (
int i = 0; i < k_maxNumberOfCells; i++) {
98 delete m_floatCells[i];
99 m_floatCells[i] =
nullptr;
101 for (
int i = 0; i < k_maxNumberOfSequences; i++) {
102 delete m_sequenceTitleCells[i];
103 m_sequenceTitleCells[i] =
nullptr;
void setExpression(Poincare::ExpressionLayout *expressionLayout)
View * loadView() override
virtual void willDisplayCellAtLocation(HighlightCell *cell, int i, int j) override
ValuesController(Responder *parentResponder, ButtonRowController *header, I18n::Message parameterTitle, IntervalParameterController *intervalParameterController, Interval *interval)
bool setDataAtLocation(double floatBody, int columnIndex, int rowIndex) override
Sequence * activeFunctionAtIndex(int i) override
I18n::Message emptyMessage() override
IntervalParameterController * intervalParameterController() override
void setMessage(I18n::Message textContent, KDColor textColor=KDColorBlack)
void willDisplayCellAtLocation(HighlightCell *cell, int i, int j) override
int numberOfDefinedFunctions()
void unloadView(View *view) override
void setColor(KDColor color) override