67cc4f11cf
Fix minor comment typos
2020-03-04 04:53:53 +00:00
cb802cfb50
layout: Improve press handling
...
Makes it more similar to release handling, removes some redundant checks.
This makes it easier to integrate modifiers in the future.
2020-02-19 15:40:39 +00:00
a57a78aa2e
Merge branch 'center' into 'master'
...
Center views relative to layout space
See merge request Librem5/squeekboard!326
2020-02-09 20:34:31 +00:00
c766fae686
layout: Improve scoping of locked variable
2020-02-05 12:55:31 +00:00
10178d204b
Merge remote-tracking branch 'upstream/master' into center
2020-02-05 10:32:07 +00:00
0ac8c620fd
Merge branch 'lock' into 'master'
...
Turn locking stateless
See merge request Librem5/squeekboard!322
2020-02-05 09:25:49 +00:00
416bc6163e
drawing: Generalized foreach_visible_button
2020-02-02 18:29:29 +00:00
40b79f6209
layout: Center views relative to each other and the layout bounds
2020-02-02 18:07:28 +00:00
782d80a007
row: Eliminate angle
2020-02-02 17:11:25 +00:00
500c23beec
locking: Lock keys statelessly
...
Locking is not determined by button state any more, but rather based on the view active at the moment. If pressing/locking a key results in the current view being active, the key is active. If locking a key results in the current view, the unlock view is activated.
2020-02-02 15:41:47 +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
2b65beba44
press_key: Use proper logging
2020-01-20 15:40:30 +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
42cb73cd8c
submission: Handle submitting strings
2020-01-14 18:33:47 +00:00
326bb9319f
submission: Take over virtual_keyboard handling
2020-01-13 13:53:54 +00:00
785717d477
submission: Create a new wrapper over imservice
2020-01-13 13:53:48 +00:00
375daa68c8
layout: Make handling presses uniform
2020-01-09 12:09:28 +00:00
34db364a62
layout: Centralize handling key releases
2020-01-08 18:52:09 +00:00
e77eccf7db
action: Rename Level to View
2020-01-08 18:52:09 +00:00
bafd1e6eb3
popover: Install emoji layout
...
In order to do that, an additional piece of state (layout switcher) was exposed to the event handlers, a separation between squeekboard-only and system layouts was introduced, along with a Translation structure to prevent mixing up strings.
2019-12-24 10:41:02 +00:00
257b97e9ca
layout: Respect margins
2019-12-15 18:43:56 +00:00
b639c7f3f0
Fix old Rust woes
2019-12-08 07:04:22 +00:00
d80758fcd1
positioning: Clean up unused code
2019-12-07 21:33:38 +00:00
dd21bfed8d
positioning: Calculate sizes instead of storing, move position out of widgets
...
Sizes of widgets can be derived, so storing them was only for C compatibility. Similar with storing position inside of widgets.
Some layout margin and scaling changes could be introduced, meaning a possibility of visual differences.
2019-12-07 21:20:21 +00:00
36362291ef
cleanup: Unbox View and Row
...
They are no longer referenced anywhere in C, so it's safe to let Rust memory management deal with them.
2019-12-07 17:19:39 +00:00
1c4d027af5
cleanup: Remove references to squeek_view
2019-12-07 15:42:54 +00:00
f77db1bb73
renderer: Render whole keyboard the same way as pressed buttons
...
Removed window size dependent surface.
2019-12-07 14:33:49 +00:00
e6da2a3b5b
rendering: Remove unneeded redraw after button release
2019-12-07 13:58:50 +00:00
f9fbd3fb2d
rendering: Simplify Cairo context usage, remove unneeded calls.
...
Moved Cairo context usage to Rust, and rearranged ctx setup (position) to happen in one place.
Removed render calls that were overwritten on each draw call anyway.
2019-12-07 12:47:47 +00:00
83fea8cd31
Drop squeek_key
2019-12-01 15:01:08 +00:00
47c4119ab7
Add a popover menu to switch languages
2019-11-05 13:10:55 +00:00
c917a1f818
layout: Keep kind metadata in loaded layouts
...
It will come useful for applying per-kind styling later without having to give each layout a new stylesheet
2019-10-29 13:27:54 +00:00
1290fd4a1e
rust: Fix old compiler compat
2019-10-23 15:11:19 +00:00
c99efc430c
presses: Move press handling to Rust
...
This fixes some rendering things which would happen with multiple state-sharing buttons. It also removes some interfaces exposing rows, views, layouts, and buttons, bringing the code closer to removing them from the FFI entirely.
2019-10-23 15:11:16 +00:00
162b828c4c
Merge branch 'targets' into 'master'
...
buttons: Buttons are next to each other, padding is visual only
Closes #110
See merge request Librem5/squeekboard!209
2019-10-18 19:14:04 +00:00
89b56ddccf
util: C-wrapped data don't need to be cloneable
2019-10-10 16:54:02 +00:00
9e078be603
buttons: Buttons are next to each other, padding is visual only
2019-10-09 20:34:46 +00:00
9cd439767e
virtual_keyboard: Submit multi-codepoint strings
2019-10-09 15:13:46 +00:00
10bad4ebe3
warnings: Fix and silence
2019-10-09 08:15:03 +00:00
da5a83f367
action: Rename file to action.rs
2019-10-09 08:11:28 +00:00
ef38fd3e64
symbol: Eliminate in favor of Action
2019-10-09 08:06:17 +00:00
46d3312c86
cleanup: Unused symbol functions
2019-10-09 08:03:39 +00:00
9b5e0109a7
Merge branch 'style_better' into 'master'
...
Style better
See merge request Librem5/squeekboard!180
2019-09-29 14:28:42 +00:00
e513cb9b54
style: Use outline name as CSS class
2019-09-26 13:28:31 +00:00
3bea256ca5
Appease Debian's Rust version's borrow checker
2019-09-26 07:02:06 +00:00
4c0f23c5c1
layout: Unhardcode button and row spacing values
...
They are specified by each layout now
2019-09-25 19:01:38 +00:00
de43d67638
display: Remove unused corner_radius
2019-09-25 18:10:58 +00:00