Commit Graph

7312 Commits

Author SHA1 Message Date
Léa Saviot
2be65c9b1b [poincare] Use small variable types in Nodes 2018-09-14 14:50:19 +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
Émilie Feral
42c7c26414 [escher] TableView: when the TableView has a null frame, its
numberOfSubviews is 0
2018-09-14 11:55:09 +02:00
Émilie Feral
fbbf883b92 [poincare] Decimal: fix log 2018-09-14 11:55:09 +02:00
Léa Saviot
9d5893f38c [escher] Uninline methods in LayoutField 2018-09-14 11:29:01 +02:00
Léa Saviot
985f310b1c [escher] Just replace the layout when clearing it in LayoutField 2018-09-14 11:28:37 +02:00
Léa Saviot
230bb91374 [poincare] Remove unneeded using operator 2018-09-14 11:28:13 +02:00
Léa Saviot
642d19c1e6 [poincare] remove old comment 2018-09-14 11:24:41 +02:00
Léa Saviot
fdba006e5b [poincare] Use const and & in TreeByReference != and == operators 2018-09-14 11:24:11 +02:00
Léa Saviot
c8960db230 [poincare] Add tests on 0 and inf 2018-09-13 17:49:02 +02:00
Léa Saviot
5c2ab75ea1 [poincare] 0*inf should be undef, not 0 2018-09-13 17:48:42 +02:00
Léa Saviot
1c2079dcf5 [bench] Fix bench command to print Integer 2018-09-13 17:36:52 +02:00
Léa Saviot
4d5b5dee95 [poincare] Prevent parsing of ".2.3" as "0.2*0.3" 2018-09-13 17:16:36 +02:00
Léa Saviot
52c49f7f76 [poincare] Parse inf as Infinity and remove redundant parser tokens 2018-09-13 17:16:25 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Émilie Feral
b66cc754ed [poincare] Clean parser 2018-09-13 16:05:32 +02:00
Émilie Feral
0c602459ca [poincare] Lexer: Symbols token are Expression and instead of Char 2018-09-13 16:05:32 +02:00
Émilie Feral
8368950f83 [poincare] Clean Makefile 2018-09-13 16:05:32 +02:00
Léa Saviot
deada55740 [poincare] Fix a node/ref comparison: use id comparison instead of nodes
This prevents breaking an assertion in node(), that Ghost should not be
a Ghost
2018-09-13 16:03:12 +02:00
Léa Saviot
ba7c013c72 [poincare] Handle release of nullptr nodes (due to exceptions) 2018-09-13 16:03:04 +02:00
Léa Saviot
f240899fc7 [poincare] Put the exception handler before Container::run 2018-09-13 16:02:58 +02:00
Léa Saviot
1606bf04d1 [poincare] Fix EmptyLayout addition to Horizontal layout
Propagate the removeEmptyChildren parameters
2018-09-13 12:02:39 +02:00
Émilie Feral
6c1db3e64b [poincare] GlobalContext stores Expression in Ion::Storage 2018-09-13 11:33:15 +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
51341f4abe [poincare] Remove implementation of TreePool::numberOfNodes from flags 2018-09-13 11:16:55 +02:00
Léa Saviot
7592c34954 [poincare] Remove superfluous clones 2018-09-13 09:53:57 +02:00
Léa Saviot
a7f6669025 [poincare] Add some tests on acos (presicision reduced to pass the test) 2018-09-12 17:31:06 +02:00
Léa Saviot
8f7dee722c [poincare] Add FractionLayout tests 2018-09-12 17:12:38 +02:00
Léa Saviot
c2accd5b4a [poincare] Implement LayoutCursor::middleLeftPoint() 2018-09-12 17:12:21 +02:00
Léa Saviot
52e3994634 [poincare] HorizontalLayoutRef missing whitespace 2018-09-12 17:11:58 +02:00
Léa Saviot
db8278ad92 [poincare] Do not addChild in HorizontalLayout if it is empty 2018-09-12 17:11:33 +02:00
Léa Saviot
101a1752b1 [coding style] Remove whitespace 2018-09-12 16:54:50 +02:00
Léa Saviot
f9d9dc5849 [poincare] Handle removal of empty layouts in HorLay::mergChildren 2018-09-12 16:54:16 +02:00
Léa Saviot
76fbea6a83 [poincare] Remove virtuality on LayoutReference 2018-09-12 16:54:16 +02:00
Émilie Feral
b55100812d [poincare] Add tests on Trigo 2018-09-12 16:08:16 +02:00
Émilie Feral
7520bdbb3c [poincare] Add test on VerticalOffsetLayout 2018-09-12 15:57:25 +02:00
Émilie Feral
2e29fccfe6 [poincare] Add simplification test 2018-09-12 15:56:05 +02:00
Émilie Feral
2e8bb3d67c [poincare] Add property tests 2018-09-12 15:55:06 +02:00
Émilie Feral
c462e387cb [poincare] Add tests on Power 2018-09-12 15:41:46 +02:00
Émilie Feral
978053e01f [poincare] Fix: always attach to parent before shallow reducing an
expression
2018-09-12 15:41:46 +02:00
Émilie Feral
4712aaa872 [poincare] Improve Decimal and Rational log 2018-09-12 15:41:46 +02:00
Émilie Feral
b06e345945 [poincare] Add Parser test 2018-09-12 15:41:46 +02:00
Émilie Feral
122a8b6824 [poincare] Add Parenthesis Layout tests 2018-09-12 15:41:46 +02:00
Léa Saviot
e4c11a993d [quiz] Assert pool size is 0 between quiz cases 2018-09-12 15:40:33 +02:00
Léa Saviot
cb471d83d5 [escher] After packing an app, assert the TreePool size is 0 2018-09-12 15:37:03 +02:00
Léa Saviot
77a66fd314 [poincare] TreeByReference::size() and addressInPool() 2018-09-12 15:26:07 +02:00
Léa Saviot
42cc6c0670 [poincare] Add method TreePool::copyTreeFromAddress 2018-09-12 15:25:36 +02:00
Léa Saviot
e5d9b7d485 [poincare] remove static node in Global Context 2018-09-12 15:25:09 +02:00