Commit Graph

2372 Commits

Author SHA1 Message Date
Émilie Feral
4e8cd02d3f [calculation] Fix memoization: hold the calculation and not its address
which is likely to have changed
2018-09-21 18:16:21 +02:00
Émilie Feral
eadc493f48 [ion] Storage: fix regex describing compliant names 2018-09-21 17:13:12 +02:00
Léa Saviot
c16d9e7ffe [apps/code] Load Python in the viewWillAppear of the controllers 2018-09-21 12:26:57 +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
Léa Saviot
36388c9d4d [sequence] Inline some getters in sSequence::App 2018-09-21 10:46:46 +02:00
Léa Saviot
9d23fe3e22 [sequence] Do not set YAuto when resetting App::Sequence::Snapshot 2018-09-21 10:46:41 +02:00
Léa Saviot
8b75802746 [calculation] Don't recompute HistoryViewCell layout if same calculation 2018-09-20 17:21:34 +02:00
Léa Saviot
6b8d8a1e55 [escher] Prevent superfluous layout clearings 2018-09-20 16:46:34 +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
fd56d936c7 [apps] Memoize matrix layouts in VariableBoxController 2018-09-20 11:07:07 +02:00
Émilie Feral
b4a6fdd2eb [shared] Fix the maximal number of cells in StoreController (thereby,
decrease the size of the union of apps)
2018-09-20 09:49:44 +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
Léa Saviot
f5682a4f30 [apps] Exception should reset active snapshot only if active app exists 2018-09-19 15:50:48 +02:00
Émilie Feral
cf8378434d [regression] When creating SimplifiedExpression, use
Number::DecimalNumber constructor to enable to get Infinity or Undefined
2018-09-18 17:50:10 +02:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Léa Saviot
bfc2f49de0 [apps/code] Fix assertion 2018-09-18 15:32:11 +02:00
Émilie Feral
dae91f1540 [apps] VariableBoxController: get rid of variable-size table 2018-09-17 17:14:43 +02:00
Émilie Feral
ba0f866dc6 [apps] Toolbox: get rid of variable-size tables 2018-09-17 17:14:43 +02:00
Émilie Feral
d17b0f1afb [poincare] Get rid of char table of variable size 2018-09-17 17:14:43 +02:00
Léa Saviot
a4d79332ea [poincare] Fix Warning message exit on special keys
We want the memory full warning to be exited only on OK, EXE, ... but
Syntax warning (for instance) to be exited on any key pressed
2018-09-14 17:59:14 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Émilie Feral
9016d30cef [regression] Fix StoreController::view() 2018-09-14 15:13:20 +02:00
Émilie Feral
1b0cd43b56 [regression] Tidy the models' layouts before leaving the app 2018-09-14 15:13:20 +02:00
Léa Saviot
206fb5999d [poincare] Translate app memory full message 2018-09-14 15:10:32 +02:00
Léa Saviot
9a289dc7eb [poincare] When app memory exception, got to Home app 2018-09-14 14:49:40 +02:00
Léa Saviot
6deaef49b8 [poincare] When memory exception, stay in the app and display popup 2018-09-14 13:43:54 +02:00
Émilie Feral
f394a799ea [apps] VariableBoxController: when disappearing, tidy the layouts from
the TreePool
2018-09-14 11:55:09 +02:00
Léa Saviot
985f310b1c [escher] Just replace the layout when clearing it in LayoutField 2018-09-14 11:28:37 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Léa Saviot
f240899fc7 [poincare] Put the exception handler before Container::run 2018-09-13 16:02:58 +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
Léa Saviot
101a1752b1 [coding style] Remove whitespace 2018-09-12 16:54:50 +02:00
Léa Saviot
fd361cbf60 [apps/calculation] Remove static Expression 2018-09-12 15:17:58 +02:00
Romain Goyet
9b177e8501 [poincare] use Poincare::ExceptionCheckpoint to handle exceptions 2018-09-12 14:11:20 +02:00
Léa Saviot
5821388b98 [statistics/test] Clearer assertion 2018-09-12 13:40:10 +02:00
Léa Saviot
0038cb537a [statistics] For median and quartiles, compare absolute frequencies
Instead of relative frequencies
2018-09-12 13:40:10 +02:00
Léa Saviot
8d95f408be [poincare] Tests on statistics 2018-09-12 13:40:10 +02:00
Léa Saviot
02899b863b [poincare] Median computation (and quartile...) tackles imprecision 2018-09-12 13:40:10 +02:00
Émilie Feral
bb9583d6dd [solver] When resolving linear system, we count on the side effect of
rank which has thus to be done in-place
2018-09-11 17:50:20 +02:00
Émilie Feral
d2ed06e2dc [code] Add comment on how --code-script option is parsed 2018-09-11 17:03:04 +02:00
Émilie Feral
032db99754 [code] EditorController: avoid dynamic allocation 2018-09-11 17:03:04 +02:00
Émilie Feral
79740e72b0 [code] Avoid dynamic allocation and useless string copy by keeping the
importation status flag in the areaBuffer
2018-09-11 17:03:04 +02:00
Émilie Feral
3268a0cb41 [regression] Get rid of dynamic allocation in Store 2018-09-11 13:20:06 +02:00
Émilie Feral
86b3d366ca [apps] All apps are allocated in the same union 2018-09-11 11:32:29 +02:00
Émilie Feral
6d9f0c0f0b [apps] Get rid of DynamicViewController in FloatParameterController 2018-09-11 11:32:29 +02:00
Émilie Feral
27064d00f7 [calculation] Get rid of DynamicViewController in HistoryController 2018-09-10 12:59:36 +02:00
Émilie Feral
7b88770c15 [apps] VariableBoxController: fix the row size to avoid overflowing the
maximal number of displayable rows
2018-09-10 10:07:28 +02:00
Léa Saviot
aaf5cee967 [poincare] make tests compile 2018-09-10 09:54:37 +02:00
Émilie Feral
579da3033a [apps] Get rid of DynamicViewController (part 2) 2018-09-07 17:55:42 +02:00
Émilie Feral
0fbab2f35c [apps] Get rid of DynamicViewController 2018-09-07 17:55:42 +02:00