Commit Graph

1400 Commits

Author SHA1 Message Date
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
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
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
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
95d0715606 [escher/solid_text_area] Remove unused class 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
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
2c497d4f55 Revert "[escher] Force relayouting in a table view"
This reverts commit 94281b906d5135f4d3181ca248f572e32be9119c.
The commit created a lot of blinking in the calculation history (for
instance for multiple lines of 56) + "the table's size might be
miscomputed" due to the layouting order (but we have not searched for an
example of such a miscomputation)
2020-02-12 15:13:16 +01:00
Ruben Dashyan
7f4dd1255a Revert "[escher/layout_field] Factor insertLayoutAtCursor"
This reverts commit b06cac4fcce0c1ab3fedd6c44846983962316749.
2020-02-12 15:13:16 +01:00
Ruben Dashyan
bc0b5c092a [escher/layout_field] Factor insertLayoutAtCursor 2020-02-12 15:13:16 +01:00
Ruben Dashyan
89ea31d190 [eshcer/layout_field] Factor handleEvent 2020-02-12 15:13:16 +01:00
Ruben Dashyan
d604df85b2 [escher/layout_field] Remove magic number 2020-02-12 15:13:16 +01:00
Ruben Dashyan
7fce83d1dd [escher/expression_field] Detect whether view's height did change by memoizing the height
Such changes used to be detected only when the height was equal to the
maximal allowed value, by detecting whether the height shifted from or
to that maximal value. For that purpose, a boolean was memoized in
InputViewController and in Calculation::EditExpressionController.
2020-02-12 15:13:16 +01:00
Ruben Dashyan
40d75ffefa [escher/expression_field] Remove unused reload() method 2020-02-12 15:13:16 +01:00
Ruben Dashyan
3bc3532358 [escher/expression_field] Replace maximalHeight() by k_maximalHeight
To harmonize with k_minimalHeight
2020-02-12 15:13:16 +01:00
Léa Saviot
984bfca68e [escher] ScrollView TODO comment 2020-02-12 15:13:15 +01:00
Léa Saviot
8644d28a0e [escher] Force relayouting in a table view 2020-02-12 15:13:15 +01:00
Léa Saviot
0630ae55c7 [apps/escher] Force expressionField relayout when size changed
Scenario: in Calculations and in Graph, edit the layout field by adding
many parentheses. When the layout field has maximal height but the
parentheses are bigger than it, ther is a margin that appears at the
bottom, because we did not relayout the layout field to optimize
redrawing. We need to force the relayout, otherwise as the layout field
stays we the same frame, the relayouting is not properly done.
2020-02-12 15:13:15 +01:00
Léa Saviot
9f018eb9d9 [escher/view] setFrame and layoutSubviews can be forced 2020-02-12 15:13:15 +01:00
Léa Saviot
f85658f5e6 [escher/view] Inline some view methods 2020-02-12 15:13:15 +01:00
Ruben Dashyan
1c668dca52 [escher/layout_field] Remove unused enum class 2020-02-12 15:13:15 +01:00
Ruben Dashyan
ecd6cb29f1 [escher/expression_field] Rename k_textFieldHeight to k_minimalHeight
That constant has nothing to do with TextField. It is the minimal height
of ExpressionField.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
063cc66ba2 [escher/layout_field] Make protected methods private
LayoutField has no derived class
2020-02-12 15:13:15 +01:00
Ruben Dashyan
737d76471b [escher/layout_field] Remove unused accessor 2020-02-12 15:13:15 +01:00
Quentin
587b6ee2a3 Merge pull request #179 from citorva/omega-dev
Remove External app for unsupported devices (web/n0100) and adds a ba…
2020-01-26 00:05:26 +01:00
M4x1m3
335f870a23 Shift+Up and Shift+Down in python editor (closes #177) 2020-01-23 22:17:04 +01:00
Quentin Guidée
346b7eb62a Fixed the input color and size 2020-01-23 19:20:07 +01:00
citorva
c94affa7cd Remove External app for unsupported devices (web/n0100) and adds a basic examination checking system 2020-01-19 23:45:35 +01:00
Jean-Baptiste Boric
739bd31d10 Remove statically-allocated buffers 2020-01-04 10:34:28 +01:00
Quentin Guidée
85c98cefe5 Fix conflicts 2019-12-24 17:33:32 +01:00
M4x1m3
dd16c9336c Merge branch 'omega-dev' of https://github.com/Omega-Numworks/Omega into omega-dev 2019-12-24 13:47:21 +01:00
redgl0w
bb83ec9b76 Update text_area.cpp 2019-12-24 09:20:33 +01:00
redgl0w
a680bb5aa2 Update layout_field.cpp 2019-12-24 09:19:12 +01:00