Émilie Feral
73a8ec24f2
[calculation] Revert "HistoryViewCell: remove useless m_expandedCalculation"
...
When scrolling up and down, only 'setCalculation' is called by
'willDisplayCellForIndex' - and not 'cellDidSelectSubview'. So a new cell
should be informed of the expanded state in 'setCalculation'.
2020-02-12 15:13:20 +01:00
Émilie Feral
c12304a00e
[calculation] Remove outdated comment
2020-02-12 15:13:20 +01:00
Émilie Feral
df47a355a2
[calculation] HistoryController: display RationalListController when
...
clicking on a burger of a Rational input
2020-02-12 15:13:19 +01:00
Émilie Feral
f94727b62d
[calculation] HistoryController: factorize code
2020-02-12 15:13:19 +01:00
Émilie Feral
714e5f12d9
[calculation] WIP: display IntegerListController when clicking on a
...
burger view of an integer input
2020-02-12 15:13:19 +01:00
Émilie Feral
49d52f293e
[calculation] First version of the TrigonometryListController
2020-02-12 15:13:19 +01:00
Émilie Feral
715a1a2d5e
[calculation] AdditionalInformation are base on the Calculation input
...
instead of exact output
2020-02-12 15:13:19 +01:00
Émilie Feral
d178adc936
[apps/calculation] Improve expressions that are displayed in Complex
...
pop-up
2020-02-12 15:13:19 +01:00
Émilie Feral
eac83fce0b
[calculation] Improve margins of additional results pop-up
2020-02-12 15:13:18 +01:00
Émilie Feral
2ebbe5ae25
[calculation] WIP: first version of ComplexListController
2020-02-12 15:13:18 +01:00
Émilie Feral
47e4abee81
[apps/calculation] Reload display output when HistoryController appears
...
(to avoid displaying 2 = 2 when leaving and reentering Calculation app)
2020-02-12 15:13:18 +01:00
Émilie Feral
6ed9e11de3
[apps/shared] ScrollableExactApproximateExpressionsView: split
...
ScrollableExactApproximateExpressionsView into
AbstractScrollableExactApproximateExpressionsView and
ScrollableExactApproximateExpressionsView to factorize code with future
ScrollableInputExactApproximateExpressionsView
2020-02-12 15:13:18 +01:00
Émilie Feral
a21689d72c
[apps/calculation][poincare] Move additionalInformationType method from
...
Calculation to Poincare module
2020-02-12 15:13:18 +01:00
Émilie Feral
e932e8f895
[apps/calculation] Fix HistoryController: update the OutputView when
...
reloading the table data
2020-02-12 15:13:18 +01:00
Émilie Feral
400819d87d
[apps/calculation] HistoryViewCell: remove useless m_expandedCalculation
2020-02-12 15:13:18 +01:00
Émilie Feral
6c9832c9e1
[apps/calculation] Avoid blinking in Calculation
2020-02-12 15:13:18 +01:00
Émilie Feral
f0ec2136b7
[apps/calculation] WIP: display the complex graph when clicking on the
...
burger menu
2020-02-12 15:13:18 +01:00
Ruben Dashyan
5787d50a45
Revert "[apps/calculation/edit_expression_controller] Define viewWillAppear"
...
This reverts commit 960736203ff2f816688868e3397d178d931fa3c3.
2020-02-12 15:13:16 +01:00
Ruben Dashyan
b832a9e9f4
[apps/calculation/edit_expression_controller] Define viewWillAppear
2020-02-12 15:13:16 +01:00
Ruben Dashyan
7a49e23e3b
[apps/calculation] Factor HistoryController::reload
2020-02-12 15:13:15 +01:00
Émilie Feral
f3c6aab669
[apps/calculation] HistoryViewCell: when reloading the entire table due
...
to a cell selection, the cell used for the selected row might change. We
thereby have to update the selected cell once the table has been
reloaded.
This fixes the following bug: add 5 times the calculation "12.2". Go up,
the selected expression is the left one instead of the right one.
2020-01-06 14:07:20 +01:00
Léa Saviot
4caf9f5197
[coding style] Make some methods const
2019-09-09 20:05:14 +02:00
Léa Saviot
c3ee31f80e
[apps/calculation] Fix HistoryController/Store index
2019-08-08 17:22:02 +02:00
Léa Saviot
1af882ddae
[apps/calculation] Fix calculation history index
2019-08-08 17:22:02 +02:00
Léa Saviot
c7fd11e4b0
[apps/calculation] Calculation store has one big buffer for calculations
2019-08-08 17:22:02 +02:00
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
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
É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
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
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
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
Émilie Feral
f7193602ef
[calculation] Bug in the subview selected with heigh cells
...
In SelectableTableView::selectCellAtLocation, we call 'tableViewDidChangeSelection'
before scrolling. Therefore, the cell with updated with the right selected subview
is not the one drawn... To solve this issue, we keep the selectedSubview ('model')
in the HistoryController instead of in the limited-lifespan view.
2018-12-06 14:52:23 +01:00
Léa Saviot
f7913fb744
[apps/calc] Fix history cell output copy
2018-11-23 12:04:06 +01:00
Émilie Feral
27064d00f7
[calculation] Get rid of DynamicViewController in HistoryController
2018-09-10 12:59:36 +02:00
Émilie Feral
c24e2726fa
[escher][apps] Get rid of duplicate overriden methods:
...
cumulatedHeightFromIndex, indexFromCumulatedHeight
2018-06-12 10:27:23 +02:00
Émilie Feral
ac9da8d559
[escher] Handle copy/cut event on Expression in selectable table view
2018-06-07 14:46:14 +02:00
Émilie Feral
24c9549866
[escher] Handle copy/cut event on selectable table view
2018-06-07 14:46:14 +02:00
Émilie Feral
cfb891d7bd
[shared] Move OutputExpressionView & ScrollableOuputExpression view to shared/ with new name:
...
ScrollableExactApproximateExpressionsView (for future implementation of solver
solution page)
2018-06-07 13:46:18 +02:00
Émilie Feral
1108ef21db
[calculation] Do not memoize the expression layouts but the expressions
...
final height to avoid overflowing the heap. The expression layouts are
kept in the cell which are fewer then the number of calculations
2018-05-16 18:36:45 +02:00
Émilie Feral
1d7bd2b70a
[calculation] Change method name: shouldDisplayApproximateOutput --> shouldOnlyDisplayApproximateOutput
2018-05-15 11:33:28 +02:00
Émilie Feral
17fc7998a2
[apps] Calculation: Ans is exact only when the expression hold is exact
2018-01-16 15:17:16 +01:00
Émilie Feral
89485104b8
[apps] In calculation, fix history table row height
...
Change-Id: Ia0ee485b80d6f4db81f480d0e3e8f91b73c912a2
2017-11-24 17:13:21 +01:00
Émilie Feral
b2d6c2e305
[apps] In calculation, avoid blinking when changing selection
...
Change-Id: I8b94362183e1aed0d87cfdfa39b3f67ccbbd8b42
2017-11-21 17:37:25 +01:00
Émilie Feral
65722ff875
[apps] Fix bug when computing the history cell height in Calculation
...
Change-Id: Ic45f3da26a47b189ef6050d68c25f27c9a1f4bb7
2017-11-21 17:37:25 +01:00
Émilie Feral
5fd8fda4b1
[calculation] Display exact and approximate results
...
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
319955424b
[escher] In table view, use scrollToContentRect instead of recomputing
...
everything
Change-Id: Idb3ec8218386b03bc34d08fcd888d1a671ea98f9
2017-08-17 16:21:20 +02:00