Commit Graph

22 Commits

Author SHA1 Message Date
Léa Saviot
8d32930eae [poincare] Check equivalent positions when moving Up and Down
Change-Id: I5043d0a43c981592b0b72fd1221769497520b342
2018-04-20 11:34:02 +02:00
Léa Saviot
09db58d24c [poincare] Remove some parameters in ExpressionLayout::moveUp/Down
Change-Id: I406c02229aace0ec7417e5194d448023273fb3d0
2018-04-19 17:56:43 +02:00
Léa Saviot
1e9b4d4c07 [poincare] Rename backspaceAtCursor -> deleteBeforeCursor
Change-Id: Ia5196b46fa58a82347bb1b02a7b7ef9a816ff66f
2018-04-19 16:16:17 +02:00
Léa Saviot
70f28aea4b [Coding style] Change "brother" into "sibling"
Change-Id: I6f07be262358641875d3024d1741285c5895b8d6
2018-04-19 16:16:17 +02:00
Léa Saviot
e4dccc8cc1 [poincare] Rename ParenthesisLeftLayout into LeftParenthesisLayout
Change-Id: Iaedd556ce912d650432d395b294c39e53bfc16a0
2018-04-19 16:16:05 +02:00
Léa Saviot
16fa9a0975 [poincare] Rename ParenthesisRightLayout into RightParenthesisLayout
Change-Id: I4f104d5a214c98024ad2e0a0bb2f5ffe63c92495
2018-04-19 15:12:06 +02:00
Léa Saviot
29cdcd0ef0 [poincare] Put constant value in header.
Change-Id: I67baf95528d530176812c5f378192854968b7fb9
2018-04-18 15:24:07 +02:00
Léa Saviot
afcac95315 [poincare] The cursor changes its size.
Change-Id: I3366ff956a9f12b347a8b05066800619e61308c5
2018-04-18 15:23:55 +02:00
Léa Saviot
5a97885212 [poincare] Add parenthesis when inserting a power next to a power
Change-Id: I93b228811b11968df434feaee46442447b726fbc
2018-04-18 10:03:21 +02:00
Léa Saviot
021d98da7c [poincare] More beautiful separation of exponential and root indexes
Exponent Layout (VerticalOffsetLayout of Superscript type) now add a
margin to their layout only when they are next to a layout that has an
upper left index.

Change-Id: I670e8aefc7c6bcace8f61bbe4a4b6cea0936d96c
2018-04-17 17:29:56 +02:00
Léa Saviot
a1c0dae369 [poincare] Add parenthesis to the base when adding an ambiguous power
Change-Id: I6ea22a816b884cd7003bd3ab755fa55d3eb69000
2018-04-17 17:14:46 +02:00
Léa Saviot
ba97e63580 [poincare] EmptyVisibleLayout becomes EmptyLayout.
Change-Id: I2e33cf32ced72e47c72d2793fcc6cd98aac4eb4d
2018-04-16 17:49:10 +02:00
Léa Saviot
51312f8af1 [poincare] Add right margin to superscript layout.
Otherwise, in 2D edition, the indexes of a root and an exponential merge
visually into one index: e^(123)root(1,456) displays "123456".

Change-Id: I9bda14350e624181af2de66653481f3fc7ff0982
2018-04-16 15:25:03 +02:00
Léa Saviot
9f9692b009 [poincare] Add numberOfSignificantDigits arguent in writetextInBuffer
Change-Id: I1bef3462dbdfd94bff0af0e9d569d0ecf63d157c
2018-04-10 17:55:20 +02:00
Léa Saviot
7e1e811082 [poincare] Fix bug when deleting an empty VerticalOffsetLayout.
Change-Id: Ic2d2248c783a718521c65b7cc2e15406926a8e94
2018-01-29 15:31:21 +01:00
Léa Saviot
40ef1d1caa [poincare] Fix cursor position bug when deleting VerticalOffsetLayout.
Change-Id: Ie53030e5bff6876c75a785a61f6c43604bee2b05
2018-01-29 14:10:38 +01:00
Léa Saviot
1ad4e6e744 [escher/poincare] Remove unneeded layout computation.
When moving a cursor in an EditableExpressionView, do not recompute the
layout, unless specified otherwise (for instance when entering or
exiting a MatrixLayout).

Change-Id: Ic2471095d6f6a08014a79f1d9d8fb7d39a1a6864
2018-01-18 17:55:16 +01:00
Léa Saviot
65666dc35f [poincare] Fixed vertical offset layout serialization.
There was a problem with omitted multiplications: 1^2 3 would be
computed as 1^(2*3).

Change-Id: Ifc4b0e0bd61fad1b752e1415c6dd0cf3b3b1f3a6
2018-01-18 15:41:24 +01:00
Léa Saviot
7abcfecb9c [poincare] Change empty Power layout deletion.
Change-Id: Id9b6b0c2701d70f436c3a033c23c120a41f7feda
2018-01-16 16:43:40 +01:00
Léa Saviot
16fad9f9fb [poincare] Cleaned backspaceAtCursor for layouts.
Change-Id: I232fa7af24a9983d3acfb3460042cb32bfcef81f
2018-01-15 11:58:07 +01:00
Léa Saviot
1717b470c8 [poincare] When replacing a layout, ask the parent to move the cursor.
Change-Id: I0ddb0e791d328c2f141aefc604569ef4fcc6c0c5
2018-01-15 11:58:06 +01:00
Léa Saviot
4009a0d879 [poincare] VerticalOffsetLayout and mustHaveLeftBrother() for Layouts.
Change-Id: Ibd4666806bb0af2a2babe892c8a9906747c18e9a
2018-01-15 11:58:04 +01:00