Ruben Dashyan
b4099180a3
[apps/shared/curve_view] Correctly check whether successive dots are joined
2019-07-30 14:15:08 +02:00
Ruben Dashyan
327547dd37
[apps/shared/curve_view] Do not evaluate several times in drawCurve
2019-07-30 14:15:08 +02:00
Ruben Dashyan
9ab55e6a04
[apps/shared/curve_view] drawCurve does not call straightJoinDots anymore
...
Remove the "bool continuously" parameter of the method drawCurve that allowed
to bypass the call to jointDots and call straightJoinDots directly
instead.
2019-07-30 14:15:08 +02:00
Ruben Dashyan
585b77c38f
[apps/shared/curve_view] Clarify coordinates' conventions
2019-07-30 14:15:08 +02:00
Ruben Dashyan
ab0bfe2039
[apps/shared/curve_view] Inline pixelLength
2019-07-30 14:15:08 +02:00
Ruben Dashyan
95be59fdc6
[apps/shared/curve_view] Fix label position rounding error
2019-07-30 14:15:08 +02:00
Ruben Dashyan
702a222dbc
[apps/shared/curve_view] Simplify drawGridLines' for loop parameter
2019-07-30 14:15:08 +02:00
Ruben Dashyan
ce75a99d93
[apps/shared/curve_view] Simplify drawGridLines' for loop bounds
2019-07-30 14:15:08 +02:00
Ruben Dashyan
985876f115
[apps/shared/curve_view] Simplify drawDot
2019-07-30 14:15:08 +02:00
Ruben Dashyan
292493ba36
[apps/*curve_view] Substitute resolution by pixelWidth
2019-07-30 14:15:08 +02:00
Ruben Dashyan
c80baae1e9
[apps/*/curve_view] Remove samplingRatio()
...
The resolution() method is useful to get a horizontal step equivalent to
the width of a pixel. A higher sampling ratio (or resolution) had been
introduced in the following commit.
[apps] In curve view, avoid white vertical lines in integral curves due to pixel rounding
2019-07-30 14:15:08 +02:00
Ruben Dashyan
7cbc489052
[apps/shared/curve_view] Use drawSegment to color area under curve
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f5c3cb74e2
[apps/shared/curve_view] Fix rounding error in drawSegment
2019-07-30 14:15:08 +02:00
Ruben Dashyan
503995746a
[apps/shared/function_graph_controller] Clean resolution usage in computeYRange
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f4b7967a58
[apps/shared/curve_view] step in drawHistogram depends on x-range's width
...
instead of the width of the rect that is being drawn.
2019-07-30 14:15:08 +02:00
Ruben Dashyan
c22754fa63
[apps/shared/curve_view] Make curveViewRange() method const
2019-07-30 14:15:08 +02:00
Émilie Feral
7a4ee746b2
[escher] TextField: call reinitDraftBuffer after edition is complete to
...
avoid erasing text that is required later.
Fix bug: OK handling on function list in linear mode did not copy the
function expression into the textfield before editing
2019-07-30 11:47:42 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
1a2a651f36
[apps] Replace app() by expressionFieldDelegateApp() in Calculation::EditExpressionController
2019-07-19 15:06:25 +02:00
Ruben Dashyan
3e992a3560
[apps] Replace app() by textFieldDelegateApp() in TextFieldDelegates
2019-07-19 15:06:25 +02:00
Ruben Dashyan
28f713e905
[apps/shared] Make App accessors const in delegates
2019-07-19 15:06:25 +02:00
Ruben Dashyan
9611133276
[apps] Factor Shared::TextFieldDelegateApp::isAcceptableText
2019-07-19 15:06:25 +02:00
Ruben Dashyan
ff887ec4a0
[apps/shared] Define static app() accessor in FunctionApp class
2019-07-19 15:06:25 +02:00
Ruben Dashyan
055d601854
[apps] Define TextFieldDelegate::textFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
5058f64163
[apps] Define LayoutFieldDelegate::expressionFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
0490e3ab81
[apps] Define InputEventHandlerDelegate::inputEventHandlerDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Romain Goyet
45875dd642
[escher] Make app() a global function
...
This way it can easily be reached by anyone, including non-responders.
And it can easily be overwritten in namespaced apps.
2019-07-19 15:06:25 +02:00
Ruben Dashyan
62cec10b46
[apps] Clean unnecessary AppsContainer class declarations and header inclusions
2019-07-19 15:06:25 +02:00
Ruben Dashyan
1f06819974
[apps] Remove Container * parameter from all App constructors
2019-07-19 15:06:25 +02:00
Ruben Dashyan
d04d414315
[apps] Remove InputEventHandlerDelegateApp::container()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
eb3da7f395
[apps] Substitute "app()->container()" by "AppsContainer::sharedAppsContainer()"
2019-07-19 15:06:25 +02:00
Ruben Dashyan
3546788573
[apps/shared/input_event_handler_delegate_app] Simpler (and protected) access to AppsContainer *
2019-07-19 15:06:25 +02:00
Ruben Dashyan
9a25249088
[apps/shared/store_controller] Simpler access to AppsContainer *
2019-07-19 15:06:25 +02:00
Léa Saviot
aafb6d5a5e
[apps/ion] Clean and shorten LCDData and LCDTiming tests
2019-07-15 15:21:14 +02:00
Léa Saviot
606e132747
[apps/bench] Change LCD Data pattern (tiling red/blue/green)
2019-07-12 17:50:38 +02:00
Émilie Feral
6e22b37910
[apps/shared] Fix ExpressionListController: the cell heights memoization
...
was corrupted
2019-07-12 16:39:55 +02:00
Émilie Feral
7891cf4182
[apps/shared] Fix ExpressionListController: the cell heights memoization
...
was corrupted
2019-07-11 10:43:59 +02:00
Léa Saviot
bf9ba7b363
[apps/hardware_test] ColorsLCDTest
2019-07-05 12:25:50 +02:00
Léa Saviot
7b99f78352
[post_and_hardware_tests] Bad pixels limit of 2, not 0
2019-07-05 12:25:45 +02:00
Émilie Feral
fb80cd3271
[apps] Object contained in the Storage might be unaligned. Make sure to
...
use emscripten unaligned type to avoid producing an alignment error on
emscripten platform.
2019-06-19 09:54:57 +02:00
Émilie Feral
cd688ab9cf
[apps] Force packing classes of objects contained in the Storage
...
If these classes are padded, we lose space in the Storage and the
Storage::checksum is computed on uninitialized values (corresponding to
the padding memory spaces)
2019-06-19 09:54:57 +02:00
Émilie Feral
5ac1c27401
Merge branch 'version-11' into f7
2019-06-17 15:48:03 -04:00
Émilie Feral
a13d6daab8
[solver] Reinitialize selected subcell when changing displayed layouts
2019-06-17 15:38:53 -04:00
Émilie Feral
fbe0a0ca3e
[shared] ScrollableExactApproximateExpressionsView: reloadScroll when
...
displayed layouts have changed
2019-06-17 15:38:53 -04:00
Émilie Feral
7d2f69821a
[shared] BannerView: add an assertion to avoid deferencing nullptr
2019-06-17 15:38:53 -04:00
Léa Saviot
453c43967d
[apps/shared] Share PadWithSpaces method
2019-06-17 15:38:53 -04:00
Émilie Feral
0b8fddf576
[solver] Reinitialize selected subcell when changing displayed layouts
2019-06-17 15:10:40 -04:00
Émilie Feral
3b25398e6e
[shared] ScrollableExactApproximateExpressionsView: reloadScroll when
...
displayed layouts have changed
2019-06-17 15:10:40 -04:00
Léa Saviot
debcda40b1
Merge branch 'master' into f7
2019-06-17 14:33:05 +02:00
Émilie Feral
709a7028e8
[shared] BannerView: add an assertion to avoid deferencing nullptr
2019-06-17 10:20:25 +02:00