Commit Graph

31 Commits

Author SHA1 Message Date
Léa Saviot
9e87172800 [poincare] moveLeft renamed cursorOnLeft, same for other directions
Change-Id: Ic46604ea81eabdb2e10755a67307169d90654efd
2018-04-23 09:41:19 +02:00
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
829cd06685 [poincare] Fix some layouts up/down navigation
Change-Id: I1a69651ca41899557489318fe4d4609e51308036
2018-04-20 11:30:22 +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
70f28aea4b [Coding style] Change "brother" into "sibling"
Change-Id: I6f07be262358641875d3024d1741285c5895b8d6
2018-04-19 16:16:17 +02:00
Léa Saviot
ba97e63580 [poincare] EmptyVisibleLayout becomes EmptyLayout.
Change-Id: I2e33cf32ced72e47c72d2793fcc6cd98aac4eb4d
2018-04-16 17:49:10 +02: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
16fad9f9fb [poincare] Cleaned backspaceAtCursor for layouts.
Change-Id: I232fa7af24a9983d3acfb3460042cb32bfcef81f
2018-01-15 11:58:07 +01:00
Léa Saviot
bf4ccd76ea [poincare] Show grey squares in a matrix only if the cursor is in it.
Change-Id: I2e622de51a9c7af7b676ae9bd7bb3e9681f5d051
2018-01-15 11:58:07 +01:00
Léa Saviot
914b181e06 [poincare] Change the way to delete a matrix.
Delete the matrix if the cursor was right of it. If the cursor is left
of a child on the left, now just move Left.

Change-Id: I4bccaec9f7c23c4da3dd1d9ab59c8fd6641d5a3f
2018-01-15 11:58:07 +01:00
Léa Saviot
95327d0afc [poincare] Remove empty row/column in MatrixLayout.
Change-Id: I58f7b7f5e1256afd769f773bef8caea43a40c7a1
2018-01-15 11:58:06 +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
e821ed2ad9 [poincare] Add a row or a column to a GridLayout.
Change-Id: I3e58ce84c05c9d64481942e6e7896409a20ddb8a
2018-01-15 11:58:06 +01:00
Léa Saviot
663c90f764 [poincare] MatrixLayout.
Change-Id: I57c67a95fadcfd7ea320d4fef49e45b4e166a40d
2018-01-15 11:58:06 +01:00
Léa Saviot
6334e2f435 [apps] Change MathToolbox's binomial coefficient layout.
It now uses a Parenthesis layout.

Change-Id: Ia83d7881a57bc91e41d125fef1e2a648d0278946
2018-01-15 11:58:05 +01:00
Léa Saviot
3fe7295f6c [poincare] ExpressionLayoutArray was a method, it is now a class.
Change-Id: Iddde7ed9d8a8539193c6547a9e718865ff8e8cc7
2018-01-15 11:58:04 +01:00
Léa Saviot
ccd25a360d [poincare] Serialize expression layout.
We can now convert layouts into text: we will be able to parse them
into an Expression.

Change-Id: I82f4834c08f5b2c5fb294bdcb9a49257b574e20b
2018-01-15 11:58:04 +01:00
Léa Saviot
48e20abe73 [poincare] Navigation and delete in GridLayout.
Change-Id: I8357150d9f15dd003ab97e09981d164d57235739
2018-01-15 11:58:03 +01:00
Léa Saviot
693fb5e400 [poincare] Clean Layouts.
Do not compute the baseline at construction, and use base class
constructors.

Change-Id: I4361a6d92d7652b2aae2d662388b8d2c90afd3ce
2018-01-15 11:58:03 +01:00
Léa Saviot
241d37afa5 [poincare] Recompute baselines when needed.
Change-Id: I4ec717402a4dfd287aa95f45189e1734e4f5e3ed
2018-01-15 11:58:02 +01:00
Léa Saviot
0cc1d99a54 [poincare] Static and Dynamic Layout hierarchies.
Change-Id: I3b47dbd76552b77db762482932518a74c1996cc0
2018-01-15 11:58:01 +01:00
Léa Saviot
a4c014c75e [expression_editor/poincare] Move Down in an ExpressionLayout.
Change-Id: I87f3394cce5eb4936ab926d5e92fdf44d4473cf7
2018-01-15 11:58:01 +01:00
Léa Saviot
fc8cd6c06e [expression_editor/poincare] Move Up in an ExpressionLayout.
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
2018-01-15 11:58:01 +01:00
Léa Saviot
29e549d475 [expression_editor/poincare] Move Right in an ExpressionLayout.
Change-Id: Ib5f018666350d6bb061272ae7b04b6f721d50e84
2018-01-15 11:58:01 +01:00
Léa Saviot
78c02e6871 [expression_editor/poincare] Move Left in an ExpressionLayout.
Change-Id: Id69def65e0976bfb045c1da6e8786a2f5797120c
2018-01-15 11:58:01 +01:00
Émilie Feral
15610064fa Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Émilie Feral
7ae6241acd [poincare] Fix all layouts: redefine baseline
Change-Id: Iff04bf9bee946050721fc095d1617586dc251d6b
2017-11-22 14:38:08 +01:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Émilie Feral
f73ddcd08f [poincare] Evaluation return numerical matrix
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
6da1fb2ae8 [poincare] Fix memory leak
Change-Id: I10f860eeb2fa4a7a1c6e358b208cc33f7d5d9d75
2017-03-16 15:12:09 +01:00
Émilie Feral
5c60a5d294 [poincare] Clean matrix layout
Change-Id: I86fce3e0915d1cab21b2b429525e31c9fdd993da
2017-03-16 15:12:08 +01:00