Commit Graph

826 Commits

Author SHA1 Message Date
Léa Saviot
4bbda406de [unicode] Use Poincare::SerializationHelper::CodePoint 2019-04-12 15:16:53 +02:00
Léa Saviot
93a1546201 [apps] Removed unused static inline method 2019-04-12 15:16:53 +02:00
Léa Saviot
82d5ff7799 [ion/unicode] Clean special code points 2019-04-12 15:16:53 +02:00
Émilie Feral
c6493bdeef [shared] Clean unused method maxInt in ExpressionModelHandle 2019-04-12 15:16:53 +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
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
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
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
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
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
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
a214bbdc5a [unicode] Use unicode when dealing with chars - Part 2 2019-04-12 15:16:51 +02:00
Léa Saviot
1f76cd65f3 [apps] Fix SumGraphController use of CodePointString 2019-04-12 15:16:51 +02:00
Léa Saviot
7020ecef57 [apps/escher] Rename cursorTextLocation as cursorLocation 2019-04-12 15:16:51 +02:00
Léa Saviot
43031928c3 Remove max/min inline from KDCoordinate header 2019-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53 [ion/kandinsky] Move unicode to ion 2019-04-12 15:16:51 +02:00
Léa Saviot
5142c071df [escher] Fix text inputs so they use UTF8 2019-04-12 15:16:51 +02:00
Léa Saviot
f90e709201 [poincare/utf8_decoder] nextCodePointPointer is now stringPosition 2019-04-12 15:16:51 +02:00
Léa Saviot
8d759c0b3b [unicode] Use the UTF8Decoder to scan const char * 2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376 Remove Ion::Charset 2019-04-12 15:16:50 +02:00
Émilie Feral
9eb672bb5f [apps/shared] Fix
ExpressionFieldDelegateApp::layoutFieldDidReceiveEvent

Layouts have two potential serializations. For example,
HorizontalLayout(CharLayout(2), CharLayout(a)) can be serialized as:
"2a" and "2*a". In layoutFieldDidReceiveEvent, we want to check that the
longest serialisation is bounded by maxBufferSize. (We could have used
Layout::serializeParsedExpression but we don't to avoid parsing the
expression twice)
2019-03-11 13:20:08 +01:00
Romain Goyet
4f2c7a3763 [build] Update the i18n processing to fit the out-of-tree build 2019-03-06 15:00:59 +01:00
Romain Goyet
4f1d74f44b [build] Use an out-of-tree build 2019-03-06 15:00:59 +01:00
Émilie Feral
7b5f3c570d [poincare] Change the way Expression are built 2019-02-21 11:29:35 +01:00
Émilie Feral
ac6f23684d [poincare] Clean Expression and Layout builders
Before: Opposite(Opposite(Rational(1))) misleadingly created the
expression "-1"; now, Opposite::Builder(Opposite::Builder(Rational(1)))
creates "--1"
2019-02-21 11:29:35 +01:00
Ruben Dashyan
3d254b9ef1 [apps/shared/scrollable_exact_approximate_expressions_cell] Fix background 2019-02-18 16:49:58 +01:00
Ruben Dashyan
0943406263 Fix HistoryViewCell and ScrollableExactApproximateExxpressionsCell margins issue
Remove all margins from those cells.
Rather add margins to their respective subviews:
 - ScrollableExpressionView
 - ScrollableExactApproximateExpressionsView.

As a notable consequence, the distance in HistoryViewCell between its
subviews becomes 10 instead of 5.

In passing, replace
 - Metric::HistoryHorizontalMargin = 10
 - ScrollableExactApproximateExpressionsView::k_digitHorizontalMargin = 10
 - HistoryViewCell::k_digitVerticalMargin = 5
 - ScrollableExactApproximateExpressionsCell::k_margin = 5
by
 - Metric::CommonSmallMargin = 5
 - Metric::CommonLargeMargin = 10.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
571967088e [escher/scroll_view] Uniformize scroll bars frame across Epsilon 2019-02-18 16:49:58 +01:00
Ruben Dashyan
98e00404b8 [apps/calculation] Enable arrow scrolling indicators and add horizontal margin 2019-02-18 16:49:58 +01:00
Ruben Dashyan
08e8bf0eeb [escher] Implement ScrollView::minimalSizeForOptimalDisplay including margins
Remove from derived classes:
 - apps/calculation/scrollable_expression_view
 - apps/code/consol_line_cell
 - apps/shared/scrollable_exact_approximate_expressions_view
 - escher/layout_field
 - escher/table_view
 - escher/text_field
2019-02-18 16:49:58 +01:00