Commit Graph

77 Commits

Author SHA1 Message Date
Émilie Feral
975f54c7b2 [ion] Change events name: Origin->ShiftLeft, End->ShiftRight 2017-12-07 17:42:39 +01:00
Léa Saviot
53c8b2215f [escher] Added textFieldDidHandleEvent to TextFieldDelegate.
Change-Id: Iad2ea114dd75632a0204c081b2345aeea8131798
2017-12-04 17:01:48 +01:00
Léa Saviot
b8a856dd27 [escher] Layout a Textfield's subviews when the cursor location changes.
Change-Id: If38e6d0a3034de491bff2cd622e13b3203ca82b8
2017-12-04 16:11:19 +01:00
Léa Saviot
e43bbd38f2 [escher] Fixed TextField bug.
The Statistics apps crashed when navigating the Data table.
 -> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
 -> Changed textLength() to draftTextLength().

Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +01:00
Léa Saviot
13bf8c2d62 [code] Python toolbox.
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +01:00
Léa Saviot
0d6cb75425 [escher] Inlined TextField methods.
Change-Id: I2653bd3a97ba5c5a010f17ac3f7eb054013cd9d3
2017-11-17 11:59:50 +01:00
Léa Saviot
6ee47d6168 [code] Prevent script name extension edition.
Change-Id: I4ac8d032fd88b853670afeebaecc8d6fd5ef981d
2017-11-17 11:59:50 +01:00
Léa Saviot
95c6d9532b [escher] Fixed TextField.
A TextField delegate should process events before the TextField itself.
EditableCellTableViewController now verifies the position of the cursor to
determine if a Left or Right event should finish the TextField edition.

Change-Id: I6c8e78d6d02c7ab87e7d81770b4242a16fecde32
2017-11-17 11:59:50 +01:00
Damien Nicolet
6392735e70 Add orgin/end keyboard shortcuts, by pressing shift left or shift right 2017-09-20 10:16:34 +02:00
Émilie Feral
dd8caaa82e [escher] In textfield: change the behaviour of clear event
Change-Id: I6292faf383e40e7a9b00407bb5c052f92e49a1f6
2017-08-28 11:51:17 +02:00
Émilie Feral
54336b02b5 [escher] Fix bug in textfield: layout when delete the first char after a
right scroll

Change-Id: I272236f44d19266851d2ea8adef733d3459ac7d1
2017-08-28 11:51:17 +02:00
Émilie Feral
46990e1c25 [escher] Make textField used scroll view methods instead of duplicating
them

Change-Id: I10ca0b02f8a87797ce678041cba54c116961ce5c
2017-08-18 13:34:34 +02:00
Émilie Feral
ee51729eba [escher] Move from table view to scroll view the method a update the
scroll to the size of the content view

Change-Id: I2c4aa457425bf5a8a484aecc061ae27453e9aabb
2017-08-18 13:34:29 +02:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Romain Goyet
5a4fc8af5d [escher] ScrollableView can now scroll in both directions
Change-Id: Ic389c6eaa0ee182b8f9167248ca369e51fd9e54a
2017-08-03 23:25:47 +02:00
Émilie Feral
f96a4556aa [apps/sequence][apps/graph] Switch to editing the function after event
'toolbox' or 'variables'

Change-Id: Iaa7b04871c4a74abf2ddcfc5905804448c7a44a4
2017-05-31 11:54:54 +02:00
Émilie Feral
d7091397e5 [escher] Rule of 5 in view
Change-Id: Iba04e9046845b544e184530562e34f831fce96f6
2017-05-24 15:32:22 +02:00
Émilie Feral
bb6ffaeca0 [escher] Fix bug in text field
Change-Id: Ia77786c449de89d3155bfdba6e873f9d6dd5b901
2017-05-11 09:51:31 +02:00
Émilie Feral
3e3df48051 [apps/sequence|graph|calculation] ADd a margin in edited text fields
Change-Id: I5450720bc0d58bceb8ab490d4fb837b4d79eef73
2017-05-10 16:30:46 +02:00
Émilie Feral
4e0e285501 [apps][escher] EXE and OK trigger the same behaviour
Change-Id: Ide7d38fbc445be717e50ed46f2d784c02c9830e4
2017-05-10 12:04:30 +02:00
Émilie Feral
0517066cc0 [escher] Extrude scroll view model to its delegate
Change-Id: If863de63f5f77edb5e2905633067e03aecdd8937
2017-05-03 10:22:01 +02:00
Romain Goyet
d3d9d43cba [escher] TextField: remove an useless reload
Change-Id: Ifed46f3b62189c7fb3940966d274050af7fc614f
2017-04-26 18:33:47 +02:00
Émilie Feral
4b40e68ac9 [escher] Do no insert empty text in text field
Change-Id: I9e82eb9c3d7d1ba680fd5895ec421cb2f04b92ec
2017-04-25 14:59:01 +02:00
Émilie Feral
b08200c7ef [escher] Correct paste in textfield
Change-Id: Ia0982ed7889a79c6be4f56b4c6718bcf5a7ac606
2017-04-25 14:45:27 +02:00
Émilie Feral
1f312d8d54 [escher] Change name clipboard
Change-Id: Ie222b9c7c380346759eaec26626cf76068576a94
2017-04-25 14:01:31 +02:00
Émilie Feral
069af60e9a [escher] In text field, implement copy/cut/paste event handling
Change-Id: I8a4ada4aa983630e57b1a80cc766335b90aa8623
2017-04-25 11:58:42 +02:00
Émilie Feral
cde8969b3e [escher] Cleaner code in textfield
Change-Id: If74fd9b9a70f68083c56033014bd49bb17a40d6d
2017-04-25 11:53:12 +02:00
Émilie Feral
4781a8f1fa [escher] In textField, do not set the cursor at random locations when
the text could not be inserted

Change-Id: I555d0a7031962cda9c2c12f17ee2e11ced76cc9d
2017-04-25 11:00:11 +02:00
Émilie Feral
f9e4e7112f [escher] In textField, fix bug (overwriting outside the buffer !!)
Change-Id: Id757a967400e9cfe521cbd510eaafc9848853b36
2017-04-25 11:00:11 +02:00
Émilie Feral
102fa8d46f [escher] Fix bug in textField
Change-Id: I08a674bb36118b6f545077f65679597bd36f2884
2017-04-25 11:00:10 +02:00
Émilie Feral
113b9025ca [escher] In textField, reinit edited text after event "Clear"
Change-Id: Ieb302896e57052761166851e5ceffcabd933482a
2017-04-24 17:36:33 +02:00
Émilie Feral
f3eb2b80df [escher] In textField, record edited data when changing selection
Change-Id: I74e1cac2188986244f79e7c5ad0eb1d300510475
2017-04-24 17:36:32 +02:00
Émilie Feral
f28230b06a [escher] When textfield receive "^2" (square) event, the cursor should
position after the 2

Change-Id: I76c0cf4724f06e7af70a329701003bc32d61fde8
2017-04-03 15:26:57 +02:00
Émilie Feral
5fb32f682c [escher] Fix bug in text field
Change-Id: Id5289c9abc6c58e4ed122d95a617db421e7533ab
2017-04-03 15:22:17 +02:00
Émilie Feral
6dfbafdbac [escher] Fix bug in text field (scrolling issue when deleting characters)
Change-Id: I5ac63e7f3c78fd6e87f7de3e3d2d25cac58e3417
2017-04-03 10:34:25 +02:00
Émilie Feral
151423320e [escher] Resolve bug: specify text field for controller with one only
text buffer

Change-Id: I371c37869e6e48b819cf4af70f7544e2844a3fee
2017-03-29 18:36:47 +02:00
Émilie Feral
21019d24e2 [escher] In text field, change background color when editing
Change-Id: I054ce60bb8c7e96076a8f8cafe773d6506d2766a
2017-03-29 18:36:45 +02:00
Émilie Feral
0a3692cfac [apps/shared] Do not reset the textfield is the data has not been
updated (syntax, math error)

Change-Id: I53301c2bdf59e03d0c2bcdb56b0da4d86d83bb5e
2017-03-29 18:36:39 +02:00
Émilie Feral
6d8d105d7e [escher][apps] Clean and fix bug in text field
function application)

Change-Id: I5d425ea7752a054ea6b05735b12442c4429f13b4
2017-03-29 15:04:37 +02:00
Émilie Feral
85b27c372d [apps/calculation] Fix error: scroll when copying a history line
Change-Id: I6120c22afd63abe6ac5bf4e264ad7fcc712fe291
2017-03-29 15:04:37 +02:00
Émilie Feral
de893300ad [apps/calculation] Do no reinit the edited text when reselecting the
edit expression controller

Change-Id: I9426e6ec4b4a12801f854b832b479ba5802b9aed
2017-03-29 11:34:47 +02:00
Émilie Feral
9097065ffe [escher] Fix bug due to type confusing
Change-Id: I4a3072a69858b7fdee5215d80e4ce238612a5cd7
2017-03-29 11:34:46 +02:00
Émilie Feral
eb4a217e0d [escher] Correct bug in text fields
Change-Id: I3e7682c6d0e3f41d5ee3392b55f8a73bcf910a18
2017-03-20 14:55:59 +01:00
Émilie Feral
d862001bc3 [escher] In textfields, in editing mode, OK == EXE
Change-Id: I83c9fd8f6c5ea5348067108899a065a3b1d69d5c
2017-03-08 15:47:16 +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
4a73a7ab0f [escher] Correct text field
Change-Id: I3f7c7b26a2ff51366cfc241bc50f90fa5c050a72
2017-03-07 13:28:26 +01:00
Émilie Feral
11ed29840b [escher] Make textField scrollable in editing mode
Change-Id: I0ecc72060f4679ba027c3a53b839bb53eec30049
2017-03-07 13:28:26 +01:00
Émilie Feral
c584d1fb4e [escher] Add toolbox event handling in responder [apps] Correct the text
field delegate app accordingly

Change-Id: I180fe53aaa1e0929b357d3985f584937fba2ecca
2017-02-20 10:48:50 +01:00
Émilie Feral
0d41808d90 [escher] Fix bug in textfield
Change-Id: I86df7fb5c95c0a030018b332ee5dfa63c66b4127
2017-02-16 16:34:13 +01:00
Émilie Feral
93d272486f Clean warnings
Change-Id: I79a3a97c5c118c9d6e1436e51b45cb51fee3c21f
2017-01-30 15:30:58 +01:00