Émilie Feral
340bbb5644
[apps/calculation] additional_outputs: fix ellipsis equation in
...
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
c2364d27cd
[apps/calculation] additional_outputs: clean and improve ComplexModel
...
range
2020-02-12 15:13:20 +01:00
Émilie Feral
e13cba5a90
[apps/calculation] additional_outputs: flat ellipsis to reprensent the
...
angle in ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
88c3f609e8
[apps/calculation] additional_outputs: improve comments of
...
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
aa6d328bac
[apps/calculation] additional_outputs: improve label positioning in
...
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
427a3d3051
[apps/calculation] additional_outputs: draw the principal angle on
...
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
7cd6d12730
[apps/calculation] additional_outputs; change position of absolute value
...
label in ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
56485a9733
[apps/calculation] additional_outputs; fix range of ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
61d0161e74
[apps/calculation] additional_outputs: add labels to ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
c6e54f90c3
[apps/shared] CurveView: fix confusion between after/before relative
...
position in drawLabel
2020-02-12 15:13:20 +01:00
Émilie Feral
8c69314fea
[apps/calculation] additional_outputs: avoid potential useless cast of 0
...
to 0.0f
2020-02-12 15:13:20 +01:00
Émilie Feral
8175df9abd
[apps/calculation] additional_outputs: improve drawRect of
...
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
083074e5ac
[apps/calculation] additional_outputs: ComplexGraphView has labels
2020-02-12 15:13:20 +01:00
Émilie Feral
1f4b823509
[apps/calculation] HistoryController: pointer to Calculation are expring
...
pointer, they've to be recomputed everytime we reload the table (because
of a scroll or when deselecting the table)
2020-02-12 15:13:20 +01:00
Émilie Feral
eb4a36696a
[apps/calculation] Trigonometry: set the range to see "cos(θ)" label
2020-02-12 15:13:20 +01:00
Émilie Feral
800adce876
[apps/shared] CurveView: change API; drawLabel can draw a label at a
...
position and the relative position of the label (above, below, to the
left or right of the graduation) can be chosen. 'positionLabel' is a
private method used by 'drawLabelsAndGraduations' and 'drawLabel' to
determine the position of the label knowing the position of the
graudation and its relative position
2020-02-12 15:13:20 +01:00
Émilie Feral
bbea104262
[apps/calculation] TrigonometryGraphView: avoid multiple calls to
...
std::cos and std::sin
2020-02-12 15:13:20 +01:00
Émilie Feral
027e46c237
[apps/calculation] additional_outputs: improve drawRect of TrigonometryGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
17bc808257
[apps/shared] CurveView: fix drawLabelsAndGraduations when
...
graduationOnly is on: the graduation are not drawn only when outside of
the drawn rect
2020-02-12 15:13:20 +01:00
Émilie Feral
95137909c6
[apps/shared] CurveView: fixes drawLabelsAndGraduations when the 'fixCoordinate' parameter is true.
...
This fixes the graduation drawing of the box view in the statistics app
2020-02-12 15:13:20 +01:00
Émilie Feral
aed52236d3
[apps/calculation] additional_outputs: improve drawRect of
...
TrigonometryGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
29bab70dcd
[apps/shared] CurveView: add a parameter "color" to drawLabel
2020-02-12 15:13:20 +01:00
Émilie Feral
dfd4811136
[apps/shared] CurveView: change API to expose 'drawLabel' and
...
'drawLabelsAndGraduations'
2020-02-12 15:13:20 +01:00
Émilie Feral
98c6f4ba47
[apps/shared] CurveView: factorize code of drawLine and drawSegment
2020-02-12 15:13:20 +01:00
Émilie Feral
818067e03b
[apps/shared] CurveView: add a parameter to drawSegment to draw dashed
...
segment
2020-02-12 15:13:20 +01:00
Émilie Feral
39d65a1ad0
[apps/calculation] additional_outputs: improve circle range
2020-02-12 15:13:20 +01:00
Émilie Feral
b47ded4074
[apps/calculation] Add a parameter in Shared::CurveView to choose the
...
curve thickness
2020-02-12 15:13:20 +01:00
Émilie Feral
bf07b5ab76
[apps/shared] CurveView: fix typo
2020-02-12 15:13:20 +01:00
Émilie Feral
d86d4512e9
[apps/calculation] Normalize the trigonometrical circle of
...
TrigonometryListController
2020-02-12 15:13:20 +01:00
Émilie Feral
65dfb0ebcb
[apps/calculation] additional_outputs: TrigonometryGraphView: first
...
draft of drawRect
2020-02-12 15:13:20 +01:00
Émilie Feral
74d9ebd5bb
[apps/calculation] additional_outputs, TrigonometryModel: fix range to
...
display the half circle where the angle is
2020-02-12 15:13:20 +01:00
Émilie Feral
bd7d5f14dd
[apps/calculation] additional_outputs: TrigonometryListController set
...
the right angle model to the view
2020-02-12 15:13:20 +01:00
Émilie Feral
6f3bf2f570
[apps/calculation] AdditionalOutputs: TrigonometryGraphCell change
...
member name
2020-02-12 15:13:20 +01:00
Émilie Feral
f52f25e491
[calculation] HistoryViewCell: add TODO
2020-02-12 15:13:20 +01:00
Émilie Feral
414f1eb25c
[apps/calculation] HistoryController: ensure to display burger views
...
when scrolling up and down
2020-02-12 15:13:20 +01:00
Émilie Feral
1b83526c57
[apps/shared] Revert "ScrollableExactApproximateExpressionsView: remove useless reload"
...
This was not useless: without it, when you push several times the
calculation "1.2", going up in the history will display corrupted
cells...
2020-02-12 15:13:20 +01:00
Émilie Feral
73a8ec24f2
[calculation] Revert "HistoryViewCell: remove useless m_expandedCalculation"
...
When scrolling up and down, only 'setCalculation' is called by
'willDisplayCellForIndex' - and not 'cellDidSelectSubview'. So a new cell
should be informed of the expanded state in 'setCalculation'.
2020-02-12 15:13:20 +01:00
Émilie Feral
80d8e8eead
Coding style
2020-02-12 15:13:20 +01:00
Émilie Feral
c47394ae22
[calculation] (revert previous commit) HistoryViewCell: setCalculation
...
should decide which subviews is displayed.
'setCalculation' is the only method called when scrolling (when using
a new cell for a calculation) so it should take into accound whether the
cell is expanded or not.
This fixes the bug: when pushing several calculations (which expand) in
the store, scrolling up and down corrupts the cells contents
2020-02-12 15:13:20 +01:00
Émilie Feral
c12304a00e
[calculation] Remove outdated comment
2020-02-12 15:13:20 +01:00
Émilie Feral
6a2f11ef1b
[escher] ExpressionTableCell & ExpressionTableCellWithExpression:
...
reloadScroll when displaying cell
2020-02-12 15:13:20 +01:00
Émilie Feral
8a07d335a3
[calculation] Additional Ouputs: speed up scrolling in
...
ExpressionsListController by memoizing layouts. Avoid glitering
2020-02-12 15:13:20 +01:00
Émilie Feral
74b5ca2f12
[escher] ExpressionTableCellWithExpression: avoid to add margins around
...
the accessory subview twice
2020-02-12 15:13:20 +01:00
Émilie Feral
3806a78141
[escher] ExpressionTableCellWithExpression: make the accessory
...
expression scrollable and set it as the first responder
2020-02-12 15:13:20 +01:00
Émilie Feral
711c4a6554
[escher] ScrollableExpressionView: fix background color
2020-02-12 15:13:20 +01:00
Émilie Feral
4bd3dfd542
[escher] TableCell: the subviews are layoutted horizontally or
...
vertically. We add an option to decide which subviews should overlap on
top of the other if there is not enough space
2020-02-12 15:13:20 +01:00
Émilie Feral
5974149162
[escher] Metric: change name TableCellLabelTopMargin to
...
TableCellHorizontalMargin and add TableCellHorizontalMargin
2020-02-12 15:13:20 +01:00
Émilie Feral
d0e2e71e10
[escher] TableCell: fix layoutSubviews
2020-02-12 15:13:20 +01:00
Émilie Feral
816e17df66
[escher] TableCell: factorize code
2020-02-12 15:13:19 +01:00
Émilie Feral
9312d2bd65
[escher] ExpressionTableCell is composed of a ScrollableExpressionView
...
instead of an ExpressionView
2020-02-12 15:13:19 +01:00