Commit Graph

5380 Commits

Author SHA1 Message Date
Léa Saviot
f28e029bb4 [poincare] Change misleading variable name 2018-08-03 15:18:27 +02:00
Léa Saviot
afd01f34e1 [poincare] Rename addChildTreeAtIndex -> addChildAtIndex 2018-08-03 15:01:10 +02:00
Léa Saviot
5e6dea559f [poincare] Make add/remove methos protected on TreeRef
And public in NAryExpressionRef, HorizontalLayoutRef, ...
Also fix matrix addition of children
2018-08-03 14:54:34 +02:00
Léa Saviot
4e96c16c58 [poincare] TreePool is friend with TreeReference to access discardTNode 2018-08-03 14:39:10 +02:00
Émilie Feral
6d08ce356c [poincare] MatrixComplex: change node() for typedNode() 2018-08-03 12:04:53 +02:00
Émilie Feral
ae1aa5ee14 [poincare] Fix Rational::NaturalOrder 2018-08-03 11:38:21 +02:00
Émilie Feral
9ddf1d2c33 [poincare] Increase the limit of Integer to 1E308 2018-08-03 11:36:38 +02:00
Léa Saviot
5de11b122b [poincare] Detach and remove methods on TreeReference 2018-08-03 11:20:30 +02:00
Léa Saviot
caa12ec49e [poincare] Ghost nodes 2018-08-03 11:20:30 +02:00
Émilie Feral
748291d6b8 [poincare] Typo 2018-08-02 18:15:46 +02:00
Émilie Feral
31319ae80a [poincare] Clean 2018-08-02 18:15:46 +02:00
Émilie Feral
05ba66cd21 [poincare] Correct Expression manipulation 2018-08-02 18:15:46 +02:00
Léa Saviot
0a90560b3c [poincare] Remove old file 2018-08-02 17:48:13 +02:00
Émilie Feral
77d506028d [poicnare] Clean 2018-08-02 16:29:04 +02:00
Émilie Feral
06a3974f26 [poincare] description methods are compiled only when flag TREE_NODE is
set
2018-08-02 16:29:04 +02:00
Léa Saviot
4c301a736e [poincare] Rename numberOfOperands in numberOfChildren 2018-08-02 16:02:14 +02:00
Émilie Feral
54f9ea2d46 [poincare] Redesign of Expression: first attempt 2018-08-02 15:46:31 +02:00
Léa Saviot
b07d20f8ee [poincare] Clean computeSize and computeBaseline 2018-08-02 15:35:14 +02:00
Léa Saviot
f7a9d67d76 [poincare] Revert removing TreeNode::size() overrides 2018-08-02 15:08:50 +02:00
Léa Saviot
075c2c766b [poincare] Code cleaning 2018-08-02 15:08:49 +02:00
Léa Saviot
4d184f73a8 [poincare] Keep track of children count in Matrix::createLayout 2018-08-02 13:07:02 +02:00
Léa Saviot
7d0496dba0 [poincare] Fix MatrixLayoutnavigation bug 2018-08-02 11:43:26 +02:00
Léa Saviot
8e50f45298 [poincare] Remove unneeded code 2018-08-02 10:36:40 +02:00
Léa Saviot
915a27e1d0 [poincare] FractionLyt::deleteBeforeCursor replaces stolen children 2018-08-02 10:36:40 +02:00
Léa Saviot
7a22a27d0f [poincare] Fix AFail in LayoutField::insertLayoutAtCursor 2018-08-02 10:22:45 +02:00
Léa Saviot
9305adc61b [poincare] Fix TreeReference::replaceWithAllocationFailure 2018-08-01 18:00:41 +02:00
Léa Saviot
f37ef1303d [poincare] Fix TreeReference::replaceTreeChild 2018-08-01 16:52:42 +02:00
Léa Saviot
d89e078e0e [poincare] NthRootLayoutNode shouldn't in/decrement m_numbOfChildren 2018-08-01 16:49:47 +02:00
Léa Saviot
222fd396ac Code cleaning 2018-08-01 15:53:11 +02:00
Léa Saviot
a2a444ad4a [poincare] Use == and != operators from TreeReference 2018-08-01 15:53:11 +02:00
Léa Saviot
1a50d88a79 [poincare] Fix missing LayoutRef construction in BracketPairLayoutNode::moveCursorRight 2018-08-01 15:53:11 +02:00
Léa Saviot
31e7288894 [poincare] Fix TreeReference::replaceTreeChild 2018-08-01 15:42:25 +02:00
Émilie Feral
0fd7b33405 [poincare] Modify TreeReference(TreeNode *) constructor to avoid
multiple const_cast
2018-08-01 14:57:34 +02:00
Léa Saviot
17a8cde6d6 [poincare] Caution with AFail when adding rows/columns to matrix layout 2018-08-01 10:57:00 +02:00
Léa Saviot
ee2ebdcdc0 [poincare] addLayoutAndMoveCursor collapses only if layout is not AFail 2018-08-01 10:46:45 +02:00
Léa Saviot
d84a081e7e [poincare] Clean EmptyLayoutNode::willAddSibling 2018-08-01 10:46:45 +02:00
Léa Saviot
b9b3feffa3 [poincare] Fix use of "this" after allocation failure + wrong cast 2018-08-01 10:46:45 +02:00
Léa Saviot
9a8ea25dab [poincare] LayoutNode::changeGreySquaresOfAllMatrixAncestors uses Refs 2018-07-31 18:02:54 +02:00
Léa Saviot
5410755cee [poincare] Enable LayoutNode::changeGreySquaresOfAllMatrixAncestors 2018-07-31 17:53:02 +02:00
Léa Saviot
64901f6ef6 [poincare] Fix use of node after pool meddling 2018-07-31 17:52:27 +02:00
Léa Saviot
7c6e7b7daa [poincare] Fix typo 2018-07-31 17:51:13 +02:00
Léa Saviot
c9cc4a40d8 [poincare] If root is AFail after handlingEvent, point the cursor to it 2018-07-31 17:49:41 +02:00
Léa Saviot
3e4a67bee1 [poincare] Check if layout is not AllocFail when adding row after column 2018-07-31 17:09:42 +02:00
Léa Saviot
448336551f [poincare] Fix index computation in MatrixLyt::didReplaceChildAtIndex 2018-07-31 17:02:12 +02:00
Léa Saviot
75e34847fe [poincare] Wrong memoization of index in parent 2018-07-31 16:23:20 +02:00
Léa Saviot
f587aab4bb [poincare] LayoutField::handleEventWithText only if layout is not AFail 2018-07-31 16:09:26 +02:00
Léa Saviot
de347f9be4 [poicnare] Fix TreeReference::replaceWithAllocationFailure 2018-07-31 15:50:36 +02:00
Léa Saviot
4190db882c [poincare] Edge case in LayoutCursor::baseForNewPowerLayout 2018-07-31 15:39:33 +02:00
Léa Saviot
793bc37da8 [poincare] Fix HorizontalLayoutRef::addOrMergeChildAtIndex 2018-07-31 15:39:04 +02:00
Émilie Feral
5f8f20c5e5 [poincare] Make layout hierarchical methods (root, parent, childAtIndex)
override tree node methods
2018-07-31 15:17:46 +02:00