Commit Graph

43 Commits

Author SHA1 Message Date
Gabriel Ozouf
d022231a3a [statistics] Fix use of uninitialized variable 2021-01-05 10:12:02 +01:00
Gabriel Ozouf
d26ba0250b [statistics] Missing include 2020-12-29 13:34:35 +01:00
Gabriel Ozouf
5ce5f4fbac [statistics] Fix glitch with histogram parameters
In the window to change the histogram parameters, it was possible to set
a rectangle width that was considered valid, but would make the starting
abscissa invalid, while triggering no error message. The message would
only show if the user closed the window and opened it again.
e.g. : Set a series with only one value 1e10
       Change its starting abscissa to 0
       Change its rectangle width to 1, confirm and close the menu
       Re-open the menu, a message appears, and stays onscreen when
leaving the menu.
2020-12-29 09:50:24 +01:00
Hugo Saint-Vignes
b2d7ee800a [apps/statistics] Add pop-up to confirm parameter discard
Change-Id: I0d0d7dca0e167cfcb40f4b26d8208e12056ebf40
2020-11-04 15:58:30 +01:00
Hugo Saint-Vignes
a922e44558 [apps/statistics] Add temporary parameters for histogram
Change-Id: I67c21d59263b7eddd7ee8ee9e61c168e6b013d13
2020-11-04 15:58:30 +01: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
Émilie Feral
6de497c2ed [apps/shared] Templatize FloatParameterController to handle float/double
parameters.

Fix bug: when entering "e^234" as a parameter of a model keeping floats,
the FloatParameterController would accept the number (because e^234 is
defined in double) and store an undefined value in the model (because
e^234 is undefined in float).
2019-09-02 16:55:39 +02:00
Émilie Feral
12060e2ae7 [escher] TextField: all text fields use the same draft text buffer 2019-08-13 09:44:00 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02: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
6d9f0c0f0b [apps] Get rid of DynamicViewController in FloatParameterController 2018-09-11 11:32:29 +02:00
Léa Saviot
70ad21232d [apps/shared] FloatPairStore -> DoublePairStore 2018-06-11 13:58:25 +02:00
Léa Saviot
bb2921054e [apps/statistics] Clean HistogramParameterController 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
57d4f239a2 [apps] In statistics, forbid min value that makes the number of bars
explode

Change-Id: Ia8c97a1c0f7099750ac17faaea7bf47fa5530966
2017-12-04 17:57:24 +01:00
Émilie Feral
67e68e145f [apps/statistics] Avoid infinite loop in histogram
Change-Id: Ifd106d76628fe149c970f365eb0a92bc302f3b13
2017-08-25 11:20:49 +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
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
aebd277c59 [apps/statistics] Fix bug
Change-Id: I4513543c4d549bab2df4fb35d9618c91b0ee8f57
2017-05-10 16:30:45 +02:00
Émilie Feral
62c93e49a6 [apps] AppsContainer does not own the apps but a pointer to the apps
Change-Id: I9b6787be2cd143b52fd8dd60f3528fed2f74e4bb
2017-05-03 15:32:54 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
2017-05-03 14:22:51 +02:00
Émilie Feral
f374f68b07 [apps/statistics] Forbid to set first drawn bar to high (where no bars
are drawn after)

Change-Id: Ib3fc5073d004abc4a3461a74bf2a6381f54d3aa2
2017-05-03 10:22:01 +02:00
Émilie Feral
9ebe2d5d62 [apps/statistics] Forbid to set histogram paramaters which would draw
too
many bars

Change-Id: I94c79a7e91ff02510eb5b00039a27ccdfc181d91
2017-05-03 10:22:01 +02:00
Émilie Feral
7715da8e36 [apps/shared] In float parameter controllers, back has the same
consequence as 'validate'

Change-Id: Id45f824c50af2f6e47be5abd9115d98971a1e073
2017-04-26 09:39:14 +02:00
Émilie Feral
54c5f4dcda [apps/shared] Make the float parameter controllers a dynamic controller
view

Change-Id: I216b7f6df15e5a406624ce3c1b0e892d0f871a6b
2017-04-24 14:37:27 +02:00
Émilie Feral
dc6acc0d48 [apps/shared] Clip displayed range in graph view in interactive curve
view range

Change-Id: I4654a1f9c06420d6ade8a86a13c0d89f025f324f
2017-03-20 14:55:59 +01:00
Émilie Feral
1f21251011 [escher] Change name: pointer->message
Change-Id: I0bd7a7d8da047b03342bec1ff31f29ad7efcc2f6
2017-03-16 15:12:12 +01:00
Émilie Feral
adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00
Émilie Feral
e7abdbe2e3 [apps/shared] In float parameter controllers, add a ok button
Change-Id: I6063afd5ebc9bcb0bcddc13e42a91d029c4bd831
2017-03-16 15:12:11 +01:00
Émilie Feral
f636974c0f [apps/statistics] Typo
Change-Id: Id980ccb61aec429fa2e1e81b04a83b0b9ba9d744
2017-03-07 15:03:11 +01:00
Émilie Feral
2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00
Émilie Feral
23026b6718 [apps/shared] Namespace shared
Change-Id: I6dec7ce900bb4e801a25c567fe5e242cb744cf29
2017-02-13 17:15:06 +01:00
Émilie Feral
ea96360388 [apps/statistics] Correct language typo
Change-Id: Ib8b3257abae192cefbc7d03bef36d3413a8b7574
2017-01-15 20:04:58 +01:00
Émilie Feral
affda5eae9 [apps] Modular reimplementation of application models (stores and
ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
2017-01-10 13:35:19 +01:00
Émilie Feral
b17222112a [apps] Change model data -> float pair store.
Change-Id: I72d5291f3168f2588e2a955476724ce95e32e6f5
2017-01-09 15:08:56 +01:00
Émilie Feral
aa91ebfb14 [apps] Delete useless obsoletfunction in float parameter controller
Change-Id: I2421de22519aacc2ef329cca12dc6fa3b6ad845d
2017-01-09 15:08:55 +01:00
Émilie Feral
95daa6ccc0 [apps/statistics] Unable the user to set the bar width with a INF/ NAN
value

Change-Id: I42963c034a269971c332888839b940ea9bdec3c1
2017-01-09 15:08:54 +01:00
Émilie Feral
fecf0eb3a5 [apps/statistics] Change name: barStart -> firsBarAbscissa
Change-Id: Ia5d39ff3d4b8539b9028afd55476a0d310578dde
2017-01-09 15:08:54 +01:00
Émilie Feral
fd8613ac7a [apps/statistics] Redesign data API with Romain
Change-Id: I666125ae85e04311806379a4ec2255c256f253f2
2017-01-09 15:08:53 +01:00
Émilie Feral
3c7ac73c5e [apps/statistics] Throw an error when the user set a negative value as
bin width

Change-Id: I0203ce403e469f4616af74399e451f6ed41d3024
2017-01-09 15:08:53 +01:00
Émilie Feral
7224a7b16c [apps/statistics] Create a class Histogram parameter controller
Change-Id: I269ef1faa0aaecbd6d328ab0985dd428ae387702
2017-01-09 15:08:53 +01:00