Commit Graph

384 Commits

Author SHA1 Message Date
É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
fe4a3e8058 [escher] Increase textfield size
Change-Id: I1fed662ad11ecb556a5a1f8a5a2828ccb7fb600b
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
a9f4da92c0 [code/python] Fixed the Kandinsky module in Python.
User can draw on the 320*220 drawing screen.

Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
2017-11-21 17:12:38 +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
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
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
ce51228ca8 [escher/code] Changed Console and TitleBar margins.
Change-Id: I8ac4d84da84e0194122f34bb6259a1a7b6a1c81e
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
Léa Saviot
68e237702b [escher/apps] Factorization of Toolbox.
MathToolbox methods moved to its parent, Toolbox (in escher).
Node and ToolboxNode classes renamed MessageTree and ToolboxMessageTree.
They are now in escher/, not in apps/.

Change-Id: Ibb26b0e9016094cef79506a1e9fc6dfb492d7103
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
b7baec4a40 [code] Keyboard events translation, for script or command edition.
For instance, the "power" event should insert "**" in the text, not "^".
Added a universal i18n file in apps/code.

Change-Id: I5d067b0c5b86590af95aa98856522d54e42acba6
2017-11-17 11:59:50 +01:00
Léa Saviot
681be23c30 [code] Auto indentation in the script editor.
Change-Id: I7066c41fa53068e6f18a5ad226b5e72f591f02e2
2017-11-17 11:59:50 +01:00
Léa Saviot
45aa526cd6 [code] Fixed SelectableTableView selection problem.
If adding a script fails, the selectableTableView should select the "Add
script" line.

Change-Id: I373cdfa0afcc334e4bf306b1cee4bfb817417980
2017-11-17 11:59:50 +01:00
Léa Saviot
fbb5c70339 [code] Cleaned Script and ScriptStore classes, created accordion.h
A Script object now contains its AutoImport marker, its name and its
content. The ScripStore methods have better names and the optimization
is cleaner.

Change-Id: I1b21af2d23f1c9a34f984309512b0c01b2f1c320
2017-11-17 11:59:50 +01:00
Léa Saviot
a14cfd0aea [code] Script names are displayed and can be edited.
Change-Id: I5acc468920b66673e78da130bf90a74d0c062211
2017-11-17 11:59:50 +01:00
Léa Saviot
f3200fe2e9 [code] Program store that uses an accordeon buffer to store the
programs. The user can now add scripts.
A contextual menu displays various options when clicking on a script,
such as editing.

Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
2017-11-17 11:59:50 +01:00
Émilie Feral
10c42e276a [escher] Add a gauge view and a message table cell with gauge 2017-09-06 17:34:18 +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
71c11bd22c [escher] In text area, change the behaviour of clear event
Change-Id: I4bc49d54f84a2db7155c63d962a2c28fe3c614a5
2017-08-28 11:51:11 +02:00
Émilie Feral
c6598fb24d [escher] Fix bug with modal view: linked to commit:
In modal view controller, draw the regular view only if the modal view does not cover all of it

Change-Id: Ieab97e56a8da611a029fb6b42efcd2020c1b4b30
2017-08-25 11:20:49 +02:00
Émilie Feral
b15d65eb7a [escher] Implement clear in text area
Change-Id: Id3c636a1dfc95c8989c6226db962e3e7d180d271
2017-08-25 11:20:48 +02:00
Émilie Feral
8715c53d7e [escher] Correct buffer limits check in text area
Change-Id: Id7653bc36cac300f3205c04cfa5f6c0d17b6f84d
2017-08-25 11:20:48 +02:00
Émilie Feral
a82726fdbe [escher] Avoid warning in text area
Change-Id: Ia8889670f2f489e1c881e39da60e91d98ade7748
2017-08-25 11:20:40 +02:00
Émilie Feral
8f65fb6535 [escher] In text area, correct move cursor
Change-Id: I4705129f3739c0548381a555f03e6ca08704bec7
2017-08-24 14:05:24 +02:00
Émilie Feral
779db66a15 [escher] In text area, optimize the dirty tracking
Change-Id: Icfee9e22ea4f3423064eca764491da10e1b603b6
2017-08-24 14:05:24 +02:00
Émilie Feral
5f14bba390 [escher] In text area, add bounds check to moveCursorIndex
Change-Id: I1768cad3706e1530ee74803242296301ba53ae1e
2017-08-18 13:34:35 +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
319955424b [escher] In table view, use scrollToContentRect instead of recomputing
everything

Change-Id: Idb3ec8218386b03bc34d08fcd888d1a671ea98f9
2017-08-17 16:21:20 +02:00
Romain Goyet
4e08d520da [escher] TextArea can now edit its content
Change-Id: I129a184bc94975c8dd5fd2e7b8c63309978bff02
2017-08-04 17:27:37 +02:00
Romain Goyet
f9b44b8e7b [escher] ScrollView::scrollToContentRect
Change-Id: I20db5dcee4e34b8a0bc08fda5938e8e647d3dea7
2017-08-04 17:26:42 +02:00
Romain Goyet
20e1554a13 [escher] First working TextArea implementation
Change-Id: Iae9618f54813be9f116d4797feec6fd163a37a66
2017-08-03 23:28:24 +02:00
Romain Goyet
5a4fc8af5d [escher] ScrollableView can now scroll in both directions
Change-Id: Ic389c6eaa0ee182b8f9167248ca369e51fd9e54a
2017-08-03 23:25:47 +02:00
Romain Goyet
298a308f36 [escher] Add a TextArea view
Change-Id: I3dccb4baf806491dcd06050c4fd5d43b982c8f57
2017-08-03 18:41:17 +02:00
Émilie Feral
0588074174 Merge "[apps] Clean dispatch event apps container" 2017-07-28 10:19:18 +02:00
Émilie Feral
018013e323 Merge changes I4fcc116c,I2033a99f,I6dd667fb
* changes:
  [apps/hardware_test] Clean plugging USB test
  [escher] App can have timers that are ticked when the app is active
  [ion] Clean alpha shift event modifiers
2017-07-28 10:19:15 +02:00
Romain Goyet
42123dd03d KDImage now takes a KDColor buffer as pixel data
This prevents alignment issues, visible on emscripten for example.

Change-Id: I3b25a21214c5f3e4f08e5f299d4c20234a5824f6
2017-07-21 09:54:38 +02:00
Émilie Feral
1011fae644 [apps] Clean dispatch event apps container
Change-Id: I960fffd914c3b3e821e0654a7ad20318b5a7c807
2017-07-10 10:11:24 +02:00
Émilie Feral
e0f2fcb2f6 [escher] App can have timers that are ticked when the app is active
Change-Id: I2033a99fb2ebff030934b02d6128dce721012979
2017-06-30 11:21:33 +02:00
Émilie Feral
ba73e259ad [apps/shared] Resolve bug: when deleting an editable cell, reselect (and
thereby make it first responder) the right cell

Change-Id: Ia5bd99c338c93f0e81656ccc9271f486e51fd22b
2017-06-08 18:20:07 +02:00
Émilie Feral
f43b307856 [escher] In table view, add method 'reloadCellAtLocation'
Change-Id: I2d662669621392698ee963a6c8e70d3d2f4ee829
2017-06-02 16:56:41 +02:00
Émilie Feral
13e0cd97fa [escher] Widen all pop up box (to avoid croping toolbox texts)
Change-Id: I969ea119bb5b65ae6f03e484e8f07107712f40d1
2017-06-02 14:07:55 +02:00