828279d03c
rust: Use 2018 eition
...
This edition has better syntax around scoping and `use`.
2022-12-21 12:20:17 +00:00
6d01386d8a
main: Moved event loop definition close to actor
2022-11-28 15:53:41 +00:00
8d0e1b4548
state: Use IM hint and purpose for layout selection
2022-06-06 16:10:53 +00:00
04018a8c06
Do not reset pending state on zwp_input_method_v2.done
2022-03-15 15:51:09 -04:00
236f7d4daf
ffi: Remove unnecessary pointers to InputMethod
...
InputMethod is already a pointer.
2022-01-26 15:19:58 +00:00
4cc7017e1c
event_loop: Separate and use for physical keyboard presence
...
Extra included: Change of naked Submission pointers to Wrapped.
2021-12-12 12:49:11 +00:00
53137fd2e2
state: Connect the animation state machine to the rest
...
This ensures that the new state machine is fed events, as well as that its results are applied.
The old ad-hoc system is removed.
There is one regression where the last layout will be used when the panel is brought up manually.
2021-12-12 12:48:06 +00:00
4903f3d1a0
layout: Keep content purpose around
...
This allows to add proper CSS style classes based on that
2021-12-05 17:31:12 +01:00
06b17907bf
imservice: Invoke eekboard_context_service_set_hint_purpose unconditionally
...
Since eekboard_context_service_set_hint_purpose() checks if the
hint or purpose changed this doesn't cause unwanted layout reloads.
Closes : #311
2021-12-02 09:19:50 +01:00
c2c379b870
Rust: Remove unnecessary no_mangle statements to silence warnings
2021-03-09 14:59:23 +00:00
3cbfd8351c
imservice: Increment serials on receiving done, not sending commit
...
No idea how that managed to stay undetected for so long.
2021-01-10 10:41:17 +00:00
17db3db296
visibility: Centralize keyboard panel visibility policy and handling
...
With the policy being disentangled from application, it becomes testable.
This prepares for moving the entire visibility mechanism to the new class and taking away more pieces of ServerContextService.
In addition, this is a good warmup before trying to implement sizing policy.
2020-11-19 09:49:51 +00:00
ebbb3b1138
UI: Keep visibility factors in a central place
2020-11-18 19:29:42 +00:00
277986bcdf
imservice: Set up UI according to current needs when it shows up
2020-11-18 18:38:24 +00:00
d07b5ed0d6
UI: Delay hiding only when leaving a text field
2020-10-20 11:52:06 +00:00
de8aaa1a47
Merge remote-tracking branch 'upstream/master' into text_input_enable
2020-01-28 12:39:42 +00:00
ac360b610f
Merge branch 'log' into 'master'
...
Unify logging
See merge request Librem5/squeekboard!308
2020-01-28 11:42:02 +00:00
585ed5e97d
input_method: Use for erasing
2020-01-23 15:39:40 +00:00
5129d42577
Merge remote-tracking branch 'upstream/master' into log
2020-01-20 15:40:01 +00:00
c75e085dc8
logging: Unified to remove random eprint calls
2020-01-17 12:25:39 +00:00
cc418c3609
imservice: Return something more resembling an Error on failure
...
The error type is expected to be printable by logging utilities.
2020-01-17 11:59:47 +00:00
42cb73cd8c
submission: Handle submitting strings
2020-01-14 18:33:47 +00:00
d1bc23e9d8
imservice: Add commit_string method
2020-01-14 18:17:12 +00:00
e3f31cc17f
imservice: Rename commit_state to done to match protocol
2020-01-14 18:16:36 +00:00
e5d416fd4f
imservice: Limited scope of unsafe
2020-01-13 13:53:54 +00:00
785717d477
submission: Create a new wrapper over imservice
2020-01-13 13:53:48 +00:00
92c9572ac2
services: Split out layout management from EekboardContextService
...
Layout management was pointlessly bound with the EekboardContextService with inheritance. Splitting it out will make it easier to further break apart layout state management, settings, and input method in the future.
2020-01-11 15:33:26 +00:00
9f59279307
managers: Move visible flag to UI manager
2020-01-09 14:14:48 +00:00
de43d67638
display: Remove unused corner_radius
2019-09-25 18:10:58 +00:00
015ba79f65
Merge branch 'fix_tests' into reparse
2019-09-11 12:03:24 +00:00
51562d5185
Fix imservice docstring
2019-09-10 09:27:21 +00:00
b84c402c4a
WIP
...
WIP
WIP: keymap generation test passes
meta: Update features and version
WiP: cargo.lock
WIP: don't crash
WIP: no outlines
parsing: New tests
WIP: base level works
WIP: remove old keyboard
symbols correctly input
WIP: lodaing files
WIP: fallback works
Valid fallback
2019-09-04 09:44:31 +00:00
fa31f8eee1
imservice: Check pointer validity
2019-07-31 10:43:39 +00:00
98a2e33d78
imservice: Use TryFrom for u32->enum conversions
2019-07-31 10:05:35 +00:00
58d01bf502
imservice: Use discriminants in enums
2019-07-31 10:05:35 +00:00
8326bd7016
rust: Create a root file for modules
...
The new `lib.rs` file is created to refer to all modules written in Rust. This way, only one `rustc` call is needed to compile an arbitrary amount of modules. It also converges with the way crates are structured.
2019-07-31 10:05:27 +00:00
7e939c36cc
imservice: Call show/hide directly
2019-07-23 20:26:42 +00:00
c5d2d76ab1
imservice: Handle unavailable message
2019-07-23 20:26:42 +00:00
622ba6e38a
imservice: Handle text change cause
...
Nothing is being done with this information yet
2019-07-23 20:26:42 +00:00
a6ee303123
imservice: Handle content type in Rust
...
This adds `bitflags.rs` from the bitflags crate.
Due to not wanting to introduce Cargo as the dependency manager yet, it's slightly modified to compile as a naked module.
2019-07-23 20:25:13 +00:00
b746f7a70e
input method: Pop up the keyboard
2019-06-30 19:03:24 +00:00
0d3b003aac
input method: Initialize the protocol and pretend to handle a few things
2019-06-30 19:03:24 +00:00