Léa Saviot
bd2ea41fbe
[apps/escher] Rename cursorTextLocation as cursorLocation
2019-05-03 15:53:19 +02:00
Léa Saviot
5c39cab73e
[escher] Fix text inputs so they use UTF8
2019-05-03 15:53:19 +02:00
Romain Goyet
4f2c7a3763
[build] Update the i18n processing to fit the out-of-tree build
2019-03-06 15:00:59 +01:00
Ruben Dashyan
faae55eb51
[escher/scroll_view] Replace setShowsIndicators by setDecoratorType
2019-02-18 16:49:58 +01:00
Léa Saviot
0a5290d5a6
[apps/code] Fix MenuController::willExitResponderChain
...
It called textFieldDidAbortEditing, which called setFirstResponder,
which could clash with another setFirstResponder higher in the call
tree.
Scenario: build with an update popup, create a new script, edit its name
with an unvalid name and press the Power key while editing. When
powering on the device again, the first responder is not the popup even
though it is displayed, and pressing OK does not dismiss it.
2019-01-21 14:23:50 +01:00
Léa Saviot
f392ca8063
[apps/code] More details in NonCompliantName warning
2019-01-21 13:39:59 +01:00
Léa Saviot
1994e716bf
[i18n] Change Message name
2019-01-21 13:39:59 +01:00
Léa Saviot
17e7d36009
[apps/code] If EPSILON_GETOPT, auto import scripts
2019-01-09 16:13:46 +01:00
Léa Saviot
1c306658ce
[apps/code] Fix Python environment loading order
2019-01-09 16:13:46 +01:00
Léa Saviot
ce1cdaacc3
[apps/code] Fix console reloading that did not occur often enough
...
Scenario:
Write a script that prints "abc"
Open the console -> prints "abc"
Modify the script to print "ab"
Go back to the console -> "ab" not printed !
2018-12-12 11:15:50 +01:00
Léa Saviot
a0e716c1ad
[apps/eschr] Rename textFieldDidHandleEvent parameter textSizeDidChange
2018-11-23 12:04:06 +01:00
Léa Saviot
d686199111
[code] Delete script when aborting edition with no default name
2018-11-23 12:04:05 +01:00
Léa Saviot
e74e15eaf7
[apps/code] Handle too many Script default names used
...
When adding to many scripts without naming them, one can overflow the
number of default generated script names, in which case we force the
user to enter a name.
2018-11-23 12:04:05 +01:00
Léa Saviot
fd533834ef
[apps/code] Default script name is in class Script, not menu controller
2018-11-23 12:04:04 +01:00
Léa Saviot
bea78aa3b1
[apps/escher] Invocation::Action returns a bool
2018-11-23 12:04:04 +01:00
Émilie Feral
1c6573e8fe
[code] When script name edition abort, ask the storage for the previous
...
name
2018-11-23 12:04:03 +01:00
Émilie Feral
d61ee2857b
[escher] TextField: never flush the buffer when textField has only one
...
buffer
2018-11-23 12:04:03 +01:00
Émilie Feral
698332c355
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
...
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Léa Saviot
974519f61a
[apps/code] Use TextFieldWithExtension in the list controller
2018-11-23 12:04:02 +01:00
Léa Saviot
b0e29bb9d7
[apps/code] Storage extensions do not include the dot
2018-11-23 12:04:02 +01:00
Léa Saviot
52a21198a4
[apps/ion] Use the new storage API
2018-11-23 12:03:58 +01:00
Romain Goyet
f8beae3b86
[kandinsky] Move to KDFont
2018-10-11 16:44:02 +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
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
É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
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
Émilie Feral
5cfe20ad15
[code] Move ConsoleController from MenuController to App
2018-05-23 10:01:15 +02:00
Léa Saviot
3b582a2e46
Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
...
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +02:00
Romain Goyet
84561a929f
[escher] Clean the ScrollView, TableView and SelectableTableView constructors
2018-04-18 18:08:07 +02:00
Léa Saviot
88aaab64ba
[apps] Fix obsolete code in Code and Shared
...
Change-Id: Ie6ce0f753bf05cb5f6dd5ed974db2a715b21624e
2018-04-11 17:10:09 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
31f79c702a
[apps] Code: when updating a script name, handle the event 'clear' to
...
keep '.py'
2018-04-09 14:42:45 +02:00
Émilie Feral
9289928fff
[apps] Code: abort script name editing if MenuController exits responder
...
chain
2018-04-06 10:14:13 +02:00
Émilie Feral
845fc7c979
[ion] Typo: NoEnough -> NotEnough
2018-03-22 14:01:38 +01:00
Émilie Feral
b0ede47d55
[ion] Change Storage design (former kallax)
2018-03-22 14:01:38 +01:00
Émilie Feral
f9656fd94f
[ion] Namespace Record and Kallax
2018-03-22 14:01:38 +01:00
Émilie Feral
b9a852a9d1
[escher] Change name: File --> Record, FileSystem --> Kallax
2018-03-22 14:01:38 +01:00
Émilie Feral
19ca0f0640
[apps] Code: use the FileSystem to store the scripts instead of an
...
accordion
2018-03-22 14:01:38 +01:00
Émilie Feral
576caa039f
[apps][escher] Add methods 'handleEventWithText' in TextField and
...
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +01:00
Émilie Feral
c5e525ddb7
Enable to give options at run-time
2018-03-22 11:58:56 +01:00
Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
2018-01-23 10:28:02 +01:00
Émilie Feral
e8793c429c
[escher] In textfield: when calling textFieldDidHandleEvent, precise if
...
there was any modification in the text
2018-01-04 15:48:06 +01:00
Léa Saviot
71bfcbf5d7
[code] Cleaned the prevention of ".py" edition.
...
Now the MenuController changes the cursor location if needed once the
Textfield has handled the event.
Change-Id: I1ad3202402623dfa9a683866fef90ca33ddd6be0
2017-12-04 17:18:37 +01:00
Léa Saviot
fd33930301
[code] Prevent adding text in a script name when the textfield is full.
...
Change-Id: I31968f9fa62a7cf9904ed1f64f2833760510317a
2017-12-04 14:52:21 +01:00
Léa Saviot
b27551ce4f
[code] Fixed bug when importing scripts that draw on screen.
...
The drawing should happen after the ConsoleController is pushed on the
screen. This means that the importation of scripts should be done at the
ConsoleController's viewWillAppear.
Change-Id: I756ac9de30f339dc4f6aa8d3995abea0a46d03b5
2017-12-04 12:11:00 +01:00
Léa Saviot
dd1fe77832
[code] Fixed Execute Script bug.
...
When disabling a script auto-import parameter, it would not import
itself when executing it from its script parameters menu.
Change-Id: If58f6fe1be4792b551ad3b462f1f43e8b82e8148
2017-12-01 13:19:30 +01:00
Léa Saviot
e43bbd38f2
[escher] Fixed TextField bug.
...
The Statistics apps crashed when navigating the Data table.
-> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
-> Changed textLength() to draftTextLength().
Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +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
37a2def2f1
[code] The maximal number of scripts is stored in the ScriptStore.
...
It was in the MenuController before.
Change-Id: I5f48465d92b53079dc358feec7a4b713875c7e2d
2017-12-01 12:06:05 +01:00