É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
9dd637f7c3
[apps] Settings: clean number of rows
2018-03-22 10:19:15 +01:00
Émilie Feral
2f5f94ade0
[escher] Toolbox: back event on toolbox with no page depth is handled by
...
the modal view controller
2018-02-14 12:04:18 +01:00
Émilie Feral
612a436bf6
[escher] Revert 'Clean useless reload'
2018-02-01 14:13:26 +01:00
Romain Goyet
67f082f4e8
[emscripten] Use emterpreter
...
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Romain Goyet
314fde955a
[escher] Add a PointerTextView class
2018-02-01 14:10:26 +01:00
Émilie Feral
bce658052c
[escher] Fix uninitialized read
2018-02-01 12:19:33 +01:00
Émilie Feral
8c32a61bb1
[escher] TextField: markAsDirty the previous text when setting a new
...
text
2018-01-30 18:19:27 +01:00
Émilie Feral
5d8256435e
[apps] Probability: fix bug; in calculation controller, when reloading cells after editing textfield, do not reload selection (it corrupts the responder chain if the first reponder was a modal view for ex)
2018-01-30 18:09:59 +01:00
Émilie Feral
126212e25b
[escher] SelectableTableView: add an option when reloading data
2018-01-30 18:09:59 +01:00
Émilie Feral
f97cbd6d20
[escher] Clean useless reloadData
2018-01-30 18:09:59 +01:00
Jean-Baptiste Boric
56c6c17b57
[escher] Fix Valgrind uninitialized read
2018-01-23 11:36:27 +01:00
Émilie Feral
be59ec0bfd
[escher] Fix stack view title layout: re-add a grey line below stack
...
titles
2018-01-16 13:21: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
a8b3fbbe5e
[escher] Fix error in list view data source
2018-01-04 15:48:06 +01:00
Émilie Feral
faac0d7a58
[escher] Change TableView::size() to
...
TableView::minimalSizeForOptimalDisplay()
2018-01-04 15:48:06 +01:00
Émilie Feral
26bbfa85ec
[apps] Probability: fix bug in layout (the textfield was moving when
...
adding characters)
2018-01-04 15:48:06 +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
66ba406093
[escher] In table view: change the order of the layout: reload the data
...
BEFORE resizing and layouting cells
2018-01-04 15:48:06 +01:00
Émilie Feral
870994e11d
[escher] Add a getter for the modal view in app
2018-01-04 15:48:06 +01:00
Émilie Feral
bc78a0b19e
[escher] Add a method in view: relativePointForPointInView
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
077a95197e
[escher] SelectableTableView handles setting the ccell as first
...
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
975f54c7b2
[ion] Change events name: Origin->ShiftLeft, End->ShiftRight
2017-12-07 17:42:39 +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
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
Émilie Feral
db35fc1d72
Merge branch 'cas_with_python' into python_console
...
Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
2017-12-01 17:29:55 +01:00
Léa Saviot
62fe441b7a
[code] Add parentheses after function names in Var.
...
Change-Id: I7e3e993d07139c40c6bd59fd5879b3ee091f5127
2017-12-01 16:11:31 +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
a78bd0db88
[apps/escher] Harmonize Toolbox and VariableBoxController row heights.
...
Change-Id: I8e6c5543d46480a1129f3812ca40c29e4407eac1
2017-12-01 12:06:05 +01:00
Léa Saviot
bc4d2768d0
[escher/code] Cleaned Toolbox rowHeight().
...
Now it is set in escher/toolbox.h, with value 40 and no differentiation Node/Leaf.
Change-Id: I0809d87a5df5b8bffe201c9faf72ff901430cbe5
2017-12-01 12:06:05 +01:00
Émilie Feral
a5c984fce3
[apps] Calculation: change the grey of approximate output
...
Change-Id: Iac001fc581544af0634ad1d7765074f69aa07809
2017-11-23 11:49:52 +01:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +01:00
Léa Saviot
5bfc482e62
[escher] textArea now returns a bool when inserting text.
...
Change-Id: I79111148e8e8b30abb24a6aecea0c187dbd7e2f6
2017-11-21 17:37:48 +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
Léa Saviot
f2e2e93888
[code] Larger console button in MenuController.
...
Change-Id: Ia8a495d4de95a4a9d6fee698975b2c7e831c4c43
2017-11-17 14:05:23 +01:00
Léa Saviot
57633829a9
[code] Split the Menu Controller in two columns.
...
The scripts names are on the right and open the script edition.
The left cells open the script options.
Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
2017-11-17 14:05:23 +01:00
Léa Saviot
07c6acada4
[escher/code] Move Accordion from escher/ to apps/code/.
...
Change-Id: Id90ef9791f8c18bcdce497b8e20f060314f7b58b
2017-11-17 14:05:23 +01:00
Léa Saviot
ce30428306
[escher] TextArea handles Paste event.
...
Change-Id: I33c0d21093f94edd987d7f4d2f7fd7363a1ee525
2017-11-17 14:05:23 +01:00
Léa Saviot
58e5e3c337
[escher] Fixed Toolbox bug.
...
The Toolbox did not always redraw itself when needed (for instance, when going
back from the For submenu in the Code Toolbox).
Change-Id: I157b883e321a497b4b958aae53c4e8406bad1725
2017-11-17 14:05:23 +01:00
Léa Saviot
59c840ef9a
[code] Auto-indentation when inserting Toolbox items in scripts.
...
Change-Id: Id444ab91965999a3d322dee2fa58f73c86aa6992
2017-11-17 14:05:23 +01:00
Léa Saviot
4f74b6d849
[code] The addScript button disappears when needed.
...
When there is already the maximal number of scripts or when the
ScriptStore accordion buffer is full.
Change-Id: I0d43d42626da7f060a2309c66f1806b35a29bf38
2017-11-17 14:05:23 +01:00
Léa Saviot
42e6435973
[code] Fixed Script edition cursor bugs.
...
The scroll is now reloaded when text is inserted or a new line is
entered. When opening a script, the cursor moves to the end of the
script.
Change-Id: I027ea80db485916fc3fc962cfa9e032ca0bbc81e
2017-11-17 11:59:50 +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
fbdf6379d8
[code] Script editor and Console are stacked.
...
Before, they appeared in modal views.
Change-Id: I42ea742370cd3cf0854965f67fc44b43db4cc309
2017-11-17 11:59:50 +01:00
Léa Saviot
eadf4a018a
[escher] New handling of stack view headers in StackViewController.
...
A boolean in ViewController states if the ViewController wants MaximumSpace (do
not show any stack view headers), or if it does not want to add its own title to
the stack view headers. If the ViewController's title is null, it is not added
to the stack view headers.
By default, ButtonRowControllers do not want to add their title (because they
are only used for now in TabViews, where the title is already displayed in the
tab).
Change-Id: I9e4c64b845262e4d44eb03cf769950f9c9e67a3a
2017-11-17 11:59:50 +01:00