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
8029aab060
[apps/calculation] Remove unecessary namespace
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
196e74297e
[apps] Rename exact/approx as left/right in scrollable_exact_approx_exp_view
2018-11-23 12:04:03 +01:00
Émilie Feral
4e8cd02d3f
[calculation] Fix memoization: hold the calculation and not its address
...
which is likely to have changed
2018-09-21 18:16:21 +02:00
Léa Saviot
8b75802746
[calculation] Don't recompute HistoryViewCell layout if same calculation
2018-09-20 17:21:34 +02:00
Émilie Feral
365b145cf3
[poincare] Change names: LayoutReference-->Layout
2018-09-18 16:29:44 +02:00
Émilie Feral
616e4c0bcc
[poincare] Change name: LayoutRef --> LayoutReference
2018-09-14 16:57:12 +02:00
Émilie Feral
27064d00f7
[calculation] Get rid of DynamicViewController in HistoryController
2018-09-10 12:59:36 +02:00
Léa Saviot
f579e95815
[poincare] Start removing ExpressionLayout
2018-07-03 17:33:06 +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
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
077a95197e
[escher] SelectableTableView handles setting the ccell as first
...
responder if needed
2017-12-20 17:17:41 +01:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +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
5fd8fda4b1
[calculation] Display exact and approximate results
...
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Léa Saviot
239e702d37
[code] Navigation in the console history.
...
The user can copy previous commands or results, into the clipboard or in
the console prompt.
Change-Id: I280fff2d4937f4d17ab6c8907d6e5c359a322372
2017-11-17 11:59:50 +01:00
Émilie Feral
71284311bb
[escher] [apps] Implement app snapshot
...
Change-Id: I24d7eed7cef964af8be1c85222e758c297dc0da1
2017-05-18 14:16:41 +02:00
Émilie Feral
172528f49f
[apps/calculation] Change names: PrettyPrintView -->
...
ScrollableExpressionView and make result View an scrollable expression
view
Change-Id: I9ac85671bcb4fdbeda0e5dbc6788dc7eb93b7343
2016-12-09 11:01:44 +01:00
Émilie Feral
0448278e36
[calculation] Make the results of calculation expressions
...
Change-Id: I9eb685b21944cfc6cc346a42d442f064ae5938dd
2016-12-08 15:21:52 +01:00
Émilie Feral
2f45578886
[apps/calculation] Handle calculation to heigh to be fully displayed in
...
the screen
Change-Id: I182f0c76d911e6686223a22be2a6ddb561b287ec
2016-11-04 14:47:07 +01:00
Émilie Feral
1371d807c1
[apps/calculation] Handle enter on a history view cell
...
Change-Id: Id3e9c38688a4ed7395e3e2cb6e64581681cad9ad
2016-11-02 09:46:10 +01:00
Émilie Feral
6e13c43c37
[app/calculation] in history view cell, make only pretty print responder
...
Change-Id: I9dbd5d150e5fdcc52e5ad38b2e9524d1b5a87fae
2016-11-02 09:46:09 +01:00
Émilie Feral
410ac08bc8
[apps/calculation] Add margins in history calcul cell
...
Change-Id: Icecab4fdad31e57ce33b00985869d899a51261e6
2016-11-02 09:46:09 +01:00
Émilie Feral
ca0e47f44c
[apps/calculation] Correct constant expression types
...
Change-Id: Ida74f65af010536a63704cf505fca86acf27e496
2016-11-02 09:46:09 +01:00
Émilie Feral
77c964b1b5
[apps/calculation] Make the history view cell inherit from even odd cell
...
Change-Id: I87b2774dd9cc4c672c356b42ed2a4a18e4563f60
2016-11-02 09:46:01 +01:00
Émilie Feral
a219316535
[apps/calculation] handle selection in history view cell
...
Change-Id: I52629c355cefb77c31d418e2c764f00b60dd3cbe
2016-10-27 14:34:31 +02:00
Émilie Feral
6869df126a
[apps/calculation] Use pretty print view in history view cell
...
Change-Id: I272e03bad1ca99240285316beed8fe9ab7a270b7
2016-10-27 14:34:30 +02:00
Émilie Feral
f809d089d6
[escher] Make table view accept only table view cell
...
Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
2016-10-25 17:55:28 +02:00
Émilie Feral
b101308922
[apps/calculation] Rename calcul->calculation
...
Change-Id: I57ca7353516cee2da33470a8a0f622a21c3fe7e9
2016-10-25 17:55:28 +02:00