Commit Graph

98 Commits

Author SHA1 Message Date
Ruben Dashyan
766951b943 [apps/statistics/histogram_controller] Refactor initRangeParameters and initBarParameters 2019-08-29 15:13:41 +02:00
Léa Saviot
0840ca7a1e [apps/poincare] Move NormalDistribution to Poincare 2019-08-23 13:47:52 +02:00
Ruben Dashyan
62cec10b46 [apps] Clean unnecessary AppsContainer class declarations and header inclusions 2019-07-19 15:06:25 +02:00
Léa Saviot
a886c0fb32 [apps/shared] Share PadWithSpaces method 2019-06-14 09:31:46 -04:00
Léa Saviot
78bdd0e04b [apps/statistics] Fix banner view
Scientific mode, Data:
10 - 1
20 - 5
30 - 4
40 - 3
50 - 1
Display the histogram, there are problems in the banner view
2019-06-13 10:37:47 -04:00
Ruben Dashyan
355e42734d [apps] Replace BannerView::set(Legend|Message)AtIndex by getters 2019-05-03 15:54:21 +02:00
Ruben Dashyan
07a9116147 [apps/statistics] Remove public MultipleDataView::editableBannerView() getter
Instead use existing protected virtual bannerView() getter. The reason
why both existed is that one was const but not the other. A const
variant is needed only exceptionally: in bannerFrame() which is called
by drawRect().
Moreover, bannerView() is virtual and is overridden in its derived
classes using co-variant return types. That fact is important in the
following commit.
2019-05-03 15:54:21 +02:00
Léa Saviot
4c5251f04f [unicode] Use unicode when dealing with chars - Part 2 2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
f2310a8814 [apps] Change CurveViewRange::computeGridUnit parameters 2019-01-10 11:42:02 +01:00
Émilie Feral
3f88d631af [statistics] HistogramController: scroll to the selected bar when moving
selection vertically
2018-11-23 12:04:09 +01:00
Émilie Feral
698332c355 [escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Émilie Feral
737393072e [statistics] Fix histogram_controller and multiple_data_view_controller
life cycle (viewWillAppear, didEnterResponderChain)

This fixes the histogram labels when a serie is added
2018-11-15 12:02:21 +01:00
Léa Saviot
5d92f13c26 Clean strlcpy arguments 2018-10-17 11:22:37 +02:00
Émilie Feral
b8af15f1ab [poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +02:00
Léa Saviot
3a3522faef [apps/statistics] Store selected series in snapshot 2018-06-11 13:58:26 +02:00
Léa Saviot
e295dd678e [apps/stats] Fix drawin and reloading 2018-06-11 13:58:24 +02:00
Léa Saviot
c31527c54e [apps/stats] Fix histogram horizontal scrolling 2018-06-11 13:58:23 +02:00
Léa Saviot
f4eb4e3476 [apps/stats] Abstract multiple data view and controller 2018-05-29 15:34:49 +02:00
Léa Saviot
7b37f4d0bc [apps/stats] Remove unnecessary constructor parameter 2018-05-29 15:34:49 +02:00
Léa Saviot
b762471574 [apps/stats] HIstogram::ContentView is MultipleHistogramsView 2018-05-29 15:34:49 +02:00
Léa Saviot
19cc3fd60b [apps/stats] Connect the OK button in histogram 2018-05-29 15:34:49 +02:00
Léa Saviot
cbe9a95472 [apps/stats] Display OK in histogram 2018-05-29 15:34:49 +02:00
Léa Saviot
ac99767a58 [apps/stats] Remove unneeded parameter 2018-05-29 15:34:49 +02:00
Léa Saviot
82a5b9f982 [apps/stats] Fix histogram bar parameters initialization 2018-05-29 15:34:49 +02:00
Léa Saviot
4f0672ba67 [apps/stats] Better margins for histogram label displaying 2018-05-29 15:34:49 +02:00
Léa Saviot
c3b343a108 [apps/stats] Finer auto range and bar parameters
The values are computed so that all bars of all histograms are shown
2018-05-29 15:34:49 +02:00
Léa Saviot
b0076e05cf [apps/stats] Keep displaying histogram axes label when selecting the tab 2018-05-29 15:34:49 +02:00
Léa Saviot
d928fbed78 [apps/stats] Histograms axis labels follow the selection 2018-05-29 15:34:49 +02:00
Léa Saviot
ac59105a46 [apps/stats] Display the labels of the bottom histogram only 2018-05-29 15:34:49 +02:00
Léa Saviot
db94ba351f [apps/stats] Hide the banner view if no histogram selected 2018-05-29 15:34:49 +02:00
Léa Saviot
9c1c16c8dd [apps/stats] Color the histogram 2018-05-29 15:34:49 +02:00
Léa Saviot
8980a7d90a [apps/stats] Fix histogram display if series 0 is empty 2018-05-29 15:34:49 +02:00
Léa Saviot
645fcdfcd8 [apps/stats] Display the banner view 2018-05-29 15:34:49 +02:00
Léa Saviot
620b432dd1 [apps/stats] Remove Histogram settings button 2018-05-29 15:34:49 +02:00
Léa Saviot
86c2b7a365 [apps/statistics] Fix HistogramController::reloadBannerView and initBarParameters 2018-05-29 15:34:49 +02:00
Léa Saviot
f2a3040565 [apps/statistics] Histogram navigation 2018-05-29 15:34:49 +02:00
Léa Saviot
4a89ff4ba5 [apps/statistics] Remove duplicate banner views 2018-05-29 15:34:49 +02:00
Léa Saviot
c84fd45b97 [apps/statistics] Show several histograms 2018-05-29 15:34:49 +02:00
Léa Saviot
2cf34c4cef [apps/statistics] Clean HistogramController 2018-05-29 15:34:49 +02:00
Léa Saviot
11251f03de [apps] Fix Statistics: now displays three series 2018-05-29 15:34:48 +02:00
Émilie Feral
332564318b [statistics] Recompute the histogram range parameters if the store has
changed (even if the bar parameters has not changed, the maximal size
might differ)
2018-05-29 15:34:07 +02:00
Léa Saviot
291958a901 [apps/statistics] Fix buffer overflow in HistogramController.
Change-Id: Idf8f8701ba7b7d18b92dc7b21108387c0fa0aa3a
2018-05-16 15:58:06 +02:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
ff8fe2b498 [apps/statistics] Simplify histogram controller and resolve bugs: with
very large values, casting in float gives approximate values that
trigger bugs

Change-Id: I5aac31ad07f267f1b96ee3406b041e527cf247ba
2017-08-25 17:41:16 +02:00
Émilie Feral
b91455ca71 [apps/statistics] Avoid hanging in histogram controller
Change-Id: I76cecd739db0a13b064eb9c634a4b04376a8cc20
2017-08-25 11:20:48 +02:00
Émilie Feral
f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
337107b26b [apps/statistics] Improve banner view of histogram
Change-Id: I035d2f8b485591571dfd7941238a39162a4de206
2017-06-08 18:30:46 +02:00