Commit Graph

2910 Commits

Author SHA1 Message Date
Émilie Feral
cb754ab6d5 [apps] Sequence: invalidate the context cache when the sequences are
redefined
2017-12-20 17:41:03 +01:00
Émilie Feral
31ceb5ed40 [apps] Sequence: add tests on sequence 2017-12-20 17:41:03 +01:00
Émilie Feral
032cafdb04 [apps] Sequence: enable to defined dependent sequences 2017-12-20 17:41:03 +01:00
Émilie Feral
81e0148325 [poincare] Clean symbols w(n) and w(n+1) are unused 2017-12-20 17:41:03 +01:00
Émilie Feral
2c85fe88a5 [apps] Probability: textfields should finish editing when the cursor is
on one edge of the field
2017-12-20 17:17:51 +01:00
Émilie Feral
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
b47cdbb87a [apps] Fix bug in settings: do not set the sub controller table as first
responder when no cell is selected
2017-12-20 17:17:41 +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
Émilie Feral
7686412266 [apps] In code: add single quote (') in the catalog 2017-12-18 16:53:12 +01:00
Émilie Feral
a0ec589e47 [apps] Graph: all contexts parse x now so no need for a specific one in
graph
2017-12-14 10:52:14 +01:00
Romain Goyet
f574cd9355 [apps] Fix coding style 2017-12-12 10:18:20 +01:00
ydupas
b3f606b9ac Fix: windows simulator: Assert error apps/i18n.cpp:2437 and Toolbox title "Zoom :" #267 (#275)
* Fix: windows simulator: Assert error apps/i18n.cpp:2437 and Toolbox
title "Zoom :" #267
static GlobalPreferences doesn't init on windows platform, move to
static methode sharedGlobalPreferences()

* Keepsafe from static init order fiasco for all
2017-12-12 10:15:41 +01:00
Émilie Feral
9b72bc86fa [apps] In settings, fix bug in setting first controller 2017-12-08 10:28:25 +01:00
Jean-Baptiste Boric
59e5750463 [apps] Extract shared translations from apps
This commit can be regenerated with the following shell snippet:

```
for i in UndefinedValue ForbiddenValue Goto ValueNotReachedByFunction Initialization Trigonometric RoundAbscissa Orthonormal DefaultSetting Axis Zoom GraphTab IntervalSet XStart XEnd Step Plot DisplayValues ActivateDesactivate NoFunctionToDelete Language FunctionOptions ClearColumn ColumnOptions DataTab CopyColumnInList FunctionColumn Move Or ValuesTab Goto ToZoom HardwareTestLaunch1 HardwareTestLaunch2 HardwareTestLaunch3 HardwareTestLaunch4 ActiveExamModeMessage1 ActiveExamModeMessage2 ActiveExamModeMessage3 ExitExamMode1 ExitExamMode2 Sci Rad Deg
do
  move=$(grep "^$i = " -r *)

  if [ -n "$move" ]
  then
    echo "$move" | while read -r item
    do
      file=$(echo "$item" | cut -f1 -d:)
      lang=$(echo "$file" | cut -f2 -d.)
      translation=$(echo "$item" | sed -e 's/^[^:]*://')
      label=$(echo "$translation" | sed -e 's/=.*//')
      sed -i "/^$label/d" "$file"
      echo "$translation" >> "apps/shared.$lang.i18n"
    done
  fi
done

for i in apps/shared.*.i18n
do
  sort $i -o $i
done
```
2017-12-07 09:20:31 +01:00
Jean-Baptiste Boric
8429f0ac94 [apps] Include Makefile apps from list 2017-12-07 09:20:31 +01:00
Émilie Feral
15610064fa Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Émilie Feral
c545a23ec6 [kandinsky] Fix draw rect+change name: drawRect->strokeRect
Change-Id: I1c59e34b126aa54819e399d095499758b9e73125
2017-12-06 14:49:53 +01:00
Adrien Bertrand
4c62ced3e2 [settings/main_controller] remove dead code.
Its action was already done above anyway.
2017-12-06 09:52:14 +01:00
Émilie Feral
7d73911063 Merge remote-tracking branch 'epsilon/cas_with_python' into python_console 2017-12-05 13:33:20 +01:00
Émilie Feral
b7a74c2c46 [apps] In Probability: fix bug when a = 0 and b = 1E-43 < FLT_EPSILON
Change-Id: Ib4fd405178fa0d7e8571f2da14e177fe67e3c96d
2017-12-05 12:10:10 +01:00
Léa Saviot
27d6f8e7cc [code] Added line feeds after some Python Toolbox commands.
Change-Id: I0d6ab5beecfa02fec64ca904f50c7b2a4022ff96
2017-12-05 12:08:24 +01:00
Léa Saviot
3bd1477912 [apps] Fixed bug in settings.
When activating or deactivating the exam mode, the table did not display
the right label immediately.

Change-Id: I3ce556202b4dde94235d90b937b3f00274b2f3d6
2017-12-05 11:28:38 +01:00
Léa Saviot
dcd5d05537 [code] Fixed selection bug in the console history.
When clearing the console history, the previously selected cell was not
unhighlighted. This sometimes caused a random cell to be highlighted when
adding new commands.

Change-Id: I393446527fc06d7ae075c21124cb78e09d63ef99
2017-12-05 11:28:23 +01:00
Émilie Feral
cc31cbcc52 Merge remote-tracking branch 'epsilon/cas_with_python' into python_console 2017-12-04 18:09:20 +01:00
Léa Saviot
f8e64c1ba4 [code] Fixed Toolbox messages typos.
Change-Id: If9db652250c1a075530e8ce213f37af4d46e457b
2017-12-04 18:02:24 +01:00
Émilie Feral
57d4f239a2 [apps] In statistics, forbid min value that makes the number of bars
explode

Change-Id: Ia8c97a1c0f7099750ac17faaea7bf47fa5530966
2017-12-04 17:57:24 +01:00
Émilie Feral
4318588779 [apps] In toolbox, update the logarithm message with the right parameter
order (log(x, base))

Change-Id: Ice757a044eaf2f1f0efbfba302f3ea27d3892913
2017-12-04 17:57:24 +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
56ac5071f2 [code] Fixed table reload when executing one script.
Before, the history would not redraw itself properly when selecting
"Execute Script" from a script's options.

Change-Id: Ibefd920eb038165a81ddb464dbf889047ad1f370
2017-12-04 13:51:38 +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
ff22bc05b8 [code] Fixed bug in script_node_cell.
Change-Id: I588a7a25a0042efd34701bb5dc3d091a232ba55d
2017-12-04 10:46:27 +01:00
Léa Saviot
277771c243 [code] Fixed selection bug in VariableBoxController.
Change-Id: I8fcbdd6e181453bb8fbee7b4efc8573ca112c6a2
2017-12-04 10:44:35 +01:00
Émilie Feral
db35fc1d72 Merge branch 'cas_with_python' into python_console
Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
2017-12-01 17:29:55 +01:00
Émilie Feral
504bd41664 [apps] In calculation: Avoid to parse twice instead of once when checking the input
string

Change-Id: I653ae54b554c05735c7f9502a6ca44076aed5d7e
2017-12-01 17:22:05 +01:00
Léa Saviot
ac42d910f5 [code] Fixed minimalSizeForOptimalDisplay in ScriptNodeCell.
Change-Id: I6c5b9d5ec0e1973112a56086123c92c6dedf8456
2017-12-01 17:07:52 +01:00
Léa Saviot
32953c10d8 [code] VarBoxController::ContentViewController is a SimpleListView.
Change-Id: I3a5d9e0803e33b4a75bffe4a2d05d74492d50a9b
2017-12-01 16:18:36 +01:00
Léa Saviot
85a039c524 [code] Fixed long console line storing.
Change-Id: I33785d2766bb59a6324c850d5ac915a48a9fda35
2017-12-01 16:18:36 +01:00
Léa Saviot
09d6e3da53 [code] Changed the base scripts: polynomial.py instead of fibonacci.py.
Change-Id: If80b20681dc04c5556c9b90bda230c7c3bee58a5
2017-12-01 16:18:36 +01:00
Léa Saviot
d05ca726b6 [code] Delete specific lines in the console history with backspace.
Change-Id: I9ed4709937f35c67aea0b958fabbad145b8c0c80
2017-12-01 16:18:34 +01:00
Léa Saviot
62fe441b7a [code] Add parentheses after function names in Var.
Change-Id: I7e3e993d07139c40c6bd59fd5879b3ee091f5127
2017-12-01 16:11:31 +01:00
Léa Saviot
9805f7570e [code] "Functions and variables" translation.
Change-Id: I8f368a0c5e7e6bbb0aebc6a1112d3bdb2d76d34d
2017-12-01 16:11:31 +01:00
Léa Saviot
7c4e5ec583 [code] Color the console history in grey when unloading Python.
Change-Id: I7f802ee5858e6a9944fd3f2455fac58106e2adeb
2017-12-01 16:11:31 +01:00
Léa Saviot
ed2a17ad31 [code] The console history can be colored in grey.
Change-Id: If3da306140d4f80d1abd014c5bf0e1989e3a252d
2017-12-01 16:11:29 +01:00
Léa Saviot
1de30cbe06 [code] Fixed loop condition bug in ConsoleStore.
Change-Id: Ia6a46fe04614afcdace4ab3396282b3c5a6c308c
2017-12-01 13:46:31 +01:00
Léa Saviot
d732bce90f [code] The user can clear the console history.
Change-Id: Ice8143f9c424764f6729feab0d73d39d91f896fd
2017-12-01 13:46:31 +01:00
Léa Saviot
38ec9429aa [code] User defined functions and variables are in the same menu.
Change-Id: I420df64cac76407f8d964db680e753f01e20e78c
2017-12-01 13:46:29 +01:00
Léa Saviot
99411838bd [code] Fixed buffer length bug in Code::PythonToolbox.
Change-Id: I50432b210936fce0aa0817e3598f4cea38b62bbd
2017-12-01 13:19:30 +01:00
Léa Saviot
53d2ae2c46 [code] Rename Code::Toolbox in Code::PythonToolbox for more clarity.
Change-Id: I3729fedd8a26531edcd17105ed5fc177c06a8fcb
2017-12-01 13:19:30 +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