Commit Graph

7312 Commits

Author SHA1 Message Date
Émilie Feral
0dec52a708 [apps] Graph: enable to specialize GraphController in different types
(Default, Tangent ...)
2018-01-30 18:19:27 +01:00
Émilie Feral
6d7d957c8f [apps] Graph: add a submenu calculation parameter controller in the
curve parameter controller
2018-01-30 18:19:27 +01:00
Émilie Feral
ef8f5e07c2 [apps] In CurveView, replace the virtual method evaluateModelWithParameter by a function given as parameter (to be able to call Curve view methods with different implementation of evaluateModelWithParameter) 2018-01-30 18:19:27 +01:00
Émilie Feral
ea28475432 [apps] Probability: fix bug in the calculationcontroller due to the wrong implementation of columnWidth
The column width implementation required that a cell view was used only
to display a cell of the table which was not the case.
2018-01-30 18:09:59 +01:00
Émilie Feral
2a207e59ac [apps] Probability: fix scrolling in calculation cells 2018-01-30 18:09:59 +01:00
Émilie Feral
5d8256435e [apps] Probability: fix bug; in calculation controller, when reloading cells after editing textfield, do not reload selection (it corrupts the responder chain if the first reponder was a modal view for ex) 2018-01-30 18:09:59 +01:00
Émilie Feral
126212e25b [escher] SelectableTableView: add an option when reloading data 2018-01-30 18:09:59 +01:00
Émilie Feral
f97cbd6d20 [escher] Clean useless reloadData 2018-01-30 18:09:59 +01:00
Émilie Feral
199e21548f [poincare] Fix bug in Trigonometry reducing: tan(27*i*pi/5) !=
tan(2*i*pi/5) !!!
2018-01-30 16:17:03 +01:00
Émilie Feral
eceb25a860 [poincare] Bug: i symbol was forgotten in the implementation of
Symbol::isApproximative and Symbol::hasAnExactRepresentation
2018-01-30 16:17:03 +01:00
Émilie Feral
541d0809f3 [apps] Calculation: avoid replacing 'ans' with a store expression (to
avoid bug like '(2->A)->B')
2018-01-30 16:17:03 +01:00
Émilie Feral
c9943fce60 [poincare] Improve PrimeFactorization: n decomposition requires searching among prime factors p with p^2 <= n 2018-01-30 16:17:03 +01:00
Émilie Feral
4731cbd6e0 [poincare] Fix parenthesis addition on Complex object
Implement 'needParenthesisWithParent' instead of 'operandNeedParenthesis'
2018-01-30 16:17:03 +01:00
Émilie Feral
e4cb6d9aad [apps] Calculation: when checking the length of the input calculation,
first replace "ans" symbol
2018-01-30 16:17:03 +01:00
Émilie Feral
36a3108309 [apps] Calculation: move implementation of ansExpression() from
Calculation to CalculationStore
2018-01-30 16:17:03 +01:00
Émilie Feral
d43fc1b6eb [poincare] Fix Factorial::shallowReduce 2018-01-30 16:17:03 +01:00
Émilie Feral
006a36c63c [poincare] Fix operandNeedParenthesis 2018-01-30 16:17:03 +01:00
Émilie Feral
8b7387ab01 [poincare] Return a syntax error when parsing "Expression->ans" (A->ans
for ex)
2018-01-30 16:17:03 +01:00
Émilie Feral
59fdcde548 [poincare] Avoid returning partial simplification when the
simplification process has been interrupted
2018-01-30 16:17:03 +01:00
Émilie Feral
e4c6636b08 [poincare] Fix bug in Power::shallowReduce: when deleting a
SimplificationRoot, its operand have to be detached especially if it has
been deleted before!
2018-01-30 16:17:03 +01:00
Émilie Feral
ab0775bfda [poincare] Fix the parenthesis addition in multiplications 2018-01-30 16:17:03 +01:00
Émilie Feral
a53d6eb0df [poincare] fix convertFloatToText: compute the exponent from the 2-base
exponent in IEEE754
2018-01-30 15:51:10 +01:00
Léa Saviot
214e490112 [poincare] Fixed grey squares bug when moving up in nested matrices.
Before, too many grey squares were added.

Change-Id: I0694dc943f82006fe3367dea9750d2feb83071ad
2018-01-29 18:09:42 +01:00
Léa Saviot
7fd3b965eb [poincare] Fixed HorizontalLayout empty child removal.
Change-Id: Ic956a98b2637dafeda7c6e7476caa789ce398321
2018-01-29 17:07:26 +01:00
Léa Saviot
7e1e811082 [poincare] Fix bug when deleting an empty VerticalOffsetLayout.
Change-Id: Ic2d2248c783a718521c65b7cc2e15406926a8e94
2018-01-29 15:31:21 +01:00
Léa Saviot
8d62aa90f8 [poincare] Better removal of empty child in HorizontalLayout
Change-Id: I126af718ec8a983b22f07ab49fd3298b8b416ea5
2018-01-29 15:29:58 +01:00
Léa Saviot
40ef1d1caa [poincare] Fix cursor position bug when deleting VerticalOffsetLayout.
Change-Id: Ie53030e5bff6876c75a785a61f6c43604bee2b05
2018-01-29 14:10:38 +01:00
Léa Saviot
e375e571ad [poincare] Remove empty child when inserting in HorizontalLayout
Change-Id: I393469cc28c83e6ab28d73a524ec62fab8165696
2018-01-29 14:07:28 +01:00
Léa Saviot
eb03b713c3 [poincare] Fix bug when layouting a left parenthesis.
When the parenthesis is the base of a vertical offset superscript, its
height and baseline should be default values, else it creates an
infinite loop because the parenthesis needs the superscript position,
which needs the parenthesis position.

Change-Id: Ib5f7d7cbd1cb48b5de8251cdda64b271e50f216f
2018-01-29 14:04:57 +01:00
Léa Saviot
d5a24bd71c [To remove]
Change-Id: Ifbd887c0ddbdec71c8495eca10354352ffa1418e
2018-01-26 18:14:06 +01:00
Léa Saviot
d217832ba1 [poincare] Fix bug when inserting a fraction between base and indice.
Change-Id: I4e3f6a5b6aee251a99e580dde7cb65b753f99ac5
2018-01-26 17:43:05 +01:00
Léa Saviot
fa1dcbf434 [poincare] Fix SquareRoot layout creation.
Change-Id: I9985735a5a00b1acf14993996f63be5dc91d9c14
2018-01-26 15:03:47 +01:00
Léa Saviot
8f17807fc1 [poincare] Fixed power layout insertion bug.
The method to determine if an empty base layout should also be inserted
had a bug.

Change-Id: I6c5e0de033eaee8a21a39f3eaffa18b259865a6e
2018-01-26 14:54:35 +01:00
Léa Saviot
2c79071d07 [poincare] Fix bug in HorizontalLayout.
Adding a brother should add it has a child, or merge it if the "brother"
is an horizontal layout!

Change-Id: I77e993ef2270fd1bf61599d688f3835feb8c0971
2018-01-26 14:44:39 +01:00
Léa Saviot
bc21aa919f [escher] Missing return statement.
Change-Id: I96feaeac32a8a01098b5446e9bc11321442b1022
2018-01-26 14:27:45 +01:00
Léa Saviot
acf8fe25ff [escher] Fix text field bug when editing a sequence.
The InputViewController inserted the text to edit in the TextField then
set the edition to true, which deleted the text.

Change-Id: Id77e740c0b615066e647512a19731214a435a2f0
2018-01-26 14:23:47 +01:00
Léa Saviot
30ac81db28 [poincare/lexer] Add rules to recognize symbols such as "u_{n}".
Change-Id: Ib6976e3b02357a975241ef5314a5999f967d6a45
2018-01-26 12:03:19 +01:00
Léa Saviot
95f859ce80 [apps/sequence] Set sender for sequence toolbox.
Change-Id: I3fe78127273083fb4f8f680ea3e6394f99913a12
2018-01-26 11:55:04 +01:00
Léa Saviot
ab8140c1c3 [poincare] Pointer shouldRecomputeLayout mandatory for layout navigation
This fixes a bug.

Change-Id: I9bb5ff3a3f365865d85f89efcd970e3ac5096536
2018-01-26 11:36:34 +01:00
Léa Saviot
093131302c [expression_editor] Delete this app.
Change-Id: I4c010ce1948f4c04dff526218d6d85a6d34d109e
2018-01-26 11:07:44 +01:00
Léa Saviot
4b79175fa8 [escher] Handle Clear event in ScrollableExpressionViewWithCursor.
Change-Id: I8a71a3f866420cd62514a7431f89a468580ff4eb
2018-01-25 17:31:51 +01:00
Émilie Feral
9443fcb043 [apps] Sequence: in the toolbox, update the extra-cells when updating
the hold layout to avoid unvalid read
2018-01-25 15:48:35 +01:00
Émilie Feral
479d86a38e [apps] Sequence: when setting a next first term index, forbid negative
index
2018-01-25 15:48:23 +01:00
Léa Saviot
f38bbff447 [escher] Fix responder order bug.
EditableExpressionView cannot pass the first responder state to one of
its children, otherwise Calculation::EditableExpressionView's overriden
handleEvent method is never called.

Change-Id: Id2b56b9501e67431e860573cf4c62a16651c3958
2018-01-24 10:20:09 +01:00
Léa Saviot
b9a7973961 [escher/poincare] Move the cursor when inserting a layout (if wanted).
The new pointed layout can be specified. If not, the cursor will be on
the right of the new layout.

Change-Id: I5e0c37cf6365447f8eaf354dc5e86a24c6981034
2018-01-24 10:18:12 +01:00
Léa Saviot
b3c5b93d21 [escher] Fix invalid pointer access.
A layout might be deleted after calling addLayout: for instance, if the
layout is horizontal and added as a child to another horizontal layout,
its children are stolen and it is deleted.

Change-Id: Icc2c344dd7878d7df2ec72f014a98dd0d27dc258
2018-01-23 17:13:58 +01:00
Léa Saviot
71263285c5 [poincare] Fixed serialization bug of empty Horizontal layouts.
Change-Id: I6a71eb34ae1f734ed86590cadaf086e1c3a1bd44
2018-01-23 16:57:16 +01:00
Jean-Baptiste Boric
56c6c17b57 [escher] Fix Valgrind uninitialized read 2018-01-23 11:36:27 +01:00
Léa Saviot
2929409d3e [escher] Comment about implementing a split view for InputViewController
Change-Id: I46b50bac50f958fad956696a02d334a690b0a2b2
2018-01-23 10:28:02 +01:00
Léa Saviot
bea0d208c1 [escher] ScrollableExpressionViewWithCursor handles Back event.
Change-Id: I8d98040e34740b48ee8285e5356ea94cd48f2e98
2018-01-23 10:28:02 +01:00