Quentin
0d56576f9c
[Git] Fix conflicts
2020-04-01 11:36:16 +02:00
Émilie Feral
d247843da6
[apps/code] Clean ConsoleController::reloadData (always returns true)
2020-04-01 10:18:09 +02:00
Émilie Feral
fb3f6ab6f3
[apps/code][python] ConsoleController doesn't keep any pointer/boolean to know
...
if the sandbox/matplotlib view controller is displayed. Its state won't be
always right; instead, use the StackViewController depth.
This fixes the following bug: when popping the sandbox/matplotlib view
controller, the first responder token was not given to the console
controller!
2020-04-01 10:18:09 +02:00
Émilie Feral
53ec023ea0
[apps/code] ConsoleController: factorize code to reload the table
2020-04-01 10:18:08 +02:00
Émilie Feral
659da1dff8
[apps][python] ExecutionEnvironment handles hide sand display of sandbox
...
and plot controller the same way
2020-04-01 10:18:08 +02:00
Émilie Feral
51da01aa11
[apps/code] Remove 'm_preventEdition' from ConsoleController, it was
...
always used with m_preventEdition = true.
2020-04-01 10:18:08 +02:00
Romain Goyet
131df18b00
[python] A module can now ask to present a view controller
2020-04-01 10:18:08 +02:00
Quentin Guidée
5b2f33c80a
Fix conflicts
2020-02-17 17:10:32 +01:00
Romain Goyet
5dee4a8166
[apps] Add screen telemetry identification
2020-02-17 10:31:24 -05:00
Quentin Guidée
ab8f731515
Fixed some conflicts
2020-02-12 17:42:58 +01:00
Léa Saviot
c6c3e3f340
[apps/code] Hide prompt when running script
2020-02-12 15:13:22 +01:00
Léa Saviot
f47f1f0543
[apps/code] Refresh view in printText
2020-02-12 15:13:22 +01:00
Émilie Feral
4025d75734
[apps/code] Fix number of displayable rows in ConsoleController
2020-02-12 15:13:17 +01:00
Émilie Feral
d64321d116
[apps/code] Remove useless class member in ConsoleController
2020-02-12 15:13:17 +01:00
Émilie Feral
c2dabf6510
[apps/code] Choose console text size from GlobalPreferences
2020-02-12 15:13:15 +01:00
M4x1m3
30bc2a0cdf
[apps/code] Fixed #198
2020-01-26 14:20:09 +01:00
AD Simmons
cdfb1f724b
[apps/code] Add PythonFont preferences as the python font size in code
2019-12-29 16:24:23 -05:00
Léa Saviot
4caf9f5197
[coding style] Make some methods const
2019-09-09 20:05:14 +02:00
Émilie Feral
661c7b9943
[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-04-26 14:48:31 +02:00
Léa Saviot
a021af46fe
[apps/code] Hide the sandbox between script importations
2019-02-06 11:45:03 +01:00
Léa Saviot
4f4ae4e0f7
Merge branch 'master' into python_turtle
2019-01-08 14:32:43 +01:00
Léa Saviot
1782326ed8
[apps/code] Clean ConsoleController code
2019-01-07 13:36:01 +01:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
ce1cdaacc3
[apps/code] Fix console reloading that did not occur often enough
...
Scenario:
Write a script that prints "abc"
Open the console -> prints "abc"
Modify the script to print "ab"
Go back to the console -> "ab" not printed !
2018-12-12 11:15:50 +01:00
Léa Saviot
cc3beb6014
[python/turtle] Turtle::reset() method
2018-12-06 17:26:43 +01:00
Émilie Feral
698332c355
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
...
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Émilie Feral
7778c694d1
[escher] Create an InputEventHandlerDelegate that gives the toolbox to
...
be used by an InputEventHandler
2018-11-23 12:04:02 +01:00
Émilie Feral
01e433a9f2
[escher] Clean Field and Input class hierarchy:
...
Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
2018-11-23 12:04:02 +01:00
Romain Goyet
f8beae3b86
[kandinsky] Move to KDFont
2018-10-11 16:44:02 +02:00
Léa Saviot
c16d9e7ffe
[apps/code] Load Python in the viewWillAppear of the controllers
2018-09-21 12:26:57 +02:00
Léa Saviot
2661032993
[apps/code] Fix Python loading when going in the VarBoxController
...
The Var box controller deinited python on exit, and the console
controller did not reload python + it made the console controller lose
all its context, such as imported scripts
2018-09-21 11:55:12 +02:00
Émilie Feral
afce751eb7
[code] Get rid of malloc: keep a buffer in Code::App to be used as python heap
2018-09-19 18:20:30 +02:00
Émilie Feral
24c9549866
[escher] Handle copy/cut event on selectable table view
2018-06-07 14:46:14 +02:00
Émilie Feral
da8286d3f7
[code] Escaping the input loop on a 'home' event should be handled by
...
the code app instead of the console controller to ensure to escape the
input loop even when the toolbox (or any modal) is displayed
2018-05-23 10:01:15 +02:00
Léa Saviot
c4b5d4cf40
Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
...
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
9cadc49264
[apps] Code: Fix autoImportScript to avoid corrupting stack
2018-03-28 10:03:36 +02:00
Émilie Feral
19ca0f0640
[apps] Code: use the FileSystem to store the scripts instead of an
...
accordion
2018-03-22 14:01:38 +01:00
Émilie Feral
aade7cb2fe
[escher] Create a class TextInput (from which derived TextField,
...
TextArea)
2018-03-22 13:12:12 +01:00
Émilie Feral
c5e525ddb7
Enable to give options at run-time
2018-03-22 11:58:56 +01:00
Romain Goyet
fd7516f8ac
[python] "input" now displays the provided prompt
2018-02-01 14:10:26 +01:00
Romain Goyet
0682d21a32
[python] Implement ExecutionEnvironment::input
...
By using a re-entrant RunLoop call
2018-02-01 14:10:26 +01:00
Romain Goyet
651d5715e4
[python] Adding mp_hal_input
2018-02-01 14:10:26 +01:00
Léa Saviot
a2c0eaa20b
[apps/escher] Remove textFieldDidAbortEditing const char * argument.
...
Also removed the same argument in scrollableExpressionViewWithCursorDidAbortEditing.
Change-Id: Iadc6b708cfc0fab44b9fd4edb980cb759d41e8d0
2018-01-23 10:28:02 +01:00
Léa Saviot
b27551ce4f
[code] Fixed bug when importing scripts that draw on screen.
...
The drawing should happen after the ConsoleController is pushed on the
screen. This means that the importation of scripts should be done at the
ConsoleController's viewWillAppear.
Change-Id: I756ac9de30f339dc4f6aa8d3995abea0a46d03b5
2017-12-04 12:11:00 +01:00
Léa Saviot
53d2ae2c46
[code] Rename Code::Toolbox in Code::PythonToolbox for more clarity.
...
Change-Id: I3729fedd8a26531edcd17105ed5fc177c06a8fcb
2017-12-01 13:19:30 +01:00
Léa Saviot
dd1fe77832
[code] Fixed Execute Script bug.
...
When disabling a script auto-import parameter, it would not import
itself when executing it from its script parameters menu.
Change-Id: If58f6fe1be4792b551ad3b462f1f43e8b82e8148
2017-12-01 13:19:30 +01:00
Léa Saviot
1ce6f36651
[code] Fixed the wait for user input after drawing using Python.
...
A SandboxController is now pushed on the StackViewController and sets the
KDIonContext::sharedContext before drawing, sets a white background and handles
user input after the Python computation to dismiss the drawing screen.
Change-Id: I51b0474365a85e845227379a16d090541fa8ded7
2017-12-01 13:19:28 +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
6baaa8547a
[code] Execute a script from the script options.
...
A button in the options opens the console, with only the current script
imported.
Change-Id: Ia3053534d6fdb2bd1340ce3c42b7249510c97bbc
2017-11-17 14:05:23 +01:00
Léa Saviot
4194165217
[apps] Fixed size_t / int comparison warnings.
...
Change-Id: I08bae0d687a52d708053c4279f68b42c5bb5d180
2017-11-17 11:59:50 +01:00