Ruben Dashyan
7cbc489052
[apps/shared/curve_view] Use drawSegment to color area under curve
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f5c3cb74e2
[apps/shared/curve_view] Fix rounding error in drawSegment
2019-07-30 14:15:08 +02:00
Ruben Dashyan
503995746a
[apps/shared/function_graph_controller] Clean resolution usage in computeYRange
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f4b7967a58
[apps/shared/curve_view] step in drawHistogram depends on x-range's width
...
instead of the width of the rect that is being drawn.
2019-07-30 14:15:08 +02:00
Ruben Dashyan
c22754fa63
[apps/shared/curve_view] Make curveViewRange() method const
2019-07-30 14:15:08 +02:00
Émilie Feral
7a4ee746b2
[escher] TextField: call reinitDraftBuffer after edition is complete to
...
avoid erasing text that is required later.
Fix bug: OK handling on function list in linear mode did not copy the
function expression into the textfield before editing
2019-07-30 11:47:42 +02:00
Léa Saviot
7b84b65502
[apps/code] Fix sandbox and input clash
...
The command "squares()%input()" followed by text, OK, and a backspace
event broke an assertion on the consoleStore number of lines.
2019-07-30 11:31:21 +02:00
Léa Saviot
040a5cfb15
[apps/regression] Fix typo in the logistic regression formula
2019-07-24 14:51:43 +02:00
Ruben Dashyan
bc8b5af2e6
[escher/modal_view_controller] didBecomeFirstResponder selects modal view if displayed
2019-07-19 15:06:25 +02:00
Ruben Dashyan
eb6d697927
[apps] Make app accessors static members of App classes
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
1a2a651f36
[apps] Replace app() by expressionFieldDelegateApp() in Calculation::EditExpressionController
2019-07-19 15:06:25 +02:00
Ruben Dashyan
3e992a3560
[apps] Replace app() by textFieldDelegateApp() in TextFieldDelegates
2019-07-19 15:06:25 +02:00
Ruben Dashyan
28f713e905
[apps/shared] Make App accessors const in delegates
2019-07-19 15:06:25 +02:00
Ruben Dashyan
9611133276
[apps] Factor Shared::TextFieldDelegateApp::isAcceptableText
2019-07-19 15:06:25 +02:00
Ruben Dashyan
ff887ec4a0
[apps/shared] Define static app() accessor in FunctionApp class
2019-07-19 15:06:25 +02:00
Ruben Dashyan
2c9489966d
[apps/graph/graph] GraphController accesses the app directly
2019-07-19 15:06:25 +02:00
Ruben Dashyan
14835d0454
[apps/exam_pop_up_controller] ContentView accesses the app directly
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
772610d9e0
[escher/container] Assert activeApp() does not return nullptr
2019-07-19 15:06:25 +02:00
Ruben Dashyan
224f7873f7
[*container] Make Container::s_activeApp protected
2019-07-19 15:06:25 +02:00
Ruben Dashyan
a0e6151b26
[*container] Remove static Container::sharedContainer
2019-07-19 15:06:25 +02:00
Ruben Dashyan
80981ce865
[escher/container] Make activeApp static
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
Ruben Dashyan
1dd39f6f6b
[apps/home] Revert commit "Select cell on Snapshot's construction"
2019-07-19 15:06:25 +02:00
Ruben Dashyan
e9d098bacb
[apps] Remove AppsContainerStorage::sharedContainer
...
Use AppsContainer::sharedAppsContainer instead. The AppsContainerStorage
is initialised in AppsContainer.
2019-07-19 15:06:25 +02:00
Ruben Dashyan
055d601854
[apps] Define TextFieldDelegate::textFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
5058f64163
[apps] Define LayoutFieldDelegate::expressionFieldDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
0490e3ab81
[apps] Define InputEventHandlerDelegate::inputEventHandlerDelegateApp() directly from ::app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
4111927bae
[apps] Access *DelegateApp() through app()
2019-07-19 15:06:25 +02:00
Ruben Dashyan
2888eddd06
[escher/button_row_controller] Access the app directly
2019-07-19 15:06:25 +02:00
Ruben Dashyan
e4ec398ecd
[escher] InputEventHandler gets the app directly
2019-07-19 15:06:25 +02:00
Ruben Dashyan
bcf2fda882
[apps/home] Access to SelectableTableViewDataSource directly from App
2019-07-19 15:06:25 +02:00
Ruben Dashyan
0702212cfe
[apps/home] Select cell on Snapshot's construction
2019-07-19 15:06:25 +02:00
Ruben Dashyan
a124f456c6
[apps/home/controller] Remove dummy
2019-07-19 15:06:25 +02:00
Romain Goyet
21907fb89a
[apps] Get rid of App casts
2019-07-19 15:06:25 +02:00
Romain Goyet
eaa4758367
[apps/probability] Use namespaced App::app() function
2019-07-19 15:06:25 +02:00
Romain Goyet
e5f7b93efb
[apps/probability] Avoid a local snapshot cast
2019-07-19 15:06:25 +02:00
Romain Goyet
581ec55832
[escher] Inline the App::snapshot() function
2019-07-19 15:06:25 +02:00
Romain Goyet
45875dd642
[escher] Make app() a global function
...
This way it can easily be reached by anyone, including non-responders.
And it can easily be overwritten in namespaced apps.
2019-07-19 15:06:25 +02:00
Ruben Dashyan
154baae6d3
[apps/on_boarding] LanguageController does not need to hold LogoController
2019-07-19 15:06:25 +02:00
Ruben Dashyan
3aa2e5d6a7
[apps/on_boarding] Move LanguageController::reinitOnBoarding() to App
2019-07-19 15:06:25 +02:00
Ruben Dashyan
62cec10b46
[apps] Clean unnecessary AppsContainer class declarations and header inclusions
2019-07-19 15:06:25 +02:00
Ruben Dashyan
5548767809
[apps] Timers access the shared container directly
2019-07-19 15:06:25 +02:00
Ruben Dashyan
652cbae9ac
[escher/responder] Access the app directly from the shared container
2019-07-19 15:06:25 +02:00
Ruben Dashyan
ba2a98f5e5
[escher/app] Remove poor man's RTTI
2019-07-19 15:06:25 +02:00
Ruben Dashyan
443f974cbb
[escher/container] Inline activeApp() accessor
2019-07-19 15:06:25 +02:00
Ruben Dashyan
1f06819974
[apps] Remove Container * parameter from all App constructors
2019-07-19 15:06:25 +02:00
Ruben Dashyan
2c98a6ea0d
[apps/home/controller] Substitute m_container by AppsContainer::sharedAppsContainer()
2019-07-19 15:06:25 +02:00