Émilie Feral
6c476526d1
[calculation] HistoryController: Avoid useless cell reloading (avoid
...
blinking)
2019-04-29 17:55:28 +02:00
Émilie Feral
661c7b9943
[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-04-26 14:48:31 +02:00
Émilie Feral
78907aeb4a
[calculation] Calculation: memoized display output
2019-04-26 10:46:46 +02:00
Émilie Feral
87c5004aec
[calculation] HistoryViewCell: clean
2019-04-26 10:14:11 +02:00
Émilie Feral
7150669f5e
[calculation] Change name: 'calculation selected' --> 'calculation
...
expanded'
2019-04-26 10:03:24 +02:00
Émilie Feral
aebc5ce4d0
[calculation] Calculation: discard Calculation::toggleDisplayExact (this
...
feature will be developed later)
2019-04-26 09:50:25 +02:00
Émilie Feral
1535d4dbb4
[calculation] HistoryViewCell: better split reload (highlight, scroll
...
etc) between willDisplayCellForIndex and cellDidSelectSubview
2019-04-26 09:43:22 +02:00
Émilie Feral
a02a1fc5a4
[calculation] HistoryViewCell: fix scroll reloading and right or left
...
outputs selection (the order of events here matters)
2019-04-25 15:20:55 +02:00
Émilie Feral
25722d578d
[calculation] HistoryViewCell: memoize calculation and cell selection to
...
speed up navigation in HistoryController
2019-04-25 14:03:35 +02:00
Émilie Feral
e29c2b8b39
[calculation] HistoryViewCell: reloadCell selects the right or left
...
output according to the calculation hold (this enables to discard
unnecessary reloadScroll)
2019-04-24 09:46:12 +02:00
Émilie Feral
0c453386d3
[calculation] Calculation: improve memoization of a calculation height
2019-04-23 15:16:19 +02:00
Émilie Feral
55e325cc3a
[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-04-23 11:15:17 +02:00
Émilie Feral
bba51b9716
[calculation] Display exact and approximate outputs in the
...
calculation history when the output is selected for calculations
involving decimal numbers (1.2)
2019-04-22 14:14:15 +02:00
Émilie Feral
1b2ce4a18e
[calculation] Improve Calculation model: new display mode
...
ExactAndApproximateToggle
2019-04-22 14:12:00 +02:00
Ruben Dashyan
ed04e5e9e4
[apps/calculation] Simplify HistoryViewCell::handleEvent
2019-04-20 17:27:38 +02:00
Ruben Dashyan
8bfb3f7a6c
[apps/calculation] HistoryViewCell does not need to hold layouts
2019-04-20 17:27:38 +02:00
Léa Saviot
326b8b8761
[poincare/tests] randint's simplification gives its approximation
2019-04-17 14:29:08 +02:00
Léa Saviot
a48478882c
[apps/calc] If result contains random/round, display approximation only
2019-04-17 12:11:37 +02:00
Léa Saviot
73e0947962
[apps/calculation/tests] Tests on displayExactApprox for random/round
2019-04-17 12:10:47 +02:00
Émilie Feral
60b577e199
[calculation] Fix tests with no symbolic computation
2019-04-16 13:51:59 +02:00
Léa Saviot
057939dd3f
[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-04-12 15:16:53 +02:00
Léa Saviot
50e2d11b1f
[apps/calculation] Calculation::DisplayOutput can be Exact/Approx/Both
2019-04-12 15:16:53 +02:00
Léa Saviot
3d8de2246f
[poincare/tests] Parametered expressions + symbolic computation
2019-04-12 15:16:53 +02:00
Léa Saviot
5dc240c94f
[apps/calculation] Add tests about no symbolic computation
2019-04-12 15:16:53 +02:00
Léa Saviot
a45cde2fed
[calculation/test] Rename some test method arguments
2019-04-12 15:16:53 +02:00
Léa Saviot
8b10c979a0
[test] Fix tests for no symbolic computation
2019-04-12 15:16:53 +02:00
Léa Saviot
3554f441c1
[poincare] Remove symbolic computation
2019-04-12 15:16:53 +02:00
Léa Saviot
06269d5349
[unicode] Fix portuguese literals
2019-04-12 15:16:52 +02:00
Léo Solé
e4526124f9
[unicode] Fix Spanish literals
2019-04-12 15:16:52 +02:00
Léa Saviot
43031928c3
Remove max/min inline from KDCoordinate header
2019-04-12 15:16:51 +02:00
Léa Saviot
519e12fd26
[tests] Fix unicode for tests
2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376
Remove Ion::Charset
2019-04-12 15:16:50 +02:00
Léa Saviot
52ae2a2643
[apps/calc] approximateOutput handles unparsable m_approximateOutputText
...
This fixes a crash when computing:
[[1, 0, -1, 0][0, 1, 1, 0][0, 2, 0, 1][1, 0, 0, 1]]^(-1)
2019-04-12 15:16:05 +02:00
Romain Goyet
4f2c7a3763
[build] Update the i18n processing to fit the out-of-tree build
2019-03-06 15:00:59 +01:00
Romain Goyet
4f1d74f44b
[build] Use an out-of-tree build
2019-03-06 15:00:59 +01:00
Émilie Feral
7b5f3c570d
[poincare] Change the way Expression are built
2019-02-21 11:29:35 +01:00
Ruben Dashyan
0943406263
Fix HistoryViewCell and ScrollableExactApproximateExxpressionsCell margins issue
...
Remove all margins from those cells.
Rather add margins to their respective subviews:
- ScrollableExpressionView
- ScrollableExactApproximateExpressionsView.
As a notable consequence, the distance in HistoryViewCell between its
subviews becomes 10 instead of 5.
In passing, replace
- Metric::HistoryHorizontalMargin = 10
- ScrollableExactApproximateExpressionsView::k_digitHorizontalMargin = 10
- HistoryViewCell::k_digitVerticalMargin = 5
- ScrollableExactApproximateExpressionsCell::k_margin = 5
by
- Metric::CommonSmallMargin = 5
- Metric::CommonLargeMargin = 10.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
98e00404b8
[apps/calculation] Enable arrow scrolling indicators and add horizontal margin
2019-02-18 16:49:58 +01:00
Ruben Dashyan
da0d42ca3b
[apps/calculation/history_view_cell] Fix background colors
...
Set m_inputView's m_expressionView's background color
2019-02-18 16:49:58 +01:00
Ruben Dashyan
7a977f5689
[apps/calculation] Remove redundancy
...
In HistoryController::willDisplayCellForIndex, both setCalculation and
reloadCell end up calling ScrollableExpressionView::layoutSubviews.
Indeed, setCalculation calls setLayout over m_inputView, which in turn
calls layoutSubviews. It is logical to remove the first occurence.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
08e8bf0eeb
[escher] Implement ScrollView::minimalSizeForOptimalDisplay including margins
...
Remove from derived classes:
- apps/calculation/scrollable_expression_view
- apps/code/consol_line_cell
- apps/shared/scrollable_exact_approximate_expressions_view
- escher/layout_field
- escher/table_view
- escher/text_field
2019-02-18 16:49:58 +01:00
Ruben Dashyan
0e0b49acce
[apps/calculation] Remove HistoryViewCell horizontal margins
2019-02-18 16:49:58 +01:00
Ruben Dashyan
faae55eb51
[escher/scroll_view] Replace setShowsIndicators by setDecoratorType
2019-02-18 16:49:58 +01:00
Ruben Dashyan
8029aab060
[apps/calculation] Remove unecessary namespace
2019-02-18 16:49:58 +01:00
Léa Saviot
31866aaaf5
[apps/calculation] Fix display of unreal
...
For instance ln(-2) in real mode should display "unreal"
2019-01-21 11:59:20 +01:00
Léa Saviot
be3ab70e67
[apps/calculation] Do not display approximation if it is unreal
...
Fixes: sqrt(-1) in real complex format, then change complex format, it
then displays unreal = undef
2019-01-10 11:42:05 +01:00
Léa Saviot
027148f376
[apps/calculation] Clean comments
2019-01-10 11:42:05 +01:00
Léa Saviot
271e22628b
Typo in comment
2019-01-10 11:42:05 +01:00
Léa Saviot
892dd2de4f
[apps/poincare] Clean some comments
2019-01-10 11:42:04 +01:00
Léa Saviot
101db272c8
[test/calculation] 1+1->a shoud display 2, not 1+1=2
2019-01-10 11:42:04 +01:00