Commit Graph

7625 Commits

Author SHA1 Message Date
Léa Saviot
9a0602719e [poincare] Check if HorizontalLayoutRef is not alloc fail in its methods 2018-07-30 16:15:44 +02:00
Léa Saviot
5a5f2403da [poincare] Fix calculation height allocation failure handling 2018-07-30 15:36:45 +02:00
Léa Saviot
d5c76108bf [poincare] When collapsing layouts, stop if the root becomes alloc fail 2018-07-30 15:13:15 +02:00
Léa Saviot
53e15b0fb7 [poincare] Do not retain or release static nodes 2018-07-30 15:13:09 +02:00
Léa Saviot
702966a86a Remove outdated comment 2018-07-30 14:58:27 +02:00
Léa Saviot
2d4e36b98c [apps/calc] Handle alloc failure when computing calculation height 2018-07-30 14:47:41 +02:00
Léa Saviot
8e2abb8751 [poincare] Division::createLayout 2018-07-30 14:42:47 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Léa Saviot
0788735bcc [poincare] Fix HorizontalLayoutNode::willAddChildAtIndex 2018-07-30 11:43:22 +02:00
Léa Saviot
091043f958 [poincare] Use ParenthesisLayouts in LayoutEngine 2018-07-30 11:18:49 +02:00
Léa Saviot
43aa59e017 [poincare] Use addOrMergeChildAtIndex in LayoutEngine 2018-07-30 11:18:49 +02:00
Léa Saviot
524809efa7 Coding style 2018-07-30 10:51:03 +02:00
Léa Saviot
08e60f61e6 [poincare] Fix TreeNode::releaseChildren 2018-07-30 10:50:43 +02:00
Léa Saviot
3594b4d42f [poincare] Fix TreePool node registration 2018-07-30 10:49:55 +02:00
Émilie Feral
20543ec1aa [poincare] Clean dead code 2018-07-27 17:21:10 +02:00
Émilie Feral
094c709e71 [poincare] LayoutReference: remove useless code 2018-07-27 17:20:05 +02:00
Léa Saviot
2ab29ea141 [poincare] Handle tree with missing children removal 2018-07-27 17:19:01 +02:00
Léa Saviot
2a02afd766 Revert "[poincare] TreeNodes have a m_numberOfChildren argument"
This reverts commit aa2d58c14a.
2018-07-27 16:52:12 +02:00
Émilie Feral
151fb5065a [poincare] Remove dead code 2018-07-27 16:41:42 +02:00
Léa Saviot
0783cb7c62 [poincare] Remove wrong assert 2018-07-27 15:47:14 +02:00
Léa Saviot
de78db5cda [poincare] Add layout: move cursor only if main layout is not AFail 2018-07-27 15:37:01 +02:00
Léa Saviot
ed443b46b8 [poincare] When renaming treenode, unregister identifier only if asked 2018-07-27 15:15:08 +02:00
Léa Saviot
0c2363c386 [poincare] Fix BracketPairLayoutNode assertion 2018-07-27 15:11:06 +02:00
Léa Saviot
f3b7d1ca98 [poincare] Do not handle events if the cursor points to an AllocFail 2018-07-27 14:37:17 +02:00
Léa Saviot
8f41ca9942 [poincare] Stop edition if a matrix cannot add an additional row/column 2018-07-27 14:12:25 +02:00
Émilie Feral
0677f4935f [poincare] TreePool: createTreeNode takes a size as parameters (node can
have variable sizes - integer)
2018-07-27 14:10:44 +02:00
Émilie Feral
67e9405b8c [poincare] TreeNode: clean names (childTree->child, parentTree->parent
...)
2018-07-27 11:00:50 +02:00
Émilie Feral
729a2eca5c [poincare] References: replace typedNode by overriding node() with the
right return type
2018-07-27 11:00:50 +02:00
Léa Saviot
e07f33dc27 [poincare] Unregister the identifier before renaming a node 2018-07-27 10:45:30 +02:00
Léa Saviot
cf0d22136a [poincare] Remove dummy layout use in sum and product layouts 2018-07-27 10:40:15 +02:00
Léa Saviot
37cdb615ab [poincare] Clean some code 2018-07-27 10:40:15 +02:00
Léa Saviot
27de4ff4a4 [poincare] Fix Sequence parentheses positioning 2018-07-27 10:40:15 +02:00
Léa Saviot
c436a472e7 [poincare] Remove templates on TreeReferences 2018-07-27 10:40:15 +02:00
Léa Saviot
d7b9fb509c [poincare] Remove unneeded LayoutRefs 2018-07-26 17:00:30 +02:00
Léa Saviot
3b1fc4b3d5 [poincare] Remove old layouts 2018-07-26 14:46:55 +02:00
Léa Saviot
e662280000 [poincare] Add static inline max methods 2018-07-26 14:23:13 +02:00
Léa Saviot
a9387c59dc [poincare] Remove dummy layouts use to compute layout positions 2018-07-26 14:16:19 +02:00
Léa Saviot
dbcd45e2b8 [poincare] Make ParenthesisLayoutNode buffer static 2018-07-26 14:15:26 +02:00
Léa Saviot
6ae578b5aa [poincare] Add assertions on layouts' number of children 2018-07-26 10:14:28 +02:00
Léa Saviot
aa2d58c14a [poincare] TreeNodes have a m_numberOfChildren argument 2018-07-26 10:14:28 +02:00
Léa Saviot
bf89edf493 [poincare] Matrix::createLayout 2018-07-25 17:39:11 +02:00
Léa Saviot
e064eec319 [poincare] Escape trivial case 2018-07-25 17:03:13 +02:00
Léa Saviot
2e8c7dee92 [poincare] MatrixLayoutNode 2018-07-25 17:02:09 +02:00
Léa Saviot
31b34b93be [poincare] Handle allocation failure in TreePool::deepCopy 2018-07-25 17:00:21 +02:00
Léa Saviot
3dcefa6a49 [poincare] Fix cast that created a compilation error 2018-07-25 16:59:22 +02:00
Léa Saviot
aebc8d3330 [poincare] GridLayoutNode keep track of its number of children
Before, the number of children was only computed with the number of rows
and columns, but we might need to know the real number of added children
during construction.
2018-07-25 16:57:31 +02:00
Léa Saviot
fd490e9d9b [poincare] Clean BracketPairLayoutNode and GridLayoutNode 2018-07-25 16:54:55 +02:00
Léa Saviot
a8de1f6c89 [poincarê] BinomialCoefficientLayoutNode 2018-07-25 10:59:46 +02:00
Léa Saviot
b9b153d531 [poincare] Complete GridLayout class so it's not virtual
We are then able to build GridLayoutRef objects, needed for
MatrixLayouts
2018-07-25 10:25:44 +02:00
Léa Saviot
bd3a88b007 [poincare] GridLayoutNode 2018-07-20 12:20:28 +02:00