Léa Saviot
a0f1d0f24b
[apps/code] Start getting importations in the variable box
2020-06-04 14:50:04 +02:00
Léa Saviot
78a747d9c6
[apps/code] Start loading imported variables in var box
2020-06-04 14:50:04 +02:00
Léa Saviot
ac3a09bdeb
[apps/code] Insert only the completing text when autocompleting
2020-06-04 14:50:04 +02:00
Léa Saviot
ad5c998b97
[apps/code] Add module names to the builtins
2020-06-04 14:50:04 +02:00
Léa Saviot
e32a5ccc17
[apps/code] Simpler VarBoxController::autocompletionForText
2020-06-04 14:50:04 +02:00
Léa Saviot
6b93a5b83a
[apps/code] Load current script vars according to autocompleted text
2020-06-04 14:50:04 +02:00
Léa Saviot
e934bb39e3
[apps/code] Clean ScriptNode
2020-06-04 14:50:04 +02:00
Léa Saviot
1b828196e9
[apps/code] Use ScriptNode::Type in VariableBoxController
2020-06-04 14:50:04 +02:00
Léa Saviot
f412d95584
[apps/code] Load builtins according to autocompleted text
2020-06-04 14:50:04 +02:00
Léa Saviot
1599b16e03
[apps/code] Fix current script variables fetching
2020-06-04 14:50:04 +02:00
Léa Saviot
4b36a16cea
[apps/code] Fix NodeNameCompare
2020-06-04 14:50:04 +02:00
Léa Saviot
86349675c1
[apps/code] Code cleaning
2020-06-04 14:50:04 +02:00
Léa Saviot
25f73770de
[apps/code] Remove compilation warning
2020-06-04 14:50:04 +02:00
Léa Saviot
558d539194
[apps/code] Clean VariableBoxController::scriptNodeAtIndex
2020-06-04 14:50:04 +02:00
Léa Saviot
6f2dedf8ee
[apps/code] Search aphabetically if var is already in var box
2020-06-04 14:50:04 +02:00
Léa Saviot
75ea4ce74e
[apps/code] Clean comments
2020-06-04 14:50:04 +02:00
Léa Saviot
5d4a3f8726
[apps/code] Add variables in alphabetical order in the var box
2020-06-04 14:50:03 +02:00
Léa Saviot
c273f734fe
[apps/code] Add some buitin vars in the varbox
2020-06-04 14:50:03 +02:00
Léa Saviot
eec92d51fc
[apps/code] Fix VariableBoxController::autocompletionForText
2020-06-04 14:50:03 +02:00
Léa Saviot
0f02a61dc4
[apps/code] Use textLength in VarBoxController::insertTextInCaller
2020-06-04 14:50:03 +02:00
Léa Saviot
eeb42f2544
[apps/code] autocompletionText uses the right text length
...
Before, there was no notion that the autocompleted text might not be a
null terminated string.
2020-06-04 14:50:03 +02:00
Léa Saviot
12bb77cd9f
[apps/code] Do not import the same current variable twice
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
Léa Saviot
b9693f1f26
[apps/code] Load variable box with script index argument
2020-06-04 14:50:03 +02:00
Léa Saviot
321f87ea78
[apps/code] VariableBoxController::autocompletionForText
2020-06-04 14:50:03 +02:00
Léa Saviot
f883516716
[apps/code] Editor asks VariableBox for autocompletion
2020-06-04 14:50:03 +02:00
Léa Saviot
72aedaadd0
[apps/code] VarBox contains current/buitin/imported vars and functions
2020-06-04 14:50:03 +02:00
Léa Saviot
4caf9f5197
[coding style] Make some methods const
2019-09-09 20:05:14 +02:00
Ruben Dashyan
eb6d697927
[apps] Make app accessors static members of App classes
2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a
[apps] Get rid of App casts
2019-07-19 15:06:25 +02:00
Émilie Feral
f713551d46
[code] Get rid of unused member variable in VariableBoxController
2019-05-03 15:53:20 +02:00
Léa Saviot
4c5251f04f
[unicode] Use unicode when dealing with chars - Part 2
2019-05-03 15:53:19 +02:00
Léa Saviot
b0f2131dec
[apps/code] Fix variableBox crash
...
Respect the k_maxScriptNodesCount limit
2018-11-28 17:28:22 +01:00
Émilie Feral
a4f7d83805
[code] Load Variable box content before compiling any other python code
...
to avoid memory exhaustion when displaying variable box
2018-11-23 12:04:03 +01:00
Émilie Feral
4070c754fe
[code] VariableBoxController inherits from NestedMenuController
2018-11-23 12:04:02 +01:00
Émilie Feral
01e433a9f2
[escher] Clean Field and Input class hierarchy:
...
Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
2018-11-23 12:04:02 +01:00
Léa Saviot
4582975661
Remove more compilation warnings
2018-11-23 12:04:02 +01:00
Romain Goyet
c5056248d2
[python] Don't add underscore-prefixed items to the var menu
2018-10-08 10:56:14 +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
dae91f1540
[apps] VariableBoxController: get rid of variable-size table
2018-09-17 17:14:43 +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
99f6d73e19
[apps/code] Put cursor inside parentheses when inserting function
...
In Code::VariableBoxController.
Change-Id: Ib129781d46159c017bcb02e97c6667b6084f5b67
2018-05-16 16:00:24 +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
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
3db86a8111
[apps] Code: merge actions for text input in ConsoleController and
...
EditorController
2018-03-22 13:12:12 +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
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