Léa Saviot
2eaf84cc73
[escher/app/modal_view] If will exit app, do not relayout
...
App::willBecomeInactive calls dismissModalViewController, which puts
back the previous repsonder and calls layoutSubviews on the
modalViewController. We do not want to do all these operations when the
app will be exited anyways.
2020-02-12 15:13:18 +01:00
Léa Saviot
1d954db19d
[poincare/layout_cursor] Better empty layout handling in selectLeftRight
2020-02-12 15:13:18 +01:00
Léa Saviot
8a8d4677a8
[escher/layout_field] Fix addSelection
...
Better handling of adding an horizontal to the selection of all its
children / or the contrary
2020-02-12 15:13:18 +01:00
Léa Saviot
94cd3ecde7
[poincare/layout_cursor] Fix selectUpDown if pointed layout detached
...
Scenario: 23/[[1 |empty] [empty empty]] then select up
2020-02-12 15:13:18 +01:00
Léa Saviot
344ea5a67a
[apps/code] Handle Home event when in the toolbox
...
If editing a script, the empty space at the end of the script should be
moved to the end of the storage.
2020-02-12 15:13:18 +01:00
Léa Saviot
67f10d0abd
[poincare/layout_node] Fix changeGreySquaresOfAllMatrixRelatives
...
There was a problem with node adresses that changed during an iterator
use.
Scenario : Matrix, Root, get right of the matrix, 50 zeroes, Divide,
Zero, Zero then shift up
2020-02-12 15:13:18 +01:00
Léa Saviot
3ff94b8930
[escher/text_input] Fix cursor position when deleting selection
2020-02-12 15:13:18 +01:00
Léa Saviot
cb53038909
[escher] Text input has alignment, not text field
2020-02-12 15:13:18 +01:00
Léa Saviot
aad1636238
[escher/text_input] Methods reordering
2020-02-12 15:13:18 +01:00
Léa Saviot
fb18b7cd69
[escher/text_input] Maxe some member variables protected
2020-02-12 15:13:18 +01:00
Léa Saviot
9b53b182a9
[escher/text_input] Fix deleteSelection
2020-02-12 15:13:18 +01:00
Léa Saviot
367df21288
[escher/text_input] Use move method to select
...
This fixes the dot that could be selected in the Python app script names
2020-02-12 15:13:18 +01:00
Léa Saviot
e3d06d87fb
[escher/text_field] Fix Cut event when selection
2020-02-12 15:13:18 +01:00
Léa Saviot
e161d42839
[escher/text_field] Reset selection after Cut event
2020-02-12 15:13:18 +01:00
Léa Saviot
3d6b0a2d20
[escher/text_field] Fix selection deletion
...
The draft text length should be modified accordingly
2020-02-12 15:13:18 +01:00
Léa Saviot
0e7809b5d9
[escher/text_field] Rename size -> length
2020-02-12 15:13:18 +01:00
Léa Saviot
2c1cc02a19
[escher/layout_field] Fix selection + matrices
...
When selecting inside a matrix and then selecting outside, the grey
squares should disappear.
2020-02-12 15:13:18 +01:00
Léa Saviot
5fbc321a85
[apps/calculation] Coding style
2020-02-12 15:13:18 +01:00
Léa Saviot
7d2a24b826
[poincare/tree_pool] Fix node fetching after pool exception
2020-02-12 15:13:18 +01:00
Léa Saviot
5f52c36439
[escher/layout_field] Reset selection when finishing edition
2020-02-12 15:13:18 +01:00
Léa Saviot
bc1c566737
[poincare/fraction_layout] Better selection up/down in fraction
2020-02-12 15:13:17 +01:00
Léa Saviot
b1aeda47e8
[poincare/layout] Add parameter for selection when moving cursor
2020-02-12 15:13:17 +01:00
Léa Saviot
51742aef40
[escher/layout_cursor] Set height to the selection height
...
4
For instance, 123+- with "123+" selected, the cursor on the left of the
5
fraction will have the height of the selection.
2020-02-12 15:13:17 +01:00
Léa Saviot
c29ab14f20
[escher/layout_field] Better handling of layout recomputation
...
After a selection event, there is no need to recompute the layout. We
still need to dirty the union of the previous and next selection
rectangles.
2020-02-12 15:13:17 +01:00
Léa Saviot
f9b738a41e
[escher/layout_field] Remove TODO comment
2020-02-12 15:13:17 +01:00
Léa Saviot
f7ada7dac0
[escher/layout_field] Simplify the layout selection algorithm
2020-02-12 15:13:17 +01:00
Léa Saviot
61f26e3e4c
[escher/test] Layout selection in layout_field
2020-02-12 15:13:17 +01:00
Léa Saviot
a92326f9c9
[poincare/layout_cursor] Rename MoveDirection -> Direction
2020-02-12 15:13:17 +01:00
Léa Saviot
0bae9f9a73
[poincare/layout_cursor] Clean and fix selectLeftRight
2020-02-12 15:13:17 +01:00
Léa Saviot
145cc512a0
[poincare/layout_cursor] Better selectUpDown algorithm + comments
2020-02-12 15:13:17 +01:00
Léa Saviot
ff58c17093
[poincare/layout_cursor] Fix Up/Down selection
...
Scenario:
2
|1+--- then select all towoards th right, then select up
3
2020-02-12 15:13:17 +01:00
Léa Saviot
97c9268d37
[poincare/horizontal_layout] Uniformize selection background height
2020-02-12 15:13:17 +01:00
Léa Saviot
9ff3cbf32d
[escher/expression_view] Layout selection color
2020-02-12 15:13:17 +01:00
Léa Saviot
785cd2f88c
[poincare/layout_cursor] Rename layoutReference -> layout
...
It was an historic name
2020-02-12 15:13:17 +01:00
Léa Saviot
5c2ea9899d
[poincare/layout_field] Select up/down
2020-02-12 15:13:17 +01:00
Léa Saviot
efc8a238ea
[escher] Rename deleteSelectedText -> deleteSelection
2020-02-12 15:13:17 +01:00
Léa Saviot
5de65e0d7e
[escher/layout_field] Copy selection
2020-02-12 15:13:17 +01:00
Léa Saviot
2e589f6eac
[escher] Delete selection on layouts
2020-02-12 15:13:17 +01:00
Léa Saviot
f38bac6942
[escher/layout_field] Handle text addition while layouts are selected
2020-02-12 15:13:17 +01:00
Léa Saviot
a959f9fa98
[poincare/lyt_cursor] When selecting, we add one full layout each time
2020-02-12 15:13:17 +01:00
Léa Saviot
35fe6f0bc9
[poincare/layout_cursor] Simplify the selection
2020-02-12 15:13:17 +01:00
Léa Saviot
02e9694a5d
[poincare/layout_cursor] Fix overselection
...
Select whole parent when selecting from one child to anorther, if the
parent is not horizontal
2020-02-12 15:13:17 +01:00
Léa Saviot
027f24b7b8
[poincare/layout_cursor] Fix empty layout selection
2020-02-12 15:13:17 +01:00
Léa Saviot
ed33e37695
[poincare/layout_cursor] Fix selection crash
...
Scenario: Horizontal layout has just an integral layout child, cursor
left of the integral and shift right
2020-02-12 15:13:17 +01:00
Léa Saviot
03f07d65ed
[escher/layout_field] Remove selection on simple left/right/up/down
2020-02-12 15:13:17 +01:00
Léa Saviot
b9a8f12f25
[escher/poincare] Clean layout selection
2020-02-12 15:13:17 +01:00
Léa Saviot
65addcab21
[poincare/layout_node] Use background color in LayoutNode::draw
2020-02-12 15:13:17 +01:00
Léa Saviot
377cca7e3d
[escher/layout_field] Start handling selection
2020-02-12 15:13:17 +01:00
Léa Saviot
ecf23123a6
[escher/text_input] Clean TextInput::ContentView::resetSelection
2020-02-12 15:13:17 +01:00
Léa Saviot
df167376f0
[escher/text_area] Handle cut event
2020-02-12 15:13:17 +01:00