Commit Graph

389 Commits

Author SHA1 Message Date
Émilie Feral
01d3476b1d [shared] Fix scrollable_exact_approximate_expressions_view handleEvent:
jump to the right expression only when it is visible
2018-06-07 13:46:19 +02:00
Émilie Feral
36d058caec [shared] Add a margin to ScrollableExactApproximateExpressionsCell 2018-06-07 13:46:18 +02:00
Émilie Feral
4ade972860 [shared] Coding style 2018-06-07 13:46:18 +02:00
Émilie Feral
1f57d0a242 [solver] Fix an even odd bug: make colors consistent between even odd
cells and inheriting even odd cells
(scrollable_exact_approximate_expressions_cell)
2018-06-07 13:46:18 +02:00
Émilie Feral
ddfcbfebbf [shared] Add a class ScrollableExactApproximateExpressionsCell 2018-06-07 13:46:18 +02:00
Émilie Feral
cfb891d7bd [shared] Move OutputExpressionView & ScrollableOuputExpression view to shared/ with new name:
ScrollableExactApproximateExpressionsView (for future implementation of solver
solution page)
2018-06-07 13:46:18 +02:00
Émilie Feral
ace75e6ead [solver] Move Poincare::Equal::solve() to Solver app to consider system
instead of single expression
2018-06-07 13:46:18 +02:00
Émilie Feral
0b51b6e4fe [solver][graph][sequence] Force input edition when adding a new
Function/Sequence/Equation
2018-06-07 13:46:17 +02:00
Émilie Feral
021262e3aa [apps] Split List Controller in Expression Model List Controller and
Function List Controller (factorize code for future solver app)
2018-06-07 13:46:17 +02:00
Émilie Feral
837e0694d1 [shared] Remove New Function Cell class which is a duplicate of Even Odd
Message Text Cell
2018-06-07 13:46:17 +02:00
Émilie Feral
78e750b053 [shared] Change the ModelStore to store Expression Model Store 2018-06-07 13:46:17 +02:00
Émilie Feral
e05709f097 [shared] Factorize FunctionStore in ModelStore<T> (for future
implementation of equation store)
2018-06-07 13:46:17 +02:00
Émilie Feral
b266c4cbd1 [shared] Make a parent class to Function: ExpressionModel (factorize
code for furtur model Equation)
2018-06-07 13:46:17 +02:00
Émilie Feral
e160282e06 [escher] Change the function expression cell to inherit from
even odd expression cell
2018-06-07 13:46:17 +02:00
Émilie Feral
0ee32e15be [shared] Curve view: Avoid drawing all bars in histograms when bars
overlap each other due to pixel resolution
2018-05-23 10:14:21 +02:00
Émilie Feral
5dcfbf83e9 [escher] ExpressionLayoutFieldDelegate should not take a text as
parameter but a layout
Warning: in ExpressionField: the serialized layout is not guaranteed to
be small enough to fill in the text buffer
2018-05-17 13:53:10 +02:00
Émilie Feral
05cd2b5866 [shared] Sequence/Function: on graph zoom on center if the cursor is undefined 2018-05-16 18:51:35 +02:00
Léa Saviot
ea8bd568bf [apps/escher] Fix ExprFieldDelegateApp::exprLayoutFieldDidReceiveEvent
Fix the buffer size and check the length of the serialized expression

Change-Id: I7d53365313c0e0307db3393d46537d35ed799b3b
2018-05-16 15:56:13 +02:00
Émilie Feral
bb8ab2a42e Merge branch 'saisie-jolie' into master-merge-saisie-jolie 2018-05-16 11:28:07 +02:00
Émilie Feral
16bfca6a7d [shared] Make cursor view a transparent view because it has no
background
2018-05-16 10:01:24 +02:00
Émilie Feral
33ad49789b [escher][apps] Make View using blendRectWithMask without background
inherit from TransparentView
2018-05-15 17:24:27 +02:00
Léa Saviot
c70feb9a46 [poincare] Fix SumGraphController CondensSumLayout size on second step
Change-Id: Ia9608ccf6b556183ed8def852d35a9096aeaac19
2018-05-15 11:35:11 +02:00
Léa Saviot
9af3d378d1 [apps] Fix CondensedSumLayout created with a nullptr child
Change-Id: Ie6d4c6408a45a9cdf617b8cba988667c17f4cc36
2018-05-09 09:55:58 +02:00
Léa Saviot
3b582a2e46 Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +02:00
Léa Saviot
a27963597b [apps] More generic VariableBoxController methods
Before, the class differentiated between TextField and
ExpressionLayoutField

Change-Id: I1fce8bb650a0bfccb11ddf61d05335e452374abb
2018-04-25 13:58:42 +02:00
Léa Saviot
0ae7c8a723 [xnt] Insert the right XNT char.
Change-Id: Ibc91a2ece310313fb368a68483c5a1b6fe14aad2
2018-04-25 13:58:42 +02:00
Léa Saviot
13ae1d2545 [apps/escher/toolbox] handleEventWithText for all responders.
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.

Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +02:00
Léa Saviot
894080f1ab [apps/escher] EVWithCursor becomes ELField::ContentView
Change-Id: I719218e4d1d360800e0f1ef3eebeea774c8d5660
2018-04-23 09:41:20 +02:00
Léa Saviot
22ab94209f [apps/escher] Rename EditableExpressionView -> ExpressionField
Change-Id: Iadfb220ee94e68762305060215f1ead0cac951fb
2018-04-23 09:41:20 +02:00
Léa Saviot
31face58a2 [apps/escher] ScrollableEVWithCursor renamed ExpressionLayoutField
Change-Id: Id0e4610fb677d8ad36721eef1a85f1c424d1743e
2018-04-23 09:41:20 +02:00
Romain Goyet
84561a929f [escher] Clean the ScrollView, TableView and SelectableTableView constructors 2018-04-18 18:08:07 +02:00
Léa Saviot
b430cba335 [apps/poincare] Fix "random()" layout creation.
Change-Id: Ic8e12dfba925066fafa172b750162e820eeef82b
2018-04-18 11:26:21 +02:00
Léa Saviot
e90b3fd1cd Merge branch 'SaisieJolieMerge10Apr' into SaisieJolieMerge11Apr (master)
Change-Id: I06732115ee37ffd9a037a8412e1c57751dfb3e0f
2018-04-12 09:58:09 +02:00
Léa Saviot
88aaab64ba [apps] Fix obsolete code in Code and Shared
Change-Id: Ie6ce0f753bf05cb5f6dd5ed974db2a715b21624e
2018-04-11 17:10:09 +02:00
Léa Saviot
cbaba85daa [apps] Fix missing arguments in layout creation.
Change-Id: If819c6f8d067b80d5672774ca303b68e21cf0d7a
2018-04-11 10:41:28 +02:00
Léa Saviot
7991c5376f [apps] Fix typos
Change-Id: I650d0d98daab5959e9efab79b78905533316b85d
2018-04-10 18:14:55 +02:00
Léa Saviot
1c6e8119b3 [apps] Remove use of StringLayout
Change-Id: I4b8cac2fa778ebddb3e2b1f3f0f75182deb45a61
2018-04-10 18:03:19 +02:00
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Léa Saviot
50cc2a310b [apps] MessageView for OnBoarding update and USBConnected controllers
Change-Id: I3a775a81a62c408c9d02d98be25518d03fe5f9bf
2018-04-06 14:31:49 +02:00
Léa Saviot
b67e04214f [apps] Coding style.
Change-Id: I020cc98f87999b69e9c0d969126e9c1ae2f811f2
2018-04-06 14:31:48 +02:00
Léa Saviot
6a2f300c67 [usb] Share values between MessageController and USBConnectedController
Change-Id: I1f1f7f147adb7fe92baab3df42bb623e6a61893e
2018-04-06 14:31:48 +02:00
Zhaofeng Li
6679cb0a20 [apps] Fix exam mode 2018-04-04 13:42:00 +02:00
Émilie Feral
aade7cb2fe [escher] Create a class TextInput (from which derived TextField,
TextArea)
2018-03-22 13:12:12 +01:00
Émilie Feral
576caa039f [apps][escher] Add methods 'handleEventWithText' in TextField and
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +01:00
Émilie Feral
05055c387f [apps] Graph: when setting default range of a function, take
into account the potential periodicity
2018-03-22 10:48:06 +01:00
Claire Savinas
27490dff20 [apps] Shared: "Smart" incrementation of the first column of statistics and regression apps
The default value of the first column is set to have the same increment as the two previous rows, when possible.
This allow faster data entry when the values of the first column are evenly separated.
2018-03-21 15:59:24 +01:00
Émilie Feral
e4fbfe3a77 [apps] Shared: when adjusting yAuto and scanning y values, avoid
rounding errors (avoid weird range for y = 1/x)
2018-03-21 15:58:19 +01:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
d6215d4cc1 [apps] Shared: resize cross cursor 2018-01-30 18:53:28 +01:00
Émilie Feral
66401fc697 [apps] Shared: Correct CurveView to avoid 1-pixel errors 2018-01-30 18:53:28 +01:00