Commit Graph

51 Commits

Author SHA1 Message Date
Léa Saviot
a5c50f8887 [apps] Fix function name that was the same as virtual function.
Change-Id: Idec43b9427571dbd5752ac551424447cbdb08d27
2018-04-25 13:58:42 +02:00
Léa Saviot
13ae1d2545 [apps/escher/toolbox] handleEventWithText for all responders.
This makes the code in the various toolbox more generic. The arguments
of the text to insert are each replaced by a Ion::Charset::Empty.
These Empty chars are used to create layouts in ExpressionLayoutFields,
and to compute the position of the cursor in other fields, before being
removed.

Change-Id: Ie81c1e394b06fef2ab801ccff919d6550f70ec30
2018-04-23 17:18:48 +02:00
Léa Saviot
22ab94209f [apps/escher] Rename EditableExpressionView -> ExpressionField
Change-Id: Iadfb220ee94e68762305060215f1ead0cac951fb
2018-04-23 09:41:20 +02:00
Léa Saviot
31face58a2 [apps/escher] ScrollableEVWithCursor renamed ExpressionLayoutField
Change-Id: Id0e4610fb677d8ad36721eef1a85f1c424d1743e
2018-04-23 09:41:20 +02:00
Léa Saviot
749c93e1af [apps/sequence] Fix obsolete code.
Change-Id: I4f6c1792ac245c072a3d70108a55518473c3fe80
2018-04-11 16:56:35 +02:00
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
aade7cb2fe [escher] Create a class TextInput (from which derived TextField,
TextArea)
2018-03-22 13:12:12 +01:00
Léa Saviot
95f859ce80 [apps/sequence] Set sender for sequence toolbox.
Change-Id: I3fe78127273083fb4f8f680ea3e6394f99913a12
2018-01-26 11:55:04 +01: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
Léa Saviot
4ad3adaab2 [apps/escher] Changed setExpression to setExpressionLayout.
Change-Id: I095a12868fd7eaf8d4eb2408617941a86f43e1ee
2018-01-15 11:58:01 +01:00
Émilie Feral
945d6df444 [apps] Fix typo: Explicite->Explicit 2017-12-20 17:41:03 +01:00
Émilie Feral
45908263ff [apps] Sequence: add other sequence shortcuts in toolbox call from the
list controller
2017-12-20 17:41:03 +01:00
Émilie Feral
cb754ab6d5 [apps] Sequence: invalidate the context cache when the sequences are
redefined
2017-12-20 17:41:03 +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
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
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Émilie Feral
bf2a2971ab [apps/sequence][apps/graph] Avoid blinking when deleting functions
Change-Id: I820358f4968e65a54162d16f732bd51e19aca4ad
2017-05-10 13:34:49 +02:00
Émilie Feral
4e0e285501 [apps][escher] EXE and OK trigger the same behaviour
Change-Id: Ide7d38fbc445be717e50ed46f2d784c02c9830e4
2017-05-10 12:04:30 +02:00
Émilie Feral
96733dbbdc [apps] Rule of 5 (3)
Change-Id: Ia85b23a09e9debd62b4f3590463a4f16454ef4b7
2017-05-09 14:33:53 +02:00
Émilie Feral
62c93e49a6 [apps] AppsContainer does not own the apps but a pointer to the apps
Change-Id: I9b6787be2cd143b52fd8dd60f3528fed2f74e4bb
2017-05-03 15:32:54 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
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
e2bba16738 [apps/graph] [apps/sequence] Implement copy paste
Change-Id: I7e33e24565b18e771ec530c74fb2a74ade5c3c85
2017-04-25 16:59:35 +02:00
Émilie Feral
9295a5f107 [apps/sequence][apps/graph] Make list controller a dynamic view
controller

Change-Id: I1c6036861bddcb45169bb6c71f75c90ffd949a44
2017-04-21 10:08:04 +02:00
Émilie Feral
024e55abeb [apps][escher] Delete magic numbers
Change-Id: If7a589d9f02895fc1b2e8b496133ab11381e733c
2017-04-14 18:30:58 +02:00
Émilie Feral
db7aeba16a [apps/sequence] Fix bug: confusing rows and columns
Change-Id: I7fd6a620ab8e950342aad67a302657f974dced44
2017-03-29 18:36:46 +02:00
Émilie Feral
6d8d105d7e [escher][apps] Clean and fix bug in text field
function application)

Change-Id: I5d425ea7752a054ea6b05735b12442c4429f13b4
2017-03-29 15:04:37 +02:00
Émilie Feral
adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00
Émilie Feral
78de0de16a [apps/sequence] Change name: addCells->setExtraCells
Change-Id: I1d19283fe2997668e78e91881f31f28efcbffe66
2017-03-07 14:37:54 +01:00
Émilie Feral
b36e5dc67c [escher] Generelize header view controller to button row controller and
use it to add two buttons: "tracer" "afficher valeurs"

Change-Id: I8ee9afec9e381de367133e6b3f5ceb738b9790ab
2017-03-07 13:28:26 +01:00
Émilie Feral
a126a9ad0b [apps/sequence] In sequence toolbox, do not suggest other sequence terms
Change-Id: Ia85b04cdcdcfbc74615652144ae3aacf4e5f6f4e
2017-03-07 13:28:26 +01:00
Émilie Feral
df9dba94dd [apps/sequence] Select the right cell in list after changing sequence
type

Change-Id: If92944aca236653ba4b25f14b3029be2a522f37b
2017-03-07 13:28:26 +01:00
Émilie Feral
1e787bd2e9 [apps/sequence][apps/graph] Clear the function expression when handling
event backspace

Change-Id: I89319a2dee21b162dd9ffe16f02eda99c26207b2
2017-03-03 14:32:13 +01:00
Émilie Feral
e65b07286d [escher] [apps] Get rid of magic numbers
Change-Id: Iad192d24324dda37b3d739830cc8ead7a032e22f
2017-02-20 10:54:03 +01:00
Émilie Feral
cfd518283f [apps/shared] In list controller, factorize handle event
Change-Id: I0e00f1cf3b217782ec6f858d60954733e2be5276
2017-02-20 10:54:03 +01:00
Émilie Feral
828e4795b9 [apps/sequence][apps/graph]Correct bug: Enable to edit the last added function by
clicking on a text event

Change-Id: I03fa5f45febb1241290612cf25008026631c91e6
2017-02-20 10:54:02 +01:00
Émilie Feral
354564b9d9 [apps/sequence] Fix bug: correct "ajouter suite" button color
Change-Id: I9e0503d2235475c511049b638fc091ed0b5f2bc3
2017-02-20 10:54:02 +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
0d8629c752 [apps/sequence/list] Display specific toolbox
Change-Id: I4af4ba588677ca6688b64b10c29c69e16f98fffb
2017-02-20 10:53:57 +01:00
Émilie Feral
51c33b0a5b [apps/sequence] Redesign list controller
Change-Id: If114a643b0f682e98076cf1ec9f4479b3dafdfa6
2017-02-20 10:52:02 +01:00
Émilie Feral
f2512b2968 [apps/sequence] Temporary implementation of sequence toolbox
Change-Id: I59c703c4c50cd523d49af9a558a7fc3b0f360bc6
2017-02-20 10:51:58 +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
b0d333dfed [apps/sequence/list] Metrics
Change-Id: Iff0dba5e2e2d83412f3a8921a6e7291e464c9a14
2017-02-16 16:34:12 +01:00
Émilie Feral
4ba14c8597 [apps/sequence] Personalize the button "add a function" for sequence app
Change-Id: Ie84757feec57a934c80573ad24b71e868c0d7b81
2017-02-16 16:34:12 +01:00
Émilie Feral
81b0f58fd8 [apps/sequence/list] Correct selection navigation
Change-Id: I1d4ec884bae977e284affcfbc00f89379f53dd0b
2017-02-16 16:34:11 +01:00
Émilie Feral
962b4de74c [apps/sequence] Improve sequence title cell
Change-Id: I09091c5a2d4b3175494715f7b63b6d3fe94509bd
2017-02-16 16:34:11 +01:00
Émilie Feral
5d0fe67ef0 [apps/sequence] Use modal instead of stack to choose type of sequence
Change-Id: Ifcf6ed205e4401b0ed7603d2749693dd551fcc3e
2017-02-16 14:46:05 +01:00
Émilie Feral
08a663a64f [apps/sequence] Do no add a new function as long as the user did not
choose a type

Change-Id: I67c3172b416d7d80a3bd9a4eb18091ab72626e4b
2017-02-16 14:46:04 +01:00
Émilie Feral
0f4d7f0914 [apps/shared][apps/graph][apps/sequence] Reorganise list controllers,
function title cells and function expression cells

Change-Id: Idbdae4975c8ed83a023c781dc14929b8c2053bb0
2017-02-16 14:46:04 +01:00