Émilie Feral
eadc493f48
[ion] Storage: fix regex describing compliant names
2018-09-21 17:13:12 +02:00
Léa Saviot
c16d9e7ffe
[apps/code] Load Python in the viewWillAppear of the controllers
2018-09-21 12:26:57 +02:00
Léa Saviot
2661032993
[apps/code] Fix Python loading when going in the VarBoxController
...
The Var box controller deinited python on exit, and the console
controller did not reload python + it made the console controller lose
all its context, such as imported scripts
2018-09-21 11:55:12 +02:00
Émilie Feral
58ad8bd87e
[code] Fix handling of python heap by ConsoleController,
...
EditorController and VariableBoxController
2018-09-20 11:54:56 +02:00
Émilie Feral
afce751eb7
[code] Get rid of malloc: keep a buffer in Code::App to be used as python heap
2018-09-19 18:20:30 +02:00
Léa Saviot
bfc2f49de0
[apps/code] Fix assertion
2018-09-18 15:32:11 +02:00
Émilie Feral
dae91f1540
[apps] VariableBoxController: get rid of variable-size table
2018-09-17 17:14:43 +02:00
Émilie Feral
ba0f866dc6
[apps] Toolbox: get rid of variable-size tables
2018-09-17 17:14:43 +02:00
Émilie Feral
c95c3145bc
Merge remote-tracking branch 'github/master' into Tree
2018-09-13 17:03:31 +02:00
Émilie Feral
08077cb141
[ion] Storage: make Storage::nameCompliant less restrictive (accepts
...
.*\.[a-z]+). But Script::nameCompliant is stricted: [a-z_0-9.]*
2018-09-13 11:33:15 +02:00
Émilie Feral
d2ed06e2dc
[code] Add comment on how --code-script option is parsed
2018-09-11 17:03:04 +02:00
Émilie Feral
032db99754
[code] EditorController: avoid dynamic allocation
2018-09-11 17:03:04 +02:00
Émilie Feral
79740e72b0
[code] Avoid dynamic allocation and useless string copy by keeping the
...
importation status flag in the areaBuffer
2018-09-11 17:03:04 +02:00
Émilie Feral
9182d66fcc
[apps] Apps are not allocated on the heap anymore but in a union hold by
...
the AppsContainerStorage
2018-09-06 09:49:38 +02:00
Émilie Feral
0b71e92625
[apps] Add missing min/max redefinition
2018-09-04 12:19:49 +02:00
Louis Rannou
70a2db9336
Fix warnings about comparing different signedness
...
Some variables were declared as int while they are size_t. As we try to compare
them to unsigned values, a warning was raised (comparison of integer expressions
of different signedness).
2018-08-24 15:32:26 +02:00
Émilie Feral
aaa20a58fa
[poincare] Implement SerializationHelper and
...
SerializationHelperInterface. WriteTextInBuffer->serialize
2018-08-08 15:31:40 +02:00
Léa Saviot
2d7450b1dd
[apps/escher/poincare] Empty expression char is now ø
2018-07-18 10:32:45 +02:00
Romain Goyet
3d74d52ec6
[python] Highlight minus-equal, plus-equal as operators
2018-06-20 11:22:32 +02:00
Romain Goyet
74330bb330
[python] Properly compute all token length
2018-06-20 11:22:32 +02:00
Émilie Feral
7df03ec762
[code] In lock-on-console mode: enable poping controllers on the stack
...
which are above the console controller
2018-06-13 13:23:46 +02:00
Émilie Feral
769bc1ad3c
[code] In lock-on-console mode: Enable interrupting input loop and execution when clicking on 'home' or 'back'
2018-06-13 13:23:46 +02:00
Émilie Feral
317e1f0389
[code] Enable interrupting an infinite input() loop when clicking on home
2018-06-12 16:52:12 +02:00
Émilie Feral
e9c4485eeb
Merge branch 'solver' into upgrade-1.6.0
2018-06-12 09:47:41 +02:00
Émilie Feral
9e345014d2
[code] Add EmptyChar in text for python event to position the cursor at
...
the right place after inserting text
2018-06-12 09:45:32 +02:00
Émilie Feral
24c9549866
[escher] Handle copy/cut event on selectable table view
2018-06-07 14:46:14 +02:00
Émilie Feral
837e0694d1
[shared] Remove New Function Cell class which is a duplicate of Even Odd
...
Message Text Cell
2018-06-07 13:46:17 +02:00
Romain Goyet
c0d3b97c6b
[apps/code] Fix getopt handling
2018-06-05 13:57:04 +02:00
Romain Goyet
caff93cda0
[code] Avoid init/deinit-ing uPy in each editor redraw
2018-06-04 16:08:11 +02:00
Romain Goyet
b52590e2f7
[code] Use named colors
2018-06-04 16:08:11 +02:00
Romain Goyet
6cd18cca89
[python] Malloc the syntax-highlighting uPy heap
2018-06-04 16:08:11 +02:00
Romain Goyet
29cacbc44f
[code] Implement syntax highlighting in PythonTextArea
2018-06-04 16:08:11 +02:00
Romain Goyet
88e40266f6
[code] Create a PythonTextArea
2018-06-04 16:08:11 +02:00
Romain Goyet
d2b2705d2d
[escher] TextInput doesn't use colors anymore
2018-06-04 16:08:11 +02:00
Émilie Feral
da8286d3f7
[code] Escaping the input loop on a 'home' event should be handled by
...
the code app instead of the console controller to ensure to escape the
input loop even when the toolbox (or any modal) is displayed
2018-05-23 10:01:15 +02:00
Émilie Feral
5cfe20ad15
[code] Move ConsoleController from MenuController to App
2018-05-23 10:01:15 +02:00
Léa Saviot
f2d1247cf9
[code] Invalid the script node. If we don't, layouting the subviews
...
would use the deleted python heap.
using the python heap before
Change-Id: Icf77e7723d843ff415b8e2da11f5ab64eba48aef
2018-05-17 17:23:55 +02:00
Léa Saviot
7e9b4c1a60
[apps/code] Fix buffer indexes
...
Change-Id: Ib5748d59fd762af9337e00115f0db4ac5d6d08a9
2018-05-17 15:26:46 +02:00
Léa Saviot
6aaab293d6
[apps/code] Change memcpy to memmove on overlapping buffers
...
Change-Id: Ic85b177375a4030ad80c8c539ee0084fb095ad44
2018-05-17 15:26:46 +02:00
Léa Saviot
99f6d73e19
[apps/code] Put cursor inside parentheses when inserting function
...
In Code::VariableBoxController.
Change-Id: Ib129781d46159c017bcb02e97c6667b6084f5b67
2018-05-16 16:00:24 +02:00
Émilie Feral
bb8ab2a42e
Merge branch 'saisie-jolie' into master-merge-saisie-jolie
2018-05-16 11:28:07 +02:00
Claire Savinas
33a31ab8e0
Saving Python script when home is pressed
2018-05-15 17:27:53 +02:00
Léa Saviot
278a951229
[apps/code] Add member variable initialization in GutterView
...
Change-Id: I82bcd810f84ae46ec4efc6a2a1c3203ae5a4877a
2018-05-15 17:25:34 +02:00
Léa Saviot
678a0db4e4
Merge with current GitHub master branch
...
Change-Id: Ie1b83cfabdee1369eb66f53c01314324d5d88a74
2018-05-14 17:03:12 +02:00
Romain Goyet
c091d1f59d
[apps/code] Add an EditorView that has a gutter
2018-05-09 17:46:09 +02:00
Léa Saviot
3b582a2e46
Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
...
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +02:00
Léa Saviot
8801b9f383
[apps/code] Fix cursor position when inserting Python commands
...
Change-Id: I2f5cdc72220cc61b0c8830d746c63f705a7c928e
2018-04-26 17:52:11 +02:00
Léa Saviot
fd3a2c3cbc
[apps/code] Use a special char to position the cursor in Python commands
...
Change-Id: I7ae3d6098160212d8683a671c78d3bdb937fb701
2018-04-23 17:18:56 +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
Romain Goyet
84561a929f
[escher] Clean the ScrollView, TableView and SelectableTableView constructors
2018-04-18 18:08:07 +02:00