Ruben Dashyan
eb6d697927
[apps] Make app accessors static members of App classes
2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
1a2a651f36
[apps] Replace app() by expressionFieldDelegateApp() in Calculation::EditExpressionController
2019-07-19 15:06:25 +02:00
Ruben Dashyan
3e992a3560
[apps] Replace app() by textFieldDelegateApp() in TextFieldDelegates
2019-07-19 15:06:25 +02:00
Ruben Dashyan
9611133276
[apps] Factor Shared::TextFieldDelegateApp::isAcceptableText
2019-07-19 15:06:25 +02:00
Ruben Dashyan
055d601854
[apps] Define TextFieldDelegate::textFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
5058f64163
[apps] Define LayoutFieldDelegate::expressionFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
4111927bae
[apps] Access *DelegateApp() through app()
2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a
[apps] Get rid of App casts
2019-07-19 15:06:25 +02:00
Ruben Dashyan
62cec10b46
[apps] Clean unnecessary AppsContainer class declarations and header inclusions
2019-07-19 15:06:25 +02:00
Ruben Dashyan
1f06819974
[apps] Remove Container * parameter from all App constructors
2019-07-19 15:06:25 +02:00
Léa Saviot
40c5196cee
[test] Use strcmpWithSystemParentheses
...
Now there can be two types of parentheses : '(' or
UCodePointLeftSystemParenthesis. Because we do not want to complicate
the test results, when comparing a computed serialization and a result
we do not differentiate between the two types of parentheses.
2019-06-26 14:03:08 +02:00
Émilie Feral
93b81cb26c
[poincare] Tests: fix build
2019-05-03 15:54:22 +02:00
Émilie Feral
8c2f8a9aea
[calculation] DisplayOutput: avoid to recursively scan the expression
...
multiple times instead of one.
2019-05-03 15:54:22 +02:00
Émilie Feral
cbbb827532
[poincare] Clean recursive tests on expression (isApproximate, IsRandom,
...
IsMatrix etc)
2019-05-03 15:54:22 +02:00
Émilie Feral
7f373a5c3c
[calculation] Calculations involving matrices display only approximate
...
results and should not toggle the exact output.
2019-05-03 15:54:22 +02:00
Émilie Feral
a48bec14d2
[calculation] Fix scroll on calculation heigher than the screen.
...
Changing the selectedSubviewType reloads the selection on the cell so we
need to scrollToSubviewOfTypeOfCellAtLocation afterwards.
2019-05-03 15:54:22 +02:00
Émilie Feral
3168ec14c3
[calculation] HistoryViewCell: fix layoutSubviews to fix weird scrolling
...
When successively adding calculations 0.2 and int(x*exp(-4x), 0,99) the
reloadScroll would fail
2019-05-03 15:54:22 +02:00
Émilie Feral
54ff7a3b84
[calculation] HistoryController: Avoid useless cell reloading (avoid
...
blinking)
2019-05-03 15:54:21 +02:00
Émilie Feral
2217eebaec
[escher] SelectableTableView: when reloading data, we temporary deselect
...
the table. We warn the SelectableTableViewDelegate that the selection
change is 'within a temporary selection change' when notifying it of the
change.
2019-05-03 15:54:21 +02:00
Émilie Feral
138587ee8e
[calculation] Calculation: memoized display output
2019-05-03 15:54:21 +02:00
Émilie Feral
1e72a1c9c2
[calculation] HistoryViewCell: clean
2019-05-03 15:54:21 +02:00
Émilie Feral
a30191ccb4
[calculation] Change name: 'calculation selected' --> 'calculation
...
expanded'
2019-05-03 15:54:21 +02:00
Émilie Feral
12876b177f
[calculation] Calculation: discard Calculation::toggleDisplayExact (this
...
feature will be developed later)
2019-05-03 15:54:21 +02:00
Émilie Feral
3f961b7705
[calculation] HistoryViewCell: better split reload (highlight, scroll
...
etc) between willDisplayCellForIndex and cellDidSelectSubview
2019-05-03 15:54:21 +02:00
Émilie Feral
05a235803f
[calculation] HistoryViewCell: fix scroll reloading and right or left
...
outputs selection (the order of events here matters)
2019-05-03 15:54:21 +02:00
Émilie Feral
39c53b5e8b
[calculation] HistoryViewCell: memoize calculation and cell selection to
...
speed up navigation in HistoryController
2019-05-03 15:54:21 +02:00
Émilie Feral
8e0d3065f7
[calculation] HistoryViewCell: reloadCell selects the right or left
...
output according to the calculation hold (this enables to discard
unnecessary reloadScroll)
2019-05-03 15:54:21 +02:00
Émilie Feral
7db575a4ba
[calculation] Calculation: improve memoization of a calculation height
2019-05-03 15:54:21 +02:00
Émilie Feral
06a8382ff4
[shared] ScrollableExactApproximateExpressionsView: change the selected
...
output only when one of the two layout is uninitialized. Otherwise, the
parent cell decides of which of right or left output should be selected.
2019-05-03 15:54:21 +02:00
Émilie Feral
80078137d5
[calculation] Display exact and approximate outputs in the
...
calculation history when the output is selected for calculations
involving decimal numbers (1.2)
2019-05-03 15:54:20 +02:00
Émilie Feral
6fd5cb360b
[calculation] Improve Calculation model: new display mode
...
ExactAndApproximateToggle
2019-05-03 15:54:20 +02:00
Ruben Dashyan
1081127c97
[apps/calculation] Simplify HistoryViewCell::handleEvent
2019-05-03 15:54:20 +02:00
Ruben Dashyan
2d7c87d461
[apps/calculation] HistoryViewCell does not need to hold layouts
2019-05-03 15:54:20 +02:00
Léa Saviot
1ecfb4af83
[poincare/tests] randint's simplification gives its approximation
2019-05-03 15:54:20 +02:00
Léa Saviot
8ea5f1b642
[apps/calc] If result contains random/round, display approximation only
2019-05-03 15:54:20 +02:00
Léa Saviot
a8e7208a30
[apps/calculation/tests] Tests on displayExactApprox for random/round
2019-05-03 15:54:20 +02:00
Émilie Feral
f453508321
[calculation] Fix tests with no symbolic computation
2019-05-03 15:54:20 +02:00
Léa Saviot
b007286581
[apps/calc] displayExactOuputOnly only if the input is store in function
...
This prevents 1+x->f(x) from displaying 1+x = undef
[[1,2]] + [[1][2]] displays undef
2019-05-03 15:53:21 +02:00
Léa Saviot
6f7fe5089a
[apps/calculation] Calculation::DisplayOutput can be Exact/Approx/Both
2019-05-03 15:53:21 +02:00
Léa Saviot
9e64655f5a
[poincare/tests] Parametered expressions + symbolic computation
2019-05-03 15:53:21 +02:00
Léa Saviot
6839c9f8a2
[apps/calculation] Add tests about no symbolic computation
2019-05-03 15:53:21 +02:00
Léa Saviot
f14c56badf
[calculation/test] Rename some test method arguments
2019-05-03 15:53:21 +02:00
Léa Saviot
9f776b2f6f
[test] Fix tests for no symbolic computation
2019-05-03 15:53:21 +02:00
Léa Saviot
267d27f114
[poincare] Remove symbolic computation
2019-05-03 15:53:21 +02:00
Léa Saviot
4f63b16e0a
[unicode] Fix portuguese literals
2019-05-03 15:53:20 +02:00
Léo Solé
e74c5f8039
[unicode] Fix Spanish literals
2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049
Remove max/min inline from KDCoordinate header
2019-05-03 15:53:19 +02:00
Léa Saviot
6b6d3d7fe2
[tests] Fix unicode for tests
2019-05-03 15:53:19 +02:00
Léa Saviot
65e5adafac
Remove Ion::Charset
2019-05-03 15:53:19 +02:00