Commit Graph

489 Commits

Author SHA1 Message Date
Émilie Feral
4e5b68b45d [escher] Fix bug due to int32 overflow
Change-Id: If9760bd9082b7e3f8ebea04cef1df63bae39a2a6
2017-09-27 17:41:33 +02:00
Émilie Feral
feeec6b826 [escher] Add behaviour for end and origin events
Change-Id: I363dad3c566289a285179a9f26d3a779f0ff812f
2017-09-27 10:28:16 +02: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
8a50b42611 [escher] Fix bug in text area (afl-fuzz) 2017-09-06 17:40:46 +02:00
Émilie Feral
10c42e276a [escher] Add a gauge view and a message table cell with gauge 2017-09-06 17:34:18 +02:00
Adrien Bertrand
f34bf67bab build: fix warnings
* escher/src/text_area.cpp:113:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* liba/src/external/openbsd/k_rem_pio2f.c:66:54: disable -Wmisleading-indentation
2017-08-30 13:01:22 +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
71c11bd22c [escher] In text area, change the behaviour of clear event
Change-Id: I4bc49d54f84a2db7155c63d962a2c28fe3c614a5
2017-08-28 11:51:11 +02:00
Émilie Feral
fdf1d23248 [escher] Fix bug: alternate empty view controller do not handle onOff
event

Change-Id: I9a597eef6f24e954830c79950ed11fe3536b6866
2017-08-25 13:36:30 +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
c189876673 Correct typo: initiate -> initialize
Change-Id: I2282bf4df87094679135176555ac18d9678de0b4
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
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
0449f535da [escher] In text area, EXE insert a \n
Change-Id: Ib170c6eea16ff961f6a9daee4dd94b96b6fef333
2017-08-18 13:34:35 +02:00
Émilie Feral
212384986f [escher] Fix insert text in text area
Change-Id: Ia488811bfbc7399fb3a5fa8390bd693e35639008
2017-08-18 13:34:34 +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
06b47f363e [escher] In text area, fix bug regarding the size of the area
Change-Id: I2f04eedfd98373702e48e0abda421afe2c0540fa
2017-08-17 16:21:22 +02:00
Émilie Feral
e0a1653ff7 [escher] Fix bug in table view
Change-Id: I2082f827b0480ad7e40e8439c5f0c65449010f1f
2017-08-17 16:21:22 +02:00
Émilie Feral
85ee2d2a83 [escher] In text area, clean warnings due to comparisons between sign
and unsigned int

Change-Id: If744543a1955c8a9fe5987c43b24d863164c56a3
2017-08-17 16:21:22 +02:00
Émilie Feral
587406bccd [escher] In modal view controller, draw the regular view only if the
modal view does not cover all of it

Change-Id: I0eedcb881fa30ffad83cd371e59908810b4e179f
2017-08-17 16:21:21 +02:00
Émilie Feral
7f6ee28f4e [escher] Move redraw method from App::didBecomeActive to
Container::switchTo

Change-Id: Ifa8bd2a37a754257d1f44d64b789f2efd25f96de
2017-08-17 16:21:21 +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
Émilie Feral
8e5691bcc7 [escher] In container, initiate the window when switching to first app
Change-Id: I782f017320279cdd2076b950f10ee6a9e7d69ffa
2017-08-17 16:21:20 +02:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +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
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
6afa7cd3fd [apps/hardware_test] Redesign hardware test
Change-Id: Id2c55fe66ca68ce617ea131f5cfb77d78557860b
2017-06-01 09:43:22 +02:00
Émilie Feral
747bcb808a [escher] Clean tab view controller
Change-Id: Ia56e0d9d4efd9bad87e7ef4c7a183f0c7efedaad
2017-05-31 12:21:46 +02:00
Émilie Feral
fe9e6ec59a [escher] Clean scroll view
Change-Id: I7eb00da6c9d8a60847c108eed5355bdb289dbebb
2017-05-31 12:14:24 +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
30d3ff16a8 [escher][apps/shared] In table view, when scrolling to a cell, check if
the table size has not decreased to adjust the offset

Change-Id: Ifd89ec2b51b2adb9ca860ce0b58f2b6e58b838a1
2017-05-31 11:54:54 +02:00
Émilie Feral
1d7d7f4ef1 [escher] In scroll view, mark the indicator rect as dirty if the scroll
indicator parameters has changed

Change-Id: I3136f8613a08d5b8e7c8039502f77f552f7868c2
2017-05-31 11:54:54 +02:00
Émilie Feral
53f4fd0b06 [escher] Reset superview when a modal view is dismissed
Change-Id: I2d3ee97f7ade486f5cf8ba16851866d60dd6cdb6
2017-05-24 15:32:26 +02:00
Émilie Feral
d7091397e5 [escher] Rule of 5 in view
Change-Id: Iba04e9046845b544e184530562e34f831fce96f6
2017-05-24 15:32:22 +02:00
Émilie Feral
9181e7cf5d [escher] In view, reinit subviews' superview at destruction
Change-Id: I5d131900ebc5b5ba18171a41c7bd61754770d8fd
2017-05-24 14:38:49 +02:00
Émilie Feral
c644a8d4f7 [escher] Fix bug: do not redraw window at each timer fire but only for
timer requiring redraw

Change-Id: Ia39a35185a4836809970f5ba77cc76a8b2e6ee26
2017-05-23 15:25:00 +02:00
Émilie Feral
085a1188ee [escher] Repaire optimal size for message text view
Change-Id: Icd28a58eef0d470fb9d73b1a35a5585e01f99d07
2017-05-23 15:15:44 +02:00
Émilie Feral
8665978b2e [apps/probability] Clean (add a page index in snapshot)
Change-Id: I1631136cf4912225b88d26cd3cd9d36fa91db5f0
2017-05-23 15:15:35 +02:00