Commit Graph

10028 Commits

Author SHA1 Message Date
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
Léa Saviot
33b5f008a2 [escher/text_field] Selection 2020-02-12 15:13:17 +01:00
Léa Saviot
9c5843500a [escher/text_input] Fix reload and scroll after deleteSelectedText 2020-02-12 15:13:17 +01:00
Léa Saviot
20c761d3f0 [escher/text_area] Fix slection over wrote
Scenario: 34567          then press 0 -> we want 3067
           ** selected
2020-02-12 15:13:17 +01:00
Léa Saviot
73b1f7da20 [escher/text_input] Fix selection algorithm
There was a glitch when :
** are the selected glyphs and | is the cursor

12345678
234567|8    then Shift+up
    **
2020-02-12 15:13:17 +01:00
Léa Saviot
e98b67634d [escher/text_area] Improve dirty tracking 2020-02-12 15:13:17 +01:00
Léa Saviot
1f44f80e4a [escher] Scroll to cursor when selecting up / down 2020-02-12 15:13:17 +01:00
Léa Saviot
961ba10122 [ion/events] shift+Left/Right/Up/Down can be repeated 2020-02-12 15:13:17 +01:00
Léa Saviot
b6f3b39086 [escher/text_input] Rename currentSelectionIsEmpty -> selectionIsEmpty 2020-02-12 15:13:17 +01:00
Léa Saviot
67008f454e [escher/text_area] Replace the selection when event with text 2020-02-12 15:13:17 +01:00
Léa Saviot
d05a95c87c [apps/code] Reset selection when leaving script editor 2020-02-12 15:13:17 +01:00
Léa Saviot
1be417e2c4 [apps/code] Code cleaning 2020-02-12 15:13:17 +01:00
Léa Saviot
95d0715606 [escher/solid_text_area] Remove unused class 2020-02-12 15:13:17 +01:00
Léa Saviot
a2c7e57a77 [apps/python_text_area] Color the white spaces 2020-02-12 15:13:17 +01:00
Léa Saviot
9d9efc985f [apps/python_text_area] Clean drawLine 2020-02-12 15:13:17 +01:00
Léa Saviot
30923ed4c6 [escher/text_area] Select up/down 2020-02-12 15:13:17 +01:00