Commit Graph

55 Commits

Author SHA1 Message Date
5abe6ed6be geometry: Remove unused row element 2019-08-08 19:11:43 +00:00
38f81e45f4 Break out symbol handling into Rust 2019-08-08 12:51:15 +00:00
754e79103a keyboard: Drop layout reference 2019-08-05 17:01:22 +00:00
b8389f6736 symbol: Simplify symbol storage 2019-08-01 20:25:01 +00:00
6c1c979414 section: Removed multiple rows in section, row/column in key 2019-08-01 20:10:59 +00:00
d8b26040f9 symbolclass: Remove with surroundings
Collaterals: Enabled strict checking of initializers, fixed scripts generating keycode mappings.
2019-08-01 20:08:37 +00:00
8f1de46381 Simplify layout and rendering
Remove pre-scaling of the bounds for the keyboard and its contents.
Calculate the scale factor based on the allocation and the desired width
and height of each keyboard, using the lower value of the horizontal and
vertical scale factors.
Apply scaling in the renderer and prepare to perform centering there.
2019-07-30 21:48:36 +00:00
70895999c2 Generate XKB keymaps from XML instead of using pre-made ones 2019-07-25 22:25:29 +02:00
a045810af6 Merge branch 'add-built-in-keymaps' into 'master'
Add built in keymaps

See merge request Librem5/squeekboard!78
2019-07-20 14:42:51 +00:00
6eb63f6a4c Refactor layout code, rescale and reformat when changing level 2019-07-19 17:35:49 +02:00
f6d4ca0387 Place keys after symbols have been read, skipping blank keys 2019-07-19 17:35:49 +02:00
7b41466a77 Start to refactor keyboard section layout 2019-07-19 17:35:49 +02:00
dbc8cc14bc Generate config.h
This allows us to remove a lot of #ifdef's. Either we want to use
a config.h or we don't. Since we'll want it for e.g. optional gsound
support later on let's have it.
2019-07-17 19:50:53 +02:00
fbdc5f4a93 Stash for sharing 2019-07-16 14:00:41 +02:00
e5648a82a3 Remove explicit keycodes in XML, auto-generate them instead
This makes it easier to keep the geometry and symbols files in sync.
2019-07-16 14:00:41 +02:00
44110fd4d9 Remove bounds for everything except the geometry element 2019-07-12 14:00:20 +00:00
5efb4cc58d Bundle keyboard definitions
This allows running uninstalled from a git repo

Closes: #21, #29
2019-07-11 13:40:03 +02:00
094aa872ce Cleanups: fix deprecated g_type_class_add_private()
- use G_DECLARE_ and G_DEFINE_ macros
- move all data into ClassNamePrivate
- use _get_instance_private()

This should not introduce any functional changes or breakage.

Skipped two classes (EekKeyboard and EekboardContextService) for now in
order not to break the build.

These two classes are used in some very funky WIP code that tries to
circumvent encapsulation.

(Funky code is in eekboard/key-emitter.c and eekboard/eekboard-context-service.c)
2019-07-08 08:44:05 +02:00
654909261e modifiers: Level 3 works 2019-07-02 13:03:35 +00:00
3a42e66504 layout: Position keys closer to the left edge 2019-07-01 12:57:52 +00:00
e46af41abf layouts: Fixed spacing 2019-07-01 12:57:52 +00:00
17671a3b08 layout: Use outlines for key bounds 2019-07-01 12:57:52 +00:00
b8eb7752e7 layout: Using bigger keys 2019-07-01 12:57:52 +00:00
baf848c791 layout: Ignore keycodes without corresponding keys 2019-07-01 12:57:52 +00:00
9e5629d1e0 Enable Wayland's virtual-keyboard protocol
This commit includes a little restructuring necessary for keeping wayland objects properly.
It doesn't fix broken modifier functionality yet.
2019-06-25 18:12:15 +00:00
4a346211b8 Show tooltips. 2012-04-23 16:43:06 +09:00
6059146b42 Fix gobject-introspection annotation. 2012-04-13 16:44:41 +09:00
b8015bbef5 Simplify geometry XML format by folding row element. 2012-04-06 15:57:30 +09:00
ab8cd246bf Fix make distcheck. 2012-03-30 17:40:16 +09:00
6db99bee25 Don't enumerate over keys when find_by_keycode. 2012-03-28 14:43:49 +09:00
ee0505c100 Add keyboard selection dialog to preferences. 2012-03-28 12:54:22 +09:00
048e08b59a Factor out symbols from keyboard file. 2012-03-23 18:07:01 +09:00
f442733b33 Fix some mistakes.
* remove useless g_obect_{set,get}_property call.
* free GError on error.
2012-03-16 18:15:50 +09:00
3777620574 Preserve symbol attributes when serializing/deserializing XML. 2011-08-30 18:17:47 +09:00
b02ae1b7cc Support text symbol.
a
2011-08-30 18:17:45 +09:00
39900bd987 Allow non-keysym symbols in XML. 2011-08-18 17:02:39 +09:00
6a7b256676 Remove unnecessary null initialization. 2011-08-18 11:31:01 +09:00
fbe7b9ec1a Hard-code dynamic modifier masks for XML layout. 2011-03-23 17:59:43 +09:00
a9c0356611 Fix XML serialization of EekOutline to include corner_radius. 2011-03-03 15:06:03 +09:00
18f8e5b98b Draw key with icon if EekSymbol has "icon-name" property. 2011-03-01 11:57:07 +09:00
5d42fb8294 Read keysym label from XML attribute. 2011-02-25 18:18:05 +09:00
d7554b9735 Doc fix. 2011-02-24 11:43:15 +09:00
7916930160 Implement serialization to GVariant. 2011-02-14 14:13:02 +09:00
d7c9626df9 Remove debug print. 2011-02-02 13:10:25 +09:00
56abc55bb2 Make fakekey and CSPI optional. 2011-02-02 06:51:27 +09:00
e999883c58 Generate unique id for <key id="...">. 2011-02-01 07:33:44 +09:00
6a063c9d76 Uncomment XML layout scaling code. 2011-01-29 10:58:37 +09:00
45b18c7ada Embed keycode as <key id="key<keycode>"> in the XML output. 2011-01-28 17:39:37 +09:00
e6df7d90fe Use GObject instead of guint to represent keysyms. 2011-01-28 16:19:18 +09:00
0c77bd45f2 Don't embed native keycode/keysym values in XML layout data. 2011-01-27 19:06:59 +09:00