From 78de0de16a016dc6b71c8d58b2748684f3e82e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 2 Mar 2017 15:11:08 +0100 Subject: [PATCH] [apps/sequence] Change name: addCells->setExtraCells Change-Id: I1d19283fe2997668e78e91881f31f28efcbffe66 --- apps/sequence/list/list_controller.cpp | 2 +- apps/sequence/list/sequence_toolbox.cpp | 2 +- apps/sequence/list/sequence_toolbox.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sequence/list/list_controller.cpp b/apps/sequence/list/list_controller.cpp index 5360a5fd4..9b047de75 100644 --- a/apps/sequence/list/list_controller.cpp +++ b/apps/sequence/list/list_controller.cpp @@ -31,7 +31,7 @@ Toolbox * ListController::toolboxForTextField(TextField * textField) { if (sequenceDefinition == 0) { recurrenceDepth = sequence->numberOfElements()-1; } - m_sequenceToolbox.addCells(sequence->name(), recurrenceDepth); + m_sequenceToolbox.setExtraCells(sequence->name(), recurrenceDepth); return &m_sequenceToolbox; } diff --git a/apps/sequence/list/sequence_toolbox.cpp b/apps/sequence/list/sequence_toolbox.cpp index 38a490082..40afb6234 100644 --- a/apps/sequence/list/sequence_toolbox.cpp +++ b/apps/sequence/list/sequence_toolbox.cpp @@ -64,7 +64,7 @@ int SequenceToolbox::typeAtLocation(int i, int j) { return MathToolbox::typeAtLocation(i,mathToolboxIndex(j)); } -void SequenceToolbox::addCells(const char * sequenceName, int recurrenceDepth) { +void SequenceToolbox::setExtraCells(const char * sequenceName, int recurrenceDepth) { m_numberOfAddedCells = recurrenceDepth; for (int j = 0; j < recurrenceDepth; j++) { m_addedCellLayout[j] = new BaselineRelativeLayout(new StringLayout(sequenceName, 1, KDText::FontSize::Large), new StringLayout((char *)(j == 0? "n" : "n+1"), strlen((char *)(j == 0? "n" : "n+1")), KDText::FontSize::Small), BaselineRelativeLayout::Type::Subscript); diff --git a/apps/sequence/list/sequence_toolbox.h b/apps/sequence/list/sequence_toolbox.h index e8cfd2d04..794d6140a 100644 --- a/apps/sequence/list/sequence_toolbox.h +++ b/apps/sequence/list/sequence_toolbox.h @@ -14,7 +14,7 @@ public: void willDisplayCellForIndex(HighlightCell * cell, int index) override; KDCoordinate rowHeight(int j) override; int typeAtLocation(int i, int j) override; - void addCells(const char * sequenceName, int recurrenceDepth); + void setExtraCells(const char * sequenceName, int recurrenceDepth); private: bool selectAddedCell(int selectedRow); int mathToolboxIndex(int index);