Romain Goyet
84768472bd
Explicit std::min/max template usage
...
This is unfortunately required in several cases:
- Sometimes when we use either float and double (this should be changed)
- Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
- Because we mix pointer differences and ints
2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04:00
Léa Saviot
750f655b2f
[apps] Move SettingsMessageTree in Shared
...
It is needed in exam_mode_configuration. This way, we can build one app
only
2020-02-21 16:03:07 +01:00
Romain Goyet
5dee4a8166
[apps] Add screen telemetry identification
2020-02-17 10:31:24 -05:00
Romain Goyet
7f43b73049
[apps] Don't forget to call viewWillAppear
...
At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
2020-02-17 10:31:24 -05:00
Émilie Feral
466f588a99
[apps/settings] Between two 'didEnterResponderChain', the exam mode page
...
might change the number of rows/the displayed messages. We then have to
re-layout the SelectableViewWithMessages to set the right frame to the
SelectableTableView.
2020-02-12 15:13:26 +01:00
Émilie Feral
8a87bcfc5b
[apps/settings] SelectableViewWithMessages: position the additional
...
messages at the bottom of the view
2020-02-12 15:13:26 +01:00
Émilie Feral
e17ae9024e
[apps] Gather all code regarding exam mode in ExamModeCOnfiguration file
2020-02-12 15:13:26 +01:00
Émilie Feral
672a1a3967
[apps/settings] Change non-official-version warning messages
2020-02-12 15:13:26 +01:00
Émilie Feral
ce5f8236a9
[apps] Add comment around warning regarding non-official releases
2020-02-12 15:13:26 +01:00
Émilie Feral
3612d25539
[apps/settings] AboutController::m_view should live inside the Settings
...
app
This fixes the following bug: AboutController::view was built at first
call of "AboutController::view()" but the Settings can be rebuilt later
and the pointers might have moved (hence the ones used in
AboutController::view constructor which is not rebuilt then)
2020-02-12 15:13:26 +01:00
Émilie Feral
fffcadf384
[apps/settings] Display a caution message in the 'about' page in non-official
...
software versions
2020-02-12 15:13:26 +01:00
Émilie Feral
f57fb84429
[apps/settings] Create a class SelectableViewWithMessages used in
...
ExamModeController for future factorization
2020-02-12 15:13:25 +01:00
Émilie Feral
7ccb10e33b
[apps/settings] Display exam mode caution message in non-official
...
version only
2020-02-12 15:13:25 +01:00
Émilie Feral
10de2c00ac
[apps/settings] Add a warning message in Exam mode page
2020-02-12 15:13:25 +01:00
Émilie Feral
9ed55e97a9
[apps/settings] Non-official builds don't feature Dutch exam mode
2020-02-12 15:13:25 +01:00
Émilie Feral
2470821a6b
[apps/settings] Fix sub controller viewWillAppear /
...
didEnterResponderChain behaviours
This fixes the following bug: when editing the number of significant
digits, input "1+", click on "OK", the data was reloaded and "1+"
disappeared...
2020-02-12 15:13:25 +01:00
Léa Saviot
9200e6062d
[aps/solver] Reset the solution selection when leaving the view
...
Solve an equation that has solutions, select a solution, then go back
and change the equation. WHen you go to the solutions, the previous
solution is still selected, which is a little weird
2020-02-12 15:13:24 +01:00
Léa Saviot
bb2e8ad3c5
[apps/settings] Fix selection
...
Scenario: Got to About menu, press 6 on FCC ID then cancel, there are
two selected rows
This reverts 41e41b8d4 with a better fix
2020-02-12 15:13:24 +01:00
Léa Saviot
5e45a60f99
[apps/settings] Fix selection glitch
...
Scenario: Go to the Result format submenu of Settings. Modify the
significant figures with a wrong value (for instance, "7::"), press OK
then 0 -> he first row is selected, as well as the last row
2020-02-12 15:13:22 +01:00
Léa Saviot
19435687d5
[apps/settings] Coding style
2020-02-12 15:13:22 +01:00
Léa Saviot
22601fd8a3
[apps/settings/exam_mode] "How to deactivate" messages
2020-02-12 15:13:21 +01:00
Léa Saviot
a51d434a78
[apps/settings] Inline method
2020-02-12 15:13:21 +01:00
Émilie Feral
953c9dfe64
[apps/settings] Create a parent class CellWithSeparator to
...
MessageTableCellWithEditableTextWithSeparator for future factorization
2020-02-12 15:13:15 +01:00
Émilie Feral
b3d45833d0
[apps/settings] Add a menu "Font size" in settings
2020-02-12 15:13:15 +01:00
Léa Saviot
9f018eb9d9
[escher/view] setFrame and layoutSubviews can be forced
2020-02-12 15:13:15 +01:00
Émilie Feral
8c6a2836de
[settings] Fix row initialization in sub menus
2019-12-19 15:52:45 +01:00
Émilie Feral
a3774fb510
[settings] Exam mode: reactivate the current exam mode (stick to Dutch
...
exam mode if it is already on)
2019-12-19 15:52:45 +01:00
Émilie Feral
6ecfe9c5db
[apps] Two exam modes in settings: Standard & Dutch
2019-12-19 15:52:45 +01:00
Émilie Feral
da735b93a4
[apps] GlobalPreferences: change exam mode API
2019-12-19 15:52:45 +01:00
Léa Saviot
ebc5843795
[apps/ion/exam_mode] Store the exam mode activation in the flash
...
This way, it is not cleared by a reset
2019-12-11 13:51:38 +01:00
Émilie Feral
e550005e43
[settings] Enable exam mode reactivation
2019-12-11 13:51:38 +01:00
Léa Saviot
4caf9f5197
[coding style] Make some methods const
2019-09-09 20:05:14 +02:00
Léa Saviot
100b0c0186
[apps/escher] Uniformize k_separatorThickness
2019-09-09 19:10:17 +02:00
Émilie Feral
6ec6d156a8
[apps/settings] Minimal number of significant digits in Engineering
...
display mode is 3
2019-09-04 15:20:51 +02:00
Léa Saviot
c410b70b63
[apps/settings] Typos and coding style
2019-08-22 14:13:12 +02:00
Léa Saviot
3851aa7c55
[apps/settings] Gradians is the last angle unit
2019-08-22 14:13:12 +02:00
Léa Saviot
fbec61db47
Merge branch 'feature/Gradians' of https://github.com/boricj/epsilon
2019-08-22 11:25:25 +02:00
Émilie Feral
12060e2ae7
[escher] TextField: all text fields use the same draft text buffer
2019-08-13 09:44:00 +02:00
Léa Saviot
5c6097f647
[apps/settings] Fix the examples for the result format
2019-08-09 17:16:22 +02:00
Léa Saviot
e4da77fb91
[poincare/preferences] NbSignifDigits must be > 2 for engineer mode
2019-08-08 17:22:06 +02:00
Léa Saviot
ab86fa84de
[apps/settings] Engineering notation selection
2019-08-08 17:22:06 +02:00
Ruben Dashyan
44809f4b3f
Substitute Escher app() by Container::activeApp()
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
055d601854
[apps] Define TextFieldDelegate::textFieldDelegateApp() 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
Romain Goyet
eaa4758367
[apps/probability] Use namespaced App::app() function
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
eb3da7f395
[apps] Substitute "app()->container()" by "AppsContainer::sharedAppsContainer()"
2019-07-19 15:06:25 +02:00
Jean-Baptiste Boric
a289e4989e
[apps] Add gradians support
2019-06-24 22:15:05 +02:00