Émilie Feral
b4a3dd10e1
[apps/shared] ToolBoxHelpers: don't overflow buffer
...
If the commandLength is > than the buffer size, we have to escape at
some point to avoid overflowing the buffer.
2020-07-29 09:43:51 +02:00
Léa Saviot
0f02a61dc4
[apps/code] Use textLength in VarBoxController::insertTextInCaller
2020-06-04 14:50:03 +02:00
Léa Saviot
7f486d790f
[apps/code] Get current script variables and functions
2020-06-04 14:50:03 +02:00
Émilie Feral
8b926612a2
Revert "[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder"
...
This reverts commit 23da0d3f2c .
2019-05-03 16:29:28 +02:00
Émilie Feral
23da0d3f2c
[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder
2019-04-29 18:01:30 +02:00
Léa Saviot
a214bbdc5a
[unicode] Use unicode when dealing with chars - Part 2
2019-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53
[ion/kandinsky] Move unicode to ion
2019-04-12 15:16:51 +02:00
Léa Saviot
f90e709201
[poincare/utf8_decoder] nextCodePointPointer is now stringPosition
2019-04-12 15:16:51 +02:00
Léa Saviot
8d759c0b3b
[unicode] Use the UTF8Decoder to scan const char *
2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376
Remove Ion::Charset
2019-04-12 15:16:50 +02:00
Léa Saviot
13ae1d2545
[apps/escher/toolbox] handleEventWithText for all responders.
...
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.
Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +02:00
Léa Saviot
b430cba335
[apps/poincare] Fix "random()" layout creation.
...
Change-Id: Ic8e12dfba925066fafa172b750162e820eeef82b
2018-04-18 11:26:21 +02:00
Léa Saviot
64efb45c24
[apps/math_toolbox] Cleaner matrix layout insertion.
...
Change-Id: I5c51eb353ac848334626e6ffcaf71f3b94534b2e
2018-01-19 17:30:47 +01:00
Léa Saviot
f3e6b10410
[apps/math_toolbox] Handle const char * when selecting a leaf.
...
Else, there would be a problem with sequence_toolbox, where not all
toolbox leaves are message trees.
Change-Id: Ib4968aad37f6a835b1ea4d77efac2ae1bd19c7ce
2018-01-19 17:04:41 +01:00
Léa Saviot
d8803c610c
[apps] "New Matrix" item in math toolbox.
...
Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
2018-01-17 14:26:50 +01:00
Léa Saviot
1967fce13a
[apps] Toolbox layouts are created by parsing the command of the cell.
...
Change-Id: I511e8af2b2247d1df3ca968191566c2b3f01fe11
2018-01-15 11:58:06 +01:00
Émilie Feral
afddb87cd4
[apps] In toolbox helpers, add double single quotes in text from command and
...
insert cursor in the middle of both
2017-12-18 16:53:12 +01:00
Léa Saviot
e6b4d07cb6
[code] Dynamic toolbox that displays script functions and variables.
...
Change-Id: Id1494580b3832540633d3aefaf04710d21e0a44c
2017-12-01 12:06:05 +01:00
Léa Saviot
f7a6e615ca
[code] The cursor in a toolbox command does not go before a point.
...
The cursor now goes either after the first open parenthesis or at the
end of the command.
Fixed z.real and z.imag.
Change-Id: I46ca3be0415832fd91273ca7fed12ed3d6f125dc
2017-11-21 17:37:48 +01:00
Léa Saviot
4194165217
[apps] Fixed size_t / int comparison warnings.
...
Change-Id: I08bae0d687a52d708053c4279f68b42c5bb5d180
2017-11-17 11:59:50 +01:00
Léa Saviot
8668de21a1
[code] MathToolbox cleaning.
...
Removed some constants by computing the text to insert in the textfield from the command
with arguments. Used the TextToInsertForCommandMessage method from
toolbox_helpers.h.
Change-Id: I864ad886fb74882f476d74160e427595be27df40
2017-11-17 11:59:50 +01:00
Léa Saviot
13bf8c2d62
[code] Python toolbox.
...
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +01:00