Commit Graph

1018 Commits

Author SHA1 Message Date
Léa Saviot
05678b48f6 [apps/calc] Remove whole calculation memoization in HistoryViewCell
It is no longer compatible with the new calculations as they no longer
have a constant size.
2019-08-08 17:22:03 +02:00
Léa Saviot
63f20a9844 [apps/function_store] Comment coding style 2019-08-08 17:22:02 +02:00
Léa Saviot
e15df6d60d [apps] Removed unneeded paramater in ExpiringPointer 2019-08-08 17:22:02 +02:00
Émilie Feral
869ab35c54 Makefile: build only necessary files for test target 2019-08-08 17:22:01 +02:00
Émilie Feral
059c596a80 Makefiles: avoid building all sources for each target; introduce more
modularity
2019-08-08 17:22:01 +02:00
Émilie Feral
2861a35840 Clean some warnings 2019-08-08 16:29:38 +02:00
Léa Saviot
61cf762eef [poincare] Expression::ReductionContext 2019-08-08 16:29:37 +02:00
Léa Saviot
989e3427b6 [apps/post_and_hardware_tests] Comment display tests 2019-08-07 11:15:28 +02:00
Léa Saviot
f5a7a44546 [apps/ion] Factorize code and TODO 2019-08-07 11:15:28 +02:00
Léa Saviot
5a68c52120 [apps/post_and_hardware_tests] Remove unnecessary initPanel 2019-08-07 11:15:28 +02:00
Léa Saviot
a450ce3855 Merge branch 'master' into f7 2019-08-06 17:40:14 +02:00
Ruben Dashyan
d171c2a2be [apps/shared/function_graph_controller] Comment about the sampling step in computeYRange 2019-07-30 14:15:08 +02:00
Ruben Dashyan
bc750ef2da [apps/shared/curve_view] Clean clipping of the line segment for straightJoinDots 2019-07-30 14:15:08 +02:00
Ruben Dashyan
79dbdaa98c [apps/shared/curve_view] stampAtLocation: clarify stampRect and shiftedMask 2019-07-30 14:15:08 +02:00
Ruben Dashyan
75a273be2a [apps/shared/curve_view] Gather calls to stampAtLocation in jointDots 2019-07-30 14:15:08 +02:00
Ruben Dashyan
6f5b551104 [apps/shared/curve_view] Gather NAN detections in jointDots 2019-07-30 14:15:08 +02:00
Ruben Dashyan
0d82e40b1c [apps/shared/curve_view] Clean straightJoinDots 2019-07-30 14:15:08 +02:00
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