Commit Graph

221 Commits

Author SHA1 Message Date
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
Émilie Feral
013f817b35 [apps] Fix i18n to be able to build without settings app in offical
software
2020-02-18 10:11:06 +01:00
Léa Saviot
42125a1f56 [apps/settings] Fix i18n to be able to build without settings app 2020-02-18 10:11:06 +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
46fb233428 [apps/settings] I18n: improve message alignment 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
3c52631245 [apps/settings] Improve warning messages about non-official software 2020-02-12 15:13:26 +01:00
Émilie Feral
f69bc6c8e4 [apps] Makefile: fix tests build 2020-02-12 15:13:26 +01:00
Émilie Feral
63d2aab416 [apps/settings] Improve messages of cautious in non-official softwares 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
541acb6a7c [apps/settings] Factorize SettingsMessageTree model definition between
different targets (none/beta/update)
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
b28f426d36 [apps/settings] Add warning message about software liability 2020-02-12 15:13:25 +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
485684e8db [apps/settings] Add messages for exam mode compliance warning 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
8b250e0ca0 [apps/i18n] Fix portuguese from Portugal, not Brazil 2020-02-12 15:13:21 +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
e550712ccc [apps/settings] Separation is always below the CellWithSeparator 2020-02-12 15:13:15 +01:00
Émilie Feral
f7fc8da94d [apps/settings] Use a MessageTableCellWithGaugeWithSeparator in the main
controller to mimic two tables
2020-02-12 15:13:15 +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
Émilie Feral
d48006f994 [apps/settings] Add messages about font sizes 2020-02-12 15:13:15 +01:00
Émilie Feral
39a6fdaf1c [apps/settings] MainController: get rid of magic numbers 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
2ccdc2d0dc [apps] Fix messages regarding Dutch exam mode in non-English languages 2019-12-19 15:52:45 +01:00
Émilie Feral
7fc730597c [apps] Fix exam mode messages 2019-12-19 15:52:45 +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
49d2a248da [settings] Fix messages for Dutch exam mode 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
Émilie Feral
82fb00689e [apps/settings] Message: add messages to activate Dutch exam mode 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
Émilie Feral
92a623378d [apps/settings] Fix epsilon.onboarding.update build 2019-10-17 11:53:48 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00