Commit Graph

1253 Commits

Author SHA1 Message Date
Émilie Feral
ff6eb7525f [apps/graph] Copy/Cut events on the values controller turn the "(1;3)"
notation into "[[1][3]]" in order to create a matrix layout when paste
into a layout field
2019-09-26 11:26:48 +02:00
Émilie Feral
e7e4820513 [apps/shared] StoreController: compute cell width from the number of
glyph required to display the largest float
2019-09-26 11:26:48 +02:00
Émilie Feral
4d593a6149 [poincare] PrintFloat: take into account the distinction between char
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Émilie Feral
d6ad694b76 [apps/shared] EditableCellTableViewController: adjust column width to be
able to display float like "-1.234567E-123"
2019-09-26 11:26:48 +02:00
Émilie Feral
3872785d57 [escher] Add Metric::CellMargin 2019-09-26 11:26:48 +02:00
Émilie Feral
00bb1b7ac1 [apps/graph] ValuesController: column width are different for parametric
functions
2019-09-26 11:26:48 +02:00
Émilie Feral
bf23e0f8da [apps/graph] ValuesController: change display of the parametric column -
display only one column for (x;y) values
2019-09-26 11:26:48 +02:00
Émilie Feral
6a983a5bdf [apps/graph] ValuesController: factorize code to hide the cells 2019-09-26 11:26:48 +02:00
Émilie Feral
743bf7cf28 [escher] EvenOddMessageTextCell wraps the message view with a 2-pixel
margins (avoid almost duplicate classes)
2019-09-26 11:26:48 +02:00
Émilie Feral
6f70924893 [escher] EvenOddBufferTextCell wraps the text view with a 2-pixel margin 2019-09-26 11:26:48 +02:00
Ruben Dashyan
259eb35cf4 Revert ""Almost equal to" sign in banner views"
This reverts commit bd5a247858.
2019-09-26 10:36:17 +02:00
Émilie Feral
db04183910 [apps/shared] Temporary fix: enable to display large float
(-1.234567E-123) in the values controller

This fix is not great and will be improved in future commits
2019-09-25 15:33:11 +02:00
Léa Saviot
79a70f5b6e [apps/graph] Clip t when navigating curves vertically 2019-09-23 17:31:35 +02:00
Léa Saviot
e9974a216d [apps/graph] If only cartesians, jump to next curve when out of range
Scenario:

-----------•   ->press "right": the cursor goes on the lower curve

           -*-*-*-*-*-
2019-09-23 17:31:35 +02:00
Léa Saviot
f037df0ab5 [apps/round_cursor_view] Fix color change
When changing the color, erase the cursor first, otherwise there is a
drawing glitch

Scenario:
f(x)=1
g(x)=2
Cursor on f(x), go to g(x), go right -> the previous cursor left a dot
2019-09-23 17:31:35 +02:00
Léa Saviot
ebfa251db8 [apps/grah} closestCurveIndexVertically renamed as next... 2019-09-23 17:31:35 +02:00
Ruben Dashyan
bd5a247858 "Almost equal to" sign in banner views 2019-09-23 17:31:02 +02:00
Ruben Dashyan
c7f15385a6 [apps/shared/global_context] Remove ExpressionFromSymbolRecord and ExpressionFromFunctionRecord 2019-09-23 11:04:29 +02:00
Ruben Dashyan
abf5169edd [apps/shared/global_context] Remove reduandant record verifications
Expression::ExpressionFromAddress already handles this.
2019-09-23 11:04:29 +02:00
Ruben Dashyan
2a28b16e9b [apps/shared/global_context] Remove unused parameter in ExpressionForActualSymbol 2019-09-23 11:04:29 +02:00
Ruben Dashyan
ec9bf9b59b Remove unused parameter of Poincare::Context::setExpressionForSymbolAbstract 2019-09-23 11:04:29 +02:00
Ruben Dashyan
3777bcbd87 [apps/shared/expression_model_store] Remove redundant assert
If the record is null, it means that the do-while loop has iterated too
many times and there is no record left. However that situation is
already asserted at the begining of the method.
2019-09-20 17:11:42 +02:00
Ruben Dashyan
d476e7944d [apps] Move assert to where it matters 2019-09-20 17:11:42 +02:00
Ruben Dashyan
56a3fcfacb [apps/shared/expression_model_store] Add context parameter to model testing 2019-09-20 17:11:42 +02:00
Ruben Dashyan
893131ed08 [apps/shared/expression_model_store] Factor model tests 2019-09-20 17:11:42 +02:00
Ruben Dashyan
3c10c397eb [apps/shared/expression_model_store] Simplify recordSatisfyingTestAtIndex and numberOfModelsSatisfyingTest 2019-09-20 17:11:42 +02:00
Ruben Dashyan
9bbc4233f8 [apps/shared/expression_model_store] Harmonize recordSatisfyingTestAtIndex and numberOfModelsSatisfyingTest 2019-09-20 17:11:42 +02:00
Ruben Dashyan
d4e129e162 [apps/shared/expression_model_store] Simplify recordSatisfyingTestAtIndex 2019-09-20 17:11:42 +02:00
Ruben Dashyan
526aa7ed48 [apps/shared/expression_model_store] Simplify recordSatisfyingTestAtIndex and numberOfModelsSatisfyingTest 2019-09-20 17:11:42 +02:00
Ruben Dashyan
71e0c5a556 [apps/shared/expression_model_store] Better assertions 2019-09-20 17:11:42 +02:00
Ruben Dashyan
77cdc32813 [apps/shared/expression_model_store] Fix typo 2019-09-20 17:11:42 +02:00
Ruben Dashyan
5f9464a548 [apps] In Shared, move cartesian_function.* to continuous_function.* 2019-09-20 17:11:42 +02:00
Ruben Dashyan
df2897925b Rename Shared::CartesianFunction to Shared::ContinuousFunction 2019-09-20 17:11:42 +02:00
Ruben Dashyan
9efe1515e8 [apps/shared/cartesian_function] Clean header inclusions 2019-09-20 17:11:42 +02:00
Ruben Dashyan
fd568e2bb5 [apps/shared/function_store] Clean header inclusions 2019-09-20 17:11:42 +02:00
Ruben Dashyan
1d966ce23c [apps/*/expression_model_list_controller] editExpression sets text instead of InputViewController::edit 2019-09-20 17:11:42 +02:00
Ruben Dashyan
413397652c [apps/*/expression_model_list_controller] Refactor modelStore()
Its return type is covariant. Get the ExpressionModelStore from the App.
2019-09-20 17:11:42 +02:00
Ruben Dashyan
91e3078234 [apps/*/expression_model_list_controller] Factor isAddEmptyRow 2019-09-20 17:11:42 +02:00
Ruben Dashyan
9a3ce0df26 [apps/shared/cartesian_function] Rename CartesianFunctionRecordDataBuffer to RecordDataBuffer 2019-09-20 17:11:42 +02:00
Ruben Dashyan
fd2961018c [apps] In Shared::Function, rename FunctionRecordDataBuffer to RecordDataBuffer 2019-09-20 17:11:42 +02:00
Ruben Dashyan
f73c80daa3 [apps] Gather asserts about the size of function name with argument 2019-09-20 17:11:42 +02:00
Léa Saviot
538bb5e5d2 [apps/graph] Do not take into account the sum/integral in XNT
Otherwise, it is impossible to use theta inside a sum in a polar
function
Example: f(theta) = sum(n*theta,0,4) cannot be written
2019-09-20 14:30:36 +02:00
Émilie Feral
ea97775f06 [apps/shared] Re-implement Sequence cursor 2019-09-20 13:44:22 +02:00
Léa Saviot
22c7fb440e [apps/graph] DefDomain depends on angleUnit
When automatically setting the definition domain of a non-cartesian
curve, take into account the angle unit:
0..360 for Degrees,
0..400 for gradians...
2019-09-20 11:42:45 +02:00
Émilie Feral
22dc20530f [apps/shared] CurveView: jointDots does stamp the first dot and the
closest dot to an undefined dot. It avoids recursing when both dots are
undefined.
2019-09-18 10:44:30 +02:00
Ruben Dashyan
7f8cc4d147 [apps/shared/curve_view] Fix drawCurve on boundaries 2019-09-17 18:17:09 +02:00
Léa Saviot
36ca9c61b7 [apps] Fix compilation for emscripten 2019-09-13 11:02:23 +02:00
Léa Saviot
7c5cf82598 [apps/cartesian_function] When changing plot type, recompute unknowns 2019-09-12 10:38:51 +02:00
Léa Saviot
274795fcab [apps/graph] setDefault when changing models if non cartesian functions 2019-09-12 09:54:02 +02:00
Léa Saviot
4262ea0365 [apps/round_cursor_view] Fix setCursorFrame
Scenario: create a cartesian function and a polar function, then
navigate between the 2. The cursor sometimes stays drawn somewhere it
shouldn't be.
2019-09-10 10:47:32 +02:00