Commit Graph

10018 Commits

Author SHA1 Message Date
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
Léa Saviot
349b4f8532 [escher/text_area] Fix selection color 2020-02-12 15:13:17 +01:00
Léa Saviot
1eba12784f [escher/text_area] Remove unnecessary scroll 2020-02-12 15:13:17 +01:00
Léa Saviot
ab48f8d879 [ion/events] if shift/alpha pressed, it is active
No need to press shift between ezach event -> one long shift press keeps
it active
2020-02-12 15:13:17 +01:00
Léa Saviot
bb69b2c131 [ion/events_modifier] Reindent 2020-02-12 15:13:17 +01:00
Léa Saviot
14cc6ffc59 [escher/text_area] Select and copy 2020-02-12 15:13:17 +01:00
Léa Saviot
0a21ed2cfb [liba] strlcpy third argument in size, not length 2020-02-12 15:13:17 +01:00
Émilie Feral
4025d75734 [apps/code] Fix number of displayable rows in ConsoleController 2020-02-12 15:13:17 +01:00
Émilie Feral
d64321d116 [apps/code] Remove useless class member in ConsoleController 2020-02-12 15:13:17 +01:00
Léa Saviot
e0bbc73b8b [apps/regression] Fix code cleaning 2020-02-12 15:13:17 +01:00
Ruben Dashyan
51cc6a4d71 [poincare/layout_helper] Simplify Infix and Prefix 2020-02-12 15:13:17 +01:00