Commit Graph

31 Commits

Author SHA1 Message Date
Gabriel Ozouf
54c28fc87f [escher/modal_view_controller] Hide regular view
Do not display the regular view when the main view takes up all the
frame.
This fixes a bug causing the language menu to be briefly visible before
the logo on start-up.

Change-Id: Ia2de44de52ac6f852e0eca05101587042f02913b
2020-11-04 15:33:00 +01:00
Léa Saviot
2eaf84cc73 [escher/app/modal_view] If will exit app, do not relayout
App::willBecomeInactive calls dismissModalViewController, which puts
back the previous repsonder and calls layoutSubviews on the
modalViewController. We do not want to do all these operations when the
app will be exited anyways.
2020-02-12 15:13:18 +01:00
Léa Saviot
9f018eb9d9 [escher/view] setFrame and layoutSubviews can be forced 2020-02-12 15:13:15 +01:00
Ruben Dashyan
bc8b5af2e6 [escher/modal_view_controller] didBecomeFirstResponder selects modal view if displayed 2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Ruben Dashyan
b4cac92af2 [escher/modal_view_controller] Clean didBecomeFirstResponder 2019-07-19 15:06:25 +02:00
Ruben Dashyan
17795eed87 [escher] Include container.h instead of app.h
app.h did actually include container.h
2019-07-19 15:06:25 +02:00
Ruben Dashyan
acecb92f75 [escher/*_view_controller] New ViewController::initView() method
Does some part of viewWillAppear().
2019-02-18 16:49:58 +01:00
Léa Saviot
8778516fe2 [escher] expressionLayoutFieldDidChangeSize reloads only the modalView
Change-Id: Ib406c7d10e2befae9d660e025c84df58a2e9b70c
2018-04-25 15:15:12 +02:00
Léa Saviot
9f09ee8339 [escher] Remove big modal view drawing hack.
Change-Id: I09b0d9ee1db8db9a736577770f540e69cc78d660
2018-04-25 13:58:43 +02:00
Léa Saviot
d9c89ea0c9 [escher] ModalViewCtrlr: don't dirty main view when dislaying sibling
Change-Id: I7d1a555055bc3d9a3f9801e96c792d45ab2011d4
2018-04-25 13:58:43 +02:00
Léa Saviot
b90dea7cee [escher] Rename frame() method in ModalViewController.
Change-Id: I157b3fb20af5cb3013d53bef51ba98d192654409
2018-04-19 16:31:35 +02:00
Léa Saviot
7e9fba1032 [escher] Fix markRectAsDirty call.
Change-Id: I50b3e7ce9bbeed2ab8b1c76857914d798d3f05b5
2018-04-19 16:31:02 +02:00
Léa Saviot
4d778b5d9f [apps/escher/poincare] Use 2D Edition in Sequence and Graph apps.
EditableExpressionView is renamed ScrollableViewWithCursor.
EditableExpressionView is now a View that displays either a TextField or
a ScrollableViewWithCursor, depending on Poincare::Preferences.

Change-Id: Id44ddcd9a83f5fd17d65753ca4c94c5c7cda9b8a
2018-01-23 10:28:02 +01: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
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
53f4fd0b06 [escher] Reset superview when a modal view is dismissed
Change-Id: I2d3ee97f7ade486f5cf8ba16851866d60dd6cdb6
2017-05-24 15:32:26 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
2017-05-03 14:22:51 +02:00
Émilie Feral
50372eb935 [escher] Unload view is done after all methods viewWillDisappear,
willResignFirstResponder, didExitResponderChain

Change-Id: I04fa28783b8500f0312f451d4d83fe543f2da8f0
2017-05-03 14:22:44 +02:00
Émilie Feral
a8a1f9ad9c [escher] Fix bug in layout in modal view controller
Change-Id: Icd1d960db4989faae12212ca254354483df7811f
2017-04-25 11:00:10 +02:00
Émilie Feral
998b6c7d1e [escher] Fix layout issue
Change-Id: I11bc9e7b5649e307f0694b69de42e8e16a3b59e9
2017-04-24 14:37:28 +02:00
Émilie Feral
50aacc79ec [escher] Create dynamic view controller
Change-Id: Ic8fe6d095666aa7af76c8d328b0bf83342a09453
2017-04-20 12:11:59 +02:00
Émilie Feral
5fde73dac2 [escher] Change name: viewWillDisappear -> viewDidDisappear
Change-Id: Ie7e324cfd9c1313ef4f5310e1688be0b7fabd0bf
2017-04-18 15:29:09 +02:00
Émilie Feral
adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00
Émilie Feral
7d06868ad9 [escher] Do actions in this order: layouts, viewWillAppear,
didBecomeFirstResponder

Change-Id: I01b5c2457d9e3b6d2cc71afe119287c1cb507dc3
2017-02-20 10:54:03 +01:00
Émilie Feral
6f138e6b1c [escher] Add methods viewWillAppear/Disappear in view controller instead
of keeping track of dataHasChanged in the selectable table view

Change-Id: Id2626f527f44714e29b9bd66e2c843193e1b57b5
2017-02-17 16:35:07 +01:00
Émilie Feral
9a452affdb [escher] Correct potential bug in modal view controller
Change-Id: If20cf11545132a26fc128759ec07d5d097677ef5
2017-02-06 16:30:47 +01:00
Émilie Feral
29678a23db [escher] Reorder actions to first do all frame layouts and then all
"become first responder" (Thereby, enable to select a cell in
becomefirstresponder without any weird scrolling due to wrong framing)

Change-Id: Ie5ca7555fce3575dcf0488e124adf0677155c383
2017-02-02 10:29:07 +01:00
Romain Goyet
b87f06e3a2 [ion] Update the Event model
Change-Id: I41a53caeb7dd8a15e7934f49675f6a53be8fe7be
2016-11-10 17:29:48 +01:00
Émilie Feral
375262031b [escher] add optional margins to modal view
Change-Id: Ibeb77958f5fd6db9a110d1f49abb77b4ee01a72f
2016-11-09 12:26:37 +01:00
Émilie Feral
d5e9f70701 [escher] create a class modal view controller
Change-Id: Iecbbb8a8927cc5ef538e30a1f7968a9e84ad5021
2016-11-04 14:53:07 +01:00