Hugo Saint-Vignes
0b683b6994
[apps/shared] Handle identical layout in MinimalSizeForOptimalDisplay
...
Change-Id: I99a523e9e88ea9c3064e4367d96b01edb0020df9
2020-08-11 17:06:07 +02:00
Hugo Saint-Vignes
5c75cc55d3
[apps/shared] Apply changes on confirm with GoTo functions
...
Change-Id: I6ebec412b4b6612710476274a8665375d21f9ef8
2020-07-29 10:07:07 +02:00
Hugo Saint-Vignes
61792058d3
[apps/shared] Fix typos for Interval and curve view temporary params
...
Change-Id: I610726ed5966d353397be923b76dd003297940a7
2020-07-29 10:07:07 +02:00
Joachim LF
d37bf9e344
[Apps/Shared] Fixed interval and curve view exit
2020-07-29 10:07:07 +02:00
Émilie Feral
b4a3dd10e1
[apps/shared] ToolBoxHelpers: don't overflow buffer
...
If the commandLength is > than the buffer size, we have to escape at
some point to avoid overflowing the buffer.
2020-07-29 09:43:51 +02:00
Léa Saviot
72e342e1b1
[apps/curve_view] Fix drawArrow
...
Compute everything in pixels + fix glitch when zooming on the tip of
arrow(0,0,2,3)
2020-06-04 14:58:20 +02:00
Émilie Feral
420dd04766
[apps/shared][python/port] CurveView::drawArrow uses pixel computation
...
instead of float computation to avoid precision errors, by default the
arrow size is decided in pixels.
2020-06-04 14:50:10 +02:00
Léa Saviot
34a4a3311a
[apps/code] Add test on variable_box_controller
2020-06-04 14:50:09 +02:00
Émilie Feral
12db7a5093
[apps/shared] Change default shape of arrow in CurveView (to match
...
matplotlib shape)
2020-06-04 14:50:09 +02:00
Émilie Feral
c826c53659
[apps/shared] CurveView: change drawArrow API to take arrow shape
...
arguments in float instead of coordinates
2020-06-04 14:50:09 +02:00
Émilie Feral
e92b56b78e
[apps/shared] CurveView: change drawArrow arguments (new definition of
...
arrow shape)
2020-06-04 14:50:09 +02:00
Émilie Feral
80015ca6aa
[apps/shared] RoundCursorView: fix potential black trail when redrawing
...
cursor (issue #1458 on GitHub)
2020-06-04 14:50:08 +02:00
Émilie Feral
a53379781f
[apps/shared] Fix comment
2020-06-04 14:50:08 +02:00
Léa Saviot
7d5304686d
[apps/scrollable_multiple_expressions_view] Add TODO comment
2020-06-04 14:50:08 +02:00
Léa Saviot
5f26ca40cc
[apps/escher] Fix scroll view indicator margin
...
So it does not overflow the scrolled view. Fixed for the language
controllers (on boarding app and settings), one value was changed from a
magic 14 to Metric::CommonTopMargin = 15, it did not seem to break
anything.
2020-06-04 14:50:07 +02:00
Léa Saviot
b8244ec0c5
[apps] Fix margins of LanguageController
...
Add margin at the bottom and fix margin values
2020-06-04 14:50:07 +02:00
Émilie Feral
05a42cd2eb
[apps/shared] PoincareHelpers: implement Reduce static inline function
2020-06-04 14:50:07 +02:00
Léa Saviot
6d7b294bca
[apps/escher] Rename ToolboxMessageTree::children -> childAtIndex
2020-06-04 14:50:06 +02:00
Léa Saviot
f98c171d2a
[apps/variable_box] Prepare for Code::VariableBox factorization
2020-06-04 14:50:05 +02:00
Léa Saviot
0f02a61dc4
[apps/code] Use textLength in VarBoxController::insertTextInCaller
2020-06-04 14:50:03 +02:00
Léa Saviot
7f486d790f
[apps/code] Get current script variables and functions
2020-06-04 14:50:03 +02:00
Émilie Feral
83a63155b1
[apps] PoincareHelpers: enable to specify the UnitConversion mode in
...
Simplify
2020-06-04 14:50:03 +02:00
Léa Saviot
068ed96d79
[apps/range_1D] Add comment abour k_minFloat
2020-06-04 14:50:00 +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
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
1d3a949b6f
[apps/shared] Add escape case
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
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
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
30c243e2e4
[apps/scrollable_multiple_expressions_view] Factorize baseline()
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
Léa Saviot
e7988b9fa2
[apps/round_cursor_view] Add comment about flaw in algorithm
2020-05-15 02:52:54 -07:00
Léa Saviot
a0c5a1fe1c
[apps] InteractCurveVwCtlr::addMargin adds more than the required margin
2020-05-15 02:52:54 -07:00
Léa Saviot
ee78948cf8
[apps/interactive_curve_view_range] Clean panToMakePointVisible
2020-05-15 02:52:54 -07:00
Léa Saviot
456cd3c73a
Revert "[apps] Add FLT_EPSILON in float comparisons in interactive_curve_vw_rge"
...
This reverts commit 18381fd334 .
2020-05-15 02:52:54 -07:00
Joachim Le Fournis
480459ab19
Changed setRecompute() to forceRecompute()
...
See https://github.com/numworks/epsilon/pull/1538#discussion_r419255425
2020-05-04 01:16:04 -07:00
Joachim Le Fournis
9e8229e767
[Interval] Removed useless getter
...
See https://github.com/numworks/epsilon/pull/1538#discussion_r419252679
2020-05-04 01:16:04 -07:00
Joachim LF
43bceac2c9
[Interval] Coding style on compute
2020-05-04 01:16:04 -07:00
Joachim LF
f250311856
[Interval] Patch the need recomputing
2020-05-04 01:16:04 -07:00
Émilie Feral
675a0d3f4c
Add missing definition of static member variables
2020-04-15 10:34:00 -04:00
Romain Goyet
84768472bd
Explicit std::min/max template usage
...
This is unfortunately required in several cases:
- Sometimes when we use either float and double (this should be changed)
- Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
- Because we mix pointer differences and ints
2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04:00
Léa Saviot
2ed354710f
[build/simulator] NDEBUG flag in release mode
...
This way, asserts are not performed on simulator platforms
2020-04-10 00:49:15 -07:00
Neven Sajko
c92b770112
Performance fixes relating to floating point constants
...
This replaces unnecessary double-precision soft-float operations with
single-precision floating-point operations, mainly by casting.
In a couple places I also replace a function call with a constant.
2020-04-09 13:58:56 +02:00
Émilie Feral
068325d151
Coding style: remove unecessary 'virtual' keyword when 'override' is
...
present 2/2
2020-04-09 11:36:51 +02:00
Jean-Baptiste Boric
64d0b3107f
[apps] Remove statically-allocated buffers
2020-04-08 10:09:47 +02:00
Émilie Feral
26aab94ac0
[apps/shared] Avoid signed/unsigned int comparison warning
2020-04-07 09:51:39 +02:00
Émilie Feral
e1d7b6bb04
[apps] Avoid unsigned/signed comparison: storeChecksumAtIndex takes an
...
int as parameter
2020-04-07 09:51:39 +02:00
Léa Saviot
19b5653851
[apps/i18n] Remove Language::Default
...
We never translate a i18n message to something else than the currrent
language selected
2020-04-06 13:35:18 +02:00