Commit Graph

46 Commits

Author SHA1 Message Date
Léa Saviot
0840ca7a1e [apps/poincare] Move NormalDistribution to Poincare 2019-08-23 13:47:52 +02:00
Ruben Dashyan
eb6d697927 [apps] Make app accessors static members of App classes 2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a [apps] Get rid of App casts 2019-07-19 15:06:25 +02:00
Léa Saviot
1e64db68ef [apps/solver] Fix string length computation
The layout for delta=b^2*4ac did not appear properly
2019-06-13 08:50:45 -04:00
Émilie Feral
08e4b0d6a3 [shared] Clean reloading (highlight, even) of
ScrollableExactApproximateExpressionsCell and
ScrollableExactApproximateExpressionsView
2019-05-03 15:54:21 +02:00
Émilie Feral
da1ee21fd5 [poincare] VerticalOffsetLayout: change name of 'Type' to 'Position' 2019-05-03 15:54:21 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
65e5adafac Remove Ion::Charset 2019-05-03 15:53:19 +02:00
Léa Saviot
f576e31ff1 [apps/poincare] Replace CharLayouts with CodePointLayouts 2019-05-03 15:53:19 +02: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
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
Émilie Feral
c3b335212c [solver] Add a warning message when a polynomial has no real root 2019-01-10 11:42:05 +01:00
Émilie Feral
4ccf1f08a9 [solver] Delta discriminant is counted as a solution to clear the code 2019-01-10 11:42:05 +01:00
Léa Saviot
29ef8c6d23 [apps/solver] Solutions are indexed from 1, not 0 2019-01-10 11:42:02 +01:00
Léa Saviot
07d1aabb56 [apps/solver] Remove max variable name size redefinition 2018-11-23 12:04:07 +01:00
Léa Saviot
b622c54d50 [apps/solver] Display the whole solution name when long name 2018-11-23 12:04:05 +01:00
Léa Saviot
041b643b15 [apps/solver] Fix variable name computation problem 2018-11-23 12:04:05 +01:00
Léa Saviot
71d8358722 [apps/escher/poincare] Change KDText::FontSize to KDFont 2018-11-23 12:04:02 +01:00
Émilie Feral
0544aca649 [solver] Fix Solver with variable-length symbols 2018-11-23 12:03:58 +01:00
Émilie Feral
75a1de32ed [solver] Fix EquationStore with variable-sized variables 2018-11-23 12:03:58 +01:00
Lionel Debroux
1a8c6b6ae9 [poincare, escher, ion, apps] Split the huge umbrella header poincare.h, to reduce build time.
This should be a NFC, but surprisingly, it also reduces size... so what does it change ?
2018-10-23 11:49:09 +02:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Émilie Feral
8e992c58ed [solver] Fix SolutionsController with new Poincare API 2018-09-07 10:03:22 +02:00
Émilie Feral
f70f72da1a Change new Layout -> LayoutRef 2018-09-06 16:04:17 +02:00
Émilie Feral
cb4bb4f8f0 [poincare] Engine-->Helper and break LayoutHelper into LayoutHelper and
SerializationHelper
2018-08-08 14:00:52 +02:00
Émilie Feral
b8af15f1ab [poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +02:00
Émilie Feral
537cae5839 [solver] Memory issue: setEven on cells can lead to relayouting cells.
The cell expression layouts have to be updated before calling any
relaod.
2018-07-18 10:32:46 +02:00
Émilie Feral
f6bdf56c15 [escher] TableViewDataSource: implement default cumulatedWidthFromIndex,
cumulatedWidthFromIndex, indexFromCumulatedWidth,
indexFromCumulatedHeight
2018-06-07 16:21:31 +02:00
Émilie Feral
2d580faf51 [solver] Ignore empty equation when resolving systems 2018-06-07 14:46:14 +02:00
Émilie Feral
354c9d1ccd [solver] Change b^2-4ac formula to D=b^2-4ac 2018-06-07 14:46:14 +02:00
Émilie Feral
d33372eae0 [solver] Avoid displaying 17 = 17 in solutions controller: test for
layout equality
2018-06-07 14:46:13 +02:00
Émilie Feral
9a7f7f7fe3 [solver] Add the right equal symbol (equal/approximate) in solutions
controller
2018-06-07 13:46:19 +02:00
Émilie Feral
fc38fd73f0 [solver] Add a message when they are more then 10 solutions 2018-06-07 13:46:19 +02:00
Émilie Feral
a40f0dcd9c [solver] SolutionsController: change font size of approximate values 2018-06-07 13:46:19 +02:00
Émilie Feral
dcdd2a9b9a [solver] Improve messages for edge cases (No equation, no solution...) 2018-06-07 13:46:19 +02:00
Émilie Feral
8b7813868a [solver] In SolutionsController: make the delta cell an expression cell
for a better layout
2018-06-07 13:46:19 +02:00
Émilie Feral
7988f83657 [solver] Improve cell layouts in solutions controller 2018-06-07 13:46:18 +02:00
Émilie Feral
dca5266187 [solver] Fix SolutionsController: willDisplayCellAtLocation: reloading
the cell has to happen after populating it with the right parameters to
avoid layout based on delete expression layouts.
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
1300750988 [solver] Display the 'no solution' page when the equation store is empty 2018-06-07 13:46:18 +02:00
Émilie Feral
b3ce8e2bc9 [solver] Display the solutions controller when resolving equation system 2018-06-07 13:46:18 +02:00
Émilie Feral
3434202b48 [solver] Create a class SolutionsController 2018-06-07 13:46:18 +02:00