Commit Graph

1431 Commits

Author SHA1 Message Date
Quentin Guidée
31cdd5bcc8 Fixed some conflicts 2020-02-12 18:24:13 +01:00
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01:00
Léa Saviot
b8f65442db [ion/simulator] Keyboard shift + left/right/up/down now works 2020-02-12 15:13:25 +01:00
Émilie Feral
0c55ea4531 [ion] unicode: UTF8Helper::CopyAndRemoveCodePoints returns a boolean
which is true if the whole source was copied
2020-02-12 15:13:24 +01:00
Léa Saviot
ae3fa46191 [escher/text_field] Fix handling of \n
The buffer length did not take into account the \n removal. In fact, we
could just remove the \n while also removing the empty code points,
which is what we do now.
2020-02-12 15:13:24 +01:00
Ruben Dashyan
844a28db7b [poincare/parsing/tokenizer] Token::Identifiers may contain Greek letters except pi 2020-02-12 15:13:23 +01:00
Léa Saviot
b29d014695 [escher/text_field] Fix removing of \n in insertTextAtLocation
Scenario: Copy a text with \n (for instance from a script), then paste
it in a script name -> if \n are replaed with \0 instead of just being
removed, there are problems with the extension
2020-02-12 15:13:23 +01:00
Ruben Dashyan
179ce5d5d5 [ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter
to conform with unicode terminology
2020-02-12 15:13:23 +01:00
Ruben Dashyan
575b911da9 [ion/unicode] Split isDigit into isDecimalDigit, isBinaryDigit, isHexadecimalDigit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
9b0b4e3096 [ion/unicode] Define and use CodePoint const methods
isLowerCaseLetter
isUpperCaseLetter
isLetter
isDigit

Remove similar ones from UTF8Helper and from Poincare::Tokenizer.
2020-02-12 15:13:23 +01:00
Léa Saviot
244c7b31eb [ion/web] Fix screenshots 2020-02-12 15:13:23 +01:00
Léa Saviot
d70c4c7205 [ion] Typo 2020-02-12 15:13:22 +01:00
Léa Saviot
9d6bab092f [poincare/parser] Identifier is not already function -> symbol
We check the context: if an identifier is already a function, we
interpret it as such, otherwise it is a symbol.
This way, in the Equation app, x(x+1) is interpreted as x*(x+1)
2020-02-12 15:13:21 +01:00
Émilie Feral
a1b2cbb0a9 [ion] Unicode: clean warning 2020-02-12 15:13:19 +01:00
Émilie Feral
b33a778ccb [ion] N0110 linker script: fix symbol name of section
internal_to_external
2020-02-12 15:13:18 +01:00
Léa Saviot
c03c9086b8 [ion/utf8_helper] Add FIXME comment 2020-02-12 15:13:18 +01:00
Léa Saviot
8cf13adaf0 [apps/editor_controller] Handle deleted scripts in cleanStorageEmptySpace 2020-02-12 15:13:18 +01:00
Léa Saviot
961ba10122 [ion/events] shift+Left/Right/Up/Down can be repeated 2020-02-12 15:13:17 +01:00
Léa Saviot
30923ed4c6 [escher/text_area] Select up/down 2020-02-12 15:13:17 +01:00
Léa Saviot
ab48f8d879 [ion/events] if shift/alpha pressed, it is active
No need to press shift between ezach event -> one long shift press keeps
it active
2020-02-12 15:13:17 +01:00
Léa Saviot
bb69b2c131 [ion/events_modifier] Reindent 2020-02-12 15:13:17 +01:00
Léa Saviot
0209c6d2d4 [ion/storage] Increase size to 32K 2020-02-12 15:13:16 +01:00
Léa Saviot
4ffcace024 [ion/storage] Add TODO about code optimization 2020-02-12 15:13:16 +01:00
Léa Saviot
7e801906b8 [test/ion] Add Storage available space moving test 2020-02-12 15:13:16 +01:00
Léa Saviot
5853e96947 [apps/code] Remove EditorController::m_areaBuffer
This was a very large buffer that took a lot of RAM space (the size of
the storage). Instead of having it, we just move the available space of
the storage at the end of the edited script, and move it back when the
edition finishes.
This is slower but saves a lot of space.
2020-02-12 15:13:16 +01:00
Léa Saviot
b9bc9008ac [ion] Detect long repeated events
This will be use for instance to sroll faster if the user presses the
directional keys for a long time
2020-02-12 15:13:15 +01:00
Léa Saviot
973c2149d4 [ion/battery] Battery level has some hysteresis
This prevents a blinking battery pictogra wwhen the battery level is at
the limit between two states.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
c3cf5c1ef4 Rename UCodePointUnknownX to UCodePointUnknown 2020-02-12 15:13:15 +01:00
Léa Saviot
78eea601c7 [ion/device] Prevent the user from leaving DFU during software download
We prevent the use of the Back key to leave DFU after a flash erase
operation. This way, we prevent the user from interrupting a software
download. After every software download, the calculator resets, which
unlocks the "exit on pressing back"
2020-02-12 15:13:15 +01:00
Quentin
12ed3d0a30 Merge pull request #222 from RedGl0w/patch-5
Fixed #205
2020-02-02 19:28:59 +01:00
redgl0w
75f7b9a875 Update layout_events.h 2020-02-02 10:23:29 +01:00
redgl0w
207a069562 Update layout_events.h 2020-02-02 10:22:39 +01:00
Quentin Guidée
5e95afe9e4 Merge remote-tracking branch 'upstream/master' into omega-dev 2020-01-27 23:31:17 +01:00
M4x1m3
335f870a23 Shift+Up and Shift+Down in python editor (closes #177) 2020-01-23 22:17:04 +01:00
Émilie Feral
de603befc5 [ion] main_sdl: Update the static sNeedsRefresh when actually refreshing the
screen
2020-01-13 15:44:44 +01:00
M4x1m3
61f214bcb2 Fixed apps dependency in ion. 2020-01-11 17:33:13 +01:00
Quentin Guidée
a44fceb297 Merge remote-tracking branch 'upstream/master' into omega-dev 2020-01-07 16:35:38 +01:00
Léa Saviot
f1f4e43159 [ion/console] Default ion sources have console_stdio, not _display 2020-01-07 13:50:02 +01:00
Léa Saviot
57ceda5ac0 [bench] USBPlugged command 2020-01-06 14:31:37 +01:00
Quentin Guidée
596ad276a3 Fix keyboard issue with shift + 2019-12-30 22:02:01 +01:00
M4x1m3
ba15b793cd [simulator] changed apps id 2019-12-29 20:35:37 +01:00
Quentin Guidée
c5ba1d8f6b Merge branch 'fix-layout' of https://github.com/M4xi1m3/Omega into M4xi1m3-fix-layout 2019-12-27 23:44:06 +01:00
M4x1m3
e1d907f7c2 [ion/keyboard] Fixed layout. Added shift + ( 2019-12-27 20:17:38 +01:00
M4x1m3
9a9ae068ef Reworked exam mode, fixed #106 2019-12-27 16:48:45 +01:00
Quentin Guidée
b7fe5b51c8 Fixed alpha + % 2019-12-25 19:24:33 +01:00
Quentin Guidée
160adf6bab Fix compilation errors on n0110 2019-12-25 14:40:57 +01:00
Quentin Guidée
85c98cefe5 Fix conflicts 2019-12-24 17:33:32 +01:00
redgl0w
9a813b8dfb Update events.h 2019-12-24 09:23:28 +01:00
redgl0w
3924121008 Update layout_events.h 2019-12-24 09:22:57 +01:00
redgl0w
3e91ba0f80 Update layout_events.h 2019-12-24 09:22:27 +01:00