Ruben Dashyan
9cbbffcdd6
[poincare/multiplication] shallowBeautify builds Power only if necessary
2020-06-04 14:50:01 +02:00
Ruben Dashyan
94bad10ddb
[poincare/multiplication] CanSimplifyUnitProduct gets int8_t entryUnitExponent parameter instead of operationOnExponents
2020-06-04 14:50:00 +02:00
Ruben Dashyan
79a81968c8
[poincare/unit] Avoid cloning expression in Dimension::Vector::FromBaseUnits
2020-06-04 14:50:00 +02:00
Ruben Dashyan
2f708cc36c
[poincare/unit] Dimension::Vector::FromBaseUnits accepts only products of powers of base units
...
and no other factor at all
2020-06-04 14:50:00 +02:00
Ruben Dashyan
394e86a28a
[poincare] Unit::Dimension holds a Vector
...
The Vector does not need to be recomputed from a Representative's
definition, which requires parsing and time-consuming reduction.
2020-06-04 14:50:00 +02:00
Ruben Dashyan
d7dab2ae99
[poincare/multiplication] bestUnitNorm not necessary anymore
2020-06-04 14:50:00 +02:00
Ruben Dashyan
191680d96f
[poincare/multiplication] Simplify Unit::Dimension::Vector::Metrics comparison
2020-06-04 14:50:00 +02:00
Ruben Dashyan
67241bb564
[poincare] Make code more object oriented
...
Turn ExponentsOfBaseUnits function into a static method of the
Unit::Dimension::Vector class
2020-06-04 14:50:00 +02:00
Ruben Dashyan
b6d07cbd90
[poincare] Make code more object oriented
...
Turn ExponentsOfBaseUnits function into a method of the
Unit::Dimension::Vector class
2020-06-04 14:50:00 +02:00
Ruben Dashyan
e2cdf78605
[poincare] Define and use Unit::Dimension::Vector::Metrics
2020-06-04 14:50:00 +02:00
Ruben Dashyan
2f6770cd69
[poincare/multiplication] Change signature of ExponentsOfBaseUnits
2020-06-04 14:50:00 +02:00
Ruben Dashyan
0eb6df27dc
[poincare] Turn Unit::Dimension::Vector type into a struct
2020-06-04 14:50:00 +02:00
Ruben Dashyan
202beb3b13
[poincare/unit] Add comment about namespace and scope usage
2020-06-04 14:50:00 +02:00
Ruben Dashyan
2fa71e4350
[poincare] Define and use Unit::NumberOfBaseUnits instead of magic number
2020-06-04 14:50:00 +02:00
Ruben Dashyan
be2892eae5
[poincare] Define Unit::Dimension::Vector type
2020-06-04 14:50:00 +02:00
Ruben Dashyan
157d74c0da
[poincare/unit] Coding style
2020-06-04 14:50:00 +02:00
Ruben Dashyan
f01f91d000
[poincare/unit] Clean serialize
...
The prefix should be correct at that point and it should not be
necessary to check whether the prefix is allowed.
2020-06-04 14:50:00 +02:00
Ruben Dashyan
bc0b21463e
[quiz][ion/test] Move time measurements to quiz
...
to be able to do measurements in any test
2020-06-04 14:50:00 +02:00
Léa Saviot
068ed96d79
[apps/range_1D] Add comment abour k_minFloat
2020-06-04 14:50:00 +02:00
Léa Saviot
ed753b793b
[apps/statistics] Do not initRangeParameters too often
2020-06-04 14:50:00 +02:00
Léa Saviot
51b5edbe69
[apps/statistics] Remove too strict condition
...
One could not set the bin with / x start to a value that would not show
any data
-> The condition was asymetrical, as nextFirstDrawnBarAbscissa could not
be higher to the biggest data, but could have been too small to display
any data
-> We restricted the user
2020-06-04 14:50:00 +02:00
Léa Saviot
59aea9ca83
[apps/statistics] Factorize HistogramParamCtrlr::setParamAtIdx
2020-06-04 14:50:00 +02:00
Léa Saviot
250f4ec3dd
[apps/statistics] Clean code
2020-06-04 14:50:00 +02:00
Léa Saviot
93d687abc2
[apps/calculation] Fix height computation in additional results
2020-06-04 05:47:55 -07:00
Émilie Feral
884d9890cf
[.github/workflow] ci-workflow: update setup-emscripten to v2
2020-06-04 09:37:11 +02:00
Joachim Le Fournis
899e0d4a6b
[apps/shared] Fixed a small mistake in parameter_text_field_delegate.cpp
...
In this commit, there was a small oversight in 7a4ee746b2 , which caused https://github.com/numworks/epsilon/issues/1570
2020-05-29 02:27:48 -07:00
Léa Saviot
b034f8e054
[apps/calculation] Fix history navigation
...
When calculations span on two lines, better selection
2020-05-28 04:44:27 -07:00
Léa Saviot
a56a73b0ba
[apps/calculation] Fix calculation height computation
...
It was done in two places before, which created inconsistencies
2020-05-28 04:44:27 -07:00
Léa Saviot
0379327b06
[apps/calculation] Geographic navigation in the history
2020-05-28 04:44:27 -07:00
Léa Saviot
1d3a949b6f
[apps/shared] Add escape case
2020-05-28 04:44:27 -07:00
Léa Saviot
e2f4b30b84
[apps/calculation] Remove unused variable
2020-05-28 04:44:27 -07:00
Léa Saviot
c4908c2bd9
[apps/calculation] Fix bottom calculation margin
...
Scenario: enter a calculation that uses two lines, the margin on the
bottom is too big
2020-05-28 04:44:27 -07:00
Léa Saviot
5535145b51
[apps/calculation] Calculation on 2 lines if does not fit when expanded
...
Scenario: 1+1+1+1+1+1+1+10.5 fits on one line when not expanded, but
when the exact result is displayed not -> we thus always display it on
two lines
2020-05-28 04:44:27 -07:00
Léa Saviot
feee0a673c
[apps/calculation] HistoryViewCell cleaning
2020-05-28 04:44:27 -07:00
Léa Saviot
6948011ae0
[apps/calculation] Handle navigation in single lined output
2020-05-28 04:44:27 -07:00
Léa Saviot
579485c8c0
[apps/calculation] CanBeSingleLine differs if args are view/layout sizes
...
If the sizes are for layouts, we need to add the margins added by the
views.
2020-05-28 04:44:27 -07:00
Léa Saviot
4f50a72abf
[apps/calculation] Clean Calculation::height
2020-05-28 04:44:27 -07:00
Léa Saviot
11c39b6206
[apps/calculation] Calculation::height has two types of margin arguments
...
One for the margin between layouts and on top / at the bottom of the
cell, the other for the margin surrounding each layout.
2020-05-28 04:44:27 -07:00
Léa Saviot
78cac6ddae
[apps/calculation] Calculation::height has CanBeSingleLine argument
2020-05-28 04:44:27 -07:00
Léa Saviot
1c2801907f
[apps/calculation] Factorize and clean code
2020-05-28 04:44:27 -07:00
Léa Saviot
30c243e2e4
[apps/scrollable_multiple_expressions_view] Factorize baseline()
2020-05-28 04:44:27 -07:00
Léa Saviot
525290427a
[apps/calculation] Calculation::height takes verticalMargin argument
2020-05-28 04:44:27 -07:00
Léa Saviot
7ccaf3fc50
[apps/calculation] Rename allExpressionsInline to forceSingleLine
2020-05-28 04:44:27 -07:00
Léa Saviot
5a68b44aa1
[apps/calc] Merge SingleLine and allExpressionsInline behaviours
2020-05-28 04:44:27 -07:00
Léa Saviot
c3d8520e73
[apps/calculation] Remove unnecessary bool
2020-05-28 04:44:27 -07:00
0b101
b48d3d6e4a
Added a new compact result display mode
2020-05-28 04:44:27 -07:00
Joachim Le Fournis
67fc7502e2
[App/zoom_parameter_controller] Add comment
...
See : https://github.com/numworks/epsilon/pull/1548#discussion_r425708055
2020-05-22 00:42:05 -07:00
Joachim Le Fournis
f1209bcf76
[App/zoom_parameter_controller] Changed subview order
...
This fixes #500
2020-05-22 00:42:05 -07:00
Émilie Feral
7f3f67aba0
[python] Clean type confusion
2020-05-18 14:39:46 +02:00
Émilie Feral
4e1f7c1cb8
[python] Fix comment
2020-05-18 14:39:46 +02:00