Léa Saviot
bc4d96bc3f
[apps/code] Reload the variable box less often
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
1e2492c5f4
[apps/code] Autocomplete only at the end of the word
...
For instance, if the cursor is: "he|llo" and the user adds the letter
'i', there is no autocompletion provided as the cursor is still in the
middle of a word.
2020-06-04 14:50:03 +02:00
Léa Saviot
77e34f0446
[apps/code] Reload the view for autocompletion changes
2020-06-04 14:50:03 +02:00
Léa Saviot
f82079a40a
[apps/code] Autocomplete only if char before cursor is not ' ' or '\n'
2020-06-04 14:50:03 +02:00
Léa Saviot
a2cc923a02
[apps/code] Fix assertion
2020-06-04 14:50:03 +02:00
Léa Saviot
5dd4f12ee3
[apps/code] Handle acception/dismissal of autocompletion
2020-06-04 14:50:03 +02:00
Léa Saviot
938e0dd840
[apps/code] Autocompletion steps
2020-06-04 14:50:03 +02:00
Léa Saviot
343d2328b8
[ion/utf8_helper] EndOfWord helper
2020-06-04 14:50:03 +02:00
Léa Saviot
32fbea9d06
[apps/code] Handle autocomplete coloring
2020-06-04 14:50:03 +02:00
Léa Saviot
9b8b0bc98f
[apps/code] PythonTextArea should always be the PythonUser when coloring
2020-06-04 14:50:03 +02:00
Émilie Feral
62e2e733b2
[poincare] Add comment on unit tests
2020-06-04 14:50:03 +02:00
Émilie Feral
22fd3388ed
[poincare] Add tests on Unit::BuildTimeSplit
2020-06-04 14:50:03 +02:00
Émilie Feral
a248302132
[poincare] Unit: define order on representatives in a way that time
...
addition are displayed: years + months + ... + seconds
2020-06-04 14:50:03 +02:00
Émilie Feral
5fa50ec79d
[poincare] Unit::BuildTimeSplit can split negative time
2020-06-04 14:50:03 +02:00
Émilie Feral
23540e93ce
[poincare] Unit::BuildTimeSplit rounds its argument to avoid displaying
...
very small seconds due to approximations
This fixes: Input "310_min", in additional results, you get
"5_h+10_min+0.000000???_s"
2020-06-04 14:50:03 +02:00
Émilie Feral
fe0a858352
[poincare] Unit: improve BuildTimeSplit to avoid displaing null sub unit
...
in the final addition and to keep the fractional part of the seconds
2020-06-04 14:50:03 +02:00
Émilie Feral
115ae59b5a
[apps/calculation] additional_outputs: reorder unit addition outputs
2020-06-04 14:50:03 +02:00
Émilie Feral
73a598e023
[poincare] Unit: enable to tune both the prefix and the Representant or
...
just the prefix on a given Unit
2020-06-04 14:50:03 +02:00
Émilie Feral
e063c0a913
[apps/calculation] additional_outputs: add electronVolt row to
...
additional results on energy units
2020-06-04 14:50:03 +02:00
Émilie Feral
ec95ed0789
[poincare] Add Unit::ElectronVolt builder
2020-06-04 14:50:03 +02:00
Émilie Feral
0d0a37c02a
[apps/calculation] additional_outputs: improve unit_list_controller to
...
compute all expressions before being displayed
2020-06-04 14:50:03 +02:00
Émilie Feral
785d7a0a62
[apps] additional_outputs: misc. clean-up on unit additional results
2020-06-04 14:50:03 +02:00
Émilie Feral
1a9014645c
[apps] additional_outputs: fill unit additional results
2020-06-04 14:50:03 +02:00
Émilie Feral
53db27ffeb
[poincare] Discard UnitConversion::Classic mode. This will be done in
...
Calculation app
2020-06-04 14:50:03 +02:00
Émilie Feral
7b28f760b7
[poincare] Float: float can be layouted
2020-06-04 14:50:03 +02:00
Émilie Feral
83a63155b1
[apps] PoincareHelpers: enable to specify the UnitConversion mode in
...
Simplify
2020-06-04 14:50:03 +02:00
Émilie Feral
397aac27c5
[poincare] Add test on Unit helpers
2020-06-04 14:50:03 +02:00