Commit Graph

3578 Commits

Author SHA1 Message Date
gpotter2
f4ce649dba Ignore exe files in git on Windows 2017-12-05 19:40:38 +01:00
Émilie Feral
a3640298fd [poincare] Fix baseline_relative_layout alignment
Change-Id: I69b32f779f5d5cdc3e5c8b460dfad8286525cea3
2017-12-05 16:33:51 +01:00
Émilie Feral
c889bb4092 [poincare] Implement Symbol copy constructor
Change-Id: Ie2bef0ba70f11608fd8aebbfa545f6de2e4872bb
2017-12-05 16:20:22 +01:00
Émilie Feral
105b52cea8 Makefile: change version to 1.2.0
Change-Id: I1ee72f274b0445ef9991d64b4e038dba75742764
2017-12-05 13:43:38 +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
Émilie Feral
ed1521cfd7 [poincare] In parsing, decimal whose exponent is > 1000 or < -1000 are
not accepted (also ensure not to overflow in exponent computation)

Change-Id: I2d5f86ae2fd735c8868346554d39a4e23aef6c3b
2017-12-05 11:45:40 +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
ccf97c0e74 [poincare] Clean Integer::udiv
Change-Id: I40735d10499ea2cf3c9a9f8f327eb3fec9ebee7b
2017-12-04 17:57:24 +01:00
Émilie Feral
d52d6d61ff [poincare] Fix bug in printing float to test: 999999.9 -> 1E7 instead of
0100000

Change-Id: I87d8659cf559901162bc83e8146c144526de782c
2017-12-04 17:57:24 +01:00
Émilie Feral
9efba84ba9 [poincare] Avoid infinite loop in binomial/permute coefficients
Change-Id: I528bf2a4fcfb269511aa9128990807524e9c3945
2017-12-04 17:57:24 +01:00
Émilie Feral
1edd7ac095 [poincare] Fix bug in Integer subtraction!
Change-Id: I2404d5d3b32e282c42cefb34e10d52ea44ba8931
2017-12-04 17:57: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
Émilie Feral
4cbe8fbf52 [poincare] Stopping the process inside a SimplificationOrfer call is not
always enable

Change-Id: Iad4cc54d4f9b139e967ead8ee6f8e9635cc39351
2017-12-04 17:57:19 +01:00
Émilie Feral
527b67c183 [poincare] Optimization: Avoid double evaluation of the order
Change-Id: I6564cf0194ff0f80daafa7bd7dc2e707660204ff
2017-12-04 17:54:39 +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
53c8b2215f [escher] Added textFieldDidHandleEvent to TextFieldDelegate.
Change-Id: Iad2ea114dd75632a0204c081b2345aeea8131798
2017-12-04 17:01:48 +01:00
Léa Saviot
b8a856dd27 [escher] Layout a Textfield's subviews when the cursor location changes.
Change-Id: If38e6d0a3034de491bff2cd622e13b3203ca82b8
2017-12-04 16:11:19 +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
Émilie Feral
7138a48a52 [poincare] In Logarithm: when looking for expressions of type e^ln(x),
look also for expression of type e^(ln(x))

Change-Id: Ifeec5fbdd3866269903d63fd7ce55f46815449f3
2017-12-04 11:13:38 +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
d726d582c9 [poincare] Correct assert
Change-Id: I00e71eedd63e0c7d81250bedeca4813e7eaba671
2017-12-01 17:56:50 +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
b3f2f245b0 [poincare] Fix leak when accepting ill-formed matrices-> do not accept
ill-formed matrices

Change-Id: I11a47c832287ac631838b9673174db5fff909f94
2017-12-01 17:22:05 +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
Émilie Feral
99ddde28d5 [poincare] Fix leak in Power::computeOnMatrixAndComplex
Change-Id: I009947c02053ceef967fb7d68524c7cf61db9c90
2017-12-01 17:22:05 +01:00
Émilie Feral
439c46d736 [poincare] Enable to interrupt Integral evaluation
Change-Id: I4c4f03beb1801cb9a9c568067356dac3c6a95820
2017-12-01 17:22:05 +01:00
Émilie Feral
15717e4349 [poincare] Fix leak in multiplication::distributeOnOperandAtIndex
Change-Id: Iba88f1c80a68b5b5c34d8448717e9b492f94c451
2017-12-01 17:22:05 +01:00
Émilie Feral
a20e6ee2ed [poincare] Enable interrupting some methods in Simplify that are called
recursively

Change-Id: I5b8c0de51617a3a36b3c8bc673de66dc60e74483
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