Commit Graph

51 Commits

Author SHA1 Message Date
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 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
0531187cda [escher] Cleaner app header inclusion 2019-07-19 15:06:25 +02:00
Émilie Feral
2217eebaec [escher] SelectableTableView: when reloading data, we temporary deselect
the table. We warn the SelectableTableViewDelegate that the selection
change is 'within a temporary selection change' when notifying it of the
change.
2019-05-03 15:54:21 +02:00
Émilie Feral
50ad6b6761 [escher] SelectableTableViewDataSource: avoid calling m_delegate->tableViewDidChangeSelection when only reloading the data. 2019-05-03 15:54:20 +02:00
Émilie Feral
578c65d5dd [shared] Clean class names containing storage 2019-05-03 15:53:20 +02:00
Ruben Dashyan
9ea63678e1 [escher] Inline ScrollView::setCommonMargins 2019-02-18 16:49:58 +01:00
Émilie Feral
df45f800e1 [escher] SelectableTableView: fix wrong assert 2018-11-26 14:48:54 +01:00
Émilie Feral
55be86ef50 [escher] TableView::cellAtLocation should return nullptr if the cell is
invisible and therefore no view displays it.

Fix bug: add 4 functions, in the values table one cell is wrong as soon
as you edit an x value
2018-11-26 11:24:30 +01:00
Léa Saviot
20e2194533 [escher] Remove Clipboard::store(Layout) 2018-11-23 12:04:09 +01:00
Léa Saviot
56db3a484e [escher] Fix selection problem in SelectableTableView
Scenario that caused a problem: Go to Statistics, then "1", "Right",
"Right", "Right", OK. The cell does not draw itself as being edited, but
its right neighbour does.
2018-11-23 12:04:06 +01:00
Léa Saviot
f259b84874 [apps/graph] Make the function list navigation faster 2018-11-23 12:04:04 +01:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Léa Saviot
e3a09286ac [poincare] Remove AllocationFailures 2018-09-05 16:19:11 +02:00
Léa Saviot
71c807b565 [poincare] Node->isDefined becomes !Node->isUninitialized 2018-08-14 16:40:12 +02:00
Léa Saviot
3e0bc00109 [poincare] Do not copy/cut allocation failure references 2018-07-30 17:42:17 +02:00
Léa Saviot
f579e95815 [poincare] Start removing ExpressionLayout 2018-07-03 17:33:06 +02:00
Émilie Feral
ac9da8d559 [escher] Handle copy/cut event on Expression in selectable table view 2018-06-07 14:46:14 +02:00
Émilie Feral
24c9549866 [escher] Handle copy/cut event on selectable table view 2018-06-07 14:46:14 +02:00
Romain Goyet
84561a929f [escher] Clean the ScrollView, TableView and SelectableTableView constructors 2018-04-18 18:08:07 +02: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
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
2017-12-20 17:17:41 +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
É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
af4d6b6e81 [escher] Divide class selectable table view delegate in 2: selectable
table view data source & selectable table view delegate

Change-Id: I90fbd61e271db3754c13bd0069b95c2026de6814
2017-05-18 14:16:41 +02:00
Émilie Feral
3c9e835110 [escher] Change name in selectable table view:
unhighlightTable->unhighlightSelectedCell

Change-Id: Ifd5e0e430ec31253a3804d3858a3b4d940af2daf
2017-05-03 14:22:52 +02:00
Émilie Feral
f6abcbac3c [escher] Correct selectable table view
Change-Id: I0cb8e254f9bdfd91c234f2eb87fd7a7d65c53d79
2017-05-03 14:22:51 +02:00
Émilie Feral
0517066cc0 [escher] Extrude scroll view model to its delegate
Change-Id: If863de63f5f77edb5e2905633067e03aecdd8937
2017-05-03 10:22:01 +02:00
Émilie Feral
3f98061a4c [escher] Extrude the model in selectable table view controller to its
delegate

Change-Id: I4d49e0098d501e1419f7b216e828b13efbf74f81
2017-05-03 10:22:01 +02:00
Émilie Feral
2b5e1c31bf [apps/calculation] Deselect table when deleting all rows
Change-Id: Ia0f7f931669bdc2664ff99e3a9694652783812bd
2017-04-24 17:36:32 +02:00
Émilie Feral
b1fb4f5393 [escher] Correct commit : Enable to draw the outline of cells in table
view

Change-Id: If2eadc0b9987678c0ccc56401bd46835d861a436
2017-03-16 17:35:43 +01:00
Émilie Feral
406fc0e0a5 [escher] Enable to draw the outline of cells in table view
Change-Id: I2842e9fdada4ebdc3fe49608e6f7886d831aa98b
2017-03-16 15:12:11 +01:00
Émilie Feral
2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +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
8f76c04bea [escher] Fix bug: scroll to the right cell if data have changed
Change-Id: I8e8fbdfa86c46bc7a17b9603c3fd8262a05a5d75
2017-02-16 16:34:11 +01:00
Émilie Feral
f95979030c [escher] In selectable table view, add a method to set a delegate after
construction

Change-Id: I27e55bba2de111d501500e7470501a188f709b1a
2017-02-16 14:46:04 +01:00
Émilie Feral
8b5e2be1b7 [escher] In selectable table view, avoid reloading all table cells when
not required

Change-Id: I31bdb1567eed6ebaa839672df61472994ab89b05
2017-02-06 16:30:41 +01:00
Émilie Feral
8eefe8e490 [escher] Improve scroll indicator render
Change-Id: I22fa1035ba33d2cadfc68fa6727fbaecdadd4efe
2017-01-27 11:52:02 +01:00
Émilie Feral
bb22f06250 [escher] In selectable table view, synthetize code
Change-Id: I1547f93c9da635108277b9868bad0750c827db80
2017-01-15 20:04:59 +01:00
Émilie Feral
8c284ba34f [escher][apps] CHange textField API
Change-Id: I766d153b7f7429473f297707a08358051123accc
2016-12-15 13:51:40 +01:00
Émilie Feral
37da7b95a2 [escher] add a boolean in table constructor to choose whether to paint
the backgroung

Change-Id: Idee8aff20ab86011775e9a995a2d2f425b60df67
2016-12-08 15:21:52 +01:00
Émilie Feral
5523e26486 [escher] Prevent bad access in selectable table view
Change-Id: If6c04a447675765b0dfe75c077114bacd786a177
2016-12-08 15:21:52 +01:00
Romain Goyet
b87f06e3a2 [ion] Update the Event model
Change-Id: I41a53caeb7dd8a15e7934f49675f6a53be8fe7be
2016-11-10 17:29:48 +01:00
Émilie Feral
2f45578886 [apps/calculation] Handle calculation to heigh to be fully displayed in
the screen

Change-Id: I182f0c76d911e6686223a22be2a6ddb561b287ec
2016-11-04 14:47:07 +01:00
Émilie Feral
d8e864878b [apps/calculation] Select the right history cell subview (handled by the table
delegate)

Change-Id: Ia03f5a34b2b752ec18fee62b3e9148d60b677767
2016-11-04 10:59:18 +01:00
Émilie Feral
00a0dd182f [apps/calculation] Correct bug: set the right cell first responder
Change-Id: Iafee70a6a3bcf59c60efb4575b044b19fa5c1db4
2016-11-04 10:59:18 +01:00
Émilie Feral
5133f75789 [escher] change horrible naming in selectable table view
Change-Id: Ia7bc06f2f079e529aa17ab01d961fb6ff62cbf98
2016-11-04 10:59:18 +01:00
Émilie Feral
9214b09752 [escher] Add a potential delegate to selectable table view
Change-Id: I2c190a0842f1747945b71fe55126ff3717d35c0c
2016-10-27 14:34:30 +02:00