Commit Graph

7312 Commits

Author SHA1 Message Date
Léa Saviot
cea413e91d [apps] Fix Orthonormal setting in graphs
It was not perfectly orthormal.
2019-01-10 11:42:02 +01:00
Léa Saviot
020e459379 [apps] Clean shared/interactive_curve_view_range.cpp 2019-01-10 11:42:02 +01:00
Léa Saviot
c50aba1873 [apps] Clean shared/initialisation_parameter_controller.cpp 2019-01-10 11:42:02 +01:00
Léa Saviot
cf79795540 [apps] Fix blob left of screen when drawing curves
Try for instance f(x)=cos(x) in Graph
2019-01-10 11:42:02 +01:00
Léa Saviot
058b49a063 [apps/Seq/Reg] Do not pan to cursor if no yAuto 2019-01-10 11:42:02 +01:00
Léa Saviot
18381fd334 [apps] Add FLT_EPSILON in float comparisons in interactive_curve_vw_rge
This fixes the removal of yAuto when displaying the function f(x)=cos(x)
2019-01-10 11:42:02 +01:00
Léa Saviot
303ab7f009 [apps/graph] Clean code in graph/graph_controller.cpp 2019-01-10 11:42:02 +01:00
Léa Saviot
37ac12b1da [apps/graph] When changing the window manually, do not pan to cursor 2019-01-10 11:42:02 +01:00
Léa Saviot
531b555949 [apps/sequence] Fix method that should be virtual pure
The following scenaro crashed in DEBUG=1 and did not resize the window
correctly in DEBUG=0.
Got to sequence
u(n)=n
Go to sequence/graph
Remove yAuto
Go to sequence/list
v(n) = cos(n)
remove u(n)
Go to sequence/graph
2019-01-10 11:42:02 +01:00
Léa Saviot
de3d200b81 [apps/graph/reg/seq] Do not switch on y auto each time graph appears 2019-01-10 11:42:02 +01:00
Léa Saviot
19e8b2ee1c [apps] Fix InteractiveCurveViewController::addMargin 2019-01-10 11:42:02 +01:00
Léa Saviot
404db60a3d [apps/shared] Code cleaning and inlining 2019-01-10 11:42:02 +01:00
Léa Saviot
29ef8c6d23 [apps/solver] Solutions are indexed from 1, not 0 2019-01-10 11:42:02 +01:00
Léa Saviot
e37a4167b9 [apps/sequence] Add margin to sequence name 2019-01-10 11:42:02 +01:00
Léa Saviot
3595a8e628 [apps/sequence] Align sequence title and expression baselines 2019-01-10 11:42:02 +01:00
Léa Saviot
64446f24e6 [apps/graph] Increae horizontal margin of function name in list 2019-01-10 11:42:02 +01:00
Léa Saviot
0a43cdda7e [apps/graph] Horizontal alignment is 1.0f when editing function name 2019-01-10 11:42:02 +01:00
Léa Saviot
964703bb03 [apps/graph] Increase name column width to max when editing function name 2019-01-10 11:42:02 +01:00
Léa Saviot
6ba70c332b [apps/graph] Fix redrawing bugs due to missing memoization reset 2019-01-10 11:42:02 +01:00
Léa Saviot
37401a5e59 [apps/graph] Add margin between function name and equal 2019-01-10 11:42:02 +01:00
Léa Saviot
6e77bb4123 [apps] Revert Equal after function name 2019-01-10 11:42:02 +01:00
Léa Saviot
ff33ad3ad1 [apps] In FunctionTitleCell, draw the equal separately
This way, we can better manage the margins around the equal
2019-01-10 11:42:02 +01:00
Léa Saviot
738d21cc2b [apps/graph] Align function name and expresion baselines 2019-01-10 11:42:02 +01:00
Léa Saviot
569e0e884e [apps/graph] Memoize baselines in functions list 2019-01-10 11:42:02 +01:00
Léa Saviot
9b9a0aa009 [apps/graph] Add scroll indicators in funcitons list 2019-01-10 11:42:02 +01:00
Léa Saviot
8e8d99e8e9 [apps/graph] Do not draw the vertical separator in functions list 2019-01-10 11:42:02 +01:00
Léa Saviot
9f6ca489ce [apps/graph] Align the function name right 2019-01-10 11:42:02 +01:00
Léa Saviot
c7e04195c3 [apps/graph] Don't draw a separator between function name and value 2019-01-10 11:42:02 +01:00
Léa Saviot
348c5c0dae [apps/graph] Add equal after function name 2019-01-10 11:42:02 +01:00
Léa Saviot
ff1c137fe1 [apps/sequence] Add scroll indicators in sequence list 2019-01-10 11:42:02 +01:00
Léa Saviot
b8b4d481b5 [escher] Use the vertical alignment in ExpressionView 2019-01-10 11:42:02 +01:00
Léa Saviot
d87c0669cb [apps/sequence] Fix title cell alignments
Add margin right of "un="
Align the text vertically so that the equal is vertically centered in
the cell. This makes the left and right cell baselines be approximately
at the same level for basic sequences definition (un = 1, un=1/2, ...)
2019-01-10 11:42:02 +01:00
Léa Saviot
0a9edf8a43 [apps/sequence] Add cheat margin between sequence title and equal 2019-01-10 11:42:02 +01:00
Léa Saviot
11db7d5257 [apps/sequence] Remove equal char in sequence parameters 2019-01-10 11:42:02 +01:00
Léa Saviot
d3cae9d1aa [apps/sequence] Harmonize row height in sequence list 2019-01-10 11:42:02 +01:00
Léa Saviot
17da615a54 [apps/sequence] Don't draw a separator between sequence name and value 2019-01-10 11:42:02 +01:00
Léa Saviot
3b2eaa5dea [apps/sequence] Sequence title cells are aligned to the right 2019-01-10 11:42:02 +01:00
Léa Saviot
55de9ab111 [apps/sequence] Add '=' after sequence titles 2019-01-10 11:42:02 +01:00
Léa Saviot
f470a99081 [poincare] Multiplications are collapsed in fractions
For instance, typing 3*2 the '/' creates the fraction (3*2)/
Before, it would only divide the '2'
2019-01-10 11:42:02 +01:00
Léa Saviot
17e7d36009 [apps/code] If EPSILON_GETOPT, auto import scripts 2019-01-09 16:13:46 +01:00
Léa Saviot
1c306658ce [apps/code] Fix Python environment loading order 2019-01-09 16:13:46 +01:00
EmilieNumworks
bfb5826a1d Merge pull request #748 from boricj/python_turtle
[python] Turtle module
2019-01-08 14:58:09 +01:00
Léa Saviot
4f4ae4e0f7 Merge branch 'master' into python_turtle 2019-01-08 14:32:43 +01:00
Léa Saviot
58f94f5e5f [apps/code] Check that app can be exited before switching to DFU
This fixes the following crash: create a script which contains only
"input()". Execute it, then while in the input, plug in the calculator.
When un-plugging it, the device crashes.
2019-01-07 13:36:01 +01:00
Léa Saviot
1782326ed8 [apps/code] Clean ConsoleController code 2019-01-07 13:36:01 +01:00
Léa Saviot
33072eb9b1 [apps/code] Add some comments 2019-01-07 13:36:01 +01:00
Léa Saviot
8830821d0e [apps/code/python] Inline and indent some code 2019-01-07 13:36:01 +01:00
Léa Saviot
9b07f1936e [apps/code] Squares script template: start by resetting the turtle 2019-01-03 15:28:55 +01:00
Léa Saviot
384fa04798 [apps/code] Change the default scripts: squares instead of factorial 2018-12-27 17:21:10 +01:00
Léa Saviot
03f300a754 [python/turtle] Add showturtle and hideturtle to the toolbox 2018-12-27 17:09:45 +01:00