Commit Graph

214 Commits

Author SHA1 Message Date
Ruben Dashyan
413397652c [apps/*/expression_model_list_controller] Refactor modelStore()
Its return type is covariant. Get the ExpressionModelStore from the App.
2019-09-20 17:11:42 +02:00
Léa Saviot
22c7fb440e [apps/graph] DefDomain depends on angleUnit
When automatically setting the definition domain of a non-cartesian
curve, take into account the angle unit:
0..360 for Degrees,
0..400 for gradians...
2019-09-20 11:42:45 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Léa Saviot
0d2c20bceb [apps/graph] Fix function renaming
Scenario: Funciton renamed f123456 would be saved as f12345 due to
buffer size problem
2019-09-09 13:30:09 +02:00
Léa Saviot
d9f650d283 [ion/utf8_helper] HasCodePoint 2019-09-09 13:30:04 +02:00
Léa Saviot
8fdad3aed8 [apps/graph] Remove unneeded vertical scroll bar 2019-09-05 17:32:47 +02:00
Léa Saviot
3014e8c3ca [apps/graph] Shorter messages and margins
To fit if the interval is -9.9E30..-9.8E29, in the parameter controller
2019-09-05 17:19:16 +02:00
Émilie Feral
aa1d1165e8 [apps/graph] Fix function name edition: the cursor is positioned right
after the '(' (bug due to the fact that θ takes 2 bytes)
2019-09-05 09:37:23 +02:00
Émilie Feral
ed2a15dd03 [apps/graph] Enable infinite values as domain bounds for cartesian
functions
2019-09-03 16:21:28 +02:00
Émilie Feral
dba9912bbe [apps/graph] ListParameterController: display only 2 significant digits
on the definition domain
2019-09-03 16:21:28 +02:00
Émilie Feral
3a47793f2d [apps/graph] DomainParameterController is a floatParameter controller
instead of a double one
2019-09-03 15:34:35 +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
Léa Saviot
c6fb5e5dfa [apps/graph] Pop twice after plot type change 2019-09-02 11:12:18 +02:00
Léa Saviot
8b7e243d2d [apps/graph/list] Handle right event to open submenu 2019-08-30 16:05:29 +02:00
Émilie Feral
99a6451074 [apps/graph/list] DomainParameterController: fix bug (use of out of
scope variable)
2019-08-30 10:40:58 +02:00
Émilie Feral
8c7819306a [apps/graph/list] Add a row to the ListParameterController to set the
function domain
2019-08-29 17:45:30 +02:00
Émilie Feral
c8928adbdb [apps/graph/list] Create a DomainParameterController to choose the
domain range
2019-08-29 17:44:46 +02:00
Émilie Feral
6c06e74dac [apps/graph/list] Add a margin after Curve Type name and change
I18n::Message names to avoid duplicates
2019-08-29 15:54:52 +02:00
Ruben Dashyan
998a80fbcc [apps/graph/list] Add TypeParameterController to ListParameterController 2019-08-29 11:07:22 +02:00
Ruben Dashyan
9b52d0d1f9 [apps/graph/list] Define TypeParameterController class 2019-08-29 11:07:22 +02:00
Ruben Dashyan
5a79139fb7 [apps/graph/list] Define PlotTypeHelper 2019-08-29 11:07:22 +02:00
Ruben Dashyan
56c6bb9e19 [apps/graph] ListController: simplify
ListController::textFieldDidFinishEditing
2019-08-29 11:07:22 +02:00
Ruben Dashyan
b665e841ad [apps] Remove arg parameter in Shared::Function::nameWithArgument and Shared::CartesianFunction::derivativeNameWithArgument 2019-08-29 11:07:21 +02:00
Émilie Feral
12060e2ae7 [escher] TextField: all text fields use the same draft text buffer 2019-08-13 09:44:00 +02:00
Léa Saviot
c2b4d2b760 [strlcpy] Assertions on len parameter 2019-08-08 17:22:06 +02:00
Émilie Feral
7a4ee746b2 [escher] TextField: call reinitDraftBuffer after edition is complete to
avoid erasing text that is required later.

Fix bug: OK handling on function list in linear mode did not copy the
function expression into the textfield before editing
2019-07-30 11:47:42 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Ruben Dashyan
055d601854 [apps] Define TextFieldDelegate::textFieldDelegateApp() directly from ::app() 2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a [apps] Get rid of App casts 2019-07-19 15:06:25 +02:00
Ruben Dashyan
eb3da7f395 [apps] Substitute "app()->container()" by "AppsContainer::sharedAppsContainer()" 2019-07-19 15:06:25 +02:00
Émilie Feral
336c1c8d73 [apps/graph][apps/sequence] ListParameterController is a
ListViewDataSource instead of a SimpleListViewDataSource (indeed, each
cell has a specific type)
2019-05-03 15:53:20 +02:00
Émilie Feral
578c65d5dd [shared] Clean class names containing storage 2019-05-03 15:53:20 +02:00
Émilie Feral
57da4ea618 [shared] Rename classes:
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-05-03 15:53:20 +02:00
Émilie Feral
15a4072fdc [ion] Move Storage extensions declaration in Storage class 2019-05-03 15:53:20 +02:00
Émilie Feral
44a5d02ddf [shared][graph] Factorize ListController baseline computation in
StorageFunctionListController
2019-05-03 15:53:20 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Romain Goyet
4f2c7a3763 [build] Update the i18n processing to fit the out-of-tree build 2019-03-06 15:00:59 +01:00
Léa Saviot
ab4b4da069 [apps/graph] Add assertions 2019-01-10 11:42:04 +01:00
Léa Saviot
f962e92316 [apps/graph] Fix wrong assertion 2019-01-10 11:42:04 +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
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
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
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