Commit Graph

7625 Commits

Author SHA1 Message Date
Émilie Feral
2b55ec086a [apps] Display the empty controller when the variable box is empty 2018-11-23 12:04:01 +01:00
Émilie Feral
944129cf1e [apps] Create a controller VariableBoxEmptyController 2018-11-23 12:04:01 +01:00
Émilie Feral
d60724ef02 [apps] New I18n messages 2018-11-23 12:04:01 +01:00
Émilie Feral
4dda66e58d [escher] AlternateEmptyViewController: give the delegate the opportunity
to choose the view to display when empty
2018-11-23 12:04:01 +01:00
Léa Saviot
1adefc3bc4 [typo] "Desactivate" -> "Deactivate" 2018-11-23 12:04:01 +01:00
Léa Saviot
3d86e0744a [apps] StorageListParameterController keeps a function object, not a pointer
This fixes the activate/deactivate function switch in graph.
2018-11-23 12:04:01 +01:00
Léa Saviot
9a05ab6109 [apps/graph] Fix new model row height 2018-11-23 12:04:00 +01:00
Léa Saviot
f9ce06cc91 [apps] Function metadata are stored in Storage 2018-11-23 12:04:00 +01:00
Léa Saviot
dd0d390a3f [poincare] Fix Expression::ExpressionFromAddress 2018-11-23 12:04:00 +01:00
Léa Saviot
2793a622e2 [apps] Store function metadata in record 2018-11-23 12:04:00 +01:00
Léa Saviot
20e440a216 [apps] Move StorageCartesianFunction from graph to shared 2018-11-23 12:04:00 +01:00
Léa Saviot
79e962f459 [poncare/apps] Move GlobalContext from Poincare to Apps::Shared 2018-11-23 12:04:00 +01:00
Léa Saviot
2442627e3c [apps] Remove attributes from StorageExpressionModel and derivates 2018-11-23 12:04:00 +01:00
Léa Saviot
03bb073ba3 [poincare] Add metadata (color, isActive, displayDerivative) to Function 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
Léa Saviot
907eedd4bc [poincare] Use SymbolAbstract in setExpressionForSymbol 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
cfa3a0c0a6 [apps] Variables Box Controller: i18n 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
da2d6de0c1 [poincare] SymbolAbstract: add a static method TruncateExtension 2018-11-23 12:04:00 +01:00
Léa Saviot
23f62b8dbe [poincare] Factorize approximate<T> in Function 2018-11-23 12:04:00 +01:00
Léa Saviot
6197ebd4c5 [poincare] SymbolAbstract is parent of Symbol and Function 2018-11-23 12:04:00 +01:00
Émilie Feral
c3043f47d4 [apps] Remove unused class 2018-11-23 12:04:00 +01:00
Émilie Feral
286530f78f [apps] First version of VariableBoxController 2018-11-23 12:04:00 +01:00
Émilie Feral
5411fa5279 [poincare] GlobalContext: make the '.func' extension public 2018-11-23 12:04:00 +01:00
Léa Saviot
de592ee5fd [apps/graph] Generate default function names 2018-11-23 12:04:00 +01:00
Léa Saviot
54f9ea08d6 [apps/graph] Adapt Title column width when removing functions 2018-11-23 12:04:00 +01:00
Léa Saviot
7c441de5f5 [apps] Rename Name as Title in StorageFunctionListController 2018-11-23 12:04:00 +01:00
Léa Saviot
eb5c8da0aa [apps] Rename maxNumberOfRows as maxNumberOfDisplayableRows 2018-11-23 12:04:00 +01:00
Léa Saviot
91251b157a [apps/graph] Recompute ntitle comuns width when adding a function 2018-11-23 12:04:00 +01:00
Léa Saviot
2f70ed9136 [apps] The function names column adapts its size to ALL functions
Not just to DISPLAYED functions. This way, there is no width changing
when scrolling, and it is also faster.
2018-11-23 12:04:00 +01:00
Émilie Feral
7035ad01ae [escher] Toolbox: title is a message instead of a const char 2018-11-23 12:04:00 +01:00
Émilie Feral
d8ffb73e69 [escher] Create class ExpressionTableCellWithExpression 2018-11-23 12:04:00 +01:00
Émilie Feral
08439b5c54 [escher] Create nested_menu_controller to factorize toolbox and future
variable_box_controller
2018-11-23 12:04:00 +01:00
Léa Saviot
2e4af43fe3 [apps/graph] Fix computation of function names column
There was a bug for more than 5 rows.
2018-11-23 12:04:00 +01:00
Léa Saviot
96b594b875 [apps/graph] Adapt function name column width to names 2018-11-23 12:04:00 +01:00
Léa Saviot
f62bc3c717 [apps/graph] Fix display of "(x)" after a function name 2018-11-23 12:04:00 +01:00
Léa Saviot
d1d2ea91ef [poincare] Add test on user defined functions and variables 2018-11-23 12:04:00 +01:00
Léa Saviot
ac1e79f907 [apps/graph] Display the function's whole name 2018-11-23 12:04:00 +01:00
Léa Saviot
a1a0d0f599 [apps] Fix ExpressionModel::isEmpty() 2018-11-23 12:04:00 +01:00
Léa Saviot
8479b9547e [apps/graph] Do not keep at list one function 2018-11-23 12:04:00 +01:00
Léa Saviot
eb427f701e [poincare] Init SymbolNode so it can give its size as soon as created 2018-11-23 12:04:00 +01:00
Léa Saviot
aebeeda171 [poincare] Fix Function::size() 2018-11-23 12:04:00 +01:00
Léa Saviot
30e92a87c7 [apps] Fix StorageExpressionModel::setContent for uninitialized content 2018-11-23 12:04:00 +01:00
Léa Saviot
ccea0579d1 [apps/graph] Remove unneeded namespace 2018-11-23 12:04:00 +01:00
Léa Saviot
63e5960ae1 [poincare] Handle empty record when creating its expression 2018-11-23 12:04:00 +01:00
Léa Saviot
dfe573c66e [ion/storage] Handle nullptr name when looking for a record 2018-11-23 12:04:00 +01:00
Léa Saviot
5e860bc0f5 [apps] Handle uninitialized expression and layout in ExpressionModel 2018-11-23 12:04:00 +01:00
Léa Saviot
77f4a92787 [apps] An expression model names contains the extension 2018-11-23 12:04:00 +01:00