Commit Graph

1101 Commits

Author SHA1 Message Date
Ruben Dashyan
205ae8fec5 [apps] Remove BannerView::messageTextViewAtIndex method 2019-05-03 15:54:21 +02:00
Ruben Dashyan
51c36c8f86 [apps/shared] FunctionBannerDelegate::bannerView() returns a XYBannerView * 2019-05-03 15:54:21 +02:00
Ruben Dashyan
0d34923dd1 [apps] Graph/Regression/Sequence::BannerView inherit from new Shared::XYBannerView 2019-05-03 15:54:21 +02:00
Ruben Dashyan
236b752f4f [apps] replace BannerView::textViewAtIndex by subviewAtIndex 2019-05-03 15:54:21 +02:00
Ruben Dashyan
513a4cf852 [apps] BannerView::numberOfSubviews
Shared::BannerView::numberOfSubviews made pure virtual.
Define constexpr attributes instead of magic numbers.
Move numberOfSubviews to header file.
2019-05-03 15:54:21 +02:00
Émilie Feral
2217eebaec [escher] SelectableTableView: when reloading data, we temporary deselect
the table. We warn the SelectableTableViewDelegate that the selection
change is 'within a temporary selection change' when notifying it of the
change.
2019-05-03 15:54:21 +02:00
Émilie Feral
08e4b0d6a3 [shared] Clean reloading (highlight, even) of
ScrollableExactApproximateExpressionsCell and
ScrollableExactApproximateExpressionsView
2019-05-03 15:54:21 +02:00
Émilie Feral
05a235803f [calculation] HistoryViewCell: fix scroll reloading and right or left
outputs selection (the order of events here matters)
2019-05-03 15:54:21 +02:00
Émilie Feral
5e280c7538 [escher] ExpressionView: optimize setLayouts to avoid marking the whole
view as dirty when the layout did not really changed
2019-05-03 15:54:21 +02:00
Émilie Feral
6c0e6b9709 [shared] ScrollableExactApproximateExpressionsView: fix scrolling when
selecting the left or right output result
2019-05-03 15:54:21 +02:00
Émilie Feral
240ed439e0 [escher] ScrollableView: discard duplicate data source of scrolling
offset
2019-05-03 15:54:21 +02:00
Émilie Feral
8afbee8b89 [shared] ScrollableExactApproximateExpressionsView: selecting the right
or left output reload the scroll to display the selected output
2019-05-03 15:54:21 +02:00
Émilie Feral
06a8382ff4 [shared] ScrollableExactApproximateExpressionsView: change the selected
output only when one of the two layout is uninitialized. Otherwise, the
parent cell decides of which of right or left output should be selected.
2019-05-03 15:54:21 +02:00
Léa Saviot
b360639e4e [apps/text_field_delegate_app] Fix XNT in a sum layout
It was broken by a blunder while swithching to UTF8
2019-05-03 15:54:20 +02:00
Léa Saviot
267d27f114 [poincare] Remove symbolic computation 2019-05-03 15:53:21 +02:00
Léa Saviot
b7b1710566 [apps] Clean apps/shared/expression_model_handle.cpp 2019-05-03 15:53:21 +02:00
Léa Saviot
a337bd260d [unicode] Use Poincare::SerializationHelper::CodePoint 2019-05-03 15:53:21 +02:00
Léa Saviot
1c62550649 [apps] Removed unused static inline method 2019-05-03 15:53:21 +02:00
Léa Saviot
1d26e6da73 [ion/unicode] Clean special code points 2019-05-03 15:53:21 +02:00
Émilie Feral
cc842d5ee7 [shared] Clean unused method maxInt in ExpressionModelHandle 2019-05-03 15:53:20 +02:00
Émilie Feral
e1450676e0 [shared] ListParameterController: reinit hold record when removing it
from the storage
2019-05-03 15:53:20 +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
a891fff930 [shared] Change name of classes:
FunctionRecordData --> FunctionRecordDataBuffer
CartesianFunctionRecordData --> CartesianFunctionRecordDataBuffer
SequenceRecordData --> SequenceRecordDataBuffer
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
5a5a181086 [apps/shared] Change names:
Sequence::DefinitionHandle --> Sequence::DefinitionModel
Sequence::FirstInitialConditionHandle -->
Sequence::FirstInitialConditionModel
Equation::Handle--> Equation::Model
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
ad8fea46c3 [shared] Clean unused classes 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
be76784bb4 [sequence] Add Poincare::Symbol::SpecialSymbols::UnknownN used in
Sequence
2019-05-03 15:53:20 +02:00
Émilie Feral
c085ab5f1e [sequence] Implement specific setExpressionContent for Sequence model 2019-05-03 15:53:20 +02:00
Émilie Feral
cff3d56f22 [sequence] SequenceStore returns Sequence * instead of
ExpiringPointer<Sequence>

SequenceStore keep all its Sequences in an array which fix Sequence
addresses
2019-05-03 15:53:20 +02:00
Émilie Feral
2bc2506b60 [apps/sequence] Make controllers inherit from StorageFunction controllers when required 2019-05-03 15:53:20 +02:00
Émilie Feral
184d2f0802 [shared] ExpiringPointer: add constructor to enable pointer casting 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
Émilie Feral
7fdc8a7c1b [shared] Factorize 'storageDidChangeForRecord' in StorageFunctionApp 2019-05-03 15:53:20 +02:00
Émilie Feral
3088a4ee23 [apps/shared] Split ExpressionModelHandle into ExpressionModelHandle and
SingleExpressionModelHandle (in perspective of Sequence model who will
be composed of 3 ExpressionModelHandle)
2019-05-03 15:53:20 +02:00
Émilie Feral
2e6e7f93f7 [solver] Make Solver::ListController inherits from
StorageExpressionModelListController instead of
ExpressionModelListController
2019-05-03 15:53:20 +02:00
Émilie Feral
d94838a4c8 [apps/shared] Make StorageExpressionModelListController
SelectableTableViewDelegate instead of StorageFunctionListController
2019-05-03 15:53:20 +02:00
Émilie Feral
be76742bc3 [apps/shared] StorageExpressionModelListController: avoid useless
invalidation of memoization
2019-05-03 15:53:20 +02:00
Émilie Feral
fdad9334c3 [apps/shared] StorageExpressionModelListController: change name
reinitExpression--> reinitSelectedExpression
2019-05-03 15:53:20 +02:00
Émilie Feral
a950cb9998 [apps/shared] StorageExpressionModelListController: switching from
no-selected-cell to first-cell-selected should not make the memoization
shift
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
Émilie Feral
b4c8c53982 [solver] Make EquationStore inherits from StorageExpressionModelStore 2019-05-03 15:53:20 +02:00
Émilie Feral
39709e53da [solver] Make Equation inherits from ExpressionModelHandle instead of
ExpressionModel
2019-05-03 15:53:20 +02:00
Émilie Feral
cc0ae5559b [apps/shared] Change name StorageExpressionModel -->
ExpressionModelHandle
2019-05-03 15:53:20 +02:00
Léa Saviot
d0300c0e7f [apps/settings] Reload the title bar when changing language
Before, the "Settings" title would not be immediately translated into
the new language.
2019-05-03 15:53:20 +02:00
Léa Saviot
40c057f0ee [apps] Fix SumGraphController array size 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
47e9be2574 [apps] Fix SumGraphController use of CodePointString 2019-05-03 15:53:19 +02:00
Léa Saviot
bd2ea41fbe [apps/escher] Rename cursorTextLocation as cursorLocation 2019-05-03 15:53:19 +02:00