Commit Graph

59 Commits

Author SHA1 Message Date
Willy-JL
59a7dad7a5 GUI: Replace strcat() usage with strlcat() 2024-11-08 04:48:25 +00:00
Willy-JL
38471fdd75 GUI: Refactor TextInput illegal symbols API 2024-10-29 22:08:52 +00:00
Willy-JL
88dfe97a89 Merge remote-tracking branch 'ofw/dev' into mntm-dev 2024-10-15 23:43:33 +01:00
porta
8a95cb8d6b [FL-3893] JS modules (#3841)
* feat: backport js_gpio from unleashed
* feat: backport js_keyboard, TextInputModel::minimum_length from unleashed
* fix: api version inconsistency
* style: js_gpio
* build: fix submodule ._ .
* refactor: js_gpio
* docs: type declarations for gpio
* feat: gpio interrupts
* fix: js_gpio freeing, resetting and minor stylistic changes
* style: js_gpio
* style: mlib array, fixme's
* feat: js_gpio adc
* feat: js_event_loop
* docs: js_event_loop
* feat: js_event_loop subscription cancellation
* feat: js_event_loop + js_gpio integration
* fix: js_event_loop memory leak
* feat: stop event loop on back button
* test: js: basic, math, event_loop
* feat: js_event_loop queue
* feat: js linkage to previously loaded plugins
* build: fix ci errors
* feat: js module ordered teardown
* feat: js_gui_defer_free
* feat: basic hourglass view
* style: JS ASS (Argument Schema for Scripts)
* fix: js_event_loop mem leaks and lifetime problems
* fix: crashing test and pvs false positives
* feat: mjs custom obj destructors, gui submenu view
* refactor: yank js_gui_defer_free (yuck)
* refactor: maybe_unsubscribe
* empty_screen, docs, typing fix-ups
* docs: navigation event & demo
* feat: submenu setHeader
* feat: text_input
* feat: text_box
* docs: text_box availability
* ci: silence irrelevant pvs low priority warning
* style: use furistring
* style: _get_at -> _safe_get
* fix: built-in module name assignment
* feat: js_dialog; refactor, optimize: js_gui
* docs: js_gui
* ci: silence pvs warning: Memory allocation is infallible
* style: fix storage spelling
* feat: foreign pointer signature checks
* feat: js_storage
* docs: js_storage
* fix: my unit test was breaking other tests ;_;
* ci: fix ci?
* Make doxygen happy
* docs: flipper, math, notification, global
* style: review suggestions
* style: review fixups
* fix: badusb demo script
* docs: badusb
* ci: add nofl
* ci: make linter happy
* Bump api version

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2024-10-14 19:42:11 +01:00
Willy-JL
02f7207d28 Merge remote-tracking branch 'ofw/dev' into mntm-dev 2024-07-15 22:18:35 +01:00
hedger
ffa3996a5e [FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard:        c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev

Co-authored-by: あく <alleteam@gmail.com>
2024-07-15 13:38:49 +09:00
Willy-JL
4830ef94c6 Merge remote-tracking branch 'ofw/dev' into mntm-dev 2024-07-05 20:01:29 +02:00
hedger
7879876ba1 [FL-3863] toolchain: v37 (#3746)
* toolchain: v36
* toolchain: fixed cert path; lib: nanopb: updated to 0.4.8
* fbtenv: rolled back cert path for 3.11
* clang-format: updated config for v18
* linter fixes
* clang-format: properly regenerated config (`clang-format -style=file:.clang-format -dump-config > .clang-format-new; mv .clang-format-new .clang-format`)
* clang-format: AllowShortLoopsOnASingleLine: false
* toolchain: v37
* fbt: compilation_db.py: fixes for Windows
2024-07-05 18:27:21 +01:00
Willy-JL
06aea09169 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev 2024-03-20 04:18:26 +00:00
あく
acc39a4bc0 Api Symbols: replace asserts with checks (#3507)
* Api Symbols: replace asserts with checks
* Api Symbols: replace asserts with checks part 2
* Update no args function signatures with void, to help compiler to track incorrect usage
* More unavoidable void
* Update PVS config and code to make it happy
* Format sources
* nfc: fix checks
* dead code cleanup & include fixes

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
2024-03-19 23:43:52 +09:00
Willy-JL
36711fca90 Fix keyboard cursor underflow with ascii events --nobuild 2024-01-24 07:40:45 +00:00
Willy-JL
7845cc0eeb Port TextInput to ASCII event API 2024-01-17 22:48:50 +00:00
Willy-JL
418f44fef1 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev 2023-11-12 02:56:30 +00:00
あく
9af81ce8d0 Furi: cleanup crash use (#3175)
* Furi: optional message in furi_crash and furi_halt
* Consistent furi_crash use
* UnitTests: crash instead of assert
* furi: check: fixed macro for default arg
* unit_tests: fixed crashes everywhere
* lib: infrared: fixed PVS warnings
* furi: eliminated __FURI_ASSERT_MESSAGE_FLAG
* Furi: update check.h docs
* Furi: add check.h usage note
* Docs: grammar

---------

Co-authored-by: hedger <hedger@nanode.su>
2023-10-31 14:40:32 +04:00
Willy-JL
8f3a8ad730 Keyboard ok to toggle select all in cursor mode --nobuild 2023-09-03 01:16:51 +02:00
Willy-JL
d7aa3ea60f Make all service memory structures OFW comaptible 2023-08-29 01:57:06 +02:00
Willy-JL
37939dec86 <:N1:1130620612352679958><:N2:1130620354440745162> 2023-07-24 00:41:50 +02:00
Willy-JL
b94f3ed713 Control on-screen keyboard with PC keyboard 2023-07-24 00:40:52 +02:00
Willy-JL
1717fe9285 Format 2023-07-23 00:12:54 +02:00
Willy-JL
8d54b4324f Rounded keyboard cursor + realign all keys 2023-07-23 00:09:40 +02:00
Willy-JL
bd00dc7c56 Add text input API for custom symbols 2023-07-21 18:00:05 +01:00
Willy-JL
c35406689b Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-05-31 16:45:55 +01:00
Willy-JL
6d7623a368 Fix keyboard buffer issues (furi string moment) 2023-05-15 03:41:51 +01:00
Willy-JL
c5bf0763a5 Remove shared temp string for keyboard buffer 2023-05-14 23:34:53 +01:00
Willy-JL
9c08ab9af0 Fix keyboard buffer handling (pointer moment) 2023-05-14 23:23:29 +01:00
Willy-JL
f82f6ccd66 Dont use temp str for manipulating text input 2023-05-14 20:40:29 +01:00
Willy-JL
0657aebf52 Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-05-14 19:46:20 +01:00
MX
f08dd2fd03 Text Input improvements, added cursor and ability to set minimal length
thanks to WillyJL
2023-05-14 01:44:00 +03:00
Willy-JL
8a5d88fc9a Format 2023-04-28 16:57:17 +01:00
Willy-JL
c2791b459b Rework symbol keyboard (fix illegal characters) 2023-04-23 15:32:03 +01:00
Willy-JL
2d794b32f5 Add minimum input length functionality to keyboard 2023-04-23 14:04:16 +01:00
Willy-JL
78c19f7d43 Fix busfault on text input buffer manual change 2023-03-30 02:31:53 +01:00
Willy-JL
5349c1bbca Fix crash on backspace clear all text 2023-03-29 01:24:43 +01:00
Willy-JL
aa8d9b7bac Format 2023-03-28 04:48:41 +01:00
Willy-JL
d886e16680 Fix text input crash on redraw after reset 2023-03-28 03:10:36 +01:00
Willy-JL
8d174634f6 Move cursor position in text input widget 2023-03-25 03:25:31 +00:00
Willy-JL
006a05973f Simplify text input keyboard drawing logic 2023-03-25 02:32:55 +00:00
Liam Hays
c27d4d78f9 Fix auto-capitalization in the keyboard when the text box is empty. (#2483)
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2023-03-15 23:51:15 +09:00
Willy-JL
f14272d9e3 Format 2023-03-14 02:56:13 +00:00
Willy-JL
2b68bf7542 Update keyboard offset logic (fix #168) 2023-03-14 01:35:58 +00:00
Willy-JL
991d49733f Format 2023-02-26 01:44:32 +00:00
Willy-JL
3296cf3b79 Keyboard hold backspace to keep deleting 2023-02-24 04:46:14 +00:00
Willy-JL
c8e9e9bc9e Secondary symbol keyboard pane + switch key
Original idea & code by @edrethardo, update and fix by @Willy-JL
2023-02-24 04:02:09 +00:00
Willy-JL
f8eda660d2 Keyboard long press first char for lowercase 2023-02-24 00:50:00 +00:00
Willy-JL
fd7620202a Keyboard long press first char for lowercase 2023-02-24 00:49:41 +00:00
Willy-JL
d23f396c44 Keyboard lowercase check fix 2023-02-24 00:23:33 +00:00
Willy-JL
f3e3e828aa Fix keyboard capitalization bug 2023-02-24 00:22:43 +00:00
Willy-JL
02591c12b7 Fix keyboard capitalization bug (_ and space) 2023-02-24 00:10:04 +00:00
Round-Pi
b89902942b typo combing 2023-02-20 10:55:53 -05:00
VerstreuteSeele
333cf4dadc Update text_input.c 2023-01-16 06:19:04 +01:00