Léa Saviot
3e4478454c
[escher] Avoid useless redrawing in ExpressionView::setLayout
2020-06-04 14:50:08 +02:00
Romain Goyet
84768472bd
Explicit std::min/max template usage
...
This is unfortunately required in several cases:
- Sometimes when we use either float and double (this should be changed)
- Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
- Because we mix pointer differences and ints
2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04:00
Émilie Feral
3de0ee7f98
[apps/calculation] ExpressionWithEqualSignView inherits from
...
ExpressionView instead of composing
This is useful for future change on
ScrollableExactApproximateExpressionView
2020-02-12 15:13:22 +01:00
Léa Saviot
9ff3cbf32d
[escher/expression_view] Layout selection color
2020-02-12 15:13:17 +01:00
Léa Saviot
2e589f6eac
[escher] Delete selection on layouts
2020-02-12 15:13:17 +01:00
Léa Saviot
377cca7e3d
[escher/layout_field] Start handling selection
2020-02-12 15:13:17 +01:00
Émilie Feral
4dd7d1d792
[escher] ExpressionView: discard optimization that triggers a bug
2019-05-13 17:54:45 +02:00
Émilie Feral
5e280c7538
[escher] ExpressionView: optimize setLayouts to avoid marking the whole
...
view as dirty when the layout did not really changed
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
b8b4d481b5
[escher] Use the vertical alignment in ExpressionView
2019-01-10 11:42:02 +01: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
Léa Saviot
71c807b565
[poincare] Node->isDefined becomes !Node->isUninitialized
2018-08-14 16:40:12 +02:00
Léa Saviot
5d9e69dedc
[poincare] Remove Tree constructors that use nullptr as parameter
2018-08-14 14:58:47 +02:00
Léa Saviot
a3032e5ec3
Merge branch Tree into master
2018-07-19 14:01:02 +02:00
Léa Saviot
47802341f8
[apps/reg] Actualize the current model display in the menu
2018-07-18 10:32:45 +02:00
Léa Saviot
880c3e59de
[poincare] Continue removing layouts
2018-07-03 18:29:08 +02:00
Léa Saviot
a5ebab4bc1
[poincare] Continue adapting LayoutField
2018-07-03 14:56:15 +02:00
Léa Saviot
c2d273bba5
[escher/poincare] ExprLayoutField cannot have more than 152 descendants
...
If the number of layouts could be infinite, we would have memory
problems. A Layout uses at least one char when being serialized, so we
use the same limit as the char limit in TextField.
Change-Id: Ib8f9c05d04a4dde5b6ca96a732e3e4175dd65b9c
2018-05-16 18:37:02 +02:00
Léa Saviot
19d5115eaa
[escher] Add margins in ExpressionField
...
Change-Id: I51272682246403f0449be19ff6cc75fd5544ad9c
2018-04-26 16:31:09 +02:00
Léa Saviot
49c17f743a
[escher] Fix ExpressionLayoutFieldScrolling
...
Change-Id: I6f8a265e01bce454732e53affa9ddd01f0e78f08
2018-04-26 11:49:05 +02:00
Léa Saviot
56b2b505cd
[escher] Avoid using floats to compute ints.
...
Change-Id: I5637194badc75eec6f016f44bb9660b51d2157b9
2018-04-19 16:42:03 +02:00
Léa Saviot
91c05b3bb7
[apps/calculation] EditableExpressionView in calculation app.
...
Change-Id: I8b67353682652695f7296f0222939930f4b21794
2018-01-16 16:43:15 +01:00
Léa Saviot
8828eaf79f
[escher] ExpressionView drawingOrigin().
...
Change-Id: I737f17f857edb6e9971feeeb196f2698cc92ad9e
2018-01-15 11:58:01 +01:00
Léa Saviot
4ad3adaab2
[apps/escher] Changed setExpression to setExpressionLayout.
...
Change-Id: I095a12868fd7eaf8d4eb2408617941a86f43e1ee
2018-01-15 11:58:01 +01:00
Émilie Feral
35b979798d
[escher] Optimize redrawing when changing features in cells (color,
...
highlight, even)
Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
2017-11-21 17:37:25 +01:00
Émilie Feral
5fd8fda4b1
[calculation] Display exact and approximate results
...
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
8f1d37c28c
[escher] Add a cursor to text fields
...
Change-Id: Ib4a80a3c6d4b5d76cb56645275e8ecc6d69528ca
2017-03-08 15:42:14 +01:00
Émilie Feral
69e46f4958
[poincare] Namespace Poincare
...
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
385fdc8bb4
[escher] Add a class even odd expression cell
...
Change-Id: Iacc6d96a2f5d8a4214a407d2f8a8b433e818a43a
2017-01-27 12:01:23 +01:00
Émilie Feral
590c869bc8
[escher] create class expression view
...
Change-Id: I16ddd22318ad120d736ad7f10bb2800a13c2b005
2016-10-27 14:03:25 +02:00