[apps] Change MathToolbox's binomial coefficient layout.

It now uses a Parenthesis layout.

Change-Id: Ia83d7881a57bc91e41d125fef1e2a648d0278946
This commit is contained in:
Léa Saviot
2018-01-08 16:09:57 +01:00
parent 61e50e1858
commit 6334e2f435
3 changed files with 13 additions and 5 deletions

View File

@@ -45,16 +45,14 @@ const ToolboxMessageTree complexChildren[5] = {
const_cast<int *>(&pointedLayoutPathConj[0]),
1)};
const int pointedLayoutPathBinomial[] = {1,0};
const int pointedLayoutPathBinomial[] = {0, 0};
const ToolboxMessageTree probabilityChildren[2] = {
ToolboxMessageTree(I18n::Message::BinomialCommandWithArg, I18n::Message::Combination, I18n::Message::BinomialCommandWithArg, nullptr, 0,
new HorizontalLayout(
new ParenthesisLeftLayout(),
new ParenthesisLayout(
new GridLayout(Poincare::ExpressionLayoutArray(
new EmptyVisibleLayout(),
new EmptyVisibleLayout()).array(),
2, 1, false),
new ParenthesisRightLayout(), false),
2, 1, false)),
const_cast<int *>(&pointedLayoutPathBinomial[0]),
2),
ToolboxMessageTree(I18n::Message::PermuteCommandWithArg, I18n::Message::Permutation, I18n::Message::PermuteCommandWithArg)};