Léa Saviot
bf6da61ca2
[escher/text_field] Fix privateHandleEvent text reset
2018-11-23 12:04:09 +01:00
Léa Saviot
860553b735
[escher] Fix cursor position in textfield
...
The cursor was not in the right place in TextFieldWithExtension
2018-11-23 12:04:08 +01:00
Léa Saviot
824ffd9c21
[escher] Fix TextField::setText update of draftTextLength and cursorLoc
2018-11-23 12:04:08 +01:00
Léa Saviot
5f4c94af67
[escher] Fix TextField::handleEvent bug
2018-11-23 12:04:08 +01:00
Léa Saviot
a0e716c1ad
[apps/eschr] Rename textFieldDidHandleEvent parameter textSizeDidChange
2018-11-23 12:04:06 +01:00
Léa Saviot
293300973b
[escher] TextField::handleEventWithText escapes quicker with null text
2018-11-23 12:04:06 +01:00
Léa Saviot
aea98de6ec
[apps/escher] Fix "Clear" event handling in TextFieldWithExtension
2018-11-23 12:04:05 +01:00
Léa Saviot
e74e15eaf7
[apps/code] Handle too many Script default names used
...
When adding to many scripts without naming them, one can overflow the
number of default generated script names, in which case we force the
user to enter a name.
2018-11-23 12:04:05 +01:00
Émilie Feral
7e7c77a0e8
[escher] TextField and LayoutField handle move events while in editing
...
mode to avoid leaving unexpectedly edition mode
2018-11-23 12:04:03 +01:00
Émilie Feral
0a823da78c
[escher] Variable box pop-up is handle as Toolbox pop-up by asking
...
InputEventHandlerDelegate
2018-11-23 12:04:03 +01:00
Léa Saviot
5ecd733904
[escher] Add comment in TextField::privateHandleEvent
2018-11-23 12:04:03 +01:00
Léa Saviot
96c105620a
[escher] Force re-layout when aborting text field edition
2018-11-23 12:04:03 +01:00
Émilie Feral
d61ee2857b
[escher] TextField: never flush the buffer when textField has only one
...
buffer
2018-11-23 12:04:03 +01:00
Émilie Feral
6dc1250df2
[escher] TextField: fix edition toggling when finishing editing
2018-11-23 12:04:03 +01:00
Émilie Feral
698332c355
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
...
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Émilie Feral
7778c694d1
[escher] Create an InputEventHandlerDelegate that gives the toolbox to
...
be used by an InputEventHandler
2018-11-23 12:04:02 +01:00
Émilie Feral
01e433a9f2
[escher] Clean Field and Input class hierarchy:
...
Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
2018-11-23 12:04:02 +01:00
Léa Saviot
7b98467fa9
[apps/graph] Fix first responder when popup after renaming function
2018-11-23 12:04:02 +01:00
Léa Saviot
974519f61a
[apps/code] Use TextFieldWithExtension in the list controller
2018-11-23 12:04:02 +01:00
Émilie Feral
a93e9566ad
[escher] Create a parent class Field of TextField and
...
LayoutField
2018-11-23 12:03:59 +01:00
Léa Saviot
f2bfc8641f
[escher] Fix strlcpy inserted 0 when inserting text
2018-10-19 17:15:51 +02:00
Léa Saviot
5d92f13c26
Clean strlcpy arguments
2018-10-17 11:22:37 +02:00
Romain Goyet
f8beae3b86
[kandinsky] Move to KDFont
2018-10-11 16:44:02 +02:00
Émilie Feral
1bfbc7a5ef
[escher] Fix buffer overflow in TextField
2018-09-24 18:22:20 +02:00
Émilie Feral
f8f0813485
[escher] TextInput: get rid of variable-size tables
2018-09-17 17:14:43 +02:00
Romain Goyet
d2b2705d2d
[escher] TextInput doesn't use colors anymore
2018-06-04 16:08:11 +02:00
Émilie Feral
b2b141aae4
[escher] Fix underscore replacement for subscript insertion in textfield
2018-05-17 16:53:16 +02:00
Léa Saviot
b752ab0389
[escher] Add bool forceCursorRightOfText in handleEventWithText
...
Change-Id: I9124a1bacfce821fc761ddefc4d8b43de82dbc21
2018-05-17 13:42:20 +02:00
Émilie Feral
2e0a70f269
[escher] Fix bug in text field: casting a unsigned char to signed char give negative
...
values above 127...
2018-05-16 15:53:04 +02:00
Émilie Feral
203311f81b
[escher] Fix reading garbage memory in TextField
2018-05-14 13:38:28 +02:00
Léa Saviot
3b582a2e46
Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
...
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +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
912d084130
[escher] Fix textfield edition when initial text.
...
Change-Id: Ieee10ec6fcbe6464dee2748de033f269169789d9
2018-04-23 17:18:56 +02:00
Léa Saviot
13ae1d2545
[apps/escher/toolbox] handleEventWithText for all responders.
...
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.
Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
06ace4369c
Clean warnings (comparison signed and unsigned)
2018-03-28 10:01:21 +02:00
Émilie Feral
b0ede47d55
[ion] Change Storage design (former kallax)
2018-03-22 14:01:38 +01:00
Émilie Feral
19ca0f0640
[apps] Code: use the FileSystem to store the scripts instead of an
...
accordion
2018-03-22 14:01:38 +01:00
Émilie Feral
4c796d404f
[escher] TextField: prevent from inserting text with \n
2018-03-22 13:12:12 +01:00
Émilie Feral
aade7cb2fe
[escher] Create a class TextInput (from which derived TextField,
...
TextArea)
2018-03-22 13:12:12 +01:00
Émilie Feral
576caa039f
[apps][escher] Add methods 'handleEventWithText' in TextField and
...
TextArea to fix bug in probability (adding a toolbox text from the
calculations controller)
2018-03-22 13:12:12 +01:00
Émilie Feral
7fcf77ce23
[escher] Fix bugs in TextField:
...
1. The cursor size is counted twice in minimalSizeForOptimalDisplay (bug
in regression table for instance)
2. Avoid layouting twice after scrolling by enabling overscroll
2018-03-22 13:12:12 +01:00
Émilie Feral
2b0b40d6d6
[escher] TextField: force layout after scroll reload when the content
...
size of scrollview might have changed
2018-03-22 10:22:18 +01:00
Émilie Feral
4af6e71e21
[escher] Fix bugs in TextField:
...
1. The cursor size is counted twice in minimalSizeForOptimalDisplay (bug
in regression table for instance)
2. Avoid layouting twice after scrolling by enabling overscroll
2018-03-22 10:22:18 +01:00
Émilie Feral
8c32a61bb1
[escher] TextField: markAsDirty the previous text when setting a new
...
text
2018-01-30 18:19:27 +01:00
Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
2018-01-23 10:28:02 +01:00
Émilie Feral
1912ad0379
[escher] Bug in dirty tracking in text field: the cursor width was
...
forgotten
2018-01-16 13:20:31 +01:00
Émilie Feral
e8793c429c
[escher] In textfield: when calling textFieldDidHandleEvent, precise if
...
there was any modification in the text
2018-01-04 15:48:06 +01:00
Émilie Feral
e41ca318c7
[escher] TextField: change the method to get the optimal size for display
2018-01-04 15:48:06 +01:00
Émilie Feral
975f54c7b2
[ion] Change events name: Origin->ShiftLeft, End->ShiftRight
2017-12-07 17:42:39 +01:00