Commit Graph

7755 Commits

Author SHA1 Message Date
Émilie Feral
c6493bdeef [shared] Clean unused method maxInt in ExpressionModelHandle 2019-04-12 15:16:53 +02:00
Émilie Feral
596f0c297e [sequence] Fix Sequence::isDefined 2019-04-12 15:16:53 +02:00
Émilie Feral
751361fb0b [sequence] Fix bug: number of curves in graph is the number of active
functions
2019-04-12 15:16:53 +02:00
Émilie Feral
549ed911d4 [sequence] Sequence: factorize InitialConditionModels 2019-04-12 15:16:52 +02:00
Émilie Feral
0e5d29950a [code] Get rid of unused member variable in VariableBoxController 2019-04-12 15:16:52 +02:00
Émilie Feral
d3fedf4ae5 [shared] ListParameterController: reinit hold record when removing it
from the storage
2019-04-12 15:16:52 +02:00
Émilie Feral
7c359a03a9 [sequence] Fix Toolbox: sequence fullName is for example "u.seq" which
cannot be compare to "u"
2019-04-12 15:16:52 +02:00
Émilie Feral
c93e021045 [apps/graph][apps/sequence] ListParameterController is a
ListViewDataSource instead of a SimpleListViewDataSource (indeed, each
cell has a specific type)
2019-04-12 15:16:52 +02:00
Émilie Feral
71195240e2 [shared] Change name of classes:
FunctionRecordData --> FunctionRecordDataBuffer
CartesianFunctionRecordData --> CartesianFunctionRecordDataBuffer
SequenceRecordData --> SequenceRecordDataBuffer
2019-04-12 15:16:52 +02:00
Émilie Feral
d0665d8558 [shared] Clean class names containing storage 2019-04-12 15:16:52 +02:00
Émilie Feral
de41064a47 [apps/shared] Change names:
Sequence::DefinitionHandle --> Sequence::DefinitionModel
Sequence::FirstInitialConditionHandle -->
Sequence::FirstInitialConditionModel
Equation::Handle--> Equation::Model
2019-04-12 15:16:52 +02:00
Émilie Feral
3c1e35ec04 [shared] Rename classes:
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-04-12 15:16:52 +02:00
Émilie Feral
3ce406fde1 [shared] Clean unused classes 2019-04-12 15:16:52 +02:00
Émilie Feral
58f9a59d6e [ion] Move Storage extensions declaration in Storage class 2019-04-12 15:16:52 +02:00
Émilie Feral
653bdd6cdb [sequence] Add Poincare::Symbol::SpecialSymbols::UnknownN used in
Sequence
2019-04-12 15:16:52 +02:00
Émilie Feral
3cd28aac6d [sequence] Make tests build 2019-04-12 15:16:52 +02:00
Émilie Feral
9efeab98c4 [sequence] Optimize size of Sequence meta data 2019-04-12 15:16:52 +02:00
Émilie Feral
5b89c1caa9 [sequence] Implement specific setExpressionContent for Sequence model 2019-04-12 15:16:52 +02:00
Émilie Feral
634972a724 [sequence] SequenceStore returns Sequence * instead of
ExpiringPointer<Sequence>

SequenceStore keep all its Sequences in an array which fix Sequence
addresses
2019-04-12 15:16:52 +02:00
Émilie Feral
ce4497fa25 [apps/sequence] Make controllers inherit from StorageFunction controllers when required 2019-04-12 15:16:52 +02:00
Émilie Feral
6a920391b9 [shared] ExpiringPointer: add constructor to enable pointer casting 2019-04-12 15:16:52 +02:00
Émilie Feral
226aaef448 [shared][graph] Factorize ListController baseline computation in
StorageFunctionListController
2019-04-12 15:16:52 +02:00
Émilie Feral
a8499a055e [shared] Factorize 'storageDidChangeForRecord' in StorageFunctionApp 2019-04-12 15:16:52 +02:00
Émilie Feral
af5a9aa7b3 [sequence] Make SequenceStore inherit from StorageFunctionStore 2019-04-12 15:16:52 +02:00
Émilie Feral
c5158ea11e [sequence] Make Sequence inherit from StorageFunction 2019-04-12 15:16:52 +02:00
Émilie Feral
a7192df59c [apps/shared] Split ExpressionModelHandle into ExpressionModelHandle and
SingleExpressionModelHandle (in perspective of Sequence model who will
be composed of 3 ExpressionModelHandle)
2019-04-12 15:16:52 +02:00
Émilie Feral
d4565442d9 [solver] Fix tests with new Equation API 2019-04-12 15:16:52 +02:00
Émilie Feral
0d8d561f5c [poincare] Test: correctly clean the storage after tests 2019-04-12 15:16:52 +02:00
Émilie Feral
adc30a8dcd [ion] Add Macro to log the storage content 2019-04-12 15:16:52 +02:00
Émilie Feral
2ba077af28 [solver] Make Solver::ListController inherits from
StorageExpressionModelListController instead of
ExpressionModelListController
2019-04-12 15:16:52 +02:00
Émilie Feral
d6f5f1bbea [apps/shared] Make StorageExpressionModelListController
SelectableTableViewDelegate instead of StorageFunctionListController
2019-04-12 15:16:52 +02:00
Émilie Feral
83153dd511 [solver] EquationListView: clean setBraceStyle to always re-layout 2019-04-12 15:16:52 +02:00
Émilie Feral
d9eb8163bb [apps/shared] StorageExpressionModelListController: avoid useless
invalidation of memoization
2019-04-12 15:16:52 +02:00
Émilie Feral
0af6132016 [apps/shared] StorageExpressionModelListController: change name
reinitExpression--> reinitSelectedExpression
2019-04-12 15:16:52 +02:00
Émilie Feral
06b364d9f4 [apps/shared] StorageExpressionModelListController: switching from
no-selected-cell to first-cell-selected should not make the memoization
shift
2019-04-12 15:16:52 +02:00
Émilie Feral
64978202b4 [apps/shared] ExpressionModelHandle: specify the symbol that is turned
into Unknown X in Derived classes
2019-04-12 15:16:52 +02:00
Émilie Feral
0f37ee25f7 [solver] Make EquationStore inherits from StorageExpressionModelStore 2019-04-12 15:16:52 +02:00
Émilie Feral
53ee0607a1 [solver] Make Equation inherits from ExpressionModelHandle instead of
ExpressionModel
2019-04-12 15:16:52 +02:00
Émilie Feral
4be902be93 [apps/shared] Change name StorageExpressionModel -->
ExpressionModelHandle
2019-04-12 15:16:52 +02:00
Émilie Feral
cef106b23d [escher] Avoid unnecessary relayouts 2019-04-12 15:16:52 +02:00
Léa Saviot
80e2879cb7 [poincare] Make GridLayout rendering faster 2019-04-12 15:16:52 +02:00
Léa Saviot
fbfbf5c845 [poincare] Rational::createLyt gives single CodePointLyt if possible
This reduces the size of created layouts, thus allowing more layouts to
be created, as there is a limit on the number of layout in a lyout field
2019-04-12 15:16:52 +02:00
Léa Saviot
1da8a5af52 [poincare] Do not simplify random nor randint
For instance, random()+random() is simplified into random()+random(),
not 2*random()
2019-04-12 15:16:52 +02:00
Léa Saviot
02f6a577ce [poincare/test] Fix test due to bigger printable decimals
The max size of printed float is calculated to make 1.121212..ᴇ-308 fit
with 15 significant digits, but ᴇ now uses more than one char, which
makes more floats printable.
2019-04-12 15:16:52 +02:00
Léa Saviot
f638809ca5 [kandinsky] Fix font test 2019-04-12 15:16:52 +02:00
Léa Saviot
11b26bfa16 [poincare] Add tests on random 2019-04-12 15:16:52 +02:00
Léa Saviot
92574ab0a3 [coding style] Small inlining 2019-04-12 15:16:52 +02:00
Léa Saviot
8ac2c80625 [apps/settings] Reload the title bar when changing language
Before, the "Settings" title would not be immediately translated into
the new language.
2019-04-12 15:16:52 +02:00
Léa Saviot
c5f555b8f1 [apps] Fix SumGraphController array size 2019-04-12 15:16:52 +02:00
Léa Saviot
2d83c2994c [escher] Fix TextArea::handleEventWithText
It did not handle properly a new line (placed the cursor wrongly).
2019-04-12 15:16:52 +02:00