mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/escher] Code layouting and typo
This commit is contained in:
@@ -99,7 +99,10 @@ void VariableBoxController::willDisplayCellForIndex(HighlightCell * cell, int in
|
||||
} else {
|
||||
assert(m_currentPage == Page::Function);
|
||||
StorageCartesianFunction f(record);
|
||||
symbolLength = f.nameWithArgument(symbolName, Shared::StorageFunction::k_maxNameWithArgumentSize, Graph::StorageCartesianFunctionStore::Symbol());
|
||||
symbolLength = f.nameWithArgument(
|
||||
symbolName,
|
||||
Shared::StorageFunction::k_maxNameWithArgumentSize,
|
||||
Graph::StorageCartesianFunctionStore::Symbol());
|
||||
}
|
||||
Layout symbolLayout = LayoutHelper::String(symbolName, symbolLength);
|
||||
myCell->setLayout(symbolLayout);
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
};
|
||||
void lockDeleteEvent(Page page);
|
||||
private:
|
||||
// TODO: use the "(x)" define in CartesianFunctionSomething
|
||||
// TODO: use the "(x)" defined in CartesianFunctionSomething
|
||||
constexpr static int k_functionArgLength = 3;
|
||||
constexpr static const char * k_functionArg = "(x)";
|
||||
constexpr static int k_maxNumberOfDisplayedRows = 6; //240/Metric::ToolboxRowHeight
|
||||
|
||||
@@ -9,7 +9,7 @@ public:
|
||||
ExpressionTableCell(Layout layout = Layout::Horizontal);
|
||||
View * labelView() const override;
|
||||
void setHighlighted(bool highlight) override;
|
||||
void setLayout(Poincare::Layout layoutR);
|
||||
void setLayout(Poincare::Layout layout);
|
||||
Poincare::Layout layout() const override { return m_labelExpressionView.layout(); }
|
||||
private:
|
||||
ExpressionView m_labelExpressionView;
|
||||
|
||||
@@ -9,7 +9,7 @@ public:
|
||||
ExpressionTableCellWithExpression();
|
||||
View * accessoryView() const override;
|
||||
void setHighlighted(bool highlight) override;
|
||||
void setAccessoryLayout(Poincare::Layout layoutR);
|
||||
void setAccessoryLayout(Poincare::Layout l);
|
||||
private:
|
||||
ExpressionView m_accessoryExpressionView;
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ void ExpressionTableCell::setHighlighted(bool highlight) {
|
||||
m_labelExpressionView.setBackgroundColor(backgroundColor);
|
||||
}
|
||||
|
||||
void ExpressionTableCell::setLayout(Poincare::Layout layoutR) {
|
||||
m_labelExpressionView.setLayout(layoutR);
|
||||
void ExpressionTableCell::setLayout(Poincare::Layout layout) {
|
||||
m_labelExpressionView.setLayout(layout);
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ void ExpressionTableCellWithExpression::setHighlighted(bool highlight) {
|
||||
m_accessoryExpressionView.setBackgroundColor(backgroundColor);
|
||||
}
|
||||
|
||||
void ExpressionTableCellWithExpression::setAccessoryLayout(Poincare::Layout layoutR) {
|
||||
m_accessoryExpressionView.setLayout(layoutR);
|
||||
void ExpressionTableCellWithExpression::setAccessoryLayout(Poincare::Layout l) {
|
||||
m_accessoryExpressionView.setLayout(l);
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user