Commit Graph

241 Commits

Author SHA1 Message Date
Romain Goyet
84561a929f [escher] Clean the ScrollView, TableView and SelectableTableView constructors 2018-04-18 18:08:07 +02:00
Émilie Feral
576caa039f [apps][escher] Add methods 'handleEventWithText' in TextField and
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +01:00
Émilie Feral
963d2a57e3 [apps] Probability: special cases when inversing discrete law 2018-03-22 10:57:40 +01:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
ef8f5e07c2 [apps] In CurveView, replace the virtual method evaluateModelWithParameter by a function given as parameter (to be able to call Curve view methods with different implementation of evaluateModelWithParameter) 2018-01-30 18:19:27 +01:00
Émilie Feral
ea28475432 [apps] Probability: fix bug in the calculationcontroller due to the wrong implementation of columnWidth
The column width implementation required that a cell view was used only
to display a cell of the table which was not the case.
2018-01-30 18:09:59 +01:00
Émilie Feral
2a207e59ac [apps] Probability: fix scrolling in calculation cells 2018-01-30 18:09:59 +01:00
Émilie Feral
5d8256435e [apps] Probability: fix bug; in calculation controller, when reloading cells after editing textfield, do not reload selection (it corrupts the responder chain if the first reponder was a modal view for ex) 2018-01-30 18:09:59 +01:00
Émilie Feral
cd93f827c1 [apps] Probability: improve precision of inverse normal probability
using erfInv
2018-01-04 15:48:06 +01:00
Émilie Feral
9506f22576 [apps] Probability: add erfInv function and tests 2018-01-04 15:48:06 +01:00
Émilie Feral
faac0d7a58 [escher] Change TableView::size() to
TableView::minimalSizeForOptimalDisplay()
2018-01-04 15:48:06 +01:00
Émilie Feral
da319723a3 [apps] Probability: improve precision of normal law density 2018-01-04 15:48:06 +01:00
Émilie Feral
e0b9db43ab [apps] Probability: order subviews to draw the law curve at last
(avoiding visible noise)
2018-01-04 15:48:06 +01:00
Émilie Feral
fa127ced4e [apps] Probability: clean table margins (replace weird cell margins by
table margins)
2018-01-04 15:48:06 +01:00
Émilie Feral
30e6d0b3f0 [apps] Probability: enable to copy content of non-editable calculations 2018-01-04 15:48:06 +01:00
Émilie Feral
26bbfa85ec [apps] Probability: fix bug in layout (the textfield was moving when
adding characters)
2018-01-04 15:48:06 +01:00
Émilie Feral
fd06d428e5 [apps] Redesign Probability Calculation page 2018-01-04 15:48:06 +01:00
Émilie Feral
e8793c429c [escher] In textfield: when calling textFieldDidHandleEvent, precise if
there was any modification in the text
2018-01-04 15:48:06 +01:00
Émilie Feral
c7b9b21074 [apps] Probability: optimize view reloading in calculation page 2018-01-04 15:48:06 +01:00
Émilie Feral
8f4e9b9656 [apps] Probability: redesigning the calculation controller (for future
scrolling purpose)
2018-01-04 15:48:06 +01:00
Émilie Feral
6ccabe2d3b [apps] Probability: fix bug: for discrete laws, when inversing
probability, round to the closest existing probability (instead of the
closest smaller)
2018-01-04 15:48:06 +01:00
Émilie Feral
6f7e1447ed [apps] Probability: display 7 significative numbers in calculation
results
2018-01-04 15:48:06 +01:00
Émilie Feral
0d3d7f3587 [apps] Probability: do not round the calculation results with 3 decimals 2018-01-04 15:48:06 +01:00
Émilie Feral
07054835b4 [apps] Probability: update the size of calculation boxes with their
content
2018-01-04 15:48:06 +01:00
Émilie Feral
83b5798850 [apps] Factorize code: textFieldDidReceiveEvent implementation is
identical for all parameters controller
2017-12-20 17:41:03 +01:00
Émilie Feral
2c85fe88a5 [apps] Probability: textfields should finish editing when the cursor is
on one edge of the field
2017-12-20 17:17:51 +01:00
Jean-Baptiste Boric
59e5750463 [apps] Extract shared translations from apps
This commit can be regenerated with the following shell snippet:

```
for i in UndefinedValue ForbiddenValue Goto ValueNotReachedByFunction Initialization Trigonometric RoundAbscissa Orthonormal DefaultSetting Axis Zoom GraphTab IntervalSet XStart XEnd Step Plot DisplayValues ActivateDesactivate NoFunctionToDelete Language FunctionOptions ClearColumn ColumnOptions DataTab CopyColumnInList FunctionColumn Move Or ValuesTab Goto ToZoom HardwareTestLaunch1 HardwareTestLaunch2 HardwareTestLaunch3 HardwareTestLaunch4 ActiveExamModeMessage1 ActiveExamModeMessage2 ActiveExamModeMessage3 ExitExamMode1 ExitExamMode2 Sci Rad Deg
do
  move=$(grep "^$i = " -r *)

  if [ -n "$move" ]
  then
    echo "$move" | while read -r item
    do
      file=$(echo "$item" | cut -f1 -d:)
      lang=$(echo "$file" | cut -f2 -d.)
      translation=$(echo "$item" | sed -e 's/^[^:]*://')
      label=$(echo "$translation" | sed -e 's/=.*//')
      sed -i "/^$label/d" "$file"
      echo "$translation" >> "apps/shared.$lang.i18n"
    done
  fi
done

for i in apps/shared.*.i18n
do
  sort $i -o $i
done
```
2017-12-07 09:20:31 +01:00
Émilie Feral
15610064fa Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Émilie Feral
c545a23ec6 [kandinsky] Fix draw rect+change name: drawRect->strokeRect
Change-Id: I1c59e34b126aa54819e399d095499758b9e73125
2017-12-06 14:49:53 +01:00
Émilie Feral
b7a74c2c46 [apps] In Probability: fix bug when a = 0 and b = 1E-43 < FLT_EPSILON
Change-Id: Ib4fd405178fa0d7e8571f2da14e177fe67e3c96d
2017-12-05 12:10:10 +01:00
Émilie Feral
fda382cc0d [poincare] Change name: evaluate->approximate
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
76cbd2678d [poincare] Change names: approximate->approximateToScalar
Change-Id: I701451b35909bb577dd729e0ea76a405b9543f23
2017-11-24 12:06:35 +01:00
Léa Saviot
a14cfd0aea [code] Script names are displayed and can be edited.
Change-Id: I5acc468920b66673e78da130bf90a74d0c062211
2017-11-17 11:59:50 +01:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 2017-10-13 18:08:15 +02:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Romain Goyet
e6ed6c74a4 [apps] Split the i18n in multiple files
A Python script aggregates all i18n files and merges them.
We now can pick a list of locales to build in EPSILON_I18N_LANGUAGES
2017-09-29 17:08:46 +02:00
Romain Goyet
dcdd27d6bf [apps] Apps can be picked and ordered at compile-time 2017-09-20 11:18:39 +02:00
Émilie Feral
8c86b62df6 [apps/proba] Avoid hanging in normal law: forbid values <= MIN_FLOAT
Change-Id: Id6c7816e9b6726e4732b6eae5eb1a5b63d019196
2017-08-28 11:51:17 +02:00
Émilie Feral
90891dabe8 [apps/proba] Avoid using unitialize values (valgrind)
Change-Id: I5c15cc0db7eb5cbcd23efbb59f2bd35366081b9f
2017-08-25 18:16:13 +02:00
Émilie Feral
3faf0b55b2 [apps/probability] Fix bug in poisson law
Change-Id: I9bfc59ab7a07eb2658081abbf44f3ff127d0218a
2017-08-25 11:20:49 +02:00
Émilie Feral
48c0cf2d8d [apps/probability] Fix bug in authorized parameters
Change-Id: I53cccb0995af7b4a6b066218185f35e96d4ae835
2017-08-24 14:05:24 +02:00
Émilie Feral
6054f02373 [kandinsky] In KDRect, right and bottom Points are included in the rect
Change-Id: I36fd049a808d9ab2e6cb0de5b366a9645a403ef1
2017-08-17 16:21:22 +02:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +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
f68b40d99d [apps/proba] Enable to inverse finite integral calculation for normal
law

Change-Id: I018083d9ca0c79de7d9258888b813e7dedc071b5
2017-07-28 11:25:12 +02:00
Émilie Feral
f48d65e85f [apps/probability] Handle more events on calculation page
Change-Id: I752d79aed23061d3d86134d234024ca8ffd1733d
2017-07-28 11:12:53 +02:00
Émilie Feral
2468a6d9c3 [apps/shared] Correct drawHistogram
Change-Id: If2262489b01ab4725a2e3d553b7381c4777807a1
2017-07-28 10:40:05 +02:00
Émilie Feral
6510fafe77 [apps/proba] Add a new calculation for discrete laws
Change-Id: I581d7871b6340a23c99379a5cca7fd0874e943d0
2017-07-28 10:40:05 +02:00