mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[poincare] Change names: LayoutReference-->Layout
This commit is contained in:
@@ -43,7 +43,7 @@ HighlightCell * SequenceToolbox::reusableCell(int index, int type) {
|
||||
|
||||
void SequenceToolbox::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
if (typeAtLocation(0, index) == 2) {
|
||||
static_cast<ExpressionTableCell *>(cell)->setLayoutReference(m_addedCellLayout[index]);
|
||||
static_cast<ExpressionTableCell *>(cell)->setLayout(m_addedCellLayout[index]);
|
||||
return;
|
||||
}
|
||||
MathToolbox::willDisplayCellForIndex(cell, mathToolboxIndex(index));
|
||||
@@ -73,20 +73,20 @@ void SequenceToolbox::buildExtraCellsLayouts(const char * sequenceName, int recu
|
||||
const char * otherSequenceName = SequenceStore::k_sequenceNames[1-sequenceIndex];
|
||||
for (int j = 0; j < recurrenceDepth; j++) {
|
||||
const char * indice = j == 0 ? "n" : "n+1";
|
||||
m_addedCellLayout[j] = HorizontalLayoutReference(
|
||||
CharLayoutReference(sequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayoutReference(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
m_addedCellLayout[j] = HorizontalLayout(
|
||||
CharLayout(sequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayout(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
);
|
||||
m_addedCellLayout[j+recurrenceDepth] = HorizontalLayoutReference(
|
||||
CharLayoutReference(otherSequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayoutReference(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
m_addedCellLayout[j+recurrenceDepth] = HorizontalLayout(
|
||||
CharLayout(otherSequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayout(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
);
|
||||
}
|
||||
if (recurrenceDepth < 2) {
|
||||
const char * indice = recurrenceDepth == 0 ? "n" : (recurrenceDepth == 1 ? "n+1" : "n+2");
|
||||
m_addedCellLayout[2*recurrenceDepth] = HorizontalLayoutReference(
|
||||
CharLayoutReference(otherSequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayoutReference(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
m_addedCellLayout[2*recurrenceDepth] = HorizontalLayout(
|
||||
CharLayout(otherSequenceName[0], KDText::FontSize::Large),
|
||||
VerticalOffsetLayout(LayoutHelper::String(indice, strlen(indice), KDText::FontSize::Large), VerticalOffsetLayoutNode::Type::Subscript)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user