Commit Graph

304 Commits

Author SHA1 Message Date
Émilie Feral
7ea0dbeb56 [apps] Shared: Move part of the implementation of TermSumController to
shared (Integral Graph Controller) and improve bound edition in
TermSumController.
2018-01-30 18:19:27 +01:00
Émilie Feral
7ce68d0a11 [apps] Graph: break GraphController into GraphControllerHelper and
GraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
85abdbcafb [apps] Shared: Break function_graph_controller into 2 classes: function_banner_delegate and function_graph_controller 2018-01-30 18:19:27 +01:00
Émilie Feral
323ecc72c5 [apps] Shared: break InteractiveCurveViewController into 2 classes (to
shared the implementation of Zoom in/out and MoveCursorHorizontally)
2018-01-30 18:19:27 +01:00
Émilie Feral
d1808ae26f [apps] Graph: change banner view when displaying Tangent in graph view 2018-01-30 18:19:27 +01:00
Émilie Feral
f19e31f4cd [apps] Specialize GraphView in Type (Tangent, Default ...) instead of
GraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
a6050fda55 [apps] Shared: Factorize code: all FunctionGraphView have a member
indicating the selected function
2018-01-30 18:19:27 +01:00
Émilie Feral
0dec52a708 [apps] Graph: enable to specialize GraphController in different types
(Default, Tangent ...)
2018-01-30 18:19:27 +01:00
Émilie Feral
6d7d957c8f [apps] Graph: add a submenu calculation parameter controller in the
curve parameter controller
2018-01-30 18:19:27 +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
59fdcde548 [poincare] Avoid returning partial simplification when the
simplification process has been interrupted
2018-01-30 16:17:03 +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
509ee874b4 [apps] In sequence: enable to change initial sequence index 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
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
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
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
15610064fa Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Émilie Feral
db35fc1d72 Merge branch 'cas_with_python' into python_console
Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
2017-12-01 17:29:55 +01:00
Léa Saviot
e43bbd38f2 [escher] Fixed TextField bug.
The Statistics apps crashed when navigating the Data table.
 -> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
 -> Changed textLength() to draftTextLength().

Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +01:00
Léa Saviot
e6b4d07cb6 [code] Dynamic toolbox that displays script functions and variables.
Change-Id: Id1494580b3832540633d3aefaf04710d21e0a44c
2017-12-01 12:06:05 +01:00
Émilie Feral
bf2a26d90e [apps] In calculation, do not accept expression whose corresponding
texts is too long

Change-Id: Ic96e5ed42e249d43e21241f8e1a7b1e873f3cad3
2017-11-27 12:07:35 +01:00
Émilie Feral
2c06727f36 [apps] Simplify expressions in sequence and function applications
Change-Id: I2708934d3b5c90e8692e50d939b3a13028b8615e
2017-11-24 14:39:06 +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
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Léa Saviot
f7a6e615ca [code] The cursor in a toolbox command does not go before a point.
The cursor now goes either after the first open parenthesis or at the
end of the command.
Fixed z.real and z.imag.

Change-Id: I46ca3be0415832fd91273ca7fed12ed3d6f125dc
2017-11-21 17:37:48 +01:00
Émilie Feral
35b979798d [escher] Optimize redrawing when changing features in cells (color,
highlight, even)

Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
2017-11-21 17:37:25 +01:00
Émilie Feral
6c51c584f2 [apps] Change Calculation to hold an exact and an approximate output
Change-Id: I1805839e17cd42b82f06ce0a320d20b49cd2a6cd
2017-11-21 17:37:25 +01:00
Léa Saviot
57633829a9 [code] Split the Menu Controller in two columns.
The scripts names are on the right and open the script edition.
The left cells open the script options.

Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
2017-11-17 14:05:23 +01:00
Léa Saviot
4194165217 [apps] Fixed size_t / int comparison warnings.
Change-Id: I08bae0d687a52d708053c4279f68b42c5bb5d180
2017-11-17 11:59:50 +01:00
Léa Saviot
8668de21a1 [code] MathToolbox cleaning.
Removed some constants by computing the text to insert in the textfield from the command
with arguments. Used the TextToInsertForCommandMessage method from
toolbox_helpers.h.

Change-Id: I864ad886fb74882f476d74160e427595be27df40
2017-11-17 11:59:50 +01:00
Léa Saviot
13bf8c2d62 [code] Python toolbox.
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +01:00
Léa Saviot
95c6d9532b [escher] Fixed TextField.
A TextField delegate should process events before the TextField itself.
EditableCellTableViewController now verifies the position of the cursor to
determine if a Left or Right event should finish the TextField edition.

Change-Id: I6c8e78d6d02c7ab87e7d81770b4242a16fecde32
2017-11-17 11:59:50 +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
Léa Saviot
f1374e584e [apps] Decrease the abscissa column's width 2017-09-29 16:19:54 +02:00
Romain Goyet
bcdad4a5f9 [apps] Use the shared language controller in the settings app 2017-09-28 17:17:27 +02:00
Romain Goyet
cb097abe95 [apps] Split on_boarding/language_controller in two 2017-09-28 17:17:27 +02:00
Émilie Feral
5bce67098b [apps] Clean warnings
Change-Id: I9efc803edac4103faafb264849bdb9283640a52b
2017-09-27 09:46:19 +02:00
Émilie Feral
a5ca0f93bf [poincare] Throw a bison error when functions have wrong number of
arguments

Change-Id: I33f0a9b7cad3b1fde2df25ecfdc568187b79f248
2017-09-22 14:23:15 +02:00
Émilie Feral
23629b0939 [poincare] Restructuration of poincare (no duplication of children
storage)

Change-Id: Ia10c3cc83e10d238750c6954b7c093d26b762c94
2017-09-21 13:49:06 +02:00
Jacob Young
dcbc860b6d Fallback to X in non-graphing apps since x and n are not usable. 2017-09-20 11:08:07 +02:00
Jacob Young
128a6acb32 Fix #72 by choosing what to insert for the [x,n,t] key based on where in the expression the cursor is. 2017-09-20 11:08:07 +02:00
Émilie Feral
0f08546245 [apps/shared] Correct checksum of float_pair_store
Change-Id: I3a050abeaf8e8e0aa4148f71fa7a0a0d4d0f2d8a
2017-08-25 17:42:07 +02:00
Émilie Feral
cf91fb6315 [apps/shared] Fix bug in draw histogram. Do not color excessive bar.
Change-Id: Id6de0136d119874cf71ef5e8a54a210394782d81
2017-08-25 16:54:01 +02:00
Émilie Feral
be8a0c6df3 [apps] Replace sizeInBits>>2 sizeInBits/sizeof(uint32_t) in checksums
Change-Id: I4f96514caa4552d2158bb9ebdc328a6453554934
2017-08-25 14:18:27 +02:00