Commit Graph

137 Commits

Author SHA1 Message Date
Émilie Feral
6a2f11ef1b [escher] ExpressionTableCell & ExpressionTableCellWithExpression:
reloadScroll when displaying cell
2020-02-12 15:13:20 +01:00
Émilie Feral
9312d2bd65 [escher] ExpressionTableCell is composed of a ScrollableExpressionView
instead of an ExpressionView
2020-02-12 15:13:19 +01:00
Léa Saviot
fd63f70f6d [apps/variable_box_controller] Fix memoization
There was a broken assertion:
Create at least 7 functions
Go to the calculation app
Open the variable box and delete the last function
2020-01-06 14:18:35 +01:00
Ruben Dashyan
d476e7944d [apps] Move assert to where it matters 2019-09-20 17:11:42 +02:00
Ruben Dashyan
5f9464a548 [apps] In Shared, move cartesian_function.* to continuous_function.* 2019-09-20 17:11:42 +02:00
Ruben Dashyan
df2897925b Rename Shared::CartesianFunction to Shared::ContinuousFunction 2019-09-20 17:11:42 +02:00
Ruben Dashyan
f73c80daa3 [apps] Gather asserts about the size of function name with argument 2019-09-20 17:11:42 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Ruben Dashyan
e385205992 [apps] VariableBoxController gets layouts through GlobalContext::LayoutForRecord 2019-08-29 11:07:21 +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
Léa Saviot
0840ca7a1e [apps/poincare] Move NormalDistribution to Poincare 2019-08-23 13:47:52 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +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
178a064c29 [apps/shared] ExpressionModelHandle: specify the symbol that is turned
into Unknown X in Derived classes
2019-05-03 15:53:20 +02:00
Léa Saviot
4c5251f04f [unicode] Use unicode when dealing with chars - Part 2 2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
bbb10f1993 [ion/kandinsky] Move unicode to ion 2019-05-03 15:53:19 +02:00
Léa Saviot
41afa92f10 [unicode] Use the UTF8Decoder to scan const char * 2019-05-03 15:53:19 +02:00
Léa Saviot
65e5adafac Remove Ion::Charset 2019-05-03 15:53:19 +02:00
Léa Saviot
54b8d07ee3 [apps/variable_box_controller] Fix layout memoization 2019-01-10 11:42:05 +01:00
Léa Saviot
35cc26b68a [apps/variable_box_controller] Shift memoization after deleting item 2019-01-10 11:42:05 +01:00
Léa Saviot
95af0cf231 [apps] Fix cursor position when inserting function in Linear Edition 2018-11-23 12:04:08 +01:00
Émilie Feral
2d36f02053 [apps] VariableBoxController: fix bug in right layouts of variable cells.
When the last dislayed page of VariableBoxController was 'Function', the
next time we displayed the symbol page, the expressions on the right of
cells were false the one of functions.
2018-11-23 12:04:08 +01:00
Léa Saviot
e4c3589829 [apps] Fix display glitch in VariableBoxController 2018-11-23 12:04:06 +01:00
Léa Saviot
eea56488e6 [apps] Fix VarBoxController::viewDidDisappear parent method call order
Before, we tidied the memoization before calling the parent's
viewDidDisappear method. As the parent method needed some cell heights,
it used the VarBoxController memoization, thus re-creating layouts that
would stay in the pool after closing the app.

Scenario:
Go in the Graph app, create f(x) = 1, empty g(x) and h(x), create p(x)
and while editing go in the variable box controller, all the way down,
then hit the Home button.
2018-11-23 12:04:06 +01:00
Léa Saviot
13972caa80 [apps] Inline some code in variable_box_controller 2018-11-23 12:04:06 +01:00
Léa Saviot
b3f5bf13de [apps/escher] Code layouting and typo 2018-11-23 12:04:04 +01:00
Léa Saviot
9ee0f94ba4 [apps] Reload VariableBox cells before displaying them 2018-11-23 12:04:04 +01:00
Léa Saviot
549c9ed1fd [apps] Fix variable box layout memoization
Reset the memoization when changing the variable box tab
2018-11-23 12:04:04 +01:00
Émilie Feral
0cc7052d45 [apps] Fix variable box handle event 2018-11-23 12:04:04 +01:00
Émilie Feral
162df78d69 [apps] VariableBoxController: fix highlighted cell bug 2018-11-23 12:04:03 +01:00
Émilie Feral
ebfa8fb3fa [apps] VariableBoxController: enable to lock pages from deletion 2018-11-23 12:04:03 +01:00
Léa Saviot
19d2cb7cc0 [apps] Add parentheses when selecting a function in VarBoxController 2018-11-23 12:04:03 +01:00
Émilie Feral
04a08087a7 [apps] Fix selection on VariableBoxController when removing rows 2018-11-23 12:04:02 +01:00
Émilie Feral
8e2a30ab8e [graph] Create a static method StorageCartesianFunctionStore::Symbol() 2018-11-23 12:04:02 +01:00
Émilie Feral
4dbd7583e0 [apps] VariableBoxController: use StorageFunction::nameWithArgument to
avoid reimplementing it
2018-11-23 12:04:02 +01:00
Léa Saviot
97cba08b23 [apps] Clean GLobalContext 2018-11-23 12:04:01 +01:00
Émilie Feral
5c30b1a73a [apps] VariableBoxController: memoize layouts 2018-11-23 12:04:01 +01:00
Émilie Feral
a5af87eda0 [apps] VariableBoxController: pop the empty controller before
disappearing
2018-11-23 12:04:01 +01:00
Émilie Feral
7e37b09660 [apps] VariableBoxController: tidy layout before disappearing 2018-11-23 12:04:01 +01:00
Émilie Feral
ef05393c9f [apps] VariableBoxController: add assertion: the record corresponding to
a displayed row is not null
2018-11-23 12:04:01 +01:00
Émilie Feral
2b55ec086a [apps] Display the empty controller when the variable box is empty 2018-11-23 12:04:01 +01:00
Léa Saviot
79e962f459 [poncare/apps] Move GlobalContext from Poincare to Apps::Shared 2018-11-23 12:04:00 +01:00
Émilie Feral
293bc61b49 [apps] VariableBoxController: add "(x)" to function symbols 2018-11-23 12:04:00 +01:00
Émilie Feral
429c797a27 [apps] VariableBoxController: fix viewWillAppear to reset m_stateStack 2018-11-23 12:04:00 +01:00
Émilie Feral
61d85f3e4a [apps] VariableBoxController: fix expressionForIndex 2018-11-23 12:04:00 +01:00
Émilie Feral
991004ed6e [apps] VariableBoxController: truncate extension before displaying
symbols
2018-11-23 12:04:00 +01:00
Émilie Feral
286530f78f [apps] First version of VariableBoxController 2018-11-23 12:04:00 +01:00