Commit Graph

1546 Commits

Author SHA1 Message Date
Léa Saviot
fc8cd6c06e [expression_editor/poincare] Move Up in an ExpressionLayout.
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
2018-01-15 11:58:01 +01:00
Léa Saviot
5aa1946796 [expression_editor] Handle navigation events in the controller.
Change-Id: I7f8f2846f7b7ac141e854215edd30e0c078a992c
2018-01-15 11:58:01 +01:00
Léa Saviot
8f6a27bee8 [TO REMOVE] Bigger test case.
Change-Id: I72c0474000aab5eec5ebada2e09c0f7f555c8e2b
2018-01-15 11:58:01 +01:00
Léa Saviot
23d49f768f [expression_editor] Use ExpressionEditorView.
Change-Id: Ib4080fd76f7040be6ad8ebfda10d2e2070c7381c
2018-01-15 11:58:01 +01:00
Léa Saviot
1c6d18afd9 [expression_editor] Scrollable ExpressionView with cursor.
Change-Id: I8f75bcb0be78d8c8901cdad0e85e8463c2ea717c
2018-01-15 11:58:01 +01:00
Léa Saviot
62c8db9799 [expression_editor] The controller has a ExpressionLayoutCursor.
Change-Id: I8a7e35670eeecca5b633bd784b84df7de1e64626
2018-01-15 11:58:01 +01:00
Léa Saviot
4ad3adaab2 [apps/escher] Changed setExpression to setExpressionLayout.
Change-Id: I095a12868fd7eaf8d4eb2408617941a86f43e1ee
2018-01-15 11:58:01 +01:00
Léa Saviot
be9cde8ca4 [expression_editor] Base app for development, to remove later.
Change-Id: I1d5b59f67fd146d2e2917546a7d8b9419a0a7036
2018-01-15 11:57:58 +01:00
MaxBzh
4011290e7a Add Urandom module in Python 2018-01-05 14:28:25 +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
6c070b63fc [apps] Sequence: fix bug due to const char * comparison 2018-01-03 16:16:34 +01:00
Émilie Feral
bf9d9728e8 [apps] Sequence: do not change selection when becoming first responder
but when appearing
2018-01-03 10:36:59 +01:00
Émilie Feral
2452e3c2c1 [apps] Sequence: add forgotten instanciation 2017-12-20 17:41:03 +01:00
Émilie Feral
945d6df444 [apps] Fix typo: Explicite->Explicit 2017-12-20 17:41:03 +01:00
Émilie Feral
509ee874b4 [apps] In sequence: enable to change initial sequence index 2017-12-20 17:41:03 +01:00
Émilie Feral
967e963657 [apps] In sequence: add a message: FirstTermRank 2017-12-20 17:41:03 +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
25a5748f85 [apps] Sequence: add a customizable initial rank in sequence 2017-12-20 17:41:03 +01:00
Émilie Feral
45908263ff [apps] Sequence: add other sequence shortcuts in toolbox call from the
list controller
2017-12-20 17:41:03 +01:00
Émilie Feral
80defaad50 [apps] Sequence: reload table data when displaying the type parameter
controller to update the sequence name
2017-12-20 17:41:03 +01:00
Émilie Feral
d36cfcca51 [apps] In Editable cell table view controller, do not reload all table
data if the table dimensions did not evolve
2017-12-20 17:41:03 +01:00
Émilie Feral
cb754ab6d5 [apps] Sequence: invalidate the context cache when the sequences are
redefined
2017-12-20 17:41:03 +01:00
Émilie Feral
31ceb5ed40 [apps] Sequence: add tests on sequence 2017-12-20 17:41:03 +01:00
Émilie Feral
032cafdb04 [apps] Sequence: enable to defined dependent sequences 2017-12-20 17:41:03 +01:00
Émilie Feral
81e0148325 [poincare] Clean symbols w(n) and w(n+1) are unused 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
Émilie Feral
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
b47cdbb87a [apps] Fix bug in settings: do not set the sub controller table as first
responder when no cell is selected
2017-12-20 17:17:41 +01:00
Émilie Feral
afddb87cd4 [apps] In toolbox helpers, add double single quotes in text from command and
insert cursor in the middle of both
2017-12-18 16:53:12 +01:00
Émilie Feral
7686412266 [apps] In code: add single quote (') in the catalog 2017-12-18 16:53:12 +01:00
Émilie Feral
a0ec589e47 [apps] Graph: all contexts parse x now so no need for a specific one in
graph
2017-12-14 10:52:14 +01:00
Romain Goyet
f574cd9355 [apps] Fix coding style 2017-12-12 10:18:20 +01:00
ydupas
b3f606b9ac Fix: windows simulator: Assert error apps/i18n.cpp:2437 and Toolbox title "Zoom :" #267 (#275)
* Fix: windows simulator: Assert error apps/i18n.cpp:2437 and Toolbox
title "Zoom :" #267
static GlobalPreferences doesn't init on windows platform, move to
static methode sharedGlobalPreferences()

* Keepsafe from static init order fiasco for all
2017-12-12 10:15:41 +01:00
Émilie Feral
9b72bc86fa [apps] In settings, fix bug in setting first controller 2017-12-08 10:28:25 +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