Compare commits
1289 Commits
eekboard-0
...
squeekboar
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3af10285b7 | ||
|
|
53997abc46 | ||
|
|
34765be22e | ||
|
|
8b4c643d3e | ||
|
|
358b25c431 | ||
|
|
2749fdb686 | ||
|
|
8e7909e877 | ||
|
|
afaacd3f68 | ||
|
|
6a164d8119 | ||
|
|
3c45e3e53c | ||
|
|
cdf263d984 | ||
|
|
2ddfcfaff0 | ||
|
|
a901c85bcb | ||
|
|
fdbbe8f126 | ||
|
|
f284627beb | ||
|
|
d45724c462 | ||
|
|
93d0dcdc99 | ||
|
|
b252f7659b | ||
|
|
af6ad1fce6 | ||
|
|
4ee8a91dfe | ||
|
|
6d5f793718 | ||
|
|
59f6173282 | ||
|
|
3aec821f92 | ||
|
|
3ac4caa3b9 | ||
|
|
80ac591535 | ||
|
|
579ba8ab87 | ||
|
|
5a262242a3 | ||
|
|
034570bfa0 | ||
|
|
1abca0a44e | ||
|
|
23693521b7 | ||
|
|
bb18e60754 | ||
|
|
35bc163107 | ||
|
|
0179507254 | ||
|
|
0c7e77a05f | ||
|
|
317d8a58dc | ||
|
|
89b3ab9a81 | ||
|
|
8690808a29 | ||
|
|
be4ac32477 | ||
|
|
5068f36d9d | ||
|
|
8c48e96f50 | ||
|
|
f15619287a | ||
|
|
eb5c28e77f | ||
|
|
7fb34feaf8 | ||
|
|
20a6cf52ac | ||
|
|
c566d8853e | ||
|
|
0beddc6856 | ||
|
|
0adde1004f | ||
|
|
9b271a6919 | ||
|
|
1db561d33a | ||
|
|
3170a0b615 | ||
|
|
9571adb107 | ||
|
|
f834f174d8 | ||
|
|
3c0b142c4f | ||
|
|
4f28e3413a | ||
|
|
291be9fa79 | ||
|
|
fd5d060eee | ||
|
|
cffe07521e | ||
|
|
36af546362 | ||
|
|
0da848a5a0 | ||
|
|
8c9ae98bda | ||
|
|
7cc8eecd26 | ||
|
|
ef025509ba | ||
|
|
3f6bb7f60b | ||
|
|
d7ee2f4c3c | ||
|
|
98f14d3e81 | ||
|
|
02ec745856 | ||
|
|
6ac17bfde5 | ||
|
|
d8cb6ab383 | ||
|
|
db52a842b2 | ||
|
|
ad8c918e1a | ||
|
|
8191324e46 | ||
|
|
6777f1b4b7 | ||
|
|
0bfaa8cd7a | ||
|
|
238900f01a | ||
|
|
e47ec16293 | ||
|
|
6fe08967f6 | ||
|
|
71d2df8b2a | ||
|
|
8024998a4b | ||
|
|
ea4bf3de29 | ||
|
|
87d368878b | ||
|
|
55584e27fa | ||
|
|
9f88660d99 | ||
|
|
c096698ec1 | ||
|
|
3aaaed3bae | ||
|
|
f1c76a0ca4 | ||
|
|
b78c3ad131 | ||
|
|
b6dfb20fec | ||
|
|
7d18f81a30 | ||
|
|
959f5fbfc9 | ||
|
|
c2ad03af97 | ||
|
|
47c4119ab7 | ||
|
|
e71e843eff | ||
|
|
6e90c9a833 | ||
|
|
1134d92357 | ||
|
|
62009762f9 | ||
|
|
a58a18b63b | ||
|
|
95022c1ac7 | ||
|
|
7760b50963 | ||
|
|
85b79a5f8f | ||
|
|
e080d4351e | ||
|
|
dcd4dbf931 | ||
|
|
ea0926147f | ||
|
|
ce223e04e6 | ||
|
|
ddd1c1b16b | ||
|
|
0f1f6531da | ||
|
|
c917a1f818 | ||
|
|
afe8fd64f4 | ||
|
|
bd3b27eceb | ||
|
|
35ad61890e | ||
|
|
1b1fbed7de | ||
|
|
264d30d884 | ||
|
|
38d8290b59 | ||
|
|
254b65681a | ||
|
|
fbb3824a3d | ||
|
|
24126ad4f3 | ||
|
|
869a0af67f | ||
|
|
5281d96460 | ||
|
|
8f7f6c05c0 | ||
|
|
01fe433612 | ||
|
|
63e55ff5c4 | ||
|
|
8d4d50cfca | ||
|
|
dde659dbd3 | ||
|
|
788a39f144 | ||
|
|
43e2b7b803 | ||
|
|
3fb0a3a959 | ||
|
|
bdef7b3516 | ||
|
|
57d36e476b | ||
|
|
0b5aa1ba7c | ||
|
|
55410a005c | ||
|
|
1290fd4a1e | ||
|
|
c99efc430c | ||
|
|
ce6c9cbea3 | ||
|
|
4cdfc30c29 | ||
|
|
3b6c19401c | ||
|
|
29231f7e31 | ||
|
|
76b8a61d0a | ||
|
|
d62abc2f12 | ||
|
|
8f61a26fb4 | ||
|
|
8fd63cea80 | ||
|
|
162b828c4c | ||
|
|
ac58b675ef | ||
|
|
a048722a94 | ||
|
|
a74be1b299 | ||
|
|
89b56ddccf | ||
|
|
8ab3a2b8d3 | ||
|
|
f56c5e3879 | ||
|
|
8eda2cd04d | ||
|
|
cfd2bff1aa | ||
|
|
02501aee9e | ||
|
|
70056b68a7 | ||
|
|
b36c48daa3 | ||
|
|
9e078be603 | ||
|
|
ac68d5d0a8 | ||
|
|
b45edcd4fe | ||
|
|
dc2bc46167 | ||
|
|
9cd439767e | ||
|
|
212e55d7cf | ||
|
|
31fdde4da9 | ||
|
|
10bad4ebe3 | ||
|
|
da5a83f367 | ||
|
|
ef38fd3e64 | ||
|
|
46d3312c86 | ||
|
|
cb8d2b01af | ||
|
|
3f3e33c853 | ||
|
|
aa3dc96986 | ||
|
|
aee981d9c0 | ||
|
|
3bede84a2d | ||
|
|
e14d411150 | ||
|
|
f91f000df1 | ||
|
|
18f8443a9f | ||
|
|
746d842dd4 | ||
|
|
185efb1c2a | ||
|
|
a31f9b5e04 | ||
|
|
94aec87b5d | ||
|
|
854a9bb22e | ||
|
|
477a883885 | ||
|
|
b3a63042cb | ||
|
|
d53a683285 | ||
|
|
27a99e2973 | ||
|
|
53c64010e8 | ||
|
|
7f704bcd61 | ||
|
|
1e08adb26b | ||
|
|
75bbb17881 | ||
|
|
58c8556058 | ||
|
|
1c56de8698 | ||
|
|
0eb0a6e8fd | ||
|
|
9b5e0109a7 | ||
|
|
a1b811aada | ||
|
|
1b424bd663 | ||
|
|
938ba53a38 | ||
|
|
1e609f4550 | ||
|
|
e33f591a1f | ||
|
|
456af0f1ef | ||
|
|
b6d25da7c2 | ||
|
|
288d2247da | ||
|
|
e5eb9f0fd3 | ||
|
|
908aa20036 | ||
|
|
60f1ca1408 | ||
|
|
5ef687a722 | ||
|
|
86ed9a7a01 | ||
|
|
4fee2fad01 | ||
|
|
35ba8ad81c | ||
|
|
0985724b19 | ||
|
|
7aff7977fc | ||
|
|
55bb263a12 | ||
|
|
32b85e75db | ||
|
|
3935375d1b | ||
|
|
97dd2b1096 | ||
|
|
de7211d1a5 | ||
|
|
26380ab987 | ||
|
|
f898b75b9d | ||
|
|
e513cb9b54 | ||
|
|
6fd7ab7405 | ||
|
|
15833323ae | ||
|
|
653462721b | ||
|
|
2889e50507 | ||
|
|
6b15f69e00 | ||
|
|
231982d7f7 | ||
|
|
3bea256ca5 | ||
|
|
4c0f23c5c1 | ||
|
|
27d54fb38a | ||
|
|
3b6999f6ef | ||
|
|
de43d67638 | ||
|
|
2fca71aa53 | ||
|
|
7870791fef | ||
|
|
83f9b580ef | ||
|
|
54f9e61b6a | ||
|
|
94b7ba1ccc | ||
|
|
e7d30d933f | ||
|
|
150fb3cf6a | ||
|
|
169f33c67a | ||
|
|
0f5c5ef10f | ||
|
|
6e183ccb13 | ||
|
|
af0137a4fc | ||
|
|
bb3c26b0d8 | ||
|
|
6dcea4599f | ||
|
|
d32749d533 | ||
|
|
36306f2eea | ||
|
|
34a4c6ffb5 | ||
|
|
74e75d2dae | ||
|
|
a3e421db3d | ||
|
|
241e5c0fc6 | ||
|
|
28e0c26671 | ||
|
|
7d0070a155 | ||
|
|
9093226abe | ||
|
|
45dc51f08f | ||
|
|
b486dc8afd | ||
|
|
e70a64a47e | ||
|
|
225b243446 | ||
|
|
db994da531 | ||
|
|
d47aff357b | ||
|
|
96c2c2dd1f | ||
|
|
c8cc5b1997 | ||
|
|
edb28cb859 | ||
|
|
b07689939b | ||
|
|
6072e5768a | ||
|
|
fe8d66a635 | ||
|
|
c8658b00e3 | ||
|
|
0989771a3b | ||
|
|
9c2acde826 | ||
|
|
2352e31f01 | ||
|
|
8e654346a2 | ||
|
|
015ba79f65 | ||
|
|
d6aa54f30c | ||
|
|
fd0d8d4244 | ||
|
|
c725cd7f14 | ||
|
|
0922d4a87a | ||
|
|
51562d5185 | ||
|
|
ed8b6eec28 | ||
|
|
e9c236a682 | ||
|
|
04a47ad0af | ||
|
|
99c577be60 | ||
|
|
db8340181f | ||
|
|
4f18ffd34e | ||
|
|
4306ec9c1e | ||
|
|
31c12e5182 | ||
|
|
521796a46d | ||
|
|
a187221d3f | ||
|
|
583b546e81 | ||
|
|
aa9523338f | ||
|
|
0ed66e0eab | ||
|
|
6523275b6a | ||
|
|
b9e9ca368a | ||
|
|
c4886e362a | ||
|
|
fc5f671e57 | ||
|
|
035ecd6df1 | ||
|
|
26d1a6047c | ||
|
|
60a89b6c3f | ||
|
|
b84c402c4a | ||
|
|
2579d2fea9 | ||
|
|
c75ed9b230 | ||
|
|
789e8b6bff | ||
|
|
633d15c438 | ||
|
|
baabcb1400 | ||
|
|
c16bbb9e7f | ||
|
|
623181cc34 | ||
|
|
76b5104fb7 | ||
|
|
6c0a642abf | ||
|
|
132435a9c8 | ||
|
|
521bcfc484 | ||
|
|
3413021d30 | ||
|
|
ffc64c6d56 | ||
|
|
79672f3a2d | ||
|
|
e1d5731466 | ||
|
|
09deef2d6c | ||
|
|
83907af456 | ||
|
|
878b7ed18e | ||
|
|
e6f3b9e5be | ||
|
|
75992ff13f | ||
|
|
2d7dddd505 | ||
|
|
afe0ed1674 | ||
|
|
b9ab4288d7 | ||
|
|
d816cc261a | ||
|
|
2e2ae96114 | ||
|
|
ec7e7c3f8b | ||
|
|
4a61ab269b | ||
|
|
5551ed2bd2 | ||
|
|
0da02aab21 | ||
|
|
1ae8d072a6 | ||
|
|
531a87825c | ||
|
|
4b5bb2a507 | ||
|
|
e61a3a6fe8 | ||
|
|
087da5cd9e | ||
|
|
1a5f7dd907 | ||
|
|
d38c030ee6 | ||
|
|
2042ddf08e | ||
|
|
1cf242a9df | ||
|
|
9aa0f14494 | ||
|
|
a9c7d688fd | ||
|
|
d2e5cdef4e | ||
|
|
607f5ed877 | ||
|
|
bd63ae5615 | ||
|
|
79b66f81ec | ||
|
|
e1c57fa9f0 | ||
|
|
a64bff6aab | ||
|
|
4e9a8e4afe | ||
|
|
c9a580dc07 | ||
|
|
f479a36dbe | ||
|
|
a7e7e8fb74 | ||
|
|
e56f1c6392 | ||
|
|
7caf2ef86d | ||
|
|
86b72d2723 | ||
|
|
c4b3a0aaaa | ||
|
|
de9c93610b | ||
|
|
7a06ac1ee7 | ||
|
|
f50f8e95b1 | ||
|
|
2e201b67a7 | ||
|
|
524040cf00 | ||
|
|
77d4f45d13 | ||
|
|
0d33179727 | ||
|
|
4f8de42598 | ||
|
|
3689727fc1 | ||
|
|
fffd82b9be | ||
|
|
6fc351d2e8 | ||
|
|
5630cf31f1 | ||
|
|
0c83101b3f | ||
|
|
fc683de434 | ||
|
|
b70afbe9eb | ||
|
|
996f681e5c | ||
|
|
eb118d67fc | ||
|
|
725b36ba79 | ||
|
|
1471a61993 | ||
|
|
94a76eedfd | ||
|
|
8566257a01 | ||
|
|
f60917e466 | ||
|
|
407ec97672 | ||
|
|
636ed0267d | ||
|
|
3154125ce0 | ||
|
|
62496aa18e | ||
|
|
0b98c2cbe6 | ||
|
|
bc82b59e47 | ||
|
|
277393387c | ||
|
|
007ff5c366 | ||
|
|
699e785340 | ||
|
|
6081dc240a | ||
|
|
b2e9216920 | ||
|
|
7972cb17cd | ||
|
|
73d2505c89 | ||
|
|
bdde8a127e | ||
|
|
8cf39394c5 | ||
|
|
ecf6957a6e | ||
|
|
d858005a68 | ||
|
|
6309fa8a48 | ||
|
|
fb8e2ec4e7 | ||
|
|
91d7cc1118 | ||
|
|
a072755cee | ||
|
|
1cfec4de50 | ||
|
|
cc3f2315a7 | ||
|
|
f745223796 | ||
|
|
25a2e95890 | ||
|
|
f371b14e89 | ||
|
|
0b6935e50c | ||
|
|
fb93e25833 | ||
|
|
ad86cb531a | ||
|
|
53b89aae45 | ||
|
|
b76e43679e | ||
|
|
077ca8fad2 | ||
|
|
377521c108 | ||
|
|
23d5f18d4a | ||
|
|
c8adb45ab5 | ||
|
|
18163e3ecc | ||
|
|
a18beca50c | ||
|
|
04b721aed9 | ||
|
|
45f9353164 | ||
|
|
5abe6ed6be | ||
|
|
38f81e45f4 | ||
|
|
c1482c2377 | ||
|
|
6bbd8f6006 | ||
|
|
cbdd72a4b6 | ||
|
|
f7d30b0df3 | ||
|
|
3e35b7441e | ||
|
|
754e79103a | ||
|
|
d6b59d16fd | ||
|
|
a6e220a2ae | ||
|
|
0b59262e95 | ||
|
|
593946779e | ||
|
|
537ded4b58 | ||
|
|
25a6a00f0f | ||
|
|
8298a1412b | ||
|
|
47eb25d07f | ||
|
|
0057c80b2e | ||
|
|
da88831689 | ||
|
|
7b6c6e51b3 | ||
|
|
42b2b3b8f6 | ||
|
|
64680664e3 | ||
|
|
87dd9b4374 | ||
|
|
c7d5e8d152 | ||
|
|
4cd15c074e | ||
|
|
9bfdabdf57 | ||
|
|
9375bc212b | ||
|
|
3829b52127 | ||
|
|
f852cab0f9 | ||
|
|
f53babcd68 | ||
|
|
016c1086e6 | ||
|
|
f7dd4c84b1 | ||
|
|
c1c0cb6b31 | ||
|
|
e5858bf698 | ||
|
|
b8389f6736 | ||
|
|
6c1c979414 | ||
|
|
43df82355a | ||
|
|
d8b26040f9 | ||
|
|
bdf29bf57b | ||
|
|
24358c39a6 | ||
|
|
504285c08f | ||
|
|
b7eb4026f6 | ||
|
|
ad5e4f58bb | ||
|
|
3085a10507 | ||
|
|
b5f0aa423b | ||
|
|
9344a13bed | ||
|
|
c8bc2c424f | ||
|
|
46fa6d4500 | ||
|
|
6002774f95 | ||
|
|
f7f208883c | ||
|
|
5523b00442 | ||
|
|
c81fdb18de | ||
|
|
778543c719 | ||
|
|
18b8972029 | ||
|
|
fa31f8eee1 | ||
|
|
98a2e33d78 | ||
|
|
58d01bf502 | ||
|
|
8326bd7016 | ||
|
|
d5f8b0d83b | ||
|
|
e70a898af5 | ||
|
|
df249646bc | ||
|
|
35ff93258e | ||
|
|
c58d034494 | ||
|
|
8f1de46381 | ||
|
|
1846a67e83 | ||
|
|
35ac14806c | ||
|
|
4aee4915d9 | ||
|
|
5eeaa1c693 | ||
|
|
9b2fcf89e8 | ||
|
|
e801a68f0d | ||
|
|
ffc5628637 | ||
|
|
306aa89d06 | ||
|
|
236415cde4 | ||
|
|
d49e0eaa1b | ||
|
|
107399a531 | ||
|
|
99a7786dc3 | ||
|
|
d8f48cc48b | ||
|
|
2f0beb6d3a | ||
|
|
3ab3627ffe | ||
|
|
70895999c2 | ||
|
|
ce311e1bf1 | ||
|
|
e9cf572a3c | ||
|
|
943b2ad9f3 | ||
|
|
f86bbb09f8 | ||
|
|
1246776328 | ||
|
|
ea15f69e73 | ||
|
|
2e22bb5431 | ||
|
|
a9a6e1d2b5 | ||
|
|
7e939c36cc | ||
|
|
c5d2d76ab1 | ||
|
|
622ba6e38a | ||
|
|
fad06348a7 | ||
|
|
a6ee303123 | ||
|
|
4b66add65f | ||
|
|
79dce7c4c3 | ||
|
|
aff71e0e33 | ||
|
|
9b10f56ba6 | ||
|
|
2391947b34 | ||
|
|
e903150971 | ||
|
|
7495ec9bbb | ||
|
|
e25d5a84b2 | ||
|
|
88ade4df1b | ||
|
|
00c3903672 | ||
|
|
c801b17ba0 | ||
|
|
9ec8d62f3f | ||
|
|
b1edcfcb1b | ||
|
|
54b0f59935 | ||
|
|
531b09f296 | ||
|
|
e5b6d66d60 | ||
|
|
a045810af6 | ||
|
|
d68a8fef9a | ||
|
|
9162d4291f | ||
|
|
93d7699aa7 | ||
|
|
6eb63f6a4c | ||
|
|
f6d4ca0387 | ||
|
|
7b41466a77 | ||
|
|
18c25084db | ||
|
|
a5875402ef | ||
|
|
f3ed1ba247 | ||
|
|
633d69baca | ||
|
|
dbc8cc14bc | ||
|
|
c65583b911 | ||
|
|
3d518b5757 | ||
|
|
bfa72d7f61 | ||
|
|
373713ba54 | ||
|
|
068c325ee2 | ||
|
|
3b076e5e64 | ||
|
|
07d6e3a0f2 | ||
|
|
7690ef9a1a | ||
|
|
9974c385e5 | ||
|
|
8dafad80b1 | ||
|
|
93e9b2dde9 | ||
|
|
c3a54595ea | ||
|
|
95ef52fe42 | ||
|
|
c638c40a09 | ||
|
|
83d48d24ce | ||
|
|
d807e43929 | ||
|
|
0a112be956 | ||
|
|
078efa2a6e | ||
|
|
5827827008 | ||
|
|
9c61d8de72 | ||
|
|
f72ddc8129 | ||
|
|
7e9c3b40bb | ||
|
|
a8371af9c0 | ||
|
|
4e11d071d9 | ||
|
|
a7140705c4 | ||
|
|
69986132b4 | ||
|
|
3c97a3a592 | ||
|
|
268dda4da0 | ||
|
|
45f58a97b9 | ||
|
|
bdbbaf6099 | ||
|
|
839968dc84 | ||
|
|
fbdc5f4a93 | ||
|
|
e5648a82a3 | ||
|
|
38133d326b | ||
|
|
cc00fcb5c9 | ||
|
|
53f7a14717 | ||
|
|
922495ca06 | ||
|
|
e5e2e08ff4 | ||
|
|
c7c410210b | ||
|
|
cb7c214aa0 | ||
|
|
6f5f49729c | ||
|
|
94c9442de1 | ||
|
|
8c044d0852 | ||
|
|
1f0cc0a5f3 | ||
|
|
5693ce3df7 | ||
|
|
bcf04ab11e | ||
|
|
086f6bd772 | ||
|
|
d0fa444a0e | ||
|
|
cd81aeb286 | ||
|
|
7db33bc92e | ||
|
|
fb6c501e44 | ||
|
|
ce7b398f7b | ||
|
|
4d8d3a8109 | ||
|
|
a183cf8b63 | ||
|
|
f834edcf94 | ||
|
|
17802a9408 | ||
|
|
ac1aad881c | ||
|
|
928110a92d | ||
|
|
f6479fafe2 | ||
|
|
62b1c2ba84 | ||
|
|
c0ac5e540f | ||
|
|
fb5ec5557b | ||
|
|
74d94e6792 | ||
|
|
63f4c6b4da | ||
|
|
2774c1c988 | ||
|
|
469b0c0a9a | ||
|
|
2ddd217737 | ||
|
|
c4e8e34ad6 | ||
|
|
4dc18c0af4 | ||
|
|
55c6911b87 | ||
|
|
9bf0da5409 | ||
|
|
7d5b2dd1de | ||
|
|
6091632e40 | ||
|
|
44110fd4d9 | ||
|
|
74d76ebfeb | ||
|
|
760bc138b0 | ||
|
|
2a4763d4f3 | ||
|
|
4b92f205ef | ||
|
|
a5668fa1db | ||
|
|
de39256377 | ||
|
|
f53709c83d | ||
|
|
8ad0192e55 | ||
|
|
791e454cb6 | ||
|
|
c85638be4d | ||
|
|
a61b1fdf06 | ||
|
|
07c25d1d91 | ||
|
|
83dafd87a4 | ||
|
|
25a8733957 | ||
|
|
c529e9ed9c | ||
|
|
d6a8a85b5e | ||
|
|
3a945535f7 | ||
|
|
0fc4374193 | ||
|
|
e350b4ab92 | ||
|
|
626527ee09 | ||
|
|
c4a462c385 | ||
|
|
706a04dbfc | ||
|
|
7fd51af4de | ||
|
|
c1af9b2ba4 | ||
|
|
5efb4cc58d | ||
|
|
4b2977d601 | ||
|
|
2f1c1c2fb1 | ||
|
|
f47ef09a1f | ||
|
|
47041b0fac | ||
|
|
b6111b5e00 | ||
|
|
b8a2b2d7c8 | ||
|
|
0765ea1b86 | ||
|
|
64223704e0 | ||
|
|
8c14763ea4 | ||
|
|
10cd93022a | ||
|
|
d006aede6a | ||
|
|
b57e1ce660 | ||
|
|
1b59c4dad3 | ||
|
|
189c721d7e | ||
|
|
1ff1592f24 | ||
|
|
7f5f310bf0 | ||
|
|
f999861228 | ||
|
|
a571bd7dca | ||
|
|
3d0d28fa01 | ||
|
|
4c54b49ef5 | ||
|
|
eb940bcf52 | ||
|
|
be0e773879 | ||
|
|
056e07e80e | ||
|
|
83b36d07d0 | ||
|
|
89aaf05aff | ||
|
|
2f87fd46fb | ||
|
|
e04276ee38 | ||
|
|
05c3061f08 | ||
|
|
c33006bcbc | ||
|
|
4bf4500ae1 | ||
|
|
e2944ff4a7 | ||
|
|
f79b5dadbb | ||
|
|
4d44129b04 | ||
|
|
b3e1d84e6c | ||
|
|
6702edaa9d | ||
|
|
a3a6e5933a | ||
|
|
66ec95ebb0 | ||
|
|
a944bf85b8 | ||
|
|
1d1829f664 | ||
|
|
094aa872ce | ||
|
|
eaf925e30b | ||
|
|
722d3d1ad4 | ||
|
|
b69b3e9409 | ||
|
|
ae5eaeec93 | ||
|
|
c393eb20be | ||
|
|
0e8715b4ff | ||
|
|
b09c812579 | ||
|
|
d6f7c271e2 | ||
|
|
f1d97e396b | ||
|
|
abf8f4daa8 | ||
|
|
aba242301d | ||
|
|
7a52080940 | ||
|
|
c3ffe6ab8b | ||
|
|
851a9185c0 | ||
|
|
c1e1ddb73f | ||
|
|
d530c1d6d6 | ||
|
|
43579b51f0 | ||
|
|
3d1133cdb5 | ||
|
|
e27af9fd24 | ||
|
|
a7c6597246 | ||
|
|
fd6d873c01 | ||
|
|
89dee04cdf | ||
|
|
3b0a073964 | ||
|
|
a129863a4d | ||
|
|
5b700f7dfc | ||
|
|
d982bcb5e4 | ||
|
|
61a5e8d4fd | ||
|
|
cb641bd221 | ||
|
|
2f6e9a1756 | ||
|
|
51b183a0f3 | ||
|
|
d071bb04af | ||
|
|
14887f9c99 | ||
|
|
654909261e | ||
|
|
ab2a27345d | ||
|
|
484eb3303c | ||
|
|
319d64e1e5 | ||
|
|
60250ca5e5 | ||
|
|
d729bb3a89 | ||
|
|
4dc55635d7 | ||
|
|
4af49ef7b6 | ||
|
|
3a42e66504 | ||
|
|
250b196b81 | ||
|
|
9ba1987cab | ||
|
|
909b1e2a28 | ||
|
|
e46af41abf | ||
|
|
17671a3b08 | ||
|
|
b8eb7752e7 | ||
|
|
5e92f45111 | ||
|
|
baf848c791 | ||
|
|
737d57c1f4 | ||
|
|
9985ad7ee1 | ||
|
|
025b55e1a2 | ||
|
|
14fbabe8d7 | ||
|
|
b746f7a70e | ||
|
|
0d3b003aac | ||
|
|
9428927879 | ||
|
|
511b2f7186 | ||
|
|
d8c83e3c65 | ||
|
|
050fd6f3ba | ||
|
|
72d6a8d4e1 | ||
|
|
30d35216f6 | ||
|
|
bcd0d40912 | ||
|
|
4b8a6bbbe0 | ||
|
|
47026b669b | ||
|
|
752dc467a8 | ||
|
|
bde45b262a | ||
|
|
fc338f5723 | ||
|
|
346ed453ef | ||
|
|
664f05edba | ||
|
|
edcff44f4b | ||
|
|
42ee5d2ddb | ||
|
|
54e421d7e6 | ||
|
|
9e5629d1e0 | ||
|
|
c0fdffac28 | ||
|
|
e94e64d204 | ||
|
|
e503e35b84 | ||
|
|
752592a3d8 | ||
|
|
2e6d194a6f | ||
|
|
63dfb07b51 | ||
|
|
02525056d6 | ||
|
|
8292429648 | ||
|
|
765c496068 | ||
|
|
d6feec8010 | ||
|
|
f1fbb37547 | ||
|
|
5a6386dd24 | ||
|
|
0809db9e32 | ||
|
|
15a3315854 | ||
|
|
82d1f256b2 | ||
|
|
e7ba2a0eb0 | ||
|
|
eff0449b3a | ||
|
|
3b9e066ec8 | ||
|
|
260ab42b9e | ||
|
|
a3d745edd0 | ||
|
|
40a92fe730 | ||
|
|
e30bb23711 | ||
|
|
292c1d08d8 | ||
|
|
be56447614 | ||
|
|
70fda8ba64 | ||
|
|
5cc407986b | ||
|
|
53af829f46 | ||
|
|
53065a6d95 | ||
|
|
862cfdb55d | ||
|
|
b065b16bf1 | ||
|
|
6ff33b48d1 | ||
|
|
d04020f79c | ||
|
|
6b15072764 | ||
|
|
f261115ac4 | ||
|
|
116f130c4c | ||
|
|
cad1b02482 | ||
|
|
09fe69f63a | ||
|
|
8ecd81d51c | ||
|
|
8f71b010cc | ||
|
|
b817c6189d | ||
|
|
a00d41930d | ||
|
|
caee942796 | ||
|
|
d3410fdc61 | ||
|
|
8087c3e5d4 | ||
|
|
10bd0ea09e | ||
|
|
5803222e68 | ||
|
|
a243fce1ae | ||
|
|
c8059ebf50 | ||
|
|
ce2d270e7c | ||
|
|
0c945bdc7e | ||
|
|
60ec684853 | ||
|
|
b159625e62 | ||
|
|
e212262f29 | ||
|
|
c71167d893 | ||
|
|
2d4e4c7a13 | ||
|
|
695f8df5b8 | ||
|
|
2e822cb6a6 | ||
|
|
f2a90935a3 | ||
|
|
cee741eca0 | ||
|
|
b5b59e77d6 | ||
|
|
cce883808e | ||
|
|
8faae7ef08 | ||
|
|
4538ef38a1 | ||
|
|
ee12d02402 | ||
|
|
7050fa41a0 | ||
|
|
4a346211b8 | ||
|
|
4df2ecc8ae | ||
|
|
03995ec6b2 | ||
|
|
6059146b42 | ||
|
|
30811ae656 | ||
|
|
b8015bbef5 | ||
|
|
157d7c57fd | ||
|
|
03963036d1 | ||
|
|
5099f7db88 | ||
|
|
ab8cd246bf | ||
|
|
528981f913 | ||
|
|
3fd5eb789c | ||
|
|
9c09777c09 | ||
|
|
7298d320e0 | ||
|
|
39154fa5ad | ||
|
|
6db99bee25 | ||
|
|
ee0505c100 | ||
|
|
1943749cb6 | ||
|
|
5763ed20bf | ||
|
|
7eead1c1ff | ||
|
|
048e08b59a | ||
|
|
523bd9b788 | ||
|
|
f442733b33 | ||
|
|
a6fe5bd859 | ||
|
|
32a1d23c2a | ||
|
|
06644945cf | ||
|
|
1774a2c23e | ||
|
|
668b974dd7 | ||
|
|
4427f81dd9 | ||
|
|
9490428535 | ||
|
|
8d70eedc5f | ||
|
|
74550d2424 | ||
|
|
148d8e7524 | ||
|
|
aca9a4dcb6 | ||
|
|
953c35bdac | ||
|
|
596b33f149 | ||
|
|
ef3ea618d2 | ||
|
|
362b210a31 | ||
|
|
15f7b0ecff | ||
|
|
f72e9f5293 | ||
|
|
0d93f31eea | ||
|
|
f1af125d24 | ||
|
|
a6c08bee7b | ||
|
|
c2d2c8660f | ||
|
|
db3538af64 | ||
|
|
04ac7fb19e | ||
|
|
53e853fbc9 | ||
|
|
747ce4e00b | ||
|
|
5f6eb76d7f | ||
|
|
3777620574 | ||
|
|
b02ae1b7cc | ||
|
|
88816018d8 | ||
|
|
06e7e2afac | ||
|
|
ce2c4ed0f4 | ||
|
|
099ca60975 | ||
|
|
43ab623fac | ||
|
|
bcc9a8fd60 | ||
|
|
6fb96ea5d6 | ||
|
|
2f64b3ee13 | ||
|
|
d4a78e5dc7 | ||
|
|
71033f5739 | ||
|
|
17444509fe | ||
|
|
42baa22cdc | ||
|
|
f07de8cd3b | ||
|
|
0772898b83 | ||
|
|
828b2d66d1 | ||
|
|
8ab4fb7946 | ||
|
|
e91a059f0f | ||
|
|
093d83ed89 | ||
|
|
5c0381e4f0 | ||
|
|
657c6f8e35 | ||
|
|
4bb984daf3 | ||
|
|
e46a3f89ed | ||
|
|
6843cd62dd | ||
|
|
52ffc77fdd | ||
|
|
158542ec0a | ||
|
|
360da8a3c9 | ||
|
|
65d1186317 | ||
|
|
b7b4d68a9a | ||
|
|
952f70b433 | ||
|
|
74de8e5056 | ||
|
|
9d88c1c5da | ||
|
|
a6bde78168 | ||
|
|
bb85885e5d | ||
|
|
dd085be73d | ||
|
|
f576310cdf | ||
|
|
70e1c98987 | ||
|
|
4f03aa82fe | ||
|
|
383c93a415 | ||
|
|
860fbe8ede | ||
|
|
39900bd987 | ||
|
|
5c09147551 | ||
|
|
f0929a9bd8 | ||
|
|
786496b3c4 | ||
|
|
e5f5c8273e | ||
|
|
ca250699ef | ||
|
|
7f41af3ee7 | ||
|
|
260dc3fddd | ||
|
|
052c40cc26 | ||
|
|
1b5bab9c18 | ||
|
|
6a7b256676 | ||
|
|
0e135129e2 | ||
|
|
7af6bf13ed | ||
|
|
91ed49b65a | ||
|
|
84f614528f | ||
|
|
7c0e29fc86 | ||
|
|
1f9e4bd576 | ||
|
|
fc0a577dfb | ||
|
|
69d16ddce5 | ||
|
|
984813b154 | ||
|
|
b6beeedc26 | ||
|
|
55f7a0d0dc | ||
|
|
7919cc191e | ||
|
|
db0c5088b7 | ||
|
|
cc4b9a6b45 | ||
|
|
f4e33a4ad4 | ||
|
|
0e0fe9ed51 | ||
|
|
20c1f8cbe3 | ||
|
|
f2ee3b4966 | ||
|
|
57a072746e | ||
|
|
497f21a5bd | ||
|
|
099c242ad7 | ||
|
|
109eff420c | ||
|
|
0896096a70 | ||
|
|
2d2aea009e | ||
|
|
0425b4e094 | ||
|
|
15c0a9dadf | ||
|
|
e09c563cd8 | ||
|
|
218a4a50f6 | ||
|
|
9ab228e8f0 | ||
|
|
b30db118f2 | ||
|
|
cccb4f45cd | ||
|
|
54c9d6e35d | ||
|
|
da7d11e387 | ||
|
|
d9073183a7 | ||
|
|
78480f7577 | ||
|
|
1dbf0d70da | ||
|
|
44ee2a9913 | ||
|
|
a3a5a51f74 | ||
|
|
1ae4426ec8 | ||
|
|
270760bd16 | ||
|
|
5bb20e44fb | ||
|
|
26a2ab725e | ||
|
|
9d73b89a4e | ||
|
|
606f335496 | ||
|
|
fe9a02e514 | ||
|
|
f76a835e33 | ||
|
|
e199add701 | ||
|
|
a744096dd7 | ||
|
|
51a18849c0 | ||
|
|
bd303ef10b | ||
|
|
1e9ec77b65 | ||
|
|
4b409de5ba | ||
|
|
66cea3a0b5 | ||
|
|
0add617834 | ||
|
|
70b0d95d9b | ||
|
|
cae9c89b64 | ||
|
|
a9d9274e78 | ||
|
|
2211fb6b1e | ||
|
|
34569679f0 | ||
|
|
816e1f0d51 | ||
|
|
de62d74ac5 | ||
|
|
d71c79f268 | ||
|
|
ee948cb2ae | ||
|
|
ba59a850d1 | ||
|
|
b7999842a9 | ||
|
|
2dd0ae47db | ||
|
|
926d9346e1 | ||
|
|
ac8764b9b7 | ||
|
|
4cf3f24fbc | ||
|
|
0691766a31 | ||
|
|
77c00a10da | ||
|
|
8c407ae482 | ||
|
|
8d2d612547 | ||
|
|
80dc26b7f4 | ||
|
|
fbe7b9ec1a | ||
|
|
048fccd6e0 | ||
|
|
638d41e0b6 | ||
|
|
4271eb6b3e | ||
|
|
d25bfd8ba7 | ||
|
|
0739fbf464 | ||
|
|
d1b38f8eb2 | ||
|
|
e6d17fa4cb | ||
|
|
d62b8b49a2 | ||
|
|
149dd7dc8b | ||
|
|
0177f96795 | ||
|
|
ec56773dc6 | ||
|
|
881bf34ec4 | ||
|
|
6787308061 | ||
|
|
0cd01bf165 | ||
|
|
132ae3899f | ||
|
|
72f84fa4ef | ||
|
|
16d81f3f71 | ||
|
|
42a0ea148b | ||
|
|
2021311a4e | ||
|
|
b64e91dffa | ||
|
|
57bb7030fb | ||
|
|
425fe7829b | ||
|
|
aa88315924 | ||
|
|
39a59fb049 | ||
|
|
e0993a5e55 | ||
|
|
4eb59ba7ed | ||
|
|
cc9fb31e61 | ||
|
|
c44ebecfb2 | ||
|
|
f60e1d763e | ||
|
|
5c3cb477ef | ||
|
|
5fd4005967 | ||
|
|
76d1b8f7fb | ||
|
|
2bbc65958a | ||
|
|
cbdd0fd2ba | ||
|
|
2f7aa77c11 | ||
|
|
bed39570ff | ||
|
|
8bc3b204b4 | ||
|
|
fa030ebcbb | ||
|
|
af365024b7 | ||
|
|
c742877b77 | ||
|
|
ace4391b79 | ||
|
|
627cbf2898 | ||
|
|
baae80fa41 | ||
|
|
9be07710dd | ||
|
|
163e005561 | ||
|
|
d8e691d3f5 | ||
|
|
85a1a6ba24 | ||
|
|
828a59b298 | ||
|
|
f1b91c0223 | ||
|
|
cadb0f18a9 | ||
|
|
2a8d7cf0a8 | ||
|
|
c9b54ba87f | ||
|
|
d57ae91995 | ||
|
|
dd86b132ce | ||
|
|
3967558bae | ||
|
|
668ce51f3c | ||
|
|
1db2a4aeea | ||
|
|
e20425f385 | ||
|
|
a20224f969 | ||
|
|
d66318a031 | ||
|
|
37c2579253 | ||
|
|
23ab2a343f | ||
|
|
e6dfc595ab | ||
|
|
98e15d7741 | ||
|
|
38b226b46f | ||
|
|
c53b4d398e | ||
|
|
fbcf6b6c65 | ||
|
|
09c95b20da | ||
|
|
a7f81c3cfb | ||
|
|
a66256f390 | ||
|
|
8b7da18641 | ||
|
|
a9c0356611 | ||
|
|
b25a9a5407 | ||
|
|
8b632356e9 | ||
|
|
b8a01d794e | ||
|
|
cfd33921a1 | ||
|
|
979aa010b9 | ||
|
|
de064ba0c0 | ||
|
|
ff200d9562 | ||
|
|
a8148683d3 | ||
|
|
838a15d31a | ||
|
|
2d66bf24fb | ||
|
|
64bc7cc955 | ||
|
|
362f8ec0cb | ||
|
|
d99a40df94 | ||
|
|
ab08955a5f | ||
|
|
577fcd7f9e | ||
|
|
7da92bf04c | ||
|
|
f7caf6fe49 | ||
|
|
d111edd76a | ||
|
|
b2657c06a8 | ||
|
|
fccf9e8805 | ||
|
|
7fc80705dd | ||
|
|
9007f31c0a | ||
|
|
18f8e5b98b | ||
|
|
0087f74178 | ||
|
|
639ad8df91 | ||
|
|
e8af3dacf1 | ||
|
|
5d42fb8294 | ||
|
|
4440a2f1ac | ||
|
|
c9cee89d7e | ||
|
|
1c3d20ad6f | ||
|
|
40862fcf12 | ||
|
|
110b25a64b | ||
|
|
f1a44ddebb | ||
|
|
fc00d86c7e | ||
|
|
4a822fe52c | ||
|
|
6587f00c2a | ||
|
|
3b77502b97 | ||
|
|
d7554b9735 | ||
|
|
798df5c136 | ||
|
|
22c70976db | ||
|
|
3eeb7cd8ab | ||
|
|
7ef245d739 | ||
|
|
9a6b3b3e2d | ||
|
|
715c9ca022 | ||
|
|
5f57ea7fe6 | ||
|
|
37b2e60e99 | ||
|
|
95024543cc | ||
|
|
3f1abe8350 | ||
|
|
50895d08e1 | ||
|
|
6747e07166 | ||
|
|
994d0a9a7e | ||
|
|
3f7562809e | ||
|
|
5fd8477a21 | ||
|
|
faa5d60bea | ||
|
|
02d41b8dfe | ||
|
|
caf105cbd9 | ||
|
|
2c067482de | ||
|
|
bf8d119a0e | ||
|
|
3f83b578de | ||
|
|
16fe4a3565 | ||
|
|
abf16370ad | ||
|
|
a93b84c32e | ||
|
|
267f983ca1 | ||
|
|
50e9f3186a | ||
|
|
d25114b370 | ||
|
|
12cc310e38 | ||
|
|
bf2b9c968d | ||
|
|
4a0cda72a2 | ||
|
|
e3e3b60f1e | ||
|
|
ddfc0422b4 | ||
|
|
42bf50f6a3 | ||
|
|
47428b8959 | ||
|
|
0965ed680d | ||
|
|
8f8139e7dc | ||
|
|
c3e10343b4 | ||
|
|
3aa2e6f425 | ||
|
|
66bfa4da1d | ||
|
|
d09ca88101 | ||
|
|
453429f860 | ||
|
|
fdd9c3d0ee | ||
|
|
22a51a2813 | ||
|
|
89c5c46dbb | ||
|
|
ab43010a98 | ||
|
|
7916930160 | ||
|
|
11026923bd | ||
|
|
2d50b96881 | ||
|
|
23d1819f40 | ||
|
|
b631f54a54 | ||
|
|
453c3fee79 | ||
|
|
d7c9626df9 | ||
|
|
c7a2be629f | ||
|
|
a2c9aa6742 | ||
|
|
56abc55bb2 | ||
|
|
d2fc32f2a7 | ||
|
|
b221010800 | ||
|
|
8537c42756 | ||
|
|
aae296696d | ||
|
|
74eb0f3c35 | ||
|
|
68b0d64fee | ||
|
|
fd6035c54a | ||
|
|
a1dd32b121 | ||
|
|
c9c9a3297b | ||
|
|
0422352139 | ||
|
|
4b590dc05d | ||
|
|
0f33ced9bc | ||
|
|
2831d58dcd | ||
|
|
eb646ff769 | ||
|
|
aed12cd831 | ||
|
|
30d88ceb78 | ||
|
|
f66d20972d | ||
|
|
7055f5fa50 | ||
|
|
6bbbe27c9a | ||
|
|
5cb5e057e7 | ||
|
|
134faacb5e | ||
|
|
b2ad88bd01 | ||
|
|
e999883c58 | ||
|
|
6258476713 | ||
|
|
53b96d3f44 | ||
|
|
da4552c61c | ||
|
|
8b563740f5 | ||
|
|
6137b7e1f5 | ||
|
|
a7b276c3c4 | ||
|
|
6a063c9d76 | ||
|
|
ac71ea0035 | ||
|
|
879c50a6b8 | ||
|
|
4e1ad08e90 | ||
|
|
45b18c7ada | ||
|
|
ca5873022a | ||
|
|
b004a92e8a | ||
|
|
e6df7d90fe | ||
|
|
4ff254df97 | ||
|
|
0c77bd45f2 | ||
|
|
880ba76bd8 | ||
|
|
327817e7ea | ||
|
|
2c98207799 | ||
|
|
6c2ef567c4 | ||
|
|
4f9b504d90 | ||
|
|
b811796bbc | ||
|
|
4008706bb0 | ||
|
|
20acd11425 | ||
|
|
b36e2f09de | ||
|
|
d29e83e5f6 | ||
|
|
0dd37a39b9 | ||
|
|
b22858f9cf | ||
|
|
4accb1e952 | ||
|
|
5e4a6b2c8e | ||
|
|
79986e47b6 | ||
|
|
45cd7958d0 | ||
|
|
7bdc984933 | ||
|
|
76f3ef75d5 | ||
|
|
13e4d1cdb3 | ||
|
|
70df392647 | ||
|
|
ae857f5981 | ||
|
|
cb49214667 | ||
|
|
48e64f1c32 | ||
|
|
9b1a53510e | ||
|
|
c6aa173202 | ||
|
|
907fc3f872 | ||
|
|
406a59277f | ||
|
|
f094466d64 | ||
|
|
af8274f305 | ||
|
|
420b8014f8 | ||
|
|
9e5fa977a5 | ||
|
|
fe101ff0e8 | ||
|
|
0ba067aa15 | ||
|
|
192cab67e9 | ||
|
|
fa08da847a | ||
|
|
81d40c829d | ||
|
|
6e978cae63 | ||
|
|
a0167c4cc2 | ||
|
|
cab893b4aa | ||
|
|
8399acda83 | ||
|
|
12550f4bc3 | ||
|
|
2ec76cad54 | ||
|
|
47602652e4 | ||
|
|
158ddf2269 | ||
|
|
71d5259f85 | ||
|
|
1ddf39b3da | ||
|
|
8b9981970d | ||
|
|
4accc5e2ac | ||
|
|
dc4e802bd1 | ||
|
|
7b368057e3 | ||
|
|
2ea6fa9611 | ||
|
|
125fd4c65c | ||
|
|
cf4d1109d3 | ||
|
|
c7c6d06907 | ||
|
|
384d43bb80 | ||
|
|
29c55b6ca3 | ||
|
|
910b0be5a5 | ||
|
|
706fa6310b | ||
|
|
248699d771 | ||
|
|
6343e37bc1 | ||
|
|
f562e8c212 | ||
|
|
8ff00226e2 | ||
|
|
c72c75083c | ||
|
|
862a54eac3 | ||
|
|
12bc18e1ba | ||
|
|
f045bd0d50 | ||
|
|
dfe06468ed | ||
|
|
3fda8da1a5 | ||
|
|
d0a5715f8c | ||
|
|
6b83bb8503 | ||
|
|
69f1dba96a | ||
|
|
dcbdd7ff63 | ||
|
|
9b28a011e7 | ||
|
|
350598dc55 | ||
|
|
ae9df021c2 | ||
|
|
d7cb78ecf5 | ||
|
|
ef2e9acf1e | ||
|
|
7f52069e41 | ||
|
|
9a5c0d9cdc | ||
|
|
551fb17e02 | ||
|
|
b5b9864033 | ||
|
|
a2d2ef3a5e | ||
|
|
b09a586357 | ||
|
|
70f3bc5308 | ||
|
|
8bc7b754bc | ||
|
|
3d5160455a | ||
|
|
983cc22761 | ||
|
|
6d80e4cacb | ||
|
|
1c5a271177 | ||
|
|
e4891ccf6b | ||
|
|
48bfc7485f | ||
|
|
2e297ab1ef | ||
|
|
828fc553b4 | ||
|
|
08e1a6c69a | ||
|
|
039ea44520 | ||
|
|
65c1abbe27 | ||
|
|
0ab5a0f114 | ||
|
|
94219bd31e | ||
|
|
7c2457e659 | ||
|
|
a156453301 | ||
|
|
c2e53ec9a9 | ||
|
|
687b2a83b4 | ||
|
|
a1f7d628bb | ||
|
|
789ee66836 | ||
|
|
9ec42b66f3 | ||
|
|
b2b44a0810 | ||
|
|
59076afcb5 | ||
|
|
5ab24250bc |
61
.gitignore
vendored
61
.gitignore
vendored
@@ -1,54 +1,9 @@
|
||||
*.la
|
||||
*.lo
|
||||
*.loT
|
||||
*.o
|
||||
*.so
|
||||
.zanata-cache/
|
||||
_build
|
||||
TAGS
|
||||
tags
|
||||
vgdump
|
||||
*.swp
|
||||
*~
|
||||
Makefile
|
||||
Makefile.in
|
||||
.deps
|
||||
.libs
|
||||
INSTALL
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
compile
|
||||
config.guess
|
||||
config.h
|
||||
config.h.in
|
||||
config.log
|
||||
config.rpath
|
||||
config.status
|
||||
config.sub
|
||||
configure
|
||||
depcomp
|
||||
install-sh
|
||||
libtool
|
||||
ltmain.sh
|
||||
missing
|
||||
stamp-h1
|
||||
libkeyactor*.tar.*
|
||||
mkinstalldirs
|
||||
m4/*.m4
|
||||
gtk-doc.make
|
||||
eek/eek-special-keysym-labels.h
|
||||
eek/eek-unicode-keysym-labels.h
|
||||
eek/eek-keyname-keysym-labels.h
|
||||
eek/*.pc
|
||||
tests/eek-simple-test
|
||||
tests/eek-xkb-test
|
||||
src/eekboard
|
||||
docs/reference/eek/*.stamp
|
||||
docs/reference/eek/*.txt
|
||||
!/docs/reference/eek/eek-sections.txt
|
||||
docs/reference/eek/xml
|
||||
docs/reference/eek/html
|
||||
docs/reference/eek/eek.signals
|
||||
docs/reference/eek/eek.args
|
||||
docs/reference/eek/eek.hierarchy
|
||||
docs/reference/eek/eek.interfaces
|
||||
docs/reference/eek/eek.prerequisites
|
||||
po/*.gmo
|
||||
po/Makefile.in.in
|
||||
po/POTFILES
|
||||
po/stamp-it
|
||||
|
||||
\#*#
|
||||
.\#*
|
||||
|
||||
56
.gitlab-ci.yml
Normal file
56
.gitlab-ci.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
image: debian:buster
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
.tags: &tags
|
||||
tags:
|
||||
- librem5
|
||||
|
||||
before_script:
|
||||
- apt-get -y update
|
||||
- apt-get -y install wget ca-certificates gnupg
|
||||
- echo "deb http://ci.puri.sm/ scratch librem5" > /etc/apt/sources.list.d/ci.list
|
||||
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
|
||||
- apt-get -y update
|
||||
- apt-get -y build-dep .
|
||||
|
||||
build_meson:
|
||||
<<: *tags
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- _build
|
||||
expire_in: 3h
|
||||
script:
|
||||
- meson . _build/ -Ddepdatadir=/usr/share
|
||||
- ninja -C _build install
|
||||
|
||||
build_deb:
|
||||
<<: *tags
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- "*.deb"
|
||||
script:
|
||||
- apt-get -y install devscripts
|
||||
- debuild -i -us -uc -b
|
||||
- cp ../*.deb .
|
||||
|
||||
test_lintian:
|
||||
<<: *tags
|
||||
stage: test
|
||||
dependencies:
|
||||
- build_deb
|
||||
script:
|
||||
- apt-get -y install lintian
|
||||
- lintian *.deb
|
||||
|
||||
test:
|
||||
<<: *tags
|
||||
stage: test
|
||||
needs:
|
||||
- build_meson
|
||||
script:
|
||||
- ninja -C _build test
|
||||
7
AUTHORS
7
AUTHORS
@@ -1,6 +1,5 @@
|
||||
eekboard is written by Daiki Ueno <ueno@unixuser.org>
|
||||
squeekboard is written by Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> on behlf of Purism, SPC.
|
||||
eekboard was written by Daiki Ueno <ueno@unixuser.org>
|
||||
|
||||
Cairo keyboard drawing functions are borrowed from the libgnomekbd
|
||||
library by Sergey V. Udaltsov <svu@gnome.org>. See the comments in
|
||||
eek/eek-drawing.c for detail.
|
||||
For more details, see the debian/copyright file.
|
||||
|
||||
|
||||
476
Cargo.lock
generated
Normal file
476
Cargo.lock
generated
Normal file
@@ -0,0 +1,476 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "aho-corasick"
|
||||
version = "0.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "atk-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bitflags"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "cairo-rs"
|
||||
version = "0.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cairo-sys-rs"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "dtoa"
|
||||
version = "0.4.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "fragile"
|
||||
version = "0.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "gdk"
|
||||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cairo-rs 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-pixbuf 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pango 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gdk-pixbuf"
|
||||
version = "0.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"gdk-pixbuf-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gdk-pixbuf-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gdk-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-pixbuf-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pango-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gio"
|
||||
version = "0.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"fragile 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gio-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "glib"
|
||||
version = "0.6.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "glib-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gobject-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gtk"
|
||||
version = "0.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cairo-rs 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-pixbuf 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-pixbuf-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gtk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pango 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gtk-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"atk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-pixbuf-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gdk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pango-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.62"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "maplit"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "memmap"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pango"
|
||||
version = "0.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pango-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pango-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pkg-config"
|
||||
version = "0.3.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"utf8-ranges 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.6.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "rs"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gtk 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gtk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"maplit 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"regex 1.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"xkbcommon 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.101"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"serde_derive 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.101"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml"
|
||||
version = "0.8.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"dtoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thread_local"
|
||||
version = "0.3.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "utf8-ranges"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.3.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-i686-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "xkbcommon"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "yaml-rust"
|
||||
version = "0.4.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[metadata]
|
||||
"checksum aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)" = "58fb5e95d83b38284460a5fda7d6470aa0b8844d283a0b614b8535e880800d2d"
|
||||
"checksum atk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c7017e53393e713212aed7aea336b6553be4927f58c37070a56c2fe3d107e489"
|
||||
"checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12"
|
||||
"checksum cairo-rs 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dd940f0d609699e343ef71c4af5f66423afbf30d666f796dabd8fd15229cf5b6"
|
||||
"checksum cairo-sys-rs 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d25596627380be4381247dba06c69ad05ca21b3b065bd9827e416882ac41dcd2"
|
||||
"checksum cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)" = "4fc9a35e1f4290eb9e5fc54ba6cf40671ed2a2514c3eeb2b2a908dda2ea5a1be"
|
||||
"checksum dtoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "ea57b42383d091c85abcc2706240b94ab2a8fa1fc81c10ff23c4de06e2a90b5e"
|
||||
"checksum fragile 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05f8140122fa0d5dcb9fc8627cfce2b37cc1500f752636d46ea28bc26785c2f9"
|
||||
"checksum gdk 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc52c7244046df9d959df87289f1fc5cca23f9f850bab0c967963e2ecb83a96"
|
||||
"checksum gdk-pixbuf 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc3aa730cb4df3de5d9fed59f43afdf9e5fb2d3d10bfcbd04cec031435ce87f5"
|
||||
"checksum gdk-pixbuf-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08284f16ce4d909b10d785a763ba190e222d2c1557b29908bf0a661e27a8ac3b"
|
||||
"checksum gdk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "108548ebf5329b551f2b97ab356908d14627905abb74b936c3372de1535aee81"
|
||||
"checksum gio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29a44b051990573448edc80b1995237f8b97b5734d2aec05105b9242aa10af11"
|
||||
"checksum gio-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6975ada29f7924dc1c90b30ed3b32d777805a275556c05e420da4fbdc22eb250"
|
||||
"checksum glib 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a333edf5b9f1411c246ef14e7881b087255f04c56dbef48c64a0cb039b4b340"
|
||||
"checksum glib-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3573351e846caed9f11207b275cd67bc07f0c2c94fb628e5d7c92ca056c7882d"
|
||||
"checksum gobject-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08475e4a08f27e6e2287005950114735ed61cec2cb8c1187682a5aec8c69b715"
|
||||
"checksum gtk 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "56a6b30f194f09a17bb7ffa95c3ecdb405abd3b75ff981f831b1f6d18fe115ff"
|
||||
"checksum gtk-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d487d333a4b87072e6bf9f2e55befa0ebef01b9496c2e263c0f4a1ff3d6c04b1"
|
||||
"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
"checksum libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)" = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba"
|
||||
"checksum linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83"
|
||||
"checksum maplit 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
|
||||
"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
|
||||
"checksum memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
|
||||
"checksum pango 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4c2cb169402a3eb1ba034a7cc7d95b8b1c106e9be5ba4be79a5a93dc1a2795f4"
|
||||
"checksum pango-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d6eb49268e69dd0c1da5d3001a61aac08e2e9d2bfbe4ae4b19b9963c998f6453"
|
||||
"checksum pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)" = "72d5370d90f49f70bd033c3d75e87fc529fbfff9d6f7cccef07d6170079d91ea"
|
||||
"checksum proc-macro2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "afdc77cc74ec70ed262262942ebb7dac3d479e9e5cfa2da1841c0806f6cdabcc"
|
||||
"checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"
|
||||
"checksum regex 1.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "d9d8297cc20bbb6184f8b45ff61c8ee6a9ac56c156cec8e38c3e5084773c44ad"
|
||||
"checksum regex-syntax 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "11a7e20d1cce64ef2fed88b66d347f88bd9babb82845b2b858f3edbf59a4f716"
|
||||
"checksum serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)" = "9796c9b7ba2ffe7a9ce53c2287dfc48080f4b2b362fcc245a259b3a7201119dd"
|
||||
"checksum serde_derive 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)" = "4b133a43a1ecd55d4086bd5b4dc6c1751c68b1bfbeba7a5040442022c7e7c02e"
|
||||
"checksum serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)" = "38b08a9a90e5260fe01c6480ec7c811606df6d3a660415808c3c3fa8ed95b582"
|
||||
"checksum syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "66850e97125af79138385e9b88339cbcd037e3f28ceab8c5ad98e64f0f1f80bf"
|
||||
"checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"
|
||||
"checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"
|
||||
"checksum utf8-ranges 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b4ae116fef2b7fea257ed6440d3cfcff7f190865f170cdad00bb6465bf18ecba"
|
||||
"checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"
|
||||
"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
||||
"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
"checksum xkbcommon 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fda0ea5f7ddabd51deeeda7799bee06274112f577da7dd3d954b8eda731b2fce"
|
||||
"checksum yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c4434d"
|
||||
39
Cargo.toml
Normal file
39
Cargo.toml
Normal file
@@ -0,0 +1,39 @@
|
||||
[package]
|
||||
name = "rs"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1.0.*"
|
||||
clap = "2.32.*"
|
||||
maplit = "1.0.*"
|
||||
regex = "1.1.*"
|
||||
serde = { version = "1.0.*", features = ["derive"] }
|
||||
serde_yaml = "0.8.*"
|
||||
xkbcommon = { version = "0.4.*", features = ["wayland"] }
|
||||
|
||||
[dependencies.gio]
|
||||
version = ""
|
||||
features = ["v2_44"]
|
||||
|
||||
[dependencies.glib]
|
||||
version = ""
|
||||
features = ["v2_44"]
|
||||
|
||||
[dependencies.glib-sys]
|
||||
version = ""
|
||||
features = ["v2_44"]
|
||||
|
||||
|
||||
[dependencies.gtk]
|
||||
version = "0.5.*"
|
||||
features = ["v3_22"]
|
||||
|
||||
[dependencies.gtk-sys]
|
||||
version = ""
|
||||
features = ["v3_22"]
|
||||
|
||||
|
||||
[lib]
|
||||
name = "rs"
|
||||
path = "src/lib.rs"
|
||||
crate-type = ["staticlib", "rlib"]
|
||||
128
HACKING.md
Normal file
128
HACKING.md
Normal file
@@ -0,0 +1,128 @@
|
||||
Hacking
|
||||
=======
|
||||
|
||||
This document describes the standards for modifying and maintaining the *squeekboard* project.
|
||||
|
||||
Development environment
|
||||
-----------------------
|
||||
|
||||
*Squeekboard* is regularly built and tested on [the develpment environment](https://developer.puri.sm/Librem5/Development_Environment.html).
|
||||
|
||||
Recent Fedora releases are likely to be tested as well.
|
||||
|
||||
### Dependencies
|
||||
|
||||
On a Debian based system run
|
||||
|
||||
```sh
|
||||
sudo apt-get -y install build-essential
|
||||
sudo apt-get -y build-dep .
|
||||
```
|
||||
|
||||
For an explicit list of dependencies check the `Build-Depends` entry in the
|
||||
[debian/control][] file.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
Most common testing is done in CI. Occasionally, and for each release, do perform manual tests to make sure that
|
||||
|
||||
- the application draws correctly
|
||||
- it shows when relevant
|
||||
- it changes layouts
|
||||
- it changes views
|
||||
|
||||
Testing with an application:
|
||||
|
||||
```
|
||||
python3 tests/entry.py
|
||||
```
|
||||
|
||||
Testing visibility:
|
||||
|
||||
```
|
||||
$ busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
||||
$ busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
||||
```
|
||||
|
||||
Testing layouts:
|
||||
|
||||
Layouts can be selected using the GNOME Settings application.
|
||||
|
||||
```
|
||||
# define all available layouts. First one is currently selected.
|
||||
$ gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'de')]"
|
||||
```
|
||||
|
||||
Coding
|
||||
------
|
||||
|
||||
Code submitted should roughly match the style of surrounding code. Things that will *not* be accepted are ones that often lead to errors:
|
||||
|
||||
- skipping brackets `{}` after every `if()`, `else`, and similar
|
||||
|
||||
Bad example:
|
||||
|
||||
```
|
||||
if (foo)
|
||||
bar();
|
||||
```
|
||||
|
||||
Good example:
|
||||
|
||||
```
|
||||
if (foo) {
|
||||
bar();
|
||||
}
|
||||
```
|
||||
|
||||
- mixing tabs and spaces in the same block of code (or config)
|
||||
|
||||
Strongly encouraged:
|
||||
|
||||
- don't make lines too long. If it's longer than ~80 characters, it's probably unreadable already, and the code needs to be clarified;
|
||||
- put operators in the beginning of a continuation line
|
||||
|
||||
Bad example:
|
||||
|
||||
```
|
||||
foobar = verylongexpression +
|
||||
anotherverylongexpression +
|
||||
yetanotherexpression;
|
||||
```
|
||||
|
||||
Good example:
|
||||
|
||||
```
|
||||
foobar = verylongexpression
|
||||
+ anotherverylongexpression
|
||||
+ yetanotherexpression;
|
||||
```
|
||||
|
||||
- use `///` for documentation comments in front of definitions and `/*! ... */` for documentation comments in the beginning of modules (see [Rust doc-comments](https://doc.rust-lang.org/reference/comments.html#doc-comments))
|
||||
|
||||
If in doubt, check [PEP8](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md), the [kernel coding style](https://www.kernel.org/doc/html/v4.10/process/coding-style.html), or the [Rust style guide](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md).
|
||||
|
||||
Maintenance
|
||||
-----------
|
||||
|
||||
Squeekboard uses Rust & Cargo for some of its dependencies.
|
||||
|
||||
Use the `cargo.sh` script for maintaining the Cargo part of the build. The script takes the usual Cargo commands, after the first 2 positionsl arguments: source directory, and output artifact. So, `cargo test` becomes:
|
||||
|
||||
```
|
||||
cd build_dir
|
||||
sh /source_path/cargo.sh test
|
||||
```
|
||||
|
||||
### Cargo dependencies
|
||||
|
||||
Dependencies must be specified in `Cargo.toml` with 2 numbers: "major.minor". Since bugfix version number is meant to not affect the interface, this allows for safe updates.
|
||||
|
||||
`Cargo.lock` is used for remembering the revisions of all Rust dependencies. It should be updated often, preferably with each bugfix revision, and in a commit on its own:
|
||||
|
||||
```
|
||||
cd build_dir
|
||||
sh /source_path/cargo.sh update
|
||||
ninja test
|
||||
```
|
||||
21
Makefile.am
21
Makefile.am
@@ -1,21 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
SUBDIRS = eek src tests bindings docs po
|
||||
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
|
||||
29
README
29
README
@@ -1,29 +0,0 @@
|
||||
eekboard - a virtual keyboard for GNOME -*- outline -*-
|
||||
|
||||
eekboard is a virtual keyboard software package which ships with a
|
||||
standalone virtual keyboard application ("eekboard"), and a library to
|
||||
create keyboard-like UI ("libeek").
|
||||
|
||||
* Requirements
|
||||
|
||||
* GLib2, GTK2, Cairo, Pango, Libxklavier...
|
||||
* Clutter (optional)
|
||||
* Clutter-Gtk (optional)
|
||||
|
||||
* How to test
|
||||
|
||||
If you build from git repo:
|
||||
|
||||
$ git clone git://github.com/ueno/eekboard.git
|
||||
$ cd eekboard
|
||||
$ ./autogen.sh --prefix=/usr --enable-gtk-doc
|
||||
|
||||
Otherwise start from here:
|
||||
|
||||
$ ./configure
|
||||
$ make
|
||||
$ sudo make install
|
||||
$ eekboard
|
||||
|
||||
*NOTE* some version combination of Clutter & Clutter-Gtk does not
|
||||
cooperate well. Try "EEKBOARD_DISABLE_CLUTTER=1 eekboard"
|
||||
59
README.md
Normal file
59
README.md
Normal file
@@ -0,0 +1,59 @@
|
||||
*squeekboard* - a Wayland virtual keyboard
|
||||
========================================
|
||||
|
||||
*Squeekboard* is a virtual keyboard supporting Wayland, built primarily for the *Librem 5* phone.
|
||||
|
||||
It squeaks because some Rust got inside.
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
### Present
|
||||
|
||||
- GTK3
|
||||
- Custom yaml-defined keyboards
|
||||
- DBus interface to show and hide
|
||||
- Use Wayland input method protocol to show and hide
|
||||
- Use Wayland virtual keyboard protocol
|
||||
|
||||
### Temporarily dropped
|
||||
|
||||
- A settings interface
|
||||
|
||||
### TODO
|
||||
|
||||
- Use Wayland input method protocol
|
||||
- Pick up DBus interface files from /usr/share
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
### Dependencies
|
||||
|
||||
See `.gitlab-ci.yml`.
|
||||
|
||||
### Build from git repo
|
||||
|
||||
```
|
||||
$ git clone https://source.puri.sm/Librem5/squeekboard.git
|
||||
$ cd squeekboard
|
||||
$ mkdir ../build
|
||||
$ meson ../build/
|
||||
$ cd ../build
|
||||
$ ninja test
|
||||
$ ninja install
|
||||
```
|
||||
|
||||
Running
|
||||
-------
|
||||
|
||||
```
|
||||
$ phoc # if no compatible Wayland compositor is running yet
|
||||
$ cd ../build/
|
||||
$ src/squeekboard
|
||||
```
|
||||
|
||||
Developing
|
||||
----------
|
||||
|
||||
See `HACKING.md`
|
||||
19
TODO
19
TODO
@@ -1,19 +0,0 @@
|
||||
- packaging
|
||||
-- GIR
|
||||
-- .spec
|
||||
-- debian
|
||||
-- add more tests
|
||||
|
||||
- eekboard
|
||||
-- a11y
|
||||
-- display current configuration
|
||||
-- add command line options
|
||||
-- notify user if there is no focused window
|
||||
|
||||
- libeek
|
||||
-- matchbox-keyboard layout engine
|
||||
-- delay initialization of XKB and XKL layouts
|
||||
-- add eek_keyboard_find_by_position(), that takes account of section
|
||||
rotation, in addition to eek_container_find_by_position()
|
||||
-- add mechanism to change appearances (colors?) of UI widgets
|
||||
depending on modifier states
|
||||
24
autogen.sh
24
autogen.sh
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
PKG_NAME="eekboard"
|
||||
|
||||
(test -f $srcdir/configure.ac \
|
||||
&& test -f $srcdir/README ) || {
|
||||
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
||||
echo " top-level $PKG_NAME directory"
|
||||
exit 1
|
||||
}
|
||||
|
||||
which gnome-autogen.sh || {
|
||||
echo "You need to install gnome-common from the GNOME CVS"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
|
||||
REQUIRED_AUTOMAKE_VERSION=1.8
|
||||
|
||||
. gnome-autogen.sh
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
if ENABLE_VALA
|
||||
SUBDIRS = vala
|
||||
else
|
||||
SUBDIRS =
|
||||
endif
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
vapidir = $(datadir)/vala/vapi
|
||||
dist_vapi_DATA = \
|
||||
eek-$(EEK_API_VERSION).vapi \
|
||||
eek-clutter-$(EEK_API_VERSION).vapi \
|
||||
eek-gtk-$(EEK_API_VERSION).vapi \
|
||||
eek-xkb-$(EEK_API_VERSION).vapi \
|
||||
eek-xkl-$(EEK_API_VERSION).vapi
|
||||
MAINTAINERCLEANFILES = $(dist_vapi_DATA)
|
||||
|
||||
eek-$(EEK_API_VERSION).vapi:
|
||||
vapigen --library eek-$(EEK_API_VERSION) \
|
||||
eek-$(EEK_API_VERSION)/eek-$(EEK_API_VERSION).gi
|
||||
|
||||
eek-clutter-$(EEK_API_VERSION).vapi: eek-$(EEK_API_VERSION).vapi
|
||||
vapigen --vapidir=$(builddir) --library eek-clutter-$(EEK_API_VERSION) \
|
||||
--pkg eek-0.1 --pkg clutter-1.0 \
|
||||
eek-clutter-$(EEK_API_VERSION)/eek-clutter-$(EEK_API_VERSION).gi
|
||||
|
||||
eek-gtk-$(EEK_API_VERSION).vapi: eek-$(EEK_API_VERSION).vapi
|
||||
vapigen --vapidir=$(builddir) --library eek-gtk-$(EEK_API_VERSION) \
|
||||
--pkg eek-0.1 --pkg gtk+-2.0 \
|
||||
eek-gtk-$(EEK_API_VERSION)/eek-gtk-$(EEK_API_VERSION).gi
|
||||
|
||||
eek-xkb-$(EEK_API_VERSION).vapi: eek-$(EEK_API_VERSION).vapi
|
||||
vapigen --vapidir=$(builddir) --library eek-xkb-$(EEK_API_VERSION) \
|
||||
--pkg eek-0.1 \
|
||||
eek-xkb-$(EEK_API_VERSION)/eek-xkb-$(EEK_API_VERSION).gi
|
||||
|
||||
eek-xkl-$(EEK_API_VERSION).vapi: eek-xkb-$(EEK_API_VERSION).vapi
|
||||
vapigen --vapidir=$(builddir) --library eek-xkl-$(EEK_API_VERSION) \
|
||||
--pkg eek-0.1 --pkg eek-xkb-0.1 \
|
||||
eek-xkl-$(EEK_API_VERSION)/eek-xkl-$(EEK_API_VERSION).gi
|
||||
@@ -1,9 +0,0 @@
|
||||
include/eek-0.1/eek/eek-layout.h
|
||||
include/eek-0.1/eek/eek-element.h
|
||||
include/eek-0.1/eek/eek-container.h
|
||||
include/eek-0.1/eek/eek-keyboard.h
|
||||
include/eek-0.1/eek/eek-section.h
|
||||
include/eek-0.1/eek/eek-key.h
|
||||
include/eek-0.1/eek/eek-types.h
|
||||
include/eek-0.1/eek/eek-keysym.h
|
||||
lib/libeek.so
|
||||
@@ -1,680 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<api version="1.0">
|
||||
<namespace name="Eek">
|
||||
<function name="keysym_get_category" symbol="eek_keysym_get_category">
|
||||
<return-type type="EekKeysymCategory"/>
|
||||
<parameters>
|
||||
<parameter name="keysym" type="guint"/>
|
||||
</parameters>
|
||||
</function>
|
||||
<function name="keysym_to_string" symbol="eek_keysym_to_string">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="keysym" type="guint"/>
|
||||
</parameters>
|
||||
</function>
|
||||
<callback name="EekCallback">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</callback>
|
||||
<callback name="EekCompareFunc">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</callback>
|
||||
<boxed name="EekBounds" type-name="EekBounds" get-type="eek_bounds_get_type">
|
||||
<field name="x" type="gdouble"/>
|
||||
<field name="y" type="gdouble"/>
|
||||
<field name="width" type="gdouble"/>
|
||||
<field name="height" type="gdouble"/>
|
||||
</boxed>
|
||||
<boxed name="EekKeysymMatrix" type-name="EekKeysymMatrix" get-type="eek_keysym_matrix_get_type">
|
||||
<field name="data" type="guint*"/>
|
||||
<field name="num_groups" type="gint"/>
|
||||
<field name="num_levels" type="gint"/>
|
||||
</boxed>
|
||||
<boxed name="EekOutline" type-name="EekOutline" get-type="eek_outline_get_type">
|
||||
<field name="corner_radius" type="gdouble"/>
|
||||
<field name="points" type="EekPoint*"/>
|
||||
<field name="num_points" type="gint"/>
|
||||
</boxed>
|
||||
<boxed name="EekPoint" type-name="EekPoint" get-type="eek_point_get_type">
|
||||
<field name="x" type="gdouble"/>
|
||||
<field name="y" type="gdouble"/>
|
||||
</boxed>
|
||||
<enum name="EekKeysymCategory">
|
||||
<member name="EEK_KEYSYM_CATEGORY_LETTER" value="0"/>
|
||||
<member name="EEK_KEYSYM_CATEGORY_FUNCTION" value="1"/>
|
||||
<member name="EEK_KEYSYM_CATEGORY_KEYNAME" value="2"/>
|
||||
<member name="EEK_KEYSYM_CATEGORY_UNKNOWN" value="3"/>
|
||||
<member name="EEK_KEYSYM_CATEGORY_LAST" value="3"/>
|
||||
</enum>
|
||||
<enum name="EekOrientation">
|
||||
<member name="EEK_ORIENTATION_VERTICAL" value="0"/>
|
||||
<member name="EEK_ORIENTATION_HORIZONTAL" value="1"/>
|
||||
<member name="EEK_ORIENTATION_INVALID" value="-1"/>
|
||||
</enum>
|
||||
<object name="EekContainer" parent="EekElement" type-name="EekContainer" get-type="eek_container_get_type">
|
||||
<method name="find" symbol="eek_container_find">
|
||||
<return-type type="EekElement*"/>
|
||||
<parameters>
|
||||
<parameter name="container" type="EekContainer*"/>
|
||||
<parameter name="func" type="EekCompareFunc"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="find_by_position" symbol="eek_container_find_by_position">
|
||||
<return-type type="EekElement*"/>
|
||||
<parameters>
|
||||
<parameter name="container" type="EekContainer*"/>
|
||||
<parameter name="x" type="gdouble"/>
|
||||
<parameter name="y" type="gdouble"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="foreach_child" symbol="eek_container_foreach_child">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="container" type="EekContainer*"/>
|
||||
<parameter name="callback" type="EekCallback"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<signal name="child-added" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="child-removed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<vfunc name="add_child">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="find">
|
||||
<return-type type="EekElement*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="func" type="EekCompareFunc"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="foreach_child">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="callback" type="EekCallback"/>
|
||||
<parameter name="user_data" type="gpointer"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="remove_child">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekContainer*"/>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</object>
|
||||
<object name="EekElement" parent="GInitiallyUnowned" type-name="EekElement" get-type="eek_element_get_type">
|
||||
<method name="get_absolute_position" symbol="eek_element_get_absolute_position">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="x" type="gdouble*"/>
|
||||
<parameter name="y" type="gdouble*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_bounds" symbol="eek_element_get_bounds">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="bounds" type="EekBounds*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_name" symbol="eek_element_get_name">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_parent" symbol="eek_element_get_parent">
|
||||
<return-type type="EekElement*"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_bounds" symbol="eek_element_set_bounds">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="bounds" type="EekBounds*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_name" symbol="eek_element_set_name">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="name" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_parent" symbol="eek_element_set_parent">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="element" type="EekElement*"/>
|
||||
<parameter name="parent" type="EekElement*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="bounds" type="EekBounds*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="name" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<vfunc name="get_bounds">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
<parameter name="bounds" type="EekBounds*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_name">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_parent">
|
||||
<return-type type="EekElement*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_bounds">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
<parameter name="bounds" type="EekBounds*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_name">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
<parameter name="name" type="gchar*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_parent">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekElement*"/>
|
||||
<parameter name="parent" type="EekElement*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</object>
|
||||
<object name="EekKey" parent="EekElement" type-name="EekKey" get-type="eek_key_get_type">
|
||||
<method name="get_index" symbol="eek_key_get_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="column" type="gint*"/>
|
||||
<parameter name="row" type="gint*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keycode" symbol="eek_key_get_keycode">
|
||||
<return-type type="guint"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keysym" symbol="eek_key_get_keysym">
|
||||
<return-type type="guint"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keysym_index" symbol="eek_key_get_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="group" type="gint*"/>
|
||||
<parameter name="level" type="gint*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keysyms" symbol="eek_key_get_keysyms">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="keysyms" type="guint**"/>
|
||||
<parameter name="num_groups" type="gint*"/>
|
||||
<parameter name="num_levels" type="gint*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_outline" symbol="eek_key_get_outline">
|
||||
<return-type type="EekOutline*"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_index" symbol="eek_key_set_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="column" type="gint"/>
|
||||
<parameter name="row" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_keycode" symbol="eek_key_set_keycode">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_keysym_index" symbol="eek_key_set_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="group" type="gint"/>
|
||||
<parameter name="level" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_keysyms" symbol="eek_key_set_keysyms">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="keysyms" type="guint*"/>
|
||||
<parameter name="num_groups" type="gint"/>
|
||||
<parameter name="num_levels" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_outline" symbol="eek_key_set_outline">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
<parameter name="outline" type="EekOutline*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="column" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="group" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="keycode" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="keysyms" type="EekKeysymMatrix*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="level" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="outline" type="gpointer" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="row" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<signal name="pressed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="released" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<vfunc name="get_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="column" type="gint*"/>
|
||||
<parameter name="row" type="gint*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_keycode">
|
||||
<return-type type="guint"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_keysym">
|
||||
<return-type type="guint"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="group" type="gint*"/>
|
||||
<parameter name="level" type="gint*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_keysyms">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="keysyms" type="guint**"/>
|
||||
<parameter name="num_groups" type="gint*"/>
|
||||
<parameter name="num_levels" type="gint*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_outline">
|
||||
<return-type type="EekOutline*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="column" type="gint"/>
|
||||
<parameter name="row" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_keycode">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="group" type="gint"/>
|
||||
<parameter name="level" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_keysyms">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="keysyms" type="guint*"/>
|
||||
<parameter name="num_groups" type="gint"/>
|
||||
<parameter name="num_levels" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_outline">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKey*"/>
|
||||
<parameter name="outline" type="EekOutline*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</object>
|
||||
<object name="EekKeyboard" parent="EekContainer" type-name="EekKeyboard" get-type="eek_keyboard_get_type">
|
||||
<method name="create_section" symbol="eek_keyboard_create_section">
|
||||
<return-type type="EekSection*"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="find_key_by_keycode" symbol="eek_keyboard_find_key_by_keycode">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keysym_index" symbol="eek_keyboard_get_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
<parameter name="group" type="gint*"/>
|
||||
<parameter name="level" type="gint*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="realize" symbol="eek_keyboard_realize">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_keysym_index" symbol="eek_keyboard_set_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
<parameter name="group" type="gint"/>
|
||||
<parameter name="level" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_layout" symbol="eek_keyboard_set_layout">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
<parameter name="layout" type="EekLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="group" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="level" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<signal name="key-pressed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="object" type="EekKeyboard*"/>
|
||||
<parameter name="p0" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="key-released" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="object" type="EekKeyboard*"/>
|
||||
<parameter name="p0" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<vfunc name="create_section">
|
||||
<return-type type="EekSection*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="find_key_by_keycode">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
<parameter name="group" type="gint*"/>
|
||||
<parameter name="level" type="gint*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="realize">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_keysym_index">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
<parameter name="group" type="gint"/>
|
||||
<parameter name="level" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_layout">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekKeyboard*"/>
|
||||
<parameter name="layout" type="EekLayout*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</object>
|
||||
<object name="EekSection" parent="EekContainer" type-name="EekSection" get-type="eek_section_get_type">
|
||||
<method name="add_row" symbol="eek_section_add_row">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
<parameter name="num_columns" type="gint"/>
|
||||
<parameter name="orientation" type="EekOrientation"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="create_key" symbol="eek_section_create_key">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
<parameter name="column" type="gint"/>
|
||||
<parameter name="row" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="find_key_by_keycode" symbol="eek_section_find_key_by_keycode">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_angle" symbol="eek_section_get_angle">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_n_rows" symbol="eek_section_get_n_rows">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_row" symbol="eek_section_get_row">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
<parameter name="index" type="gint"/>
|
||||
<parameter name="num_columns" type="gint*"/>
|
||||
<parameter name="orientation" type="EekOrientation*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_angle" symbol="eek_section_set_angle">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekSection*"/>
|
||||
<parameter name="angle" type="gint"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="angle" type="gint" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<signal name="key-pressed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="object" type="EekSection*"/>
|
||||
<parameter name="p0" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="key-released" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="object" type="EekSection*"/>
|
||||
<parameter name="p0" type="EekKey*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<vfunc name="add_row">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
<parameter name="num_columns" type="gint"/>
|
||||
<parameter name="orientation" type="EekOrientation"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="create_key">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
<parameter name="row" type="gint"/>
|
||||
<parameter name="column" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="find_key_by_keycode">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
<parameter name="keycode" type="guint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_angle">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_n_rows">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_row">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
<parameter name="index" type="gint"/>
|
||||
<parameter name="num_columns" type="gint*"/>
|
||||
<parameter name="orientation" type="EekOrientation*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="set_angle">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekSection*"/>
|
||||
<parameter name="angle" type="gint"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</object>
|
||||
<interface name="EekLayout" type-name="EekLayout" get-type="eek_layout_get_type">
|
||||
<method name="apply" symbol="eek_layout_apply">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekLayout*"/>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_group" symbol="eek_layout_get_group">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<signal name="changed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekLayout*"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="group-changed" when="FIRST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekLayout*"/>
|
||||
<parameter name="group" type="gint"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<vfunc name="apply">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekLayout*"/>
|
||||
<parameter name="keyboard" type="EekKeyboard*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
<vfunc name="get_group">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter name="self" type="EekLayout*"/>
|
||||
</parameters>
|
||||
</vfunc>
|
||||
</interface>
|
||||
<constant name="EEK_CONTAINER_H" type="int" value="1"/>
|
||||
<constant name="EEK_ELEMENT_H" type="int" value="1"/>
|
||||
<constant name="EEK_KEYBOARD_H" type="int" value="1"/>
|
||||
<constant name="EEK_KEYSYM_H" type="int" value="1"/>
|
||||
<constant name="EEK_KEY_H" type="int" value="1"/>
|
||||
<constant name="EEK_LAYOUT_H" type="int" value="1"/>
|
||||
<constant name="EEK_SECTION_H" type="int" value="1"/>
|
||||
<constant name="EEK_TYPES_H" type="int" value="1"/>
|
||||
</namespace>
|
||||
</api>
|
||||
@@ -1 +0,0 @@
|
||||
Eek cheader_filename="eek/eek.h"
|
||||
@@ -1 +0,0 @@
|
||||
Eek
|
||||
@@ -1,6 +0,0 @@
|
||||
include/eek-0.1/eek/eek-clutter-keyboard.h
|
||||
include/eek-0.1/eek/eek-clutter-section.h
|
||||
include/eek-0.1/eek/eek-clutter-key.h
|
||||
include/eek-0.1/eek/eek-clutter-drawing-context.h
|
||||
lib/libeek-clutter.so
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<api version="1.0">
|
||||
<namespace name="EekClutter">
|
||||
<object name="EekClutterDrawingContext" parent="GInitiallyUnowned" type-name="EekClutterDrawingContext" get-type="eek_clutter_drawing_context_get_type">
|
||||
<method name="get_category_font" symbol="eek_clutter_drawing_context_get_category_font">
|
||||
<return-type type="PangoFontDescription*"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
<parameter name="category" type="EekKeysymCategory"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_outline_texture" symbol="eek_clutter_drawing_context_get_outline_texture">
|
||||
<return-type type="ClutterActor*"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
<parameter name="outline" type="EekOutline*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_clutter_drawing_context_new">
|
||||
<return-type type="EekClutterDrawingContext*"/>
|
||||
</constructor>
|
||||
<method name="set_category_font" symbol="eek_clutter_drawing_context_set_category_font">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
<parameter name="category" type="EekKeysymCategory"/>
|
||||
<parameter name="fonts" type="PangoFontDescription*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_outline_texture" symbol="eek_clutter_drawing_context_set_outline_texture">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
<parameter name="outline" type="EekOutline*"/>
|
||||
<parameter name="texture" type="ClutterActor*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="EekClutterKey" parent="EekKey" type-name="EekClutterKey" get-type="eek_clutter_key_get_type">
|
||||
<method name="get_actor" symbol="eek_clutter_key_get_actor">
|
||||
<return-type type="ClutterActor*"/>
|
||||
<parameters>
|
||||
<parameter name="key" type="EekClutterKey*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_clutter_key_new">
|
||||
<return-type type="EekKey*"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
<parameter name="column" type="gint"/>
|
||||
<parameter name="row" type="gint"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
</object>
|
||||
<object name="EekClutterKeyboard" parent="EekKeyboard" type-name="EekClutterKeyboard" get-type="eek_clutter_keyboard_get_type">
|
||||
<method name="get_actor" symbol="eek_clutter_keyboard_get_actor">
|
||||
<return-type type="ClutterActor*"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekClutterKeyboard*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_clutter_keyboard_new">
|
||||
<return-type type="EekKeyboard*"/>
|
||||
</constructor>
|
||||
</object>
|
||||
<object name="EekClutterSection" parent="EekSection" type-name="EekClutterSection" get-type="eek_clutter_section_get_type">
|
||||
<method name="get_actor" symbol="eek_clutter_section_get_actor">
|
||||
<return-type type="ClutterActor*"/>
|
||||
<parameters>
|
||||
<parameter name="section" type="EekClutterSection*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_clutter_section_new">
|
||||
<return-type type="EekSection*"/>
|
||||
<parameters>
|
||||
<parameter name="context" type="EekClutterDrawingContext*"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
</object>
|
||||
<constant name="EEK_CLUTTER_DRAWING_CONTEXT_H" type="int" value="1"/>
|
||||
<constant name="EEK_CLUTTER_KEYBOARD_H" type="int" value="1"/>
|
||||
<constant name="EEK_CLUTTER_KEY_H" type="int" value="1"/>
|
||||
<constant name="EEK_CLUTTER_SECTION_H" type="int" value="1"/>
|
||||
</namespace>
|
||||
</api>
|
||||
@@ -1 +0,0 @@
|
||||
EekClutter cheader_filename="eek/eek-clutter.h"
|
||||
@@ -1 +0,0 @@
|
||||
EekClutter
|
||||
@@ -1,3 +0,0 @@
|
||||
include/eek-0.1/eek/eek-gtk-keyboard.h
|
||||
include/eek-0.1/eek/eek-gtk.h
|
||||
lib/libeek-gtk.so
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<api version="1.0">
|
||||
<namespace name="EekGtk">
|
||||
<object name="EekGtkKeyboard" parent="EekKeyboard" type-name="EekGtkKeyboard" get-type="eek_gtk_keyboard_get_type">
|
||||
<method name="get_widget" symbol="eek_gtk_keyboard_get_widget">
|
||||
<return-type type="GtkWidget*"/>
|
||||
<parameters>
|
||||
<parameter name="keyboard" type="EekGtkKeyboard*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_gtk_keyboard_new">
|
||||
<return-type type="EekKeyboard*"/>
|
||||
</constructor>
|
||||
</object>
|
||||
<constant name="EEK_GTK_H" type="int" value="1"/>
|
||||
<constant name="EEK_GTK_KEYBOARD_H" type="int" value="1"/>
|
||||
</namespace>
|
||||
</api>
|
||||
@@ -1 +0,0 @@
|
||||
EekGtk cheader_filename="eek/eek-gtk.h"
|
||||
@@ -1 +0,0 @@
|
||||
EekGtk
|
||||
@@ -1,2 +0,0 @@
|
||||
include/eek-0.1/eek/eek-xkb-layout.h
|
||||
lib/libeek-xkb.so
|
||||
@@ -1,65 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<api version="1.0">
|
||||
<namespace name="EekXkb">
|
||||
<object name="EekXkbLayout" parent="GInitiallyUnowned" type-name="EekXkbLayout" get-type="eek_xkb_layout_get_type">
|
||||
<implements>
|
||||
<interface name="EekLayout"/>
|
||||
</implements>
|
||||
<method name="get_geometry" symbol="eek_xkb_layout_get_geometry">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_keycodes" symbol="eek_xkb_layout_get_keycodes">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_symbols" symbol="eek_xkb_layout_get_symbols">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_xkb_layout_new">
|
||||
<return-type type="EekLayout*"/>
|
||||
</constructor>
|
||||
<method name="set_geometry" symbol="eek_xkb_layout_set_geometry">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
<parameter name="geometry" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_keycodes" symbol="eek_xkb_layout_set_keycodes">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
<parameter name="keycodes" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<!--
|
||||
<method name="set_names" symbol="eek_xkb_layout_set_names">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
<parameter name="names" type="XkbComponentNamesRec*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
-->
|
||||
<method name="set_symbols" symbol="eek_xkb_layout_set_symbols">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXkbLayout*"/>
|
||||
<parameter name="symbols" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="geometry" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="keycodes" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="symbols" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
</object>
|
||||
<constant name="EEK_XKB_LAYOUT_H" type="int" value="1"/>
|
||||
</namespace>
|
||||
</api>
|
||||
@@ -1 +0,0 @@
|
||||
EekXkb cheader_filename="eek/eek-xkb.h"
|
||||
@@ -1 +0,0 @@
|
||||
EekXkb
|
||||
@@ -1,3 +0,0 @@
|
||||
include/eek-0.1/eek/eek-xkl-layout.h
|
||||
lib/libeek-xkl.so
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<api version="1.0">
|
||||
<namespace name="EekXkl">
|
||||
<object name="EekXklLayout" parent="EekXkbLayout" type-name="EekXklLayout" get-type="eek_xkl_layout_get_type">
|
||||
<implements>
|
||||
<interface name="EekLayout"/>
|
||||
</implements>
|
||||
<method name="disable_option" symbol="eek_xkl_layout_disable_option">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="option" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="enable_option" symbol="eek_xkl_layout_enable_option">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="option" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_layouts" symbol="eek_xkl_layout_get_layouts">
|
||||
<return-type type="gchar**"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_model" symbol="eek_xkl_layout_get_model">
|
||||
<return-type type="gchar*"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_option" symbol="eek_xkl_layout_get_option">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="option" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_options" symbol="eek_xkl_layout_get_options">
|
||||
<return-type type="gchar**"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="get_variants" symbol="eek_xkl_layout_get_variants">
|
||||
<return-type type="gchar**"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<constructor name="new" symbol="eek_xkl_layout_new">
|
||||
<return-type type="EekLayout*"/>
|
||||
</constructor>
|
||||
<method name="set_layouts" symbol="eek_xkl_layout_set_layouts">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="layouts" type="gchar**"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_model" symbol="eek_xkl_layout_set_model">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="model" type="gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_options" symbol="eek_xkl_layout_set_options">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="options" type="gchar**"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="set_variants" symbol="eek_xkl_layout_set_variants">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter name="layout" type="EekXklLayout*"/>
|
||||
<parameter name="variants" type="gchar**"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="layouts" type="GStrv*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="model" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="options" type="GStrv*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
<property name="variants" type="GStrv*" readable="1" writable="1" construct="0" construct-only="0"/>
|
||||
</object>
|
||||
<constant name="EEK_XKL_LAYOUT_H" type="int" value="1"/>
|
||||
</namespace>
|
||||
</api>
|
||||
@@ -1 +0,0 @@
|
||||
EekXkl cheader_filename="eek/eek-xkl.h"
|
||||
@@ -1 +0,0 @@
|
||||
EekXkl
|
||||
17
cargo.sh
Executable file
17
cargo.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script manages Cargo operations
|
||||
# while keeping the artifact directory within the build tree
|
||||
# instead of the source tree
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_PATH="$(realpath "$0")"
|
||||
SOURCE_DIR="$(dirname "$SCRIPT_PATH")"
|
||||
|
||||
CARGO_TARGET_DIR="$(pwd)"
|
||||
export CARGO_TARGET_DIR
|
||||
|
||||
cd "$SOURCE_DIR"
|
||||
cargo "$@"
|
||||
|
||||
34
cargo_build.sh
Executable file
34
cargo_build.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script manages Cargo builds
|
||||
# while keeping the artifact directory within the build tree
|
||||
# instead of the source tree
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_PATH="$(realpath "$0")"
|
||||
SOURCE_DIR="$(dirname "$SCRIPT_PATH")"
|
||||
|
||||
RELEASE=""
|
||||
BINARY_DIR="debug"
|
||||
if [ "${1}" = "--release" ]; then
|
||||
shift
|
||||
BINARY_DIR="release"
|
||||
RELEASE="--release"
|
||||
fi
|
||||
|
||||
if [ "${1}" = "--rename" ]; then
|
||||
shift
|
||||
FILENAME="${1}"
|
||||
shift
|
||||
fi
|
||||
OUT_PATH="$(realpath "${1}")"
|
||||
shift
|
||||
OUT_BASENAME="$(basename "${OUT_PATH}")"
|
||||
FILENAME="${FILENAME:-"${OUT_BASENAME}"}"
|
||||
|
||||
sh "$SOURCE_DIR"/cargo.sh build $RELEASE "$@"
|
||||
|
||||
if [ -n "${OUT_PATH}" ]; then
|
||||
cp -a ./"${BINARY_DIR}"/"${FILENAME}" "${OUT_PATH}"
|
||||
fi
|
||||
118
configure.ac
118
configure.ac
@@ -1,118 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
AC_INIT([eekboard], [0.0.3], [ueno@unixuser.org])
|
||||
AC_CONFIG_SRCDIR([configure.ac])
|
||||
AC_PREREQ(2.63)
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_PROG_CC_C_O
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
LT_INIT
|
||||
IT_PROG_INTLTOOL([0.35.0])
|
||||
|
||||
PKG_CHECK_MODULES([GLIB2], [glib-2.0], ,
|
||||
[AC_MSG_ERROR([GLib2 not found])])
|
||||
PKG_CHECK_MODULES([GOBJECT2], [gobject-2.0], ,
|
||||
[AC_MSG_ERROR([GObject2 not found])])
|
||||
PKG_CHECK_MODULES([CAIRO], [cairo], ,
|
||||
[AC_MSG_ERROR([Cairo not found])])
|
||||
PKG_CHECK_MODULES([PANGO], [pango], ,
|
||||
[AC_MSG_ERROR([Pango not found])])
|
||||
PKG_CHECK_MODULES([GTK2], [gtk+-2.0 gdk-2.0], ,
|
||||
[AC_MSG_ERROR([GTK2 not found])])
|
||||
PKG_CHECK_MODULES([XKB], [x11], ,
|
||||
[AC_MSG_ERROR([XKB support not found])])
|
||||
PKG_CHECK_MODULES([LIBXKLAVIER], [libxklavier x11], ,
|
||||
[AC_MSG_ERROR([Libxklavier not found])])
|
||||
PKG_CHECK_MODULES([LIBFAKEKEY], [libfakekey], ,
|
||||
[AC_MSG_ERROR([libfakekey not found])])
|
||||
|
||||
AC_MSG_CHECKING([whether you enable Vala language support])
|
||||
AC_ARG_ENABLE(vala,
|
||||
AS_HELP_STRING([--enable-vala=no/yes],
|
||||
[Enable Vala language binding default=yes]),,
|
||||
enable_vala=yes)
|
||||
AC_MSG_RESULT($enable_vala)
|
||||
AM_CONDITIONAL(ENABLE_VALA, [test x$enable_vala = xyes])
|
||||
|
||||
AC_MSG_CHECKING([whether you enable eekboard])
|
||||
AC_ARG_ENABLE(eekboard,
|
||||
AS_HELP_STRING([--enable-eekboard=no/yes],
|
||||
[Build standalone application "ekboard" default=yes]),,
|
||||
enable_eekboard=yes)
|
||||
AC_MSG_RESULT($enable_eekboard)
|
||||
AM_CONDITIONAL(ENABLE_EEKBOARD, [test x$enable_eekboard = xyes])
|
||||
|
||||
AC_MSG_CHECKING([whether you enable Clutter])
|
||||
AC_ARG_ENABLE(clutter,
|
||||
AS_HELP_STRING([--enable-clutter=no/yes],
|
||||
[Enable Clutter user interface default=yes]),,
|
||||
enable_clutter=yes)
|
||||
AC_MSG_RESULT($enable_clutter)
|
||||
|
||||
if test x$enable_clutter = xyes; then
|
||||
PKG_CHECK_MODULES([CLUTTER], [clutter-1.0], ,
|
||||
[AC_MSG_ERROR([Clutter not found -- install it or add --disable-clutter])])
|
||||
AC_DEFINE([HAVE_CLUTTER], [1], [Define if Clutter is found])
|
||||
PKG_CHECK_MODULES([CLUTTER_GTK], [clutter-gtk-0.90],
|
||||
[enable_clutter_gtk=yes])
|
||||
if test x$enable_clutter_gtk = xno; then
|
||||
PKG_CHECK_MODULES([CLUTTER_GTK], [clutter-gtk-0.10],
|
||||
[enable_clutter_gtk=yes])
|
||||
fi
|
||||
if test x$enable_clutter_gtk = xyes; then
|
||||
AC_DEFINE([HAVE_CLUTTER_GTK], [1], [Define if Clutter-Gtk is found])
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_CLUTTER, [test x$enable_clutter = xyes])
|
||||
AM_CONDITIONAL(HAVE_CLUTTER_GTK, [test x$enable_clutter_gtk = xyes])
|
||||
|
||||
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
||||
|
||||
EEK_API_VERSION=0.1
|
||||
AC_SUBST(EEK_API_VERSION)
|
||||
|
||||
dnl to re-generate eek/*-keysym-labels.txt
|
||||
AC_CHECK_PROGS([PYTHON], [python])
|
||||
|
||||
dnl define GETTEXT_* variables
|
||||
GETTEXT_PACKAGE=$PACKAGE
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.])
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
AM_GLIB_DEFINE_LOCALEDIR(EEKBOARD_LOCALEDIR)
|
||||
|
||||
GOBJECT_INTROSPECTION_CHECK([0.6.7])
|
||||
|
||||
AC_CONFIG_HEADERS([eek/config.h])
|
||||
AC_CONFIG_FILES([Makefile
|
||||
eek/Makefile
|
||||
src/Makefile
|
||||
tests/Makefile
|
||||
bindings/Makefile
|
||||
bindings/vala/Makefile
|
||||
docs/Makefile
|
||||
docs/reference/Makefile
|
||||
docs/reference/eek/Makefile
|
||||
po/Makefile.in
|
||||
eek/eek-${EEK_API_VERSION}.pc
|
||||
eek/eek-clutter-${EEK_API_VERSION}.pc
|
||||
eek/eek-gtk-${EEK_API_VERSION}.pc
|
||||
eek/eek-xkb-${EEK_API_VERSION}.pc
|
||||
eek/eek-xkl-${EEK_API_VERSION}.pc])
|
||||
AC_OUTPUT
|
||||
20
data/dbus/sm.puri.OSK0.xml
Normal file
20
data/dbus/sm.puri.OSK0.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
|
||||
<interface name="sm.puri.OSK0">
|
||||
<method name="SetVisible">
|
||||
<arg name="visible" type="b" direction="in"/>
|
||||
<doc:doc><doc:description>
|
||||
Switch keyboard visibility
|
||||
</doc:description></doc:doc>
|
||||
</method>
|
||||
<method name="GetVisible">
|
||||
<arg name="visible" type="b" direction="out"/>
|
||||
<doc:doc><doc:description>
|
||||
Get keyboard visibility
|
||||
</doc:description></doc:doc>
|
||||
</method>
|
||||
<property name="Visible" type="b" access="read">
|
||||
</property>
|
||||
</interface>
|
||||
</node>
|
||||
10
data/icons/key-enter.svg
Normal file
10
data/icons/key-enter.svg
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"
|
||||
version="1.1" viewBox="0 0 24 24">
|
||||
|
||||
<path d="M 24,1 L 24,10 C 24,15 20,17 17,17 L 7,17 L 10,20 L 10,23
|
||||
L 7,23 L 0,15 L 7,7 L 10,7 L 10,10 L 7,13 L 17,13
|
||||
C 19,13 20,12 20,10 L 20,1 Z"
|
||||
stroke="none" fill="black" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 388 B |
8
data/icons/key-shift.svg
Normal file
8
data/icons/key-shift.svg
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"
|
||||
version="1.1" viewBox="0 0 24 24">
|
||||
|
||||
<path d="M 12,2 L 22,14 L 16,14 L 16,22 L 8,22 L 8,14 L 2,14 Z"
|
||||
stroke="none" fill="black" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 279 B |
52
data/icons/keyboard-mode-symbolic.svg
Normal file
52
data/icons/keyboard-mode-symbolic.svg
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
id="svg4043"
|
||||
version="1.1"
|
||||
viewBox="0 0 4.2333331 4.2333093"
|
||||
height="4.2333093mm"
|
||||
width="4.2333331mm">
|
||||
<defs
|
||||
id="defs4037" />
|
||||
<metadata
|
||||
id="metadata4040">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-86.329776,-68.097636)"
|
||||
id="layer1">
|
||||
<g
|
||||
style="stroke-width:1.00004983;fill:#2e3436;fill-opacity:1"
|
||||
transform="matrix(0.99990029,0,0,1,-7.1823833,-1.8799927)"
|
||||
id="g842">
|
||||
<g
|
||||
style="stroke-width:1.00004983;fill:#2e3436;fill-opacity:1"
|
||||
id="g836">
|
||||
<path
|
||||
id="path5166"
|
||||
d="m 95.636719,69.978516 c -1.165869,0 -2.115235,0.949365 -2.115235,2.115234 0,1.165869 0.949366,2.117188 2.115235,2.117188 1.165869,0 2.117187,-0.951319 2.117187,-2.117188 0,-1.165869 -0.951318,-2.115234 -2.117187,-2.115234 z m 0,0.529296 c 0.879886,0 1.58789,0.706052 1.58789,1.585938 0,0.879886 -0.708004,1.587891 -1.58789,1.587891 -0.879886,0 -1.585938,-0.708005 -1.585938,-1.587891 0,-0.879886 0.706052,-1.585937 1.585938,-1.585938 z"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.52919304;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
|
||||
</g>
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26459652;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 95.636719,70.109375 c -0.144398,0 -0.27248,0.07793 -0.373047,0.189453 -0.100567,0.111521 -0.18209,0.261405 -0.25,0.439453 -0.135821,0.356096 -0.214844,0.830395 -0.214844,1.355469 0,0.525074 0.07902,1.001326 0.214844,1.357422 0.06791,0.178048 0.149433,0.327932 0.25,0.439453 0.100567,0.111521 0.228649,0.1875 0.373047,0.1875 0.144397,0 0.27248,-0.07598 0.373047,-0.1875 0.100566,-0.111521 0.182089,-0.261405 0.25,-0.439453 0.135821,-0.356096 0.216797,-0.832348 0.216796,-1.357422 0,-0.525074 -0.08097,-0.999373 -0.216796,-1.355469 -0.06791,-0.178048 -0.149434,-0.327932 -0.25,-0.439453 -0.100567,-0.111521 -0.22865,-0.189453 -0.373047,-0.189453 z m 0,0.265625 c 0.05067,0 0.109272,0.02564 0.177734,0.101562 0.06846,0.07592 0.139293,0.198356 0.199219,0.355469 0.119851,0.314227 0.197266,0.763915 0.197266,1.261719 0,0.497804 -0.07742,0.949446 -0.197266,1.263672 -0.05993,0.157113 -0.130756,0.279549 -0.199219,0.355469 -0.06846,0.07592 -0.12706,0.101562 -0.177734,0.101562 -0.05067,0 -0.107319,-0.02564 -0.175781,-0.101562 -0.06846,-0.07592 -0.139294,-0.198356 -0.199219,-0.355469 C 95.141867,73.043196 95.0625,72.591554 95.0625,72.09375 c 0,-0.497804 0.07937,-0.947492 0.199219,-1.261719 0.05993,-0.157113 0.130756,-0.279549 0.199219,-0.355469 C 95.5294,70.400643 95.586045,70.375 95.636719,70.375 Z"
|
||||
id="circle5168" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#2e3436;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26459652;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 93.697266,71.962891 v 0.263671 h 3.96875 v -0.263671 z"
|
||||
id="path5170" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.6 KiB |
89
data/keyboards/de.yaml
Normal file
89
data/keyboards/de.yaml
Normal file
@@ -0,0 +1,89 @@
|
||||
# Maintained by: Mark Müller <markmueller86@gmail.com>
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 360, height: 208 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 35.33, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 52.67, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 99.67, height: 52 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 35.33, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t z u i o p"
|
||||
- "a s d f g h j k l"
|
||||
- "Shift_L y x c v b n m BackSpace"
|
||||
- "show_numbers show_eschars preferences space , . Return"
|
||||
upper:
|
||||
- "Q W E R T Z U I O P"
|
||||
- "A S D F G H J K L"
|
||||
- "Shift_L Y X C V B N M BackSpace"
|
||||
- "show_numbers show_eschars preferences space ! ? Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # € % & - _ + ( )"
|
||||
- "show_symbols , \" ' : = < > BackSpace"
|
||||
- "show_letters show_eschars preferences space , . Return"
|
||||
symbols:
|
||||
- "~ ` ´ | · √ µ ÷ × ¶"
|
||||
- "© ® £ $ ¥ ^ ° * { }"
|
||||
- "show_numbers \\ / § π τ [ ] BackSpace"
|
||||
- "show_letters show_eschars preferences space , . Return"
|
||||
eschars:
|
||||
- "ä è é ö ü Ä È É Ö Ü"
|
||||
- "à â ê î ô À Â È Î Ô"
|
||||
- "show_numbers « » ç Ç æ œ ß BackSpace"
|
||||
- "show_letters show_eschars preferences space „ “ Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "special"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "abc"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
show_eschars:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "eschars"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "äÄ"
|
||||
space:
|
||||
outline: "spaceline"
|
||||
label: " "
|
||||
text: " "
|
||||
Return:
|
||||
outline: "altline"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
88
data/keyboards/de_wide.yaml
Normal file
88
data/keyboards/de_wide.yaml
Normal file
@@ -0,0 +1,88 @@
|
||||
# Maintained by: Mark Müller <markmueller86@gmail.com>
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 540, height: 168 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 48, height: 42 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 81, height: 42 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 108, height: 42 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 216, height: 42 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 48, height: 42 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t z u i o p ü"
|
||||
- "a s d f g h j k l ö ä"
|
||||
- "Shift_L y x c v b n m BackSpace"
|
||||
- "show_numbers preferences space , . Return"
|
||||
upper:
|
||||
- "Q W E R T Z U I O P Ü"
|
||||
- "A S D F G H J K L Ö Ä"
|
||||
- "Shift_L Y X C V B N M BackSpace"
|
||||
- "show_numbers preferences space ! ? Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # % & - _ + ( ) ß"
|
||||
- "show_symbols , \" ' : = < > BackSpace"
|
||||
- "show_letters preferences space , . Return"
|
||||
symbols:
|
||||
- "~ ` ´ · © ® ÷ × ¶"
|
||||
- "€ £ $ ¥ ^ ° * { } |"
|
||||
- "show_numbers \\ / § π τ [ ] BackSpace"
|
||||
- "show_letters preferences space , . Return"
|
||||
eschars:
|
||||
- "ä è é ö ü Ä È É Ö Ü"
|
||||
- "à â ê î ô À Â È Î Ô"
|
||||
- "show_numbers « » ç Ç æ œ ß BackSpace"
|
||||
- "show_letters preferences space „ “ Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "special"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "abc"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
show_eschars:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "eschars"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "äÄ"
|
||||
space:
|
||||
outline: "spaceline"
|
||||
text: " "
|
||||
Return:
|
||||
outline: "altline"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
198
data/keyboards/el.yaml
Normal file
198
data/keyboards/el.yaml
Normal file
@@ -0,0 +1,198 @@
|
||||
# Greek layout created by Antonis Tsolomitis
|
||||
# University of the Aegean, Department of Mathematics, atsol@aegean.gr
|
||||
# Sep 2019
|
||||
---
|
||||
bounds: { x: 0, y: 0.33, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 32, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
outline7:
|
||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "; ς ε ρ τ υ θ ι ο π !"
|
||||
- "α σ δ φ γ η ξ κ λ show_accented"
|
||||
- "Shift_L ζ χ ψ ω β ν μ , BackSpace"
|
||||
- "show_numbers preferences space period Return"
|
||||
upper:
|
||||
- ": EuroSign Ε Ρ Τ Υ Θ Ι Ο Π"
|
||||
- "Α Σ Δ Φ Γ Η Ξ Κ Λ show_accented"
|
||||
- "Shift_L Ζ Χ Ψ Ω Β Ν Μ · BackSpace"
|
||||
- "show_numbers preferences space « » Return"
|
||||
accented:
|
||||
- "ά έ ή ί ό ύ ώ ϊ ϋ ΐ"
|
||||
- "ΰ Ά Έ Ή Ί Ό Ύ Ώ Ϊ show_base"
|
||||
- "Ϋ Ϗ ϐ ϑ ϕ ϖ ϗ – — BackSpace"
|
||||
- "show_numbers preferences space quoteleft quoteright Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "at numbersign dollar percent ampersand minus underscore plus parenleft parenright"
|
||||
- "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace"
|
||||
- "show_letters preferences space period Return"
|
||||
symbols:
|
||||
- "asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph"
|
||||
- "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright"
|
||||
- "show_numbers backslash slash less greater equal bracketleft bracketright BackSpace"
|
||||
- "show_letters preferences space period Return"
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "altline"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "ΑΒΓ"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
show_accented:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "accented"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "άΐ"
|
||||
show_base:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "αι"
|
||||
period:
|
||||
outline: "altline"
|
||||
text: "."
|
||||
space:
|
||||
outline: spaceline
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
aring:
|
||||
text: "å"
|
||||
Aring:
|
||||
text: "Å"
|
||||
oslash:
|
||||
text: "ø"
|
||||
Oslash:
|
||||
text: "Ø"
|
||||
ae:
|
||||
text: "æ"
|
||||
AE:
|
||||
text: "Æ"
|
||||
asterisk:
|
||||
text: "*"
|
||||
asciitilde:
|
||||
text: "~"
|
||||
quoteleft:
|
||||
text: "`"
|
||||
bar:
|
||||
text: "|"
|
||||
U00B7:
|
||||
text: "·"
|
||||
squareroot:
|
||||
text: "√"
|
||||
Greek_pi:
|
||||
text: "π"
|
||||
division:
|
||||
text: "÷"
|
||||
multiply:
|
||||
text: "×"
|
||||
paragraph:
|
||||
text: "¶"
|
||||
Greek_tau:
|
||||
text: "τ"
|
||||
copyright:
|
||||
text: "©"
|
||||
numbersign:
|
||||
text: "#"
|
||||
U00AE:
|
||||
text: "®"
|
||||
at:
|
||||
text: "@"
|
||||
dollar:
|
||||
text: "$"
|
||||
U00A3:
|
||||
text: "£"
|
||||
percent:
|
||||
text: "%"
|
||||
EuroSign:
|
||||
text: "€"
|
||||
ampersand:
|
||||
text: "&"
|
||||
U00A5:
|
||||
text: "¥"
|
||||
minus:
|
||||
text: "-"
|
||||
asciicircum:
|
||||
text: "^"
|
||||
underscore:
|
||||
text: "_"
|
||||
degree:
|
||||
text: "°"
|
||||
plus:
|
||||
text: "+"
|
||||
equal:
|
||||
text: "="
|
||||
parenleft:
|
||||
text: "("
|
||||
parenright:
|
||||
text: ")"
|
||||
braceleft:
|
||||
text: "{"
|
||||
braceright:
|
||||
text: "}"
|
||||
comma:
|
||||
text: ","
|
||||
backslash:
|
||||
text: "\\"
|
||||
slash:
|
||||
text: "/"
|
||||
quotedbl:
|
||||
text: "\""
|
||||
quoteright:
|
||||
text: "'"
|
||||
less:
|
||||
text: "<"
|
||||
greater:
|
||||
text: ">"
|
||||
colon:
|
||||
text: ":"
|
||||
semicolon:
|
||||
text: ";"
|
||||
exclam:
|
||||
text: "!"
|
||||
question:
|
||||
text: "?"
|
||||
bracketleft:
|
||||
text: "["
|
||||
bracketright:
|
||||
text: "]"
|
||||
|
||||
94
data/keyboards/es.yaml
Normal file
94
data/keyboards/es.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 35.33, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 52.67, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 99.67, height: 52 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 44, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p"
|
||||
- "a s d f g h j k l ñ"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers show_eschars preferences space ? period Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P"
|
||||
- "A S D F G H J K L Ñ"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers show_eschars preferences space ¿ period Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # € % & - _ + ( )"
|
||||
- "show_symbols , \" ' colon ; ! = BackSpace"
|
||||
- "show_letters show_eschars preferences space ? period Return"
|
||||
symbols:
|
||||
- "~ ` | · √ π τ ÷ × ¶"
|
||||
- "© ® £ $ ¥ ^ ° * { }"
|
||||
- "show_numbers \\ / < > = [ ] BackSpace"
|
||||
- "show_letters show_eschars preferences space ? period Return"
|
||||
eschars:
|
||||
- "á é í ó ú Á É Í Ó Ú"
|
||||
- "à è ì ò ù À È Ì Ò Ù"
|
||||
- "show_numbers ü ç ï Ü Ç Ï ¡ BackSpace"
|
||||
- "show_letters show_eschars preferences space « » Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "default"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "abc"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
show_eschars:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "eschars"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "áÁ"
|
||||
|
||||
period:
|
||||
outline: "default"
|
||||
text: "."
|
||||
space:
|
||||
outline: "spaceline"
|
||||
text: " "
|
||||
Return:
|
||||
outline: "altline"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
colon:
|
||||
text: ":"
|
||||
|
||||
178
data/keyboards/fi.yaml
Normal file
178
data/keyboards/fi.yaml
Normal file
@@ -0,0 +1,178 @@
|
||||
---
|
||||
bounds: { x: 0, y: 0.33, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 32, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
outline7:
|
||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p å"
|
||||
- "a s d f g h j k l ö ä"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P Å"
|
||||
- "A S D F G H J K L Ö Ä"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "at numbersign dollar percent ampersand minus underscore plus parenleft parenright"
|
||||
- "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
symbols:
|
||||
- "asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph"
|
||||
- "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright"
|
||||
- "show_numbers backslash slash less greater equal bracketleft bracketright BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "altline"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "ABC"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
".":
|
||||
outline: altline
|
||||
space:
|
||||
outline: spaceline
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
aring:
|
||||
text: "å"
|
||||
Aring:
|
||||
text: "Å"
|
||||
ouml:
|
||||
text: "ö"
|
||||
Ouml:
|
||||
text: "Ö"
|
||||
auml:
|
||||
text: "ä"
|
||||
Auml:
|
||||
text: "Ä"
|
||||
asterisk:
|
||||
text: "*"
|
||||
asciitilde:
|
||||
text: "~"
|
||||
quoteleft:
|
||||
text: "`"
|
||||
bar:
|
||||
text: "|"
|
||||
U00B7:
|
||||
text: "·"
|
||||
squareroot:
|
||||
text: "√"
|
||||
Greek_pi:
|
||||
text: "π"
|
||||
division:
|
||||
text: "÷"
|
||||
multiply:
|
||||
text: "×"
|
||||
paragraph:
|
||||
text: "¶"
|
||||
Greek_tau:
|
||||
text: "τ"
|
||||
copyright:
|
||||
text: "©"
|
||||
numbersign:
|
||||
text: "#"
|
||||
U00AE:
|
||||
text: "®"
|
||||
at:
|
||||
text: "@"
|
||||
dollar:
|
||||
text: "$"
|
||||
U00A3:
|
||||
text: "£"
|
||||
percent:
|
||||
text: "%"
|
||||
EuroSign:
|
||||
text: "€"
|
||||
ampersand:
|
||||
text: "&"
|
||||
U00A5:
|
||||
text: "¥"
|
||||
minus:
|
||||
text: "-"
|
||||
asciicircum:
|
||||
text: "^"
|
||||
underscore:
|
||||
text: "_"
|
||||
degree:
|
||||
text: "°"
|
||||
plus:
|
||||
text: "+"
|
||||
equal:
|
||||
text: "="
|
||||
parenleft:
|
||||
text: "("
|
||||
parenright:
|
||||
text: ")"
|
||||
braceleft:
|
||||
text: "{"
|
||||
braceright:
|
||||
text: "}"
|
||||
comma:
|
||||
text: ","
|
||||
backslash:
|
||||
text: "\\"
|
||||
slash:
|
||||
text: "/"
|
||||
quotedbl:
|
||||
text: "\""
|
||||
quoteright:
|
||||
text: "'"
|
||||
less:
|
||||
text: "<"
|
||||
greater:
|
||||
text: ">"
|
||||
colon:
|
||||
text: ":"
|
||||
semicolon:
|
||||
text: ";"
|
||||
exclam:
|
||||
text: "!"
|
||||
question:
|
||||
text: "?"
|
||||
bracketleft:
|
||||
text: "["
|
||||
bracketright:
|
||||
text: "]"
|
||||
|
||||
99
data/keyboards/it.yaml
Normal file
99
data/keyboards/it.yaml
Normal file
@@ -0,0 +1,99 @@
|
||||
# Italian layout created by Antonio Pandolfo
|
||||
# 03 october 2019
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 35.33, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 52.67, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 99.67, height: 52 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 44, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p"
|
||||
- "a s d f g h j k l"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers show_eschars preferences space , period Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P"
|
||||
- "A S D F G H J K L"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers show_eschars preferences space ? period Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # € % & - _ + ( )"
|
||||
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
||||
- "show_letters show_eschars preferences space ? period Return"
|
||||
symbols:
|
||||
- "~ ` | · √ π τ ÷ × ¶"
|
||||
- "© ® £ $ ¥ ^ ° * { }"
|
||||
- "show_numbers \\ / < > = [ ] BackSpace"
|
||||
- "show_letters show_eschars preferences space ? period Return"
|
||||
eschars:
|
||||
- "á é í ó ú Á É Í Ó Ú"
|
||||
- "à è ì ò « » ù ! { }"
|
||||
- "show_numbers \\ / < > = [ ] BackSpace"
|
||||
- "show_letters show_eschars preferences space « » Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "default"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_numbers_from_symbols:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "abc"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
show_eschars:
|
||||
action:
|
||||
set_view: "eschars"
|
||||
outline: "altline"
|
||||
label: "àè"
|
||||
period:
|
||||
outline: "default"
|
||||
label: "."
|
||||
space:
|
||||
outline: "spaceline"
|
||||
label: " "
|
||||
Return:
|
||||
outline: "altline"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
colon:
|
||||
label: ":"
|
||||
"\"":
|
||||
keysym: "quotedbl"
|
||||
532
data/keyboards/jp+kana.yaml
Normal file
532
data/keyboards/jp+kana.yaml
Normal file
@@ -0,0 +1,532 @@
|
||||
# Maintained by: Mark Müller <markmueller86@gmail.com>
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 360, height: 208 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
default-wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
|
||||
views:
|
||||
base: # hiragana
|
||||
- "preferences _a ka sa BackSpace"
|
||||
- "Left ta na ha Right"
|
||||
- "カタカナ ma ya ra space"
|
||||
- "switch2roman symbols wa punct Return"
|
||||
_a:
|
||||
- "preferences dummykey _a dummykey BackSpace"
|
||||
- "あ い う え お"
|
||||
- "ぁ ぃ ぅ ぇ ぉ" # 2 code points each
|
||||
- "dummykey dummykey ゔ dummykey dummykey"
|
||||
ka:
|
||||
- "preferences dummykey ka dummykey BackSpace"
|
||||
- "か き く け こ"
|
||||
- "が ぎ ぐ げ ご"
|
||||
- "ゕ dummykey dummykey ゖ dummykey"
|
||||
sa:
|
||||
- "preferences dummykey sa dummykey BackSpace"
|
||||
- "さ し す せ そ"
|
||||
- "ざ じ ず ぜ ぞ"
|
||||
ta:
|
||||
- "preferences dummykey ta dummykey BackSpace"
|
||||
- "た ち つ て と"
|
||||
- "だ ぢ づ で ど"
|
||||
- "dummykey dummykey っ dummykey dummykey"
|
||||
na:
|
||||
- "preferences dummykey na dummykey BackSpace"
|
||||
- "な に ぬ ね の"
|
||||
ha:
|
||||
- "preferences dummykey ha dummykey BackSpace"
|
||||
- "は ひ ふ へ ほ"
|
||||
- "ば び ぶ べ ぼ"
|
||||
- "ぱ ぴ ぷ ぺ ぽ"
|
||||
ma:
|
||||
- "preferences dummykey ma dummykey BackSpace"
|
||||
- "ま み む め も"
|
||||
ya:
|
||||
- "preferences dummykey ya dummykey BackSpace"
|
||||
- "や dummykey ゆ dummykey よ"
|
||||
- "ゃ dummykey ゅ dummykey ょ"
|
||||
ra:
|
||||
- "preferences dummykey ra dummykey BackSpace"
|
||||
- "ら り る れ ろ"
|
||||
wa:
|
||||
- "preferences dummykey wa dummykey BackSpace"
|
||||
- "わ ゐ dummykey ゑ を"
|
||||
- "ゎ dummykey ん dummykey dummykey"
|
||||
symbols:
|
||||
- "preferences dummykey symbols dummykey BackSpace"
|
||||
- "「 」 ( ) §"
|
||||
- "【 】 < > ="
|
||||
- "+ * & % $ "
|
||||
punct:
|
||||
- "preferences dummykey punct dummykey BackSpace"
|
||||
- "。 、 ? ! ー"
|
||||
|
||||
- ": ; ・ 〜 …"
|
||||
- "♪ ” ’ ゙ ゚"
|
||||
|
||||
#a あア かカ さサ たタ なナ はハ まマ やヤ らラ わワ
|
||||
#i いイ きキ しシ ちチ にニ ひヒ みミ ※ りリ ゐヰ
|
||||
#u うウ くク すス つツ ぬヌ ふフ むム ゆユ るル ※
|
||||
#e えエ けケ せセ てテ ねネ へヘ めメ ※ れレ ゑヱ
|
||||
#o おオ こコ そソ とト のノ ほホ もモ よヨ ろロ をヲ
|
||||
|
||||
# g z d b p n
|
||||
#a が ガ ざ ザ だ ダ ば バ ぱ パ ん ン
|
||||
#i ぎ ギ じ ジ ぢ ヂ び ビ ぴ ピ
|
||||
#u ぐ グ ず ズ づ ヅ ぶ ブ ぷ プ
|
||||
#e げ ゲ ぜ ゼ で デ べ ベ ぺ ペ
|
||||
#o ご ゴ ぞ ゾ ど ド ぼ ボ ぽ ポ
|
||||
|
||||
カタカナ: # katakana
|
||||
- "preferences _A KA SA BackSpace"
|
||||
- "Left TA NA HA Right"
|
||||
- "ひらがな MA YA RA space"
|
||||
- "switch2roman SYMBOLS WA PUNCT Return"
|
||||
_A:
|
||||
- "preferences DUMMYKEY _A DUMMYKEY BackSpace"
|
||||
- "ア イ ウ エ オ"
|
||||
- "ァ ィ ゥ ェ ォ"
|
||||
- "DUMMYKEY DUMMYKEY ヴ DUMMYKEY DUMMYKEY"
|
||||
KA:
|
||||
- "preferences DUMMYKEY KA DUMMYKEY BackSpace"
|
||||
- "カ キ ク ケ コ"
|
||||
- "ガ ギ グ ゲ ゴ"
|
||||
- "ヵ DUMMYKEY ㇰ ヶ DUMMYKEY"
|
||||
SA:
|
||||
- "preferences DUMMYKEY SA DUMMYKEY BackSpace"
|
||||
- "サ シ ス セ ソ"
|
||||
- "ザ ジ ズ ゼ ゾ"
|
||||
- "DUMMYKEY ㇱ ㇲ DUMMYKEY DUMMYKEY"
|
||||
TA:
|
||||
- "preferences DUMMYKEY TA DUMMYKEY BackSpace"
|
||||
- "タ チ ツ テ ト"
|
||||
- "ダ ヂ ヅ デ ド"
|
||||
- "DUMMYKEY DUMMYKEY ッ DUMMYKEY ㇳ"
|
||||
NA:
|
||||
- "preferences DUMMYKEY NA DUMMYKEY BackSpace"
|
||||
- "ナ ニ ヌ ネ ノ"
|
||||
- "DUMMYKEY DUMMYKEY ㇴ DUMMYKEY DUMMYKEY"
|
||||
HA:
|
||||
- "preferences DUMMYKEY HA DUMMYKEY BackSpace"
|
||||
- "ハ ヒ フ ヘ ホ"
|
||||
- "バ ビ ブ ベ ボ"
|
||||
- "パ ピ プ ペ ポ"
|
||||
MA:
|
||||
- "preferences DUMMYKEY MA DUMMYKEY BackSpace"
|
||||
- "マ ミ ム メ モ"
|
||||
- "DUMMYKEY DUMMYKEY ㇺ DUMMYKEY DUMMYKEY"
|
||||
YA:
|
||||
- "preferences DUMMYKEY YA DUMMYKEY BackSpace"
|
||||
- "ヤ DUMMYKEY ユ DUMMYKEY ヨ"
|
||||
- "ャ DUMMYKEY ュ DUMMYKEY ョ"
|
||||
RA:
|
||||
- "preferences DUMMYKEY RA DUMMYKEY BackSpace"
|
||||
- "ラ リ ル レ ロ"
|
||||
- "ㇻ ㇼ ㇽ ㇾ ㇿ"
|
||||
WA:
|
||||
- "preferences DUMMYKEY WA DUMMYKEY BackSpace"
|
||||
- "ワ ヰ DUMMYKEY ヱ ヲ"
|
||||
- "ヮ ヸ ン ヹ ヺ"
|
||||
# numbers view
|
||||
numbers:
|
||||
- "preferences 1 2 3 BackSpace"
|
||||
- "Left 4 5 6 Right"
|
||||
- "roman 7 8 9 space"
|
||||
- "switch2kana * 0 # Return"
|
||||
# Roman alphabet view
|
||||
roman:
|
||||
- "preferences RSYM1 ABC DEF BackSpace"
|
||||
- "Left GHI JKL MNO Right"
|
||||
- "ひらがな PQRS TUV WXYZ space"
|
||||
- "switch2num RSYM2 RSYM3 RSYM4 Return"
|
||||
RSYM1:
|
||||
- "preferences dummykey RSYM1 dummykey BackSpace"
|
||||
- "@ # $ § :"
|
||||
- "| € ¥ £ 1"
|
||||
ABC:
|
||||
- "preferences dummykey ABC dummykey BackSpace"
|
||||
- "A B C Ä ç"
|
||||
- "a b c ä 2"
|
||||
DEF:
|
||||
- "preferences dummykey DEF dummykey BackSpace"
|
||||
- "D E F dummykey"
|
||||
- "d e f 3"
|
||||
GHI:
|
||||
- "preferences dummykey GHI dummykey BackSpace"
|
||||
- "G H I dummykey"
|
||||
- "g h i 4"
|
||||
JKL:
|
||||
- "preferences dummykey JKL dummykey BackSpace"
|
||||
- "J K L dummykey"
|
||||
- "j k l 5"
|
||||
MNO:
|
||||
- "preferences dummykey MNO dummykey BackSpace"
|
||||
- "M N O Ö dummykey"
|
||||
- "m n o ö 6"
|
||||
PQRS:
|
||||
- "preferences dummykey PQRS dummykey BackSpace"
|
||||
- "P Q R S ß"
|
||||
- "p q r s 7"
|
||||
TUV:
|
||||
- "preferences dummykey TUV dummykey BackSpace"
|
||||
- "T U V Ü dummykey"
|
||||
- "t u v ü 8"
|
||||
WXYZ:
|
||||
- "preferences dummykey WXYZ dummykey BackSpace"
|
||||
- "W X Y Z dummykey"
|
||||
- "w x y z 9"
|
||||
RSYM2:
|
||||
- "preferences dummykey RSYM2 dummykey BackSpace"
|
||||
- "( ) ' \" ~"
|
||||
- "[ ] { } _"
|
||||
RSYM3:
|
||||
- "preferences dummykey RSYM3 dummykey BackSpace"
|
||||
- "+ - * / ="
|
||||
- "< > ^ ° 0"
|
||||
RSYM4:
|
||||
- "preferences dummykey RSYM4 dummykey BackSpace"
|
||||
- ", . ? ! ;"
|
||||
- "\\ ´ ` · ¶"
|
||||
|
||||
buttons:
|
||||
# following 4 buttons use the corresponding xkb name as keysym
|
||||
BackSpace:
|
||||
outline: "wide"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
Left:
|
||||
outline: "wide"
|
||||
label: "←"
|
||||
keysym: "Left"
|
||||
Right:
|
||||
outline: "wide"
|
||||
label: "→"
|
||||
keysym: "Right"
|
||||
# special button "preferences" is handled in the code
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "special"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
# space button using text tag for ideographic space
|
||||
space:
|
||||
outline: "default-wide"
|
||||
label: "␣"
|
||||
text: " "
|
||||
# switch to number view
|
||||
numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "wide"
|
||||
label: "123"
|
||||
# switch to latin characters
|
||||
roman:
|
||||
action:
|
||||
set_view: "roman"
|
||||
outline: "wide"
|
||||
label: "ᴀʙᴄ"
|
||||
# toggle button with 3 different states
|
||||
switch2roman: # switch from kana to latin characters view
|
||||
action:
|
||||
set_view: "roman"
|
||||
outline: "wide"
|
||||
label: "あᴀ₁"
|
||||
switch2num: # switch from latin characters to numbers view
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "wide"
|
||||
label: "ぁA₁"
|
||||
switch2kana: # switch from numbers to hiragana view
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "wide"
|
||||
label: "ぁᴀ1"
|
||||
# Buttons for katakana and symbols
|
||||
ひらがな:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "wide"
|
||||
label: "あさ"
|
||||
_a:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "_a"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "あ"
|
||||
ka:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ka"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "か"
|
||||
sa:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "sa"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "さ"
|
||||
ta:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ta"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "た"
|
||||
na:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "na"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "な"
|
||||
ha:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ha"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "は"
|
||||
ma:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ma"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "ま"
|
||||
ya:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ya"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "や"
|
||||
ra:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ra"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "ら"
|
||||
wa:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "wa"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "わ"
|
||||
dummykey:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: ""
|
||||
# buttons available on different views like symbols and punct should go
|
||||
# back to their corresponding view
|
||||
symbols:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "symbols"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "()"
|
||||
punct:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "punct"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
label: "。"
|
||||
# Buttons for katakana and symbols
|
||||
カタカナ:
|
||||
action:
|
||||
set_view: "カタカナ"
|
||||
outline: "wide"
|
||||
label: "アサ"
|
||||
_A:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "_A"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ア"
|
||||
KA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "KA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "カ"
|
||||
SA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "SA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "サ"
|
||||
TA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "TA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "タ"
|
||||
NA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "NA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ナ"
|
||||
HA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "HA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ハ"
|
||||
MA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "MA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "マ"
|
||||
YA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "YA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ヤ"
|
||||
RA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "RA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ラ"
|
||||
WA:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "WA"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "ワ"
|
||||
DUMMYKEY:
|
||||
action:
|
||||
set_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: ""
|
||||
SYMBOLS:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "symbols"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "()"
|
||||
PUNCT:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "punct"
|
||||
unlock_view: "カタカナ"
|
||||
outline: "altline"
|
||||
label: "。"
|
||||
# Buttons for Latin charachters
|
||||
RSYM1:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "RSYM1"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "@#"
|
||||
ABC:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "ABC"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴀʙᴄ"
|
||||
DEF:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "DEF"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴅᴇꜰ"
|
||||
GHI:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "GHI"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ɢʜɪ"
|
||||
JKL:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "JKL"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴊᴋʟ"
|
||||
MNO:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "MNO"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴍɴᴏ"
|
||||
PQRS:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "PQRS"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴘǫʀs"
|
||||
TUV:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "TUV"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴛᴜᴠ"
|
||||
WXYZ:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "WXYZ"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "ᴡxʏᴢ"
|
||||
RSYM2:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "RSYM2"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "()"
|
||||
RSYM3:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "RSYM3"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: "+-"
|
||||
RSYM4:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "RSYM4"
|
||||
unlock_view: "roman"
|
||||
outline: "altline"
|
||||
label: ",.?"
|
||||
106
data/keyboards/no.yaml
Normal file
106
data/keyboards/no.yaml
Normal file
@@ -0,0 +1,106 @@
|
||||
---
|
||||
bounds: { x: 0, y: 0.33, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 32, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
outline7:
|
||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p å"
|
||||
- "a s d f g h j k l ø æ"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P Å"
|
||||
- "A S D F G H J K L Ø Æ"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # $ % & - _ + ( )"
|
||||
- "show_symbols , \" ' : ; ! ? BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
symbols:
|
||||
- "~ ` | U00B7 squareroot Greek_pi Greek_tau division multiply paragraph"
|
||||
- "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree * { }"
|
||||
- "show_numbers \\ / < > = [ ] BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "altline"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "ABC"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
".":
|
||||
outline: altline
|
||||
space:
|
||||
outline: spaceline
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
U00B7:
|
||||
text: "·"
|
||||
squareroot:
|
||||
text: "√"
|
||||
Greek_pi:
|
||||
text: "π"
|
||||
division:
|
||||
text: "÷"
|
||||
multiply:
|
||||
text: "×"
|
||||
paragraph:
|
||||
text: "¶"
|
||||
Greek_tau:
|
||||
text: "τ"
|
||||
copyright:
|
||||
text: "©"
|
||||
U00AE:
|
||||
text: "®"
|
||||
U00A3:
|
||||
text: "£"
|
||||
EuroSign:
|
||||
text: "€"
|
||||
U00A5:
|
||||
text: "¥"
|
||||
asciicircum:
|
||||
text: "^"
|
||||
degree:
|
||||
text: "°"
|
||||
|
||||
45
data/keyboards/number.yaml
Normal file
45
data/keyboards/number.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
bounds: { x: 0, y: 0.33, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 37.46341, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
||||
outline7:
|
||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 120.5853, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "1 2 3 parenleft parenright"
|
||||
- "4 5 6 numbersign asterisk"
|
||||
- "7 8 9 plus minus"
|
||||
- "BackSpace 0 space Return"
|
||||
|
||||
buttons:
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
space:
|
||||
outline: spaceline
|
||||
text: " "
|
||||
Return:
|
||||
outline: outline7
|
||||
icon: "key-enter"
|
||||
keysym: "BackSpace"
|
||||
asterisk:
|
||||
text: "*"
|
||||
numbersign:
|
||||
text: "#"
|
||||
minus:
|
||||
text: "-"
|
||||
plus:
|
||||
text: "+"
|
||||
parenleft:
|
||||
text: "("
|
||||
parenright:
|
||||
text: ")"
|
||||
|
||||
166
data/keyboards/se.yaml
Normal file
166
data/keyboards/se.yaml
Normal file
@@ -0,0 +1,166 @@
|
||||
---
|
||||
bounds: { x: 0, y: 0.33, width: 360, height: 210 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 32, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
outline7:
|
||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p å"
|
||||
- "a s d f g h j k l ö ä"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P Å"
|
||||
- "A S D F G H J K L Ö Ä"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "at numbersign dollar percent ampersand minus underscore plus parenleft parenright"
|
||||
- "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
symbols:
|
||||
- "asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph"
|
||||
- "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright"
|
||||
- "show_numbers backslash slash less greater equal bracketleft bracketright BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "altline"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "altline"
|
||||
label: "ABC"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
".":
|
||||
outline: altline
|
||||
space:
|
||||
outline: spaceline
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
asterisk:
|
||||
text: "*"
|
||||
asciitilde:
|
||||
text: "~"
|
||||
quoteleft:
|
||||
text: "`"
|
||||
bar:
|
||||
text: "|"
|
||||
U00B7:
|
||||
text: "·"
|
||||
squareroot:
|
||||
text: "√"
|
||||
Greek_pi:
|
||||
text: "π"
|
||||
division:
|
||||
text: "÷"
|
||||
multiply:
|
||||
text: "×"
|
||||
paragraph:
|
||||
text: "¶"
|
||||
Greek_tau:
|
||||
text: "τ"
|
||||
copyright:
|
||||
text: "©"
|
||||
numbersign:
|
||||
text: "#"
|
||||
U00AE:
|
||||
text: "®"
|
||||
at:
|
||||
text: "@"
|
||||
dollar:
|
||||
text: "$"
|
||||
U00A3:
|
||||
text: "£"
|
||||
percent:
|
||||
text: "%"
|
||||
EuroSign:
|
||||
text: "€"
|
||||
ampersand:
|
||||
text: "&"
|
||||
U00A5:
|
||||
text: "¥"
|
||||
minus:
|
||||
text: "-"
|
||||
asciicircum:
|
||||
text: "^"
|
||||
underscore:
|
||||
text: "_"
|
||||
degree:
|
||||
text: "°"
|
||||
plus:
|
||||
text: "+"
|
||||
equal:
|
||||
text: "="
|
||||
parenleft:
|
||||
text: "("
|
||||
parenright:
|
||||
text: ")"
|
||||
braceleft:
|
||||
text: "{"
|
||||
braceright:
|
||||
text: "}"
|
||||
comma:
|
||||
text: ","
|
||||
backslash:
|
||||
text: "\\"
|
||||
slash:
|
||||
text: "/"
|
||||
quotedbl:
|
||||
text: "\""
|
||||
quoteright:
|
||||
text: "'"
|
||||
less:
|
||||
text: "<"
|
||||
greater:
|
||||
text: ">"
|
||||
colon:
|
||||
text: ":"
|
||||
semicolon:
|
||||
text: ";"
|
||||
exclam:
|
||||
text: "!"
|
||||
question:
|
||||
text: "?"
|
||||
bracketleft:
|
||||
text: "["
|
||||
bracketright:
|
||||
text: "]"
|
||||
|
||||
85
data/keyboards/us.yaml
Normal file
85
data/keyboards/us.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 360, height: 208 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 35.33, height: 52 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 52.67, height: 52 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 62, height: 52 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 142, height: 52 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 44, height: 52 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p"
|
||||
- "a s d f g h j k l"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers preferences space period Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P"
|
||||
- "A S D F G H J K L"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers preferences space period Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # $ % & - _ + ( )"
|
||||
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
||||
- "show_letters preferences space period Return"
|
||||
symbols:
|
||||
- "~ ` | · √ π τ ÷ × ¶"
|
||||
- "© ® £ € ¥ ^ ° * { }"
|
||||
- "show_numbers_from_symbols \\ / < > = [ ] BackSpace"
|
||||
- "show_letters preferences space period Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "special"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "wide"
|
||||
label: "123"
|
||||
show_numbers_from_symbols:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "wide"
|
||||
label: "ABC"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
period:
|
||||
outline: "special"
|
||||
text: "."
|
||||
space:
|
||||
outline: "spaceline"
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
colon:
|
||||
text: ":"
|
||||
85
data/keyboards/us_wide.yaml
Normal file
85
data/keyboards/us_wide.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
---
|
||||
bounds: { x: 0, y: 1, width: 540, height: 168 }
|
||||
|
||||
outlines:
|
||||
default:
|
||||
bounds: { x: 0, y: 0, width: 54, height: 42 }
|
||||
altline:
|
||||
bounds: { x: 0, y: 0, width: 81, height: 42 }
|
||||
wide:
|
||||
bounds: { x: 0, y: 0, width: 108, height: 42 }
|
||||
spaceline:
|
||||
bounds: { x: 0, y: 0, width: 216, height: 42 }
|
||||
special:
|
||||
bounds: { x: 0, y: 0, width: 54, height: 42 }
|
||||
|
||||
views:
|
||||
base:
|
||||
- "q w e r t y u i o p"
|
||||
- "a s d f g h j k l"
|
||||
- "Shift_L z x c v b n m BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
upper:
|
||||
- "Q W E R T Y U I O P"
|
||||
- "A S D F G H J K L"
|
||||
- "Shift_L Z X C V B N M BackSpace"
|
||||
- "show_numbers preferences space . Return"
|
||||
numbers:
|
||||
- "1 2 3 4 5 6 7 8 9 0"
|
||||
- "@ # $ % & - _ + ( )"
|
||||
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
symbols:
|
||||
- "~ ` | · √ π τ ÷ × ¶"
|
||||
- "© ® £ € ¥ ^ ° * { }"
|
||||
- "show_numbers_from_symbols \\ / < > = [ ] BackSpace"
|
||||
- "show_letters preferences space . Return"
|
||||
|
||||
buttons:
|
||||
Shift_L:
|
||||
action:
|
||||
locking:
|
||||
lock_view: "upper"
|
||||
unlock_view: "base"
|
||||
outline: "altline"
|
||||
icon: "key-shift"
|
||||
BackSpace:
|
||||
outline: "altline"
|
||||
icon: "edit-clear-symbolic"
|
||||
keysym: "BackSpace"
|
||||
preferences:
|
||||
action: "show_prefs"
|
||||
outline: "special"
|
||||
icon: "keyboard-mode-symbolic"
|
||||
show_numbers:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "wide"
|
||||
label: "123"
|
||||
show_numbers_from_symbols:
|
||||
action:
|
||||
set_view: "numbers"
|
||||
outline: "altline"
|
||||
label: "123"
|
||||
show_letters:
|
||||
action:
|
||||
set_view: "base"
|
||||
outline: "wide"
|
||||
label: "ABC"
|
||||
show_symbols:
|
||||
action:
|
||||
set_view: "symbols"
|
||||
outline: "altline"
|
||||
label: "*/="
|
||||
".":
|
||||
outline: "special"
|
||||
text: "."
|
||||
space:
|
||||
outline: "spaceline"
|
||||
text: " "
|
||||
Return:
|
||||
outline: "wide"
|
||||
icon: "key-enter"
|
||||
keysym: "Return"
|
||||
colon:
|
||||
text: ":"
|
||||
8
data/langs/de-DE.txt
Normal file
8
data/langs/de-DE.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
us Englisch (US)
|
||||
de Deutsch
|
||||
el Griechisch
|
||||
es Spanisch
|
||||
it Italienisch
|
||||
jp+kana Japanisch (Kana)
|
||||
no Norwegisch
|
||||
|
||||
10
data/langs/en-US.txt
Normal file
10
data/langs/en-US.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
us English (US)
|
||||
de German
|
||||
el Greek
|
||||
es Spanish
|
||||
fi Finnish
|
||||
it Italian
|
||||
jp+kana Japanese (kana)
|
||||
no Norwegian
|
||||
se Swedish
|
||||
|
||||
7
data/langs/es-ES.txt
Normal file
7
data/langs/es-ES.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
us Inglés (EE.UU.)
|
||||
de Alemán
|
||||
el Griego
|
||||
es Español
|
||||
it Italiano
|
||||
jp+kana Japonés (Kana)
|
||||
no Noruego
|
||||
8
data/langs/ja-JP.txt
Normal file
8
data/langs/ja-JP.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
us 英語 (US)
|
||||
de ドイツ語
|
||||
el ギリシャ語
|
||||
es スペイン語
|
||||
it イタリア語
|
||||
jp+kana 日本語 (かな)
|
||||
nb ノルウェー語
|
||||
|
||||
9
data/langs/pl-PL.txt
Normal file
9
data/langs/pl-PL.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
us angielski (USA)
|
||||
de niemiecki
|
||||
el grecki
|
||||
es hiszpański
|
||||
fi fiński
|
||||
it włoski
|
||||
jp+kana japoński (kana)
|
||||
no norweski
|
||||
se szwedzki
|
||||
19
data/meson.build
Normal file
19
data/meson.build
Normal file
@@ -0,0 +1,19 @@
|
||||
gnome = import('gnome')
|
||||
|
||||
squeekboard_resources = gnome.compile_resources(
|
||||
'squeekboard-resources',
|
||||
'squeekboard.gresources.xml',
|
||||
|
||||
c_name: 'squeekboard',
|
||||
)
|
||||
|
||||
desktop_file = 'sm.puri.Squeekboard.desktop'
|
||||
|
||||
i18n.merge_file('desktop',
|
||||
input: desktop_file + '.in',
|
||||
output: desktop_file,
|
||||
po_dir: '../po',
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'applications'),
|
||||
type: 'desktop'
|
||||
)
|
||||
19
data/popup.ui
Normal file
19
data/popup.ui
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.16"/>
|
||||
<object class="GtkPopoverMenu" id="main_menu">
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="box">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="submenu">main</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
9
data/sm.puri.Squeekboard.desktop.in
Normal file
9
data/sm.puri.Squeekboard.desktop.in
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Squeekboard
|
||||
GenericName=Squeekboard Virtual Keyboard
|
||||
Comment=Virtual Keyboard
|
||||
Exec=squeekboard
|
||||
Terminal=false
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
Categories=GTK;Utility;
|
||||
11
data/squeekboard.gresources.xml
Normal file
11
data/squeekboard.gresources.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="/sm/puri/squeekboard">
|
||||
<file compressed="true">style.css</file>
|
||||
<file compressed="true">style-Adwaita:dark.css</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">popup.ui</file>
|
||||
<file>icons/key-enter.svg</file>
|
||||
<file>icons/key-shift.svg</file>
|
||||
<file>icons/keyboard-mode-symbolic.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
46
data/style-Adwaita:dark.css
Normal file
46
data/style-Adwaita:dark.css
Normal file
@@ -0,0 +1,46 @@
|
||||
sq_view {
|
||||
background-color: rgba(0, 0, 0, 255);
|
||||
color: #ffffff;
|
||||
font-family: cantarell, sans-serif;
|
||||
}
|
||||
|
||||
sq_view sq_button {
|
||||
color: #deddda;
|
||||
background: #464448;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #5e5c64;
|
||||
border-radius: 3px;
|
||||
margin: 4px 2px 4px 2px;
|
||||
}
|
||||
|
||||
sq_view.wide sq_button {
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
sq_button:active {
|
||||
background: #747077;
|
||||
border-color: #96949d;
|
||||
}
|
||||
|
||||
sq_button.altline,
|
||||
sq_button.special,
|
||||
sq_button.wide {
|
||||
background: #2b292f;
|
||||
border-color: #3e3a44;
|
||||
}
|
||||
|
||||
sq_button.locked {
|
||||
background: #ffffff;
|
||||
color: #2b292f;
|
||||
}
|
||||
|
||||
#Return {
|
||||
background: #1c71d8;
|
||||
border-color: #1a5fb4;
|
||||
}
|
||||
|
||||
#Return:active {
|
||||
background: #1c71d8;
|
||||
border-color: #3584e4;
|
||||
}
|
||||
49
data/style.css
Normal file
49
data/style.css
Normal file
@@ -0,0 +1,49 @@
|
||||
sq_view {
|
||||
background-color: @theme_base_color; /*rgba(0, 0, 0, 255);*/
|
||||
color: @theme_text_color; /*#ffffff;*/
|
||||
font-family: cantarell, sans-serif;
|
||||
}
|
||||
|
||||
sq_view sq_button {
|
||||
color: @theme_fg_color; /*#deddda;*/
|
||||
background: mix(@theme_bg_color, @theme_base_color, -0.5); /* #464448; */
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: @borders; /* #5e5c64;*/
|
||||
border-radius: 3px;
|
||||
margin: 4px 2px 4px 2px;
|
||||
}
|
||||
|
||||
sq_view.wide sq_button {
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
sq_button:active,
|
||||
sq_button.altline:active,
|
||||
sq_button.special:active,
|
||||
sq_button.wide:active {
|
||||
background: mix(@theme_bg_color, @theme_selected_bg_color, 0.4);/* #747077; */
|
||||
border-color: mix(@borders, @theme_selected_fg_color, 0.5);/* #96949d; */
|
||||
}
|
||||
|
||||
sq_button.altline,
|
||||
sq_button.special,
|
||||
sq_button.wide {
|
||||
background: mix(@theme_bg_color, @theme_base_color, 0.5); /*#2b292f;*/
|
||||
border-color: @borders; /* #3e3a44; */
|
||||
}
|
||||
|
||||
sq_button.locked {
|
||||
background: @theme_fg_color; /*#ffffff;*/
|
||||
color: @theme_bg_color; /*#2b292f;*/
|
||||
}
|
||||
|
||||
#Return {
|
||||
background: @theme_selected_bg_color; /* #1c71d8; */
|
||||
border-color: @borders; /*#1a5fb4;*/
|
||||
}
|
||||
|
||||
#Return:active {
|
||||
background: mix(@theme_selected_bg_color, @theme_bg_color, 0.4); /*#1c71d8;*/
|
||||
border-color: @borders; /*#3584e4;*/
|
||||
}
|
||||
12
debian/cargo/config
vendored
Normal file
12
debian/cargo/config
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# When modifying this file, consider instead
|
||||
# to take advantage of the method that Cargo packagers use
|
||||
# to set up all the necessary stuff automatically:
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907629#30
|
||||
|
||||
[source.crates-io]
|
||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||
replace-with = 'vendored-sources'
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = '/usr/share/cargo/registry'
|
||||
|
||||
63
debian/changelog
vendored
Normal file
63
debian/changelog
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
squeekboard (1.4.0) amber-phone; urgency=medium
|
||||
|
||||
* "text" property in layouts
|
||||
* Adjusts to user's color scheme
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Mon, 02 Dec 2019 19:37:01 +0000
|
||||
|
||||
squeekboard (1.3.2) amber-phone; urgency=medium
|
||||
|
||||
* Make sure all key presses get accepted by the compositor
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Tue, 26 Nov 2019 15:36:27 +0000
|
||||
|
||||
squeekboard (1.3.1) amber-phone; urgency=medium
|
||||
|
||||
* Update and fix layouts and languages
|
||||
* Make tests less likely to fail
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Wed, 20 Nov 2019 22:10:48 +0000
|
||||
|
||||
squeekboard (1.3.0) amber-phone; urgency=medium
|
||||
|
||||
* Language selection popup
|
||||
* Swedish and Finnish layouts
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Sat, 16 Nov 2019 15:38:14 +0000
|
||||
|
||||
squeekboard (1.2.2) amber-phone; urgency=medium
|
||||
|
||||
* Landscape mode
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Wed, 30 Oct 2019 12:38:39 +0000
|
||||
|
||||
squeekboard (1.2.1) amber-phone; urgency=medium
|
||||
|
||||
* Use different distribution
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Tue, 08 Oct 2019 10:56:10 +0000
|
||||
|
||||
squeekboard (1.2.0) unstable; urgency=medium
|
||||
|
||||
* Use Cargo-based dependencies
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Tue, 24 Sep 2019 10:42:15 +0000
|
||||
|
||||
squeekboard (1.1.0) unstable; urgency=medium
|
||||
|
||||
* Use new keyboard layout format
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Mon, 02 Sep 2019 10:12:02 +0000
|
||||
|
||||
|
||||
squeekboard (1.0.10) unstable; urgency=medium
|
||||
|
||||
* Use a shared DBus definition
|
||||
|
||||
-- Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Tue, 02 Jul 2019 20:12:02 +0000
|
||||
|
||||
squeekboard (1.0.9) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- David Boddie <david.boddie@puri.sm> Tue, 25 Jun 2019 19:33:00 +0200
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
10
|
||||
53
debian/control
vendored
Normal file
53
debian/control
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
Source: squeekboard
|
||||
Section: x11
|
||||
Priority: optional
|
||||
Maintainer: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>
|
||||
Build-Depends:
|
||||
cargo,
|
||||
debhelper (>= 10),
|
||||
meson (>=0.51.0),
|
||||
ninja-build,
|
||||
pkg-config,
|
||||
libglib2.0-dev,
|
||||
libgtk-3-dev,
|
||||
libcroco3-dev,
|
||||
librust-bitflags-1-dev (>= 1.0),
|
||||
librust-clap-2+default-dev (>= 2.32),
|
||||
librust-gio+v2-44-dev,
|
||||
librust-glib+v2-44-dev,
|
||||
librust-glib-sys-dev,
|
||||
librust-gtk+v3-22-dev (>= 0.5),
|
||||
librust-gtk-sys-dev,
|
||||
librust-maplit-1-dev (>= 1.0),
|
||||
librust-regex-1-dev (>= 1.1),
|
||||
librust-serde-derive-1-dev (>= 1.0),
|
||||
librust-serde-yaml-0.8-dev (>= 0.8),
|
||||
librust-xkbcommon-0.4+wayland-dev (>= 0.4),
|
||||
libwayland-dev (>= 1.16),
|
||||
rustc,
|
||||
wayland-protocols (>= 1.14),
|
||||
# for running the tests
|
||||
xvfb,
|
||||
xauth,
|
||||
Standards-Version: 4.1.3
|
||||
Homepage: https://source.puri.sm/Librem5/squeekboard
|
||||
|
||||
Package: squeekboard
|
||||
Architecture: linux-any
|
||||
Depends:
|
||||
# for the Adwaita-dark theme
|
||||
gnome-themes-extra-data,
|
||||
${shlibs:Depends}
|
||||
${misc:Depends}
|
||||
Description: On-screen keyboard for Wayland
|
||||
Virtual keyboard supporting Wayland, built primarily for the Librem 5 phone.
|
||||
|
||||
Package: squeekboard-devel
|
||||
Architecture: linux-any
|
||||
Depends:
|
||||
${shlibs:Depends}
|
||||
${misc:Depends}
|
||||
Description: Resources for making Squeekboard layouts
|
||||
Tools for creating Squeekboard layouts:
|
||||
.
|
||||
* squeekboard-test-layout
|
||||
195
debian/copyright
vendored
Normal file
195
debian/copyright
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: squeekboard
|
||||
Source: https://source.puri.sm/Librem5/squeekboard
|
||||
|
||||
Files: *
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: cargo.sh
|
||||
Copyright: 2019 Bart Ribbers <bribbers@disroot.org>
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/style.css
|
||||
data/squeekboard.gresources.xml
|
||||
data/meson.build
|
||||
src/meson.build
|
||||
src/imservice.c
|
||||
Copyright: 2019 Purism SPC
|
||||
2019 Squeekboard Contributors
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/de.yaml
|
||||
Copyright: 2019 Mark Müller <markmueller86@gmail.com>
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/el.yaml
|
||||
Copyright: 2019 Antonis Tsolomitis
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/es.yaml
|
||||
Copyright: 2019 Purism SPC
|
||||
2019 uzanto <miguejim@mailbox.org>
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/fi.yaml
|
||||
Copyright: 2019 uzanto <miguejim@mailbox.org>
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/it.yaml
|
||||
Copyright: 2019 Antonio Pandolfo <ant.pandolfo@gmail.com>
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/ja+kana.yaml
|
||||
Copyright: 2019 Mark Müller <markmueller86@gmail.com>
|
||||
License: GPL-3+
|
||||
|
||||
Files: data/keyboards/se.yaml
|
||||
Copyright: 2019 Andreas Rönnquist <andreas@ronnquist.net>
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: eek/eek-layout.h
|
||||
eek/eek-layout.c
|
||||
eek/eek-element.c
|
||||
eek/eek-gtk-keyboard.c
|
||||
eek/eek-gtk-keyboard.h
|
||||
eek/eek.c
|
||||
eek/eek-xml-layout.h
|
||||
eek/eek-xml-layout.c
|
||||
eek/eek-renderer.h
|
||||
eek/eek-element.h
|
||||
eek/eek-renderer.c
|
||||
eekboard/eekboard-service.c
|
||||
eekboard/eekboard-service.h
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
2018-2019 Purism SPC
|
||||
2019 Squeekboard Contributors
|
||||
License: GPL-3+
|
||||
|
||||
Files: eek/eek-keyboard.c
|
||||
eek/eek-types.h
|
||||
eek/eek-types.c
|
||||
eek/eek-keyboard.h
|
||||
eek/eek.h
|
||||
src/server-main.c
|
||||
src/server-context-service.h
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
2019 Purism SPC
|
||||
License: LGPL-2+
|
||||
|
||||
Files: eek/layersurface.c
|
||||
src/wayland.c
|
||||
src/key-emitter.c
|
||||
meson.build
|
||||
src/meson.build
|
||||
po/meson.build
|
||||
Copyright: 2018-2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: eekboard/keymap.c
|
||||
Copyright: 2000 Red Hat, Inc.
|
||||
2019 Purism, SPC
|
||||
License: LGPL-2+
|
||||
|
||||
Files: eekboard/eekboard-context-service.c
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
2019 Purism, SPC
|
||||
2019 David Heidelberg <david@ixit.cz>
|
||||
2019 Piotr Tworek <tworaz@tworaz.net>
|
||||
2019 Squeekboard Contributors
|
||||
License: GPL-3+
|
||||
|
||||
Files: eekboard/eekboard-context-service.h
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
License: GPL-3+
|
||||
|
||||
Files: po/POTFILES.skip
|
||||
po/LINGUAS
|
||||
po/ja.po
|
||||
po/POTFILES.in
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
License: LGPL-2+
|
||||
Comment:
|
||||
Only the po/ja.po file contains a license, but these are all grouped together.
|
||||
|
||||
Files: protocols/wlr-layer-shell-unstable-v1.xml
|
||||
Copyright: 2017 Drew DeVault
|
||||
License: X11
|
||||
|
||||
Files: src/resources.rs
|
||||
Copyright: 2019 Andreas Rönnquist <andreas@ronnquist.net>
|
||||
2019 Mark Müller <markmueller86@gmail.com>
|
||||
2019 Purism SPC
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/server-context-service.c
|
||||
Copyright: 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
2010-2011 Red Hat, Inc.
|
||||
2019 Purism SPC
|
||||
2019 Squeekboard Contributors
|
||||
License: GPL-3+
|
||||
|
||||
Files: tests/meson.build
|
||||
Copyright: 2019 Purism SPC
|
||||
2019 Mark Müller <markmueller86@gmail.com>
|
||||
License: GPL-3+
|
||||
|
||||
License: GPL-3+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
|
||||
License: LGPL-2+
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
License: X11
|
||||
Permission to use, copy, modify, distribute, and sell this software and
|
||||
its documentation for any purpose is hereby granted without fee, provided
|
||||
that the above copyright notice appear in all copies and that both that
|
||||
copyright notice and this permission notice appear in supporting
|
||||
documentation, and that the name of the copyright holders not be used in
|
||||
advertising or publicity pertaining to distribution of the software
|
||||
without specific, written prior permission. The copyright holders make
|
||||
no representations about the suitability of this software for any
|
||||
purpose. It is provided "as is" without express or implied warranty.
|
||||
.
|
||||
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
||||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
|
||||
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
|
||||
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
15
debian/rules
vendored
Executable file
15
debian/rules
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export CARGO_HOME = $(CURDIR)/debian/cargo
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
%:
|
||||
dh $@ --builddirectory=_build --buildsystem=meson
|
||||
|
||||
# The Debian version of linked-hash-map doesn't provide any hash,
|
||||
# causing Cargo to refuse to build with a crates.io copy
|
||||
build-arch:
|
||||
rm Cargo.lock
|
||||
dh $@ --builddirectory=_build --buildsystem=meson
|
||||
|
||||
override_dh_autoreconf:
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
1
debian/squeekboard-devel.install
vendored
Normal file
1
debian/squeekboard-devel.install
vendored
Normal file
@@ -0,0 +1 @@
|
||||
usr/bin/squeekboard-test-layout /usr/bin
|
||||
2
debian/squeekboard.install
vendored
Normal file
2
debian/squeekboard.install
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
tools/squeekboard-restyled usr/bin
|
||||
usr/bin/squeekboard /usr/bin
|
||||
2
debian/squeekboard.lintian-overrides
vendored
Normal file
2
debian/squeekboard.lintian-overrides
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# yaml-rust 0.4.3 shares some roots with libyaml, including the string which lintian checks, creating a false positive
|
||||
squeekboard binary: embedded-library usr/bin/squeekboard: libyaml
|
||||
@@ -1,19 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
SUBDIRS = reference
|
||||
@@ -1,19 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
SUBDIRS = eek
|
||||
@@ -1,135 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
# We require automake 1.6 at least.
|
||||
AUTOMAKE_OPTIONS = 1.6
|
||||
|
||||
# This is a blank Makefile.am for using gtk-doc.
|
||||
# Copy this to your project's API docs directory and modify the variables to
|
||||
# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
|
||||
# of using the various options.
|
||||
|
||||
# The name of the module, e.g. 'glib'.
|
||||
DOC_MODULE=eek
|
||||
|
||||
# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
|
||||
#DOC_MODULE_VERSION=2
|
||||
|
||||
|
||||
# The top-level SGML file. You can change this if you want to.
|
||||
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
|
||||
|
||||
# The directory containing the source code. Relative to $(srcdir).
|
||||
# gtk-doc will search all .c & .h files beneath here for inline comments
|
||||
# documenting the functions and macros.
|
||||
# e.g. DOC_SOURCE_DIR=../../../gtk
|
||||
DOC_SOURCE_DIR=../../../eek
|
||||
|
||||
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
|
||||
SCANGOBJ_OPTIONS=
|
||||
|
||||
# Extra options to supply to gtkdoc-scan.
|
||||
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
|
||||
SCAN_OPTIONS=
|
||||
|
||||
# Extra options to supply to gtkdoc-mkdb.
|
||||
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
|
||||
MKDB_OPTIONS=--sgml-mode --output-format=xml
|
||||
|
||||
# Extra options to supply to gtkdoc-mktmpl
|
||||
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
|
||||
MKTMPL_OPTIONS=
|
||||
|
||||
# Extra options to supply to gtkdoc-mkhtml
|
||||
MKHTML_OPTIONS=
|
||||
|
||||
# Extra options to supply to gtkdoc-fixref. Not normally needed.
|
||||
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
|
||||
FIXXREF_OPTIONS=
|
||||
|
||||
# Used for dependencies. The docs will be rebuilt if any of these change.
|
||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||
HFILE_GLOB=$(top_srcdir)/eek/*.h
|
||||
CFILE_GLOB=$(top_srcdir)/eek/*.c
|
||||
|
||||
# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
|
||||
# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
|
||||
EXTRA_HFILES=
|
||||
|
||||
# Header files to ignore when scanning. Use base file name, no paths
|
||||
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
|
||||
IGNORE_HFILES= eek-private.h \
|
||||
eek-drawing.h \
|
||||
eek-clutter-key.h \
|
||||
eek-clutter-section.h \
|
||||
eek-clutter-key-actor.h \
|
||||
eek-clutter-drawing-context.h \
|
||||
config.h
|
||||
|
||||
# Images to copy into HTML directory.
|
||||
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
|
||||
HTML_IMAGES=
|
||||
|
||||
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
|
||||
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
|
||||
content_files=eek-overview.xml
|
||||
|
||||
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
|
||||
# These files must be listed here *and* in content_files
|
||||
# e.g. expand_content_files=running.sgml
|
||||
expand_content_files=eek-overview.xml
|
||||
|
||||
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
|
||||
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
|
||||
# signals and properties.
|
||||
# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
|
||||
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
|
||||
GTKDOC_CFLAGS = $(GOBJECT2_CFLAGS)
|
||||
GTKDOC_LIBS = $(top_srcdir)/eek/libeek.la \
|
||||
$(top_srcdir)/eek/libeek-gtk.la \
|
||||
$(top_srcdir)/eek/libeek-xkb.la \
|
||||
$(top_srcdir)/eek/libeek-xkl.la \
|
||||
$(GOBJECT2_LIBS) \
|
||||
$(XKB_LIBS)
|
||||
|
||||
if HAVE_CLUTTER
|
||||
GTKDOC_LIBS += $(top_srcdir)/eek/libeek-clutter.la $(CLUTTER_LIBS)
|
||||
endif
|
||||
|
||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||
include $(top_srcdir)/gtk-doc.make
|
||||
|
||||
# Other files to distribute
|
||||
# e.g. EXTRA_DIST += version.xml.in
|
||||
EXTRA_DIST +=
|
||||
|
||||
# Files not to distribute
|
||||
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
|
||||
# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
|
||||
#DISTCLEANFILES +=
|
||||
|
||||
# Comment this out if you want your docs-status tested during 'make check'
|
||||
if ENABLE_GTK_DOC
|
||||
#TESTS_ENVIRONMENT = cd $(srcsrc) &&
|
||||
#TESTS = $(GTKDOC_CHECK)
|
||||
endif
|
||||
|
||||
-include $(top_srcdir)/gtk-doc.mk
|
||||
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
|
||||
[
|
||||
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
|
||||
]>
|
||||
<book id="index">
|
||||
<bookinfo>
|
||||
<title>libeek Reference Manual</title>
|
||||
<releaseinfo>
|
||||
for libeek 0.0.3.
|
||||
</releaseinfo>
|
||||
<copyright>
|
||||
<year>2010</year>
|
||||
<holder>Daiki Ueno</holder>
|
||||
</copyright>
|
||||
|
||||
<copyright>
|
||||
<year>2010</year>
|
||||
<holder>Red Hat, Inc.</holder>
|
||||
</copyright>
|
||||
|
||||
<legalnotice>
|
||||
<para>
|
||||
Permission is granted to copy, distribute and/or modify this
|
||||
document under the terms of the GNU Free Documentation License,
|
||||
Version 1.3 or any later version published by the Free Software
|
||||
Foundation; with no Invariant Sections, no Front-Cover Texts and
|
||||
no Back-Cover Texts. A copy of the license is included in the
|
||||
section entitled "GNU Free Documentation License".
|
||||
</para>
|
||||
</legalnotice>
|
||||
</bookinfo>
|
||||
|
||||
<xi:include href="xml/eek-overview.xml"/>
|
||||
<part id="apireference">
|
||||
<title>API Manual</title>
|
||||
<chapter>
|
||||
<title>Base Classes, Interfaces, and Utilities</title>
|
||||
<xi:include href="xml/eek-element.xml"/>
|
||||
<xi:include href="xml/eek-container.xml"/>
|
||||
<xi:include href="xml/eek-keyboard.xml"/>
|
||||
<xi:include href="xml/eek-section.xml"/>
|
||||
<xi:include href="xml/eek-key.xml"/>
|
||||
<xi:include href="xml/eek-layout.xml"/>
|
||||
<xi:include href="xml/eek-types.xml"/>
|
||||
<xi:include href="xml/eek-keysym.xml"/>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<title>Clutter Keyboard</title>
|
||||
<xi:include href="xml/eek-clutter-keyboard.xml"/>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<title>GTK Keyboard</title>
|
||||
<xi:include href="xml/eek-gtk-keyboard.xml"/>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<title>Libxklavier Layout Engine</title>
|
||||
<xi:include href="xml/eek-xkl-layout.xml"/>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<title>XKB Layout Engine</title>
|
||||
<xi:include href="xml/eek-xkb-layout.xml"/>
|
||||
</chapter>
|
||||
<chapter id="object-tree">
|
||||
<title>Object Hierarchy</title>
|
||||
<xi:include href="xml/tree_index.sgml"/>
|
||||
</chapter>
|
||||
<index id="api-index-full">
|
||||
<title>API Index</title>
|
||||
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
|
||||
</index>
|
||||
</part>
|
||||
</book>
|
||||
@@ -1,74 +0,0 @@
|
||||
<part id="eek-overview">
|
||||
<title>Usage Overview</title>
|
||||
<partintro>
|
||||
|
||||
<para>libeek is a library to create keyboard-like user interface.
|
||||
Since it is designed as simple as possible, it provides only two
|
||||
kind of objects. One is <emphasis>keyboard element</emphasis>
|
||||
(objects derived from #EekElement) and another is
|
||||
<emphasis>keyboard layout engine</emphasis> (objects which
|
||||
implements the #EekLayout interface).</para>
|
||||
|
||||
<para>A keyboard element represents either a keyboard
|
||||
(#EekKeyboard), a section (#EekSection), or a key (#EekKey). Each
|
||||
element implements the Builder design pattern so that it can map
|
||||
itself to different UI widgets (#ClutterActor, #GtkDrawingArea,
|
||||
aso).</para>
|
||||
|
||||
<para>A layout engine arranges keyboard elements using information
|
||||
from external configuration mechanisms (libxklavier, XKB,
|
||||
matchbox-keyboard layouts in XML, aso)</para>
|
||||
|
||||
<para>Here is a sample code which demonstrates (1) keyboard
|
||||
elements are arranged with the system keyboard layout using
|
||||
libxklavier and (2) keyboard elements are mapped into
|
||||
#ClutterActor:</para>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
EekKeyboard *keyboard;
|
||||
EekLayout *layout;
|
||||
|
||||
/* Create a keyboard layout using libxklavier configuration. */
|
||||
layout = eek_xkl_layout_new ();
|
||||
|
||||
/* Create a keyboard implemented as ClutterActor. */
|
||||
keyboard = eek_clutter_keyboard_new ();
|
||||
|
||||
/* Apply the layout to the keyboard. */
|
||||
eek_keyboard_set_layout (keyboard, layout);
|
||||
|
||||
clutter_group_add (CLUTTER_GROUP(stage),
|
||||
eek_clutter_keyboard_get_actor (EEK_CLUTTER_KEYBOARD(keyboard)));
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
||||
<para>The most interesting feature of libeek is that developer can
|
||||
choose arbitrary combination of UI toolkits and layout engine
|
||||
supported by libeek. For example, to create a keyboard-like
|
||||
#GtkWidget instead of #ClutterActor, all you need is to replace
|
||||
eek_clutter_keyboard_new() with eek_gtk_keyboard_new() and
|
||||
eek_clutter_keyboard_get_actor() with
|
||||
eek_gtk_keyboard_get_widget(). Similarly, if you want to use XKB
|
||||
configuration directly (without libxklavier), you will only need to
|
||||
replace eek_xkl_layout_new () with eek_xkb_layout_new().</para>
|
||||
|
||||
<para>To achieve portability across different UI toolkits,
|
||||
there is a seperate represention of keyboard elements apart from
|
||||
the actual UI widgets. For example, a keyboard is represented as a tree of
|
||||
#EekElement -- #EekKeyboard contains one or more #EekSection's and
|
||||
#EekSection contains one or more #EekKey's. Each element may emit
|
||||
events when user pushes the corresponding UI widget.</para>
|
||||
<para>
|
||||
Here is another sample code which demonstrates logical events on
|
||||
#EekElement:
|
||||
</para>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
/* Find a key element in the logical keyboard. */
|
||||
EekKey *key = eek_keyboard_find_key_by_keycode (keyboard, 0x38);
|
||||
g_signal_connect (key, "pressed", on_a_pressed);
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
<para>When user pushed a widget which looks like "a" key (i.e. keycode 0x38), on_a_pressed will be called.</para>
|
||||
</partintro>
|
||||
</part>
|
||||
@@ -1,248 +0,0 @@
|
||||
<SECTION>
|
||||
<FILE>eek-keyboard</FILE>
|
||||
<TITLE>EekKeyboard</TITLE>
|
||||
EekKeyboardClass
|
||||
EekKeyboardPrivate
|
||||
EekKeyboard
|
||||
eek_keyboard_set_keysym_index
|
||||
eek_keyboard_get_keysym_index
|
||||
eek_keyboard_create_section
|
||||
eek_keyboard_set_layout
|
||||
eek_keyboard_realize
|
||||
eek_keyboard_find_key_by_keycode
|
||||
<SUBSECTION Standard>
|
||||
EEK_KEYBOARD
|
||||
EEK_IS_KEYBOARD
|
||||
EEK_TYPE_KEYBOARD
|
||||
eek_keyboard_get_type
|
||||
EEK_KEYBOARD_CLASS
|
||||
EEK_IS_KEYBOARD_CLASS
|
||||
EEK_KEYBOARD_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-layout</FILE>
|
||||
<TITLE>EekLayout</TITLE>
|
||||
EekLayoutIface
|
||||
EekLayout
|
||||
eek_layout_apply
|
||||
eek_layout_get_group
|
||||
<SUBSECTION Standard>
|
||||
EEK_LAYOUT
|
||||
EEK_IS_LAYOUT
|
||||
EEK_TYPE_LAYOUT
|
||||
eek_layout_get_type
|
||||
EEK_LAYOUT_GET_IFACE
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-gtk-keyboard</FILE>
|
||||
<TITLE>EekGtkKeyboard</TITLE>
|
||||
EekGtkKeyboard
|
||||
EekGtkKeyboardClass
|
||||
EekGtkKeyboardPrivate
|
||||
eek_gtk_keyboard_new
|
||||
eek_gtk_keyboard_get_widget
|
||||
<SUBSECTION Standard>
|
||||
EEK_GTK_KEYBOARD
|
||||
EEK_IS_GTK_KEYBOARD
|
||||
EEK_TYPE_GTK_KEYBOARD
|
||||
eek_gtk_keyboard_get_type
|
||||
EEK_GTK_KEYBOARD_CLASS
|
||||
EEK_IS_GTK_KEYBOARD_CLASS
|
||||
EEK_GTK_KEYBOARD_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-section</FILE>
|
||||
<TITLE>EekSection</TITLE>
|
||||
EekSectionClass
|
||||
EekSectionPrivate
|
||||
EekSection
|
||||
eek_section_set_angle
|
||||
eek_section_get_angle
|
||||
eek_section_get_n_rows
|
||||
eek_section_add_row
|
||||
eek_section_get_row
|
||||
eek_section_create_key
|
||||
eek_section_find_key_by_keycode
|
||||
<SUBSECTION Standard>
|
||||
EEK_SECTION
|
||||
EEK_IS_SECTION
|
||||
EEK_TYPE_SECTION
|
||||
eek_section_get_type
|
||||
EEK_SECTION_CLASS
|
||||
EEK_IS_SECTION_CLASS
|
||||
EEK_SECTION_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-container</FILE>
|
||||
<TITLE>EekContainer</TITLE>
|
||||
EekContainerClass
|
||||
EekContainerPrivate
|
||||
EekCallback
|
||||
EekCompareFunc
|
||||
EekContainer
|
||||
eek_container_foreach_child
|
||||
eek_container_find
|
||||
eek_container_find_by_position
|
||||
<SUBSECTION Standard>
|
||||
EEK_CONTAINER
|
||||
EEK_IS_CONTAINER
|
||||
EEK_TYPE_CONTAINER
|
||||
eek_container_get_type
|
||||
EEK_CONTAINER_CLASS
|
||||
EEK_IS_CONTAINER_CLASS
|
||||
EEK_CONTAINER_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-clutter-keyboard</FILE>
|
||||
<TITLE>EekClutterKeyboard</TITLE>
|
||||
EekClutterKeyboard
|
||||
EekClutterKeyboardClass
|
||||
EekClutterKeyboardPrivate
|
||||
eek_clutter_keyboard_new
|
||||
eek_clutter_keyboard_get_actor
|
||||
<SUBSECTION Standard>
|
||||
EEK_CLUTTER_KEYBOARD
|
||||
EEK_IS_CLUTTER_KEYBOARD
|
||||
EEK_TYPE_CLUTTER_KEYBOARD
|
||||
eek_clutter_keyboard_get_type
|
||||
EEK_CLUTTER_KEYBOARD_CLASS
|
||||
EEK_IS_CLUTTER_KEYBOARD_CLASS
|
||||
EEK_CLUTTER_KEYBOARD_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-xkl-layout</FILE>
|
||||
<TITLE>EekXklLayout</TITLE>
|
||||
EekXklLayout
|
||||
EekXklLayoutClass
|
||||
EekXklLayoutPrivate
|
||||
eek_xkl_layout_new
|
||||
eek_xkl_layout_set_config
|
||||
eek_xkl_layout_set_config_full
|
||||
eek_xkl_layout_set_model
|
||||
eek_xkl_layout_set_layouts
|
||||
eek_xkl_layout_set_variants
|
||||
eek_xkl_layout_set_options
|
||||
eek_xkl_layout_get_model
|
||||
eek_xkl_layout_get_layouts
|
||||
eek_xkl_layout_get_variants
|
||||
eek_xkl_layout_get_options
|
||||
eek_xkl_layout_disable_option
|
||||
eek_xkl_layout_enable_option
|
||||
eek_xkl_layout_get_option
|
||||
<SUBSECTION Standard>
|
||||
EEK_XKL_LAYOUT
|
||||
EEK_IS_XKL_LAYOUT
|
||||
EEK_TYPE_XKL_LAYOUT
|
||||
eek_xkl_layout_get_type
|
||||
EEK_XKL_LAYOUT_CLASS
|
||||
EEK_IS_XKL_LAYOUT_CLASS
|
||||
EEK_XKL_LAYOUT_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-xkb-layout</FILE>
|
||||
<TITLE>EekXkbLayout</TITLE>
|
||||
EekXkbLayout
|
||||
EekXkbLayoutClass
|
||||
EekXkbLayoutPrivate
|
||||
eek_xkb_layout_new
|
||||
eek_xkb_layout_set_names
|
||||
eek_xkb_layout_set_names_full
|
||||
eek_xkb_layout_set_keycodes
|
||||
eek_xkb_layout_set_geometry
|
||||
eek_xkb_layout_set_symbols
|
||||
eek_xkb_layout_get_keycodes
|
||||
eek_xkb_layout_get_geometry
|
||||
eek_xkb_layout_get_symbols
|
||||
<SUBSECTION Standard>
|
||||
EEK_XKB_LAYOUT
|
||||
EEK_IS_XKB_LAYOUT
|
||||
EEK_TYPE_XKB_LAYOUT
|
||||
eek_xkb_layout_get_type
|
||||
EEK_XKB_LAYOUT_CLASS
|
||||
EEK_IS_XKB_LAYOUT_CLASS
|
||||
EEK_XKB_LAYOUT_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-key</FILE>
|
||||
<TITLE>EekKey</TITLE>
|
||||
EekKeyClass
|
||||
EekKeyPrivate
|
||||
EekKey
|
||||
eek_key_set_keycode
|
||||
eek_key_get_keycode
|
||||
eek_key_set_keysyms
|
||||
eek_key_get_keysyms
|
||||
eek_key_get_keysym
|
||||
eek_key_set_index
|
||||
eek_key_get_index
|
||||
eek_key_set_outline
|
||||
eek_key_get_outline
|
||||
eek_key_set_keysym_index
|
||||
eek_key_get_keysym_index
|
||||
<SUBSECTION Standard>
|
||||
EEK_KEY
|
||||
EEK_IS_KEY
|
||||
EEK_TYPE_KEY
|
||||
eek_key_get_type
|
||||
EEK_KEY_CLASS
|
||||
EEK_IS_KEY_CLASS
|
||||
EEK_KEY_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-element</FILE>
|
||||
<TITLE>EekElement</TITLE>
|
||||
EekElementClass
|
||||
EekElementPrivate
|
||||
EekElement
|
||||
eek_element_set_parent
|
||||
eek_element_get_parent
|
||||
eek_element_set_name
|
||||
eek_element_get_name
|
||||
eek_element_set_bounds
|
||||
eek_element_get_bounds
|
||||
eek_element_get_absolute_position
|
||||
<SUBSECTION Standard>
|
||||
EEK_ELEMENT
|
||||
EEK_IS_ELEMENT
|
||||
EEK_TYPE_ELEMENT
|
||||
eek_element_get_type
|
||||
EEK_ELEMENT_CLASS
|
||||
EEK_IS_ELEMENT_CLASS
|
||||
EEK_ELEMENT_GET_CLASS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-types</FILE>
|
||||
EekOrientation
|
||||
EekKeysymMatrix
|
||||
EEK_TYPE_KEYSYM_MATRIX
|
||||
eek_keysym_matrix_get_type
|
||||
EekPoint
|
||||
EEK_TYPE_POINT
|
||||
eek_point_get_type
|
||||
EekBounds
|
||||
EEK_TYPE_BOUNDS
|
||||
eek_bounds_get_type
|
||||
eek_bounds_long_side
|
||||
EekOutline
|
||||
EEK_TYPE_OUTLINE
|
||||
eek_outline_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>eek-keysym</FILE>
|
||||
EEK_INVALID_KEYSYM
|
||||
EEK_INVALID_KEYCODE
|
||||
EekKeysymCategory
|
||||
eek_keysym_to_string
|
||||
eek_keysym_get_category
|
||||
</SECTION>
|
||||
212
eek/Makefile.am
212
eek/Makefile.am
@@ -1,212 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
lib_LTLIBRARIES = \
|
||||
libeek.la \
|
||||
libeek-gtk.la \
|
||||
libeek-xkb.la \
|
||||
libeek-xkl.la
|
||||
|
||||
if HAVE_CLUTTER
|
||||
lib_LTLIBRARIES += libeek-clutter.la
|
||||
endif
|
||||
|
||||
libeek_la_SOURCES = \
|
||||
eek-layout.c \
|
||||
eek-layout.h \
|
||||
eek-element.c \
|
||||
eek-element.h \
|
||||
eek-container.c \
|
||||
eek-container.h \
|
||||
eek-keyboard.c \
|
||||
eek-keyboard.h \
|
||||
eek-section.c \
|
||||
eek-section.h \
|
||||
eek-key.c \
|
||||
eek-key.h \
|
||||
eek-types.h \
|
||||
eek-types.c \
|
||||
eek-keysym.h \
|
||||
eek-keysym.c \
|
||||
eek-special-keysym-labels.h \
|
||||
eek-unicode-keysym-labels.h \
|
||||
eek-keyname-keysym-labels.h
|
||||
libeek_la_CFLAGS = $(GOBJECT2_CFLAGS)
|
||||
libeek_la_LIBADD = $(GOBJECT2_LIBS)
|
||||
|
||||
if HAVE_CLUTTER
|
||||
libeek_clutter_la_SOURCES = \
|
||||
eek-clutter-keyboard.c \
|
||||
eek-clutter-keyboard.h \
|
||||
eek-clutter-section.c \
|
||||
eek-clutter-section.h \
|
||||
eek-clutter-key.c \
|
||||
eek-clutter-key.h \
|
||||
eek-clutter-key-actor.c \
|
||||
eek-clutter-key-actor.h \
|
||||
eek-clutter-drawing-context.c \
|
||||
eek-clutter-drawing-context.h \
|
||||
eek-drawing.h \
|
||||
eek-drawing.c \
|
||||
eek-clutter.h
|
||||
|
||||
libeek_clutter_la_CFLAGS = $(CLUTTER_CFLAGS) $(CAIRO_LIBS) $(PANGO_LIBS)
|
||||
libeek_clutter_la_LIBADD = libeek.la $(CLUTTER_LIBS) $(CAIRO_LIBS) $(PANGO_LIBS)
|
||||
endif
|
||||
|
||||
libeek_gtk_la_SOURCES = \
|
||||
eek-gtk-keyboard.c \
|
||||
eek-gtk-keyboard.h \
|
||||
eek-drawing.h \
|
||||
eek-drawing.c \
|
||||
eek-gtk.h
|
||||
|
||||
libeek_gtk_la_CFLAGS = $(GTK2_CFLAGS) $(CAIRO_LIBS) $(PANGO_LIBS)
|
||||
libeek_gtk_la_LIBADD = libeek.la $(GTK2_LIBS) $(CAIRO_LIBS) $(PANGO_LIBS)
|
||||
|
||||
libeek_xkb_la_SOURCES = \
|
||||
eek-xkb-layout.h \
|
||||
eek-xkb-layout.c
|
||||
|
||||
libeek_xkb_la_CFLAGS = $(GTK2_CFLAGS) $(XKB_CFLAGS)
|
||||
libeek_xkb_la_LIBADD = libeek.la $(GTK2_LIBS) $(XKB_LIBS)
|
||||
|
||||
libeek_xkl_la_SOURCES = \
|
||||
eek-xkl-layout.h \
|
||||
eek-xkl-layout.c
|
||||
|
||||
libeek_xkl_la_CFLAGS = $(GTK2_CFLAGS) $(LIBXKLAVIER_CFLAGS)
|
||||
libeek_xkl_la_LIBADD = libeek-xkb.la $(GTK2_LIBS) $(LIBXKLAVIER_LIBS)
|
||||
|
||||
eekdir = $(includedir)/eek-$(EEK_API_VERSION)/eek
|
||||
eek_HEADERS = \
|
||||
$(top_srcdir)/eek/eek-element.h \
|
||||
$(top_srcdir)/eek/eek-container.h \
|
||||
$(top_srcdir)/eek/eek-keyboard.h \
|
||||
$(top_srcdir)/eek/eek-section.h \
|
||||
$(top_srcdir)/eek/eek-key.h \
|
||||
$(top_srcdir)/eek/eek-layout.h \
|
||||
$(top_srcdir)/eek/eek-keysym.h \
|
||||
$(top_srcdir)/eek/eek-types.h \
|
||||
$(top_srcdir)/eek/eek-gtk-keyboard.h \
|
||||
$(top_srcdir)/eek/eek-xkb-layout.h \
|
||||
$(top_srcdir)/eek/eek-xkl-layout.h \
|
||||
$(top_srcdir)/eek/eek.h \
|
||||
$(top_srcdir)/eek/eek-gtk.h \
|
||||
$(top_srcdir)/eek/eek-xkb.h \
|
||||
$(top_srcdir)/eek/eek-xkl.h
|
||||
|
||||
if HAVE_CLUTTER
|
||||
eek_HEADERS += \
|
||||
$(top_srcdir)/eek/eek-clutter-keyboard.h \
|
||||
$(top_srcdir)/eek/eek-clutter-section.h \
|
||||
$(top_srcdir)/eek/eek-clutter-key.h \
|
||||
$(top_srcdir)/eek/eek-clutter-drawing-context.h \
|
||||
$(top_srcdir)/eek/eek-clutter.h
|
||||
endif
|
||||
|
||||
eek-keysym.c: eek-special-keysym-labels.h eek-unicode-keysym-labels.h eek-keyname-keysym-labels.h
|
||||
|
||||
eek-special-keysym-labels.h: special-keysym-labels.txt
|
||||
$(PYTHON) ./gen-keysym-labels.py special_keysym_labels < $< > $@
|
||||
eek-unicode-keysym-labels.h: unicode-keysym-labels.txt
|
||||
$(PYTHON) ./gen-keysym-labels.py unicode_keysym_labels < $< > $@
|
||||
eek-keyname-keysym-labels.h: keyname-keysym-labels.txt
|
||||
$(PYTHON) ./gen-keysym-labels.py keyname_keysym_labels < $< > $@
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = \
|
||||
eek-$(EEK_API_VERSION).pc \
|
||||
eek-clutter-$(EEK_API_VERSION).pc \
|
||||
eek-gtk-$(EEK_API_VERSION).pc \
|
||||
eek-xkb-$(EEK_API_VERSION).pc \
|
||||
eek-xkl-$(EEK_API_VERSION).pc
|
||||
|
||||
DISTCLEANFILES = \
|
||||
eek-special-keysym-labels.h \
|
||||
eek-unicode-keysym-labels.h \
|
||||
eek-keyname-keysym-labels.h \
|
||||
$(pkgconfig_DATA)
|
||||
|
||||
EXTRA_DIST = \
|
||||
gen-keysym-labels.py \
|
||||
special-keysym-labels.txt \
|
||||
unicode-keysym-labels.txt \
|
||||
keyname-keysym-labels.txt
|
||||
|
||||
CLEANFILES =
|
||||
|
||||
-include $(INTROSPECTION_MAKEFILE)
|
||||
INTROSPECTION_GIRS =
|
||||
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
|
||||
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
|
||||
Eek-0.1.gir: libeek.la
|
||||
Eek_0_1_gir_SCANNERFLAGS = --strip-prefix=Eek --pkg=glib-2.0
|
||||
Eek_0_1_gir_INCLUDES = GLib-2.0 GObject-2.0
|
||||
Eek_0_1_gir_CFLAGS = $(libeek_la_CFLAGS)
|
||||
Eek_0_1_gir_LIBS = libeek.la
|
||||
Eek_0_1_gir_FILES = $(libeek_la_SOURCES)
|
||||
|
||||
EekGtk-0.1.gir: libeek-gtk.la Eek-0.1.gir
|
||||
EekGtk_0_1_gir_INCLUDES = GObject-2.0 Gtk-2.0 Eek-0.1
|
||||
EekGtk_0_1_gir_CFLAGS = $(libeek_gtk_la_CFLAGS)
|
||||
EekGtk_0_1_gir_LIBS = libeek-gtk.la
|
||||
EekGtk_0_1_gir_FILES = $(libeek_gtk_la_SOURCES)
|
||||
|
||||
if HAVE_CLUTTER
|
||||
EekClutter-0.1.gir: libeek-clutter.la Eek-0.1.gir
|
||||
EekClutter_0_1_gir_INCLUDES = GObject-2.0 Clutter-1.0 Eek-0.1
|
||||
EekClutter_0_1_gir_CFLAGS = $(libeek_clutter_la_CFLAGS)
|
||||
EekClutter_0_1_gir_LIBS = libeek-clutter.la
|
||||
EekClutter_0_1_gir_FILES = $(libeek_clutter_la_SOURCES)
|
||||
endif
|
||||
|
||||
EekXkb-0.1.gir: libeek-xkb.la Eek-0.1.gir
|
||||
EekXkb_0_1_gir_INCLUDES = GObject-2.0 Eek-0.1
|
||||
EekXkb_0_1_gir_CFLAGS = $(libeek_xkb_la_CFLAGS)
|
||||
EekXkb_0_1_gir_LIBS = libeek-xkb.la
|
||||
EekXkb_0_1_gir_FILES = $(libeek_xkb_la_SOURCES)
|
||||
|
||||
EekXkl-0.1.gir: libeek-xkl.la EekXkb-0.1.gir
|
||||
EekXkl_0_1_gir_INCLUDES = GObject-2.0 EekXkb-0.1
|
||||
EekXkl_0_1_gir_CFLAGS = $(libeek_xkl_la_CFLAGS)
|
||||
EekXkl_0_1_gir_LIBS = libeek-xkl.la
|
||||
EekXkl_0_1_gir_FILES = $(libeek_xkl_la_SOURCES)
|
||||
|
||||
INTROSPECTION_GIRS += \
|
||||
Eek-0.1.gir \
|
||||
EekGtk-0.1.gir \
|
||||
EekXkb-0.1.gir \
|
||||
EekXkl-0.1.gir
|
||||
|
||||
if HAVE_CLUTTER
|
||||
INTROSPECTION_GIRS += \
|
||||
EekClutter-0.1.gir
|
||||
endif
|
||||
|
||||
girdir = $(datadir)/gir-1.0
|
||||
gir_DATA = $(INTROSPECTION_GIRS)
|
||||
|
||||
typelibdir = $(libdir)/girepository-1.0
|
||||
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
||||
|
||||
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
||||
endif
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: EEK
|
||||
Description: A Library to Create Keyboard-like UI
|
||||
URL: http://ueno.github.com/eekboard/
|
||||
Version: @VERSION@
|
||||
Requires: gobject-2.0
|
||||
Libs: -L${libdir} -leek
|
||||
Cflags: -I${includedir}/eek-@EEK_API_VERSION@
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301 USA
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: libeek-clutter
|
||||
Description: A Library to Create Keyboard-like UI (Clutter Support)
|
||||
URL: http://ueno.github.com/eekboard/
|
||||
Version: @VERSION@
|
||||
Requires: eek-@EEK_API_VERSION@ clutter-1.0
|
||||
Libs: -L${libdir} -leek-clutter
|
||||
Cflags: -I${includedir}/eek-@EEK_API_VERSION@
|
||||
@@ -1,138 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-clutter-drawing-context.h"
|
||||
|
||||
G_DEFINE_TYPE (EekClutterDrawingContext, eek_clutter_drawing_context,
|
||||
G_TYPE_INITIALLY_UNOWNED);
|
||||
|
||||
#define EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CLUTTER_DRAWING_CONTEXT, EekClutterDrawingContextPrivate))
|
||||
|
||||
struct _EekClutterDrawingContextPrivate
|
||||
{
|
||||
/* outline pointer -> ClutterTexture */
|
||||
GHashTable *outline_textures;
|
||||
|
||||
/* keysym category -> PangoFontDescription * */
|
||||
PangoFontDescription *category_fonts[EEK_KEYSYM_CATEGORY_LAST];
|
||||
};
|
||||
|
||||
static void
|
||||
eek_clutter_drawing_context_dispose (GObject *object)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(object);
|
||||
if (priv->outline_textures) {
|
||||
g_hash_table_unref (priv->outline_textures);
|
||||
priv->outline_textures = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_drawing_context_finalize (GObject *object)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(object);
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < EEK_KEYSYM_CATEGORY_LAST; i++)
|
||||
pango_font_description_free (priv->category_fonts[i]);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_drawing_context_class_init (EekClutterDrawingContextClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekClutterDrawingContextPrivate));
|
||||
|
||||
gobject_class->finalize = eek_clutter_drawing_context_finalize;
|
||||
gobject_class->dispose = eek_clutter_drawing_context_dispose;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_drawing_context_init (EekClutterDrawingContext *self)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv;
|
||||
|
||||
priv = self->priv = EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(self);
|
||||
priv->outline_textures = g_hash_table_new (g_direct_hash, g_direct_equal);
|
||||
memset (priv->category_fonts, 0, sizeof *priv->category_fonts);
|
||||
}
|
||||
|
||||
void
|
||||
eek_clutter_drawing_context_set_outline_texture
|
||||
(EekClutterDrawingContext *context,
|
||||
EekOutline *outline,
|
||||
ClutterActor *texture)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(context);
|
||||
g_return_if_fail (priv);
|
||||
g_hash_table_insert (context->priv->outline_textures, outline, texture);
|
||||
}
|
||||
|
||||
ClutterActor *
|
||||
eek_clutter_drawing_context_get_outline_texture
|
||||
(EekClutterDrawingContext *context,
|
||||
EekOutline *outline)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(context);
|
||||
g_return_val_if_fail (priv, NULL);
|
||||
return g_hash_table_lookup (context->priv->outline_textures, outline);
|
||||
}
|
||||
|
||||
void
|
||||
eek_clutter_drawing_context_set_category_font
|
||||
(EekClutterDrawingContext *context,
|
||||
EekKeysymCategory category,
|
||||
PangoFontDescription *font)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(context);
|
||||
g_return_if_fail (priv);
|
||||
priv->category_fonts[category] = pango_font_description_copy (font);
|
||||
}
|
||||
|
||||
PangoFontDescription *
|
||||
eek_clutter_drawing_context_get_category_font
|
||||
(EekClutterDrawingContext *context,
|
||||
EekKeysymCategory category)
|
||||
{
|
||||
EekClutterDrawingContextPrivate *priv =
|
||||
EEK_CLUTTER_DRAWING_CONTEXT_GET_PRIVATE(context);
|
||||
g_return_val_if_fail (priv, NULL);
|
||||
return priv->category_fonts[category];
|
||||
}
|
||||
|
||||
EekClutterDrawingContext *
|
||||
eek_clutter_drawing_context_new (void)
|
||||
{
|
||||
return g_object_new (EEK_TYPE_CLUTTER_DRAWING_CONTEXT, NULL);
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_DRAWING_CONTEXT_H
|
||||
#define EEK_CLUTTER_DRAWING_CONTEXT_H 1
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
#include <pango/pango.h>
|
||||
|
||||
#include "eek-keysym.h"
|
||||
#include "eek-types.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define EEK_TYPE_CLUTTER_DRAWING_CONTEXT (eek_clutter_drawing_context_get_type())
|
||||
#define EEK_CLUTTER_DRAWING_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CLUTTER_DRAWING_CONTEXT, EekClutterDrawingContext))
|
||||
#define EEK_CLUTTER_DRAWING_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CLUTTER_DRAWING_CONTEXT, EekClutterDrawingContextClass))
|
||||
#define EEK_IS_CLUTTER_DRAWING_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CLUTTER_DRAWING_CONTEXT))
|
||||
#define EEK_IS_CLUTTER_DRAWING_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CLUTTER_DRAWING_CONTEXT))
|
||||
#define EEK_CLUTTER_DRAWING_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CLUTTER_DRAWING_CONTEXT, EekClutterDrawingContextClass))
|
||||
|
||||
typedef struct _EekClutterDrawingContext EekClutterDrawingContext;
|
||||
typedef struct _EekClutterDrawingContextClass EekClutterDrawingContextClass;
|
||||
typedef struct _EekClutterDrawingContextPrivate EekClutterDrawingContextPrivate;
|
||||
|
||||
struct _EekClutterDrawingContext
|
||||
{
|
||||
/*< private >*/
|
||||
GInitiallyUnowned parent;
|
||||
|
||||
/*< private >*/
|
||||
EekClutterDrawingContextPrivate *priv;
|
||||
};
|
||||
|
||||
struct _EekClutterDrawingContextClass
|
||||
{
|
||||
/*< private >*/
|
||||
GInitiallyUnownedClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_clutter_drawing_context_get_type
|
||||
(void) G_GNUC_CONST;
|
||||
EekClutterDrawingContext *eek_clutter_drawing_context_new
|
||||
(void);
|
||||
|
||||
void eek_clutter_drawing_context_set_outline_texture
|
||||
(EekClutterDrawingContext *context,
|
||||
EekOutline *outline,
|
||||
ClutterActor *texture);
|
||||
ClutterActor *eek_clutter_drawing_context_get_outline_texture
|
||||
(EekClutterDrawingContext *context,
|
||||
EekOutline *outline);
|
||||
|
||||
void eek_clutter_drawing_context_set_category_font
|
||||
(EekClutterDrawingContext *context,
|
||||
EekKeysymCategory category,
|
||||
PangoFontDescription *fonts);
|
||||
PangoFontDescription *eek_clutter_drawing_context_get_category_font
|
||||
(EekClutterDrawingContext *context,
|
||||
EekKeysymCategory category);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CLUTTER_DRAWING_CONTEXT_H */
|
||||
@@ -1,375 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2006 Sergey V. Udaltsov <svu@gnome.org>
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <cogl/cogl.h>
|
||||
#include <cogl/cogl-pango.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
#include "eek-clutter-key-actor.h"
|
||||
#include "eek-keysym.h"
|
||||
#include "eek-drawing.h"
|
||||
#include "eek-section.h"
|
||||
#include "eek-keyboard.h"
|
||||
|
||||
#define noKBDRAW_DEBUG
|
||||
|
||||
enum {
|
||||
PRESSED,
|
||||
RELEASED,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static guint signals[LAST_SIGNAL] = { 0, };
|
||||
|
||||
G_DEFINE_TYPE (EekClutterKeyActor, eek_clutter_key_actor,
|
||||
CLUTTER_TYPE_GROUP);
|
||||
|
||||
#define EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CLUTTER_KEY_ACTOR, EekClutterKeyActorPrivate))
|
||||
|
||||
struct _EekClutterKeyActorPrivate
|
||||
{
|
||||
EekClutterDrawingContext *context;
|
||||
EekKey *key;
|
||||
ClutterActor *texture;
|
||||
};
|
||||
|
||||
static ClutterActor *get_texture (EekClutterKeyActor *actor);
|
||||
static void draw_key_on_layout (EekClutterKeyActor *actor,
|
||||
PangoLayout *layout);
|
||||
static void key_enlarge (ClutterActor *actor);
|
||||
static void key_shrink (ClutterActor *actor);
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_real_paint (ClutterActor *self)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv = EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE (self);
|
||||
PangoLayout *layout;
|
||||
PangoRectangle logical_rect = { 0, };
|
||||
CoglColor color;
|
||||
ClutterGeometry geom;
|
||||
EekBounds bounds;
|
||||
|
||||
eek_element_get_bounds (EEK_ELEMENT(priv->key), &bounds);
|
||||
clutter_actor_set_anchor_point_from_gravity (self,
|
||||
CLUTTER_GRAVITY_CENTER);
|
||||
clutter_actor_set_position (self,
|
||||
bounds.x + bounds.width / 2,
|
||||
bounds.y + bounds.height / 2);
|
||||
|
||||
if (!priv->texture) {
|
||||
priv->texture = get_texture (EEK_CLUTTER_KEY_ACTOR(self));
|
||||
clutter_actor_set_position (priv->texture, 0, 0);
|
||||
clutter_container_add_actor (CLUTTER_CONTAINER(self), priv->texture);
|
||||
}
|
||||
|
||||
CLUTTER_ACTOR_CLASS (eek_clutter_key_actor_parent_class)->
|
||||
paint (self);
|
||||
|
||||
/* Draw the label on the key. */
|
||||
layout = clutter_actor_create_pango_layout (self, NULL);
|
||||
draw_key_on_layout (EEK_CLUTTER_KEY_ACTOR(self), layout);
|
||||
pango_layout_get_extents (layout, NULL, &logical_rect);
|
||||
|
||||
/* FIXME: Color should be configurable through a property. */
|
||||
cogl_color_set_from_4ub (&color, 0x80, 0x00, 0x00, 0xff);
|
||||
clutter_actor_get_allocation_geometry (self, &geom);
|
||||
cogl_pango_render_layout
|
||||
(layout,
|
||||
(geom.width - logical_rect.width / PANGO_SCALE) / 2,
|
||||
(geom.height - logical_rect.height / PANGO_SCALE) / 2,
|
||||
&color,
|
||||
0);
|
||||
g_object_unref (layout);
|
||||
}
|
||||
|
||||
/* FIXME: This is a workaround for the bug
|
||||
* http://bugzilla.openedhand.com/show_bug.cgi?id=2137 A developer
|
||||
* says this is not a right way to solve the original problem.
|
||||
*/
|
||||
static void
|
||||
eek_clutter_key_actor_real_get_preferred_width (ClutterActor *self,
|
||||
gfloat for_height,
|
||||
gfloat *min_width_p,
|
||||
gfloat *natural_width_p)
|
||||
{
|
||||
PangoLayout *layout;
|
||||
|
||||
/* Draw the label on the key - just to validate the glyph cache. */
|
||||
layout = clutter_actor_create_pango_layout (self, NULL);
|
||||
draw_key_on_layout (EEK_CLUTTER_KEY_ACTOR(self), layout);
|
||||
cogl_pango_ensure_glyph_cache_for_layout (layout);
|
||||
g_object_unref (layout);
|
||||
|
||||
CLUTTER_ACTOR_CLASS (eek_clutter_key_actor_parent_class)->
|
||||
get_preferred_width (self, for_height, min_width_p, natural_width_p);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_real_pressed (EekClutterKeyActor *self)
|
||||
{
|
||||
ClutterActor *actor, *section;
|
||||
|
||||
actor = CLUTTER_ACTOR(self);
|
||||
|
||||
/* Make sure the enlarged key show up on the keys which belong
|
||||
to other sections. */
|
||||
section = clutter_actor_get_parent (actor);
|
||||
clutter_actor_raise_top (section);
|
||||
clutter_actor_raise_top (actor);
|
||||
key_enlarge (actor);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_real_released (EekClutterKeyActor *self)
|
||||
{
|
||||
ClutterActor *actor, *section;
|
||||
|
||||
actor = CLUTTER_ACTOR(self);
|
||||
|
||||
/* Make sure the enlarged key show up on the keys which belong
|
||||
to other sections. */
|
||||
section = clutter_actor_get_parent (actor);
|
||||
clutter_actor_raise_top (section);
|
||||
clutter_actor_raise_top (actor);
|
||||
key_shrink (actor);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_dispose (GObject *object)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv = EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE(object);
|
||||
|
||||
if (priv->context) {
|
||||
g_object_unref (priv->context);
|
||||
priv->context = NULL;
|
||||
}
|
||||
if (priv->key) {
|
||||
g_object_unref (priv->key);
|
||||
priv->key = NULL;
|
||||
}
|
||||
G_OBJECT_CLASS (eek_clutter_key_actor_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_class_init (EekClutterKeyActorClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekClutterKeyActorPrivate));
|
||||
|
||||
actor_class->paint = eek_clutter_key_actor_real_paint;
|
||||
/* FIXME: This is a workaround for the bug
|
||||
* http://bugzilla.openedhand.com/show_bug.cgi?id=2137 A developer
|
||||
* says this is not a right way to solve the original problem.
|
||||
*/
|
||||
actor_class->get_preferred_width =
|
||||
eek_clutter_key_actor_real_get_preferred_width;
|
||||
|
||||
gobject_class->dispose = eek_clutter_key_actor_dispose;
|
||||
|
||||
/* signals */
|
||||
klass->pressed = eek_clutter_key_actor_real_pressed;
|
||||
klass->released = eek_clutter_key_actor_real_released;
|
||||
|
||||
signals[PRESSED] =
|
||||
g_signal_new ("pressed",
|
||||
G_TYPE_FROM_CLASS(gobject_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET(EekClutterKeyActorClass, pressed),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
signals[RELEASED] =
|
||||
g_signal_new ("released",
|
||||
G_TYPE_FROM_CLASS(gobject_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET(EekClutterKeyActorClass, released),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
on_button_press_event (ClutterActor *actor,
|
||||
ClutterEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv =
|
||||
EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE(actor);
|
||||
|
||||
/* priv->key will send back PRESSED event of actor. */
|
||||
g_signal_emit_by_name (priv->key, "pressed");
|
||||
}
|
||||
|
||||
static void
|
||||
on_button_release_event (ClutterActor *actor,
|
||||
ClutterEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv =
|
||||
EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE(actor);
|
||||
|
||||
/* priv->key will send back RELEASED event of actor. */
|
||||
g_signal_emit_by_name (priv->key, "released");
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_actor_init (EekClutterKeyActor *self)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv;
|
||||
|
||||
priv = self->priv = EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE(self);
|
||||
priv->key = NULL;
|
||||
priv->texture = NULL;
|
||||
|
||||
clutter_actor_set_reactive (CLUTTER_ACTOR(self), TRUE);
|
||||
g_signal_connect (self, "button-press-event",
|
||||
G_CALLBACK (on_button_press_event), NULL);
|
||||
g_signal_connect (self, "button-release-event",
|
||||
G_CALLBACK (on_button_release_event), NULL);
|
||||
}
|
||||
|
||||
ClutterActor *
|
||||
eek_clutter_key_actor_new (EekClutterDrawingContext *context, EekKey *key)
|
||||
{
|
||||
EekClutterKeyActor *actor;
|
||||
|
||||
actor = g_object_new (EEK_TYPE_CLUTTER_KEY_ACTOR, NULL);
|
||||
actor->priv->context = context;
|
||||
g_object_ref_sink (actor->priv->context);
|
||||
actor->priv->key = key;
|
||||
g_object_ref_sink (actor->priv->key);
|
||||
return CLUTTER_ACTOR(actor);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
on_key_animate_complete (ClutterAnimation *animation,
|
||||
gpointer user_data)
|
||||
{
|
||||
ClutterActor *actor = (ClutterActor*)user_data;
|
||||
|
||||
/* reset after effect */
|
||||
clutter_actor_set_opacity (actor, 0xff);
|
||||
clutter_actor_set_scale (actor, 1.0, 1.0);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
key_enlarge (ClutterActor *actor)
|
||||
{
|
||||
clutter_actor_set_scale (actor, 1.0, 1.0);
|
||||
clutter_actor_animate (actor, CLUTTER_EASE_IN_SINE, 150,
|
||||
"scale-x", 1.5,
|
||||
"scale-y", 1.5,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
key_shrink (ClutterActor *actor)
|
||||
{
|
||||
clutter_actor_set_scale (actor, 1.5, 1.5);
|
||||
clutter_actor_animate (actor, CLUTTER_EASE_OUT_SINE, 150,
|
||||
"scale-x", 1.0,
|
||||
"scale-y", 1.0,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
static ClutterActor *
|
||||
create_texture_for_key (EekKey *key)
|
||||
{
|
||||
ClutterActor *texture;
|
||||
cairo_t *cr;
|
||||
EekOutline *outline;
|
||||
EekBounds bounds;
|
||||
|
||||
outline = eek_key_get_outline (EEK_KEY(key));
|
||||
eek_element_get_bounds (EEK_ELEMENT(key), &bounds);
|
||||
|
||||
texture = clutter_cairo_texture_new (bounds.width, bounds.height);
|
||||
cr = clutter_cairo_texture_create (CLUTTER_CAIRO_TEXTURE(texture));
|
||||
eek_draw_outline (cr, outline);
|
||||
cairo_destroy (cr);
|
||||
return texture;
|
||||
}
|
||||
|
||||
static ClutterActor *
|
||||
get_texture (EekClutterKeyActor *actor)
|
||||
{
|
||||
ClutterActor *texture;
|
||||
EekOutline *outline;
|
||||
|
||||
outline = eek_key_get_outline (actor->priv->key);
|
||||
texture =
|
||||
eek_clutter_drawing_context_get_outline_texture (actor->priv->context,
|
||||
outline);
|
||||
if (texture == NULL) {
|
||||
texture = create_texture_for_key (actor->priv->key);
|
||||
eek_clutter_drawing_context_set_outline_texture (actor->priv->context,
|
||||
outline,
|
||||
texture);
|
||||
} else
|
||||
texture = clutter_clone_new (texture);
|
||||
return texture;
|
||||
}
|
||||
|
||||
static void
|
||||
draw_key_on_layout (EekClutterKeyActor *self,
|
||||
PangoLayout *layout)
|
||||
{
|
||||
EekClutterKeyActorPrivate *priv = EEK_CLUTTER_KEY_ACTOR_GET_PRIVATE (self);
|
||||
guint keysym;
|
||||
const gchar *label, *empty_label = "";
|
||||
EekKeysymCategory category;
|
||||
EekBounds bounds;
|
||||
PangoFontDescription *font;
|
||||
|
||||
keysym = eek_key_get_keysym (priv->key);
|
||||
if (keysym == EEK_INVALID_KEYSYM)
|
||||
return;
|
||||
category = eek_keysym_get_category (keysym);
|
||||
if (category == EEK_KEYSYM_CATEGORY_UNKNOWN)
|
||||
return;
|
||||
|
||||
font = eek_clutter_drawing_context_get_category_font (priv->context,
|
||||
category);
|
||||
pango_layout_set_font_description (layout, font);
|
||||
|
||||
eek_element_get_bounds (EEK_ELEMENT(priv->key), &bounds);
|
||||
pango_layout_set_width (layout, PANGO_SCALE * bounds.width);
|
||||
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);
|
||||
|
||||
label = eek_keysym_to_string (keysym);
|
||||
if (!label)
|
||||
label = empty_label;
|
||||
eek_draw_text_on_layout (layout, label);
|
||||
if (label != empty_label)
|
||||
g_free ((gpointer)label);
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_KEY_ACTOR_H
|
||||
#define EEK_CLUTTER_KEY_ACTOR_H 1
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
#include "eek-clutter-drawing-context.h"
|
||||
#include "eek-key.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define EEK_TYPE_CLUTTER_KEY_ACTOR (eek_clutter_key_actor_get_type())
|
||||
#define EEK_CLUTTER_KEY_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CLUTTER_KEY_ACTOR, EekClutterKeyActor))
|
||||
#define EEK_CLUTTER_KEY_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CLUTTER_KEY_ACTOR, EekClutterKeyActorClass))
|
||||
#define EEK_IS_CLUTTER_KEY_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CLUTTER_KEY_ACTOR))
|
||||
#define EEK_IS_CLUTTER_KEY_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CLUTTER_KEY_ACTOR))
|
||||
#define EEK_CLUTTER_KEY_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CLUTTER_KEY_ACTOR, EekClutterKeyActorClass))
|
||||
|
||||
typedef struct _EekClutterKeyActor EekClutterKeyActor;
|
||||
typedef struct _EekClutterKeyActorClass EekClutterKeyActorClass;
|
||||
typedef struct _EekClutterKeyActorPrivate EekClutterKeyActorPrivate;
|
||||
|
||||
struct _EekClutterKeyActor
|
||||
{
|
||||
/*< private >*/
|
||||
ClutterGroup parent;
|
||||
|
||||
/*< private >*/
|
||||
EekClutterKeyActorPrivate *priv;
|
||||
};
|
||||
|
||||
struct _EekClutterKeyActorClass
|
||||
{
|
||||
/*< private >*/
|
||||
ClutterGroupClass parent_class;
|
||||
|
||||
/* signals */
|
||||
void (* pressed) (EekClutterKeyActor *self);
|
||||
void (* released) (EekClutterKeyActor *self);
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_clutter_key_actor_get_type
|
||||
(void) G_GNUC_CONST;
|
||||
ClutterActor *eek_clutter_key_actor_new (EekClutterDrawingContext *context,
|
||||
EekKey *key);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CLUTTER_KEY_ACTOR_H */
|
||||
@@ -1,154 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-clutter-key.h"
|
||||
#include "eek-clutter-key-actor.h"
|
||||
|
||||
G_DEFINE_TYPE (EekClutterKey, eek_clutter_key, EEK_TYPE_KEY);
|
||||
|
||||
#define EEK_CLUTTER_KEY_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CLUTTER_KEY, EekClutterKeyPrivate))
|
||||
|
||||
struct _EekClutterKeyPrivate
|
||||
{
|
||||
EekClutterDrawingContext *context;
|
||||
ClutterActor *actor;
|
||||
};
|
||||
|
||||
static void
|
||||
eek_clutter_key_real_set_name (EekElement *self,
|
||||
const gchar *name)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_key_parent_class)->
|
||||
set_name (self, name);
|
||||
|
||||
if (priv->actor)
|
||||
clutter_actor_set_name (CLUTTER_ACTOR(priv->actor), name);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_real_set_bounds (EekElement *self,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_key_parent_class)->
|
||||
set_bounds (self, bounds);
|
||||
|
||||
if (priv->actor) {
|
||||
clutter_actor_set_position (priv->actor, bounds->x, bounds->y);
|
||||
clutter_actor_set_size (priv->actor, bounds->width, bounds->height);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_real_pressed (EekKey *key)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(key);
|
||||
|
||||
if (priv->actor)
|
||||
g_signal_emit_by_name (priv->actor, "pressed");
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_real_released (EekKey *key)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(key);
|
||||
|
||||
if (priv->actor)
|
||||
g_signal_emit_by_name (priv->actor, "released");
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_dispose (GObject *object)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(object);
|
||||
|
||||
if (priv->context) {
|
||||
g_object_unref (priv->context);
|
||||
priv->context = NULL;
|
||||
}
|
||||
if (priv->actor) {
|
||||
g_object_unref (priv->actor);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
G_OBJECT_CLASS (eek_clutter_key_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_class_init (EekClutterKeyClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
EekElementClass *element_class = EEK_ELEMENT_CLASS (klass);
|
||||
EekKeyClass *key_class = EEK_KEY_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekClutterKeyPrivate));
|
||||
|
||||
element_class->set_name = eek_clutter_key_real_set_name;
|
||||
element_class->set_bounds = eek_clutter_key_real_set_bounds;
|
||||
gobject_class->dispose = eek_clutter_key_dispose;
|
||||
|
||||
/* signals */
|
||||
key_class->pressed = eek_clutter_key_real_pressed;
|
||||
key_class->released = eek_clutter_key_real_released;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_key_init (EekClutterKey *self)
|
||||
{
|
||||
EekClutterKeyPrivate *priv;
|
||||
priv = self->priv = EEK_CLUTTER_KEY_GET_PRIVATE (self);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
|
||||
ClutterActor *
|
||||
eek_clutter_key_get_actor (EekClutterKey *key)
|
||||
{
|
||||
EekClutterKeyPrivate *priv = EEK_CLUTTER_KEY_GET_PRIVATE(key);
|
||||
|
||||
if (!priv->actor) {
|
||||
g_return_val_if_fail (priv->context, NULL);
|
||||
priv->actor = eek_clutter_key_actor_new (priv->context, EEK_KEY(key));
|
||||
g_object_ref_sink (priv->actor);
|
||||
}
|
||||
return priv->actor;
|
||||
}
|
||||
|
||||
EekKey *
|
||||
eek_clutter_key_new (EekClutterDrawingContext *context, gint column, gint row)
|
||||
{
|
||||
EekClutterKey *key;
|
||||
|
||||
g_return_val_if_fail (context, NULL);
|
||||
key = g_object_new (EEK_TYPE_CLUTTER_KEY,
|
||||
"column", column,
|
||||
"row", row,
|
||||
NULL);
|
||||
key->priv->context = context;
|
||||
g_object_ref_sink (key->priv->context);
|
||||
return EEK_KEY(key);
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_KEY_H
|
||||
#define EEK_CLUTTER_KEY_H 1
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
#include "eek-clutter-drawing-context.h"
|
||||
#include "eek-key.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define EEK_TYPE_CLUTTER_KEY (eek_clutter_key_get_type())
|
||||
#define EEK_CLUTTER_KEY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CLUTTER_KEY, EekClutterKey))
|
||||
#define EEK_CLUTTER_KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CLUTTER_KEY, EekClutterKeyClass))
|
||||
#define EEK_IS_CLUTTER_KEY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CLUTTER_KEY))
|
||||
#define EEK_IS_CLUTTER_KEY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CLUTTER_KEY))
|
||||
#define EEK_CLUTTER_KEY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CLUTTER_KEY, EekClutterKeyClass))
|
||||
|
||||
typedef struct _EekClutterKey EekClutterKey;
|
||||
typedef struct _EekClutterKeyClass EekClutterKeyClass;
|
||||
typedef struct _EekClutterKeyPrivate EekClutterKeyPrivate;
|
||||
|
||||
struct _EekClutterKey
|
||||
{
|
||||
/*< private >*/
|
||||
EekKey parent;
|
||||
|
||||
/*< private >*/
|
||||
EekClutterKeyPrivate *priv;
|
||||
};
|
||||
|
||||
struct _EekClutterKeyClass
|
||||
{
|
||||
/*< private >*/
|
||||
EekKeyClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_clutter_key_get_type (void) G_GNUC_CONST;
|
||||
EekKey * eek_clutter_key_new (EekClutterDrawingContext *context,
|
||||
gint column,
|
||||
gint row);
|
||||
ClutterActor *eek_clutter_key_get_actor (EekClutterKey *key);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CLUTTER_KEY_H */
|
||||
@@ -1,316 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:eek-clutter-keyboard
|
||||
* @short_description: #EekKeyboard that can be converted into a #ClutterActor
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-clutter-keyboard.h"
|
||||
#include "eek-clutter-drawing-context.h"
|
||||
#include "eek-keyboard.h"
|
||||
#include "eek-drawing.h"
|
||||
|
||||
G_DEFINE_TYPE (EekClutterKeyboard, eek_clutter_keyboard, EEK_TYPE_KEYBOARD);
|
||||
|
||||
#define EEK_CLUTTER_KEYBOARD_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CLUTTER_KEYBOARD, EekClutterKeyboardPrivate))
|
||||
|
||||
|
||||
struct _EekClutterKeyboardPrivate
|
||||
{
|
||||
EekClutterDrawingContext *context;
|
||||
ClutterActor *actor;
|
||||
|
||||
guint key_press_event_handler;
|
||||
guint key_release_event_handler;
|
||||
};
|
||||
|
||||
static void
|
||||
eek_clutter_keyboard_real_set_name (EekElement *self,
|
||||
const gchar *name)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv = EEK_CLUTTER_KEYBOARD_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_keyboard_parent_class)->
|
||||
set_name (self, name);
|
||||
|
||||
if (priv->actor)
|
||||
clutter_actor_set_name (priv->actor, name);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_keyboard_real_set_bounds (EekElement *self,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv = EEK_CLUTTER_KEYBOARD_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_keyboard_parent_class)->
|
||||
set_bounds (self, bounds);
|
||||
|
||||
if (priv->actor) {
|
||||
clutter_actor_set_position (priv->actor, bounds->x, bounds->y);
|
||||
clutter_actor_set_size (priv->actor, bounds->width, bounds->height);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
key_pressed_event (EekSection *section,
|
||||
EekKey *key,
|
||||
EekKeyboard *keyboard)
|
||||
{
|
||||
g_signal_emit_by_name (keyboard, "key-pressed", key);
|
||||
}
|
||||
|
||||
static void
|
||||
key_released_event (EekSection *section,
|
||||
EekKey *key,
|
||||
EekKeyboard *keyboard)
|
||||
{
|
||||
g_signal_emit_by_name (keyboard, "key-released", key);
|
||||
}
|
||||
|
||||
static EekSection *
|
||||
eek_clutter_keyboard_real_create_section (EekKeyboard *self)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv = EEK_CLUTTER_KEYBOARD_GET_PRIVATE(self);
|
||||
EekSection *section;
|
||||
ClutterActor *actor;
|
||||
|
||||
if (!priv->context) {
|
||||
priv->context = eek_clutter_drawing_context_new ();
|
||||
g_object_ref_sink (G_OBJECT(priv->context));
|
||||
}
|
||||
|
||||
section = eek_clutter_section_new (priv->context);
|
||||
g_return_val_if_fail (section, NULL);
|
||||
|
||||
g_signal_connect (section, "key-pressed",
|
||||
G_CALLBACK(key_pressed_event), self);
|
||||
g_signal_connect (section, "key-released",
|
||||
G_CALLBACK(key_released_event), self);
|
||||
|
||||
EEK_CONTAINER_GET_CLASS(self)->add_child (EEK_CONTAINER(self),
|
||||
EEK_ELEMENT(section));
|
||||
|
||||
actor = eek_clutter_keyboard_get_actor (EEK_CLUTTER_KEYBOARD(self));
|
||||
clutter_container_add_actor
|
||||
(CLUTTER_CONTAINER(actor),
|
||||
eek_clutter_section_get_actor (EEK_CLUTTER_SECTION(section)));
|
||||
|
||||
return section;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_keyboard_dispose (GObject *object)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv = EEK_CLUTTER_KEYBOARD_GET_PRIVATE(object);
|
||||
|
||||
if (priv->context) {
|
||||
g_object_unref (G_OBJECT(priv->context));
|
||||
priv->context = NULL;
|
||||
}
|
||||
if (priv->actor) {
|
||||
ClutterActor *stage;
|
||||
|
||||
stage = clutter_actor_get_stage (priv->actor);
|
||||
if (stage) {
|
||||
g_signal_handler_disconnect (stage,
|
||||
priv->key_press_event_handler);
|
||||
g_signal_handler_disconnect (stage,
|
||||
priv->key_release_event_handler);
|
||||
}
|
||||
g_object_unref (priv->actor);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
G_OBJECT_CLASS (eek_clutter_keyboard_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_keyboard_class_init (EekClutterKeyboardClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
EekElementClass *element_class = EEK_ELEMENT_CLASS (klass);
|
||||
EekKeyboardClass *keyboard_class = EEK_KEYBOARD_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekClutterKeyboardPrivate));
|
||||
|
||||
keyboard_class->create_section = eek_clutter_keyboard_real_create_section;
|
||||
element_class->set_name = eek_clutter_keyboard_real_set_name;
|
||||
element_class->set_bounds = eek_clutter_keyboard_real_set_bounds;
|
||||
gobject_class->dispose = eek_clutter_keyboard_dispose;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_keyboard_init (EekClutterKeyboard *self)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv;
|
||||
|
||||
priv = self->priv = EEK_CLUTTER_KEYBOARD_GET_PRIVATE(self);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_clutter_keyboard_new:
|
||||
*
|
||||
* Create a new #EekClutterKeyboard.
|
||||
*/
|
||||
EekKeyboard*
|
||||
eek_clutter_keyboard_new (void)
|
||||
{
|
||||
return g_object_new (EEK_TYPE_CLUTTER_KEYBOARD, NULL);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
on_clutter_key_press_event (ClutterActor *actor,
|
||||
ClutterEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
guint keycode;
|
||||
EekKey *key;
|
||||
|
||||
keycode = clutter_event_get_key_code (event);
|
||||
key = eek_keyboard_find_key_by_keycode (user_data, keycode);
|
||||
if (key) {
|
||||
g_signal_emit_by_name (key, "pressed", NULL);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
on_clutter_key_release_event (ClutterActor *actor,
|
||||
ClutterEvent *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
guint keycode;
|
||||
EekKey *key;
|
||||
|
||||
keycode = clutter_event_get_key_code (event);
|
||||
key = eek_keyboard_find_key_by_keycode (user_data, keycode);
|
||||
if (key) {
|
||||
g_signal_emit_by_name (key, "released", NULL);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
on_clutter_stage_resize (GObject *object,
|
||||
GParamSpec *param_spec,
|
||||
gpointer user_data)
|
||||
{
|
||||
ClutterActor *stage = CLUTTER_ACTOR(object);
|
||||
EekClutterKeyboard *keyboard = user_data;
|
||||
GValue value = {0};
|
||||
gfloat width, height, scale;
|
||||
EekBounds bounds;
|
||||
|
||||
eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds);
|
||||
g_object_get (G_OBJECT(stage), "width", &width, NULL);
|
||||
g_object_get (G_OBJECT(stage), "height", &height, NULL);
|
||||
|
||||
g_value_init (&value, G_TYPE_DOUBLE);
|
||||
|
||||
scale = width > height ? width / bounds.width : height / bounds.height;
|
||||
|
||||
g_value_set_double (&value, scale);
|
||||
g_object_set_property (G_OBJECT (stage),
|
||||
"scale-x",
|
||||
&value);
|
||||
|
||||
g_value_set_double (&value, scale);
|
||||
g_object_set_property (G_OBJECT (stage),
|
||||
"scale-y",
|
||||
&value);
|
||||
}
|
||||
|
||||
static void
|
||||
on_clutter_realize (ClutterActor *actor,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekClutterKeyboard *keyboard = user_data;
|
||||
EekClutterKeyboardPrivate *priv =
|
||||
EEK_CLUTTER_KEYBOARD_GET_PRIVATE(keyboard);
|
||||
ClutterActor *stage;
|
||||
|
||||
stage = clutter_actor_get_stage (priv->actor);
|
||||
priv->key_press_event_handler =
|
||||
g_signal_connect (stage, "key-press-event",
|
||||
G_CALLBACK (on_clutter_key_press_event), keyboard);
|
||||
priv->key_release_event_handler =
|
||||
g_signal_connect (stage, "key-release-event",
|
||||
G_CALLBACK (on_clutter_key_release_event), keyboard);
|
||||
g_signal_connect (stage, "notify::width",
|
||||
G_CALLBACK (on_clutter_stage_resize), keyboard);
|
||||
g_signal_connect (stage, "notify::height",
|
||||
G_CALLBACK (on_clutter_stage_resize), keyboard);
|
||||
}
|
||||
|
||||
static void
|
||||
update_category_fonts (EekClutterKeyboard *keyboard)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv =
|
||||
EEK_CLUTTER_KEYBOARD_GET_PRIVATE(keyboard);
|
||||
PangoContext *context;
|
||||
PangoLayout *layout;
|
||||
PangoFontDescription *fonts[EEK_KEYSYM_CATEGORY_LAST], *base_font;
|
||||
gint i;
|
||||
|
||||
context = clutter_actor_get_pango_context (priv->actor);
|
||||
layout = pango_layout_new (context);
|
||||
base_font = pango_font_description_from_string ("Sans");
|
||||
pango_layout_set_font_description (layout, base_font);
|
||||
pango_font_description_free (base_font);
|
||||
eek_get_fonts (EEK_KEYBOARD(keyboard),
|
||||
layout,
|
||||
(PangoFontDescription **)&fonts);
|
||||
for (i = 0; i < EEK_KEYSYM_CATEGORY_LAST; i++) {
|
||||
eek_clutter_drawing_context_set_category_font (priv->context,
|
||||
i,
|
||||
fonts[i]);
|
||||
pango_font_description_free (fonts[i]);
|
||||
}
|
||||
g_object_unref (G_OBJECT(layout));
|
||||
}
|
||||
|
||||
ClutterActor *
|
||||
eek_clutter_keyboard_get_actor (EekClutterKeyboard *keyboard)
|
||||
{
|
||||
EekClutterKeyboardPrivate *priv =
|
||||
EEK_CLUTTER_KEYBOARD_GET_PRIVATE(keyboard);
|
||||
if (!priv->actor) {
|
||||
priv->actor = clutter_group_new ();
|
||||
g_object_ref_sink (priv->actor);
|
||||
g_signal_connect (priv->actor, "realize",
|
||||
G_CALLBACK (on_clutter_realize), keyboard);
|
||||
g_return_val_if_fail (priv->actor, NULL);
|
||||
|
||||
eek_keyboard_realize (EEK_KEYBOARD(keyboard));
|
||||
update_category_fonts (keyboard);
|
||||
}
|
||||
return priv->actor;
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_KEYBOARD_H
|
||||
#define EEK_CLUTTER_KEYBOARD_H 1
|
||||
|
||||
#include "eek-clutter-section.h"
|
||||
#include "eek-keyboard.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define EEK_TYPE_CLUTTER_KEYBOARD (eek_clutter_keyboard_get_type())
|
||||
#define EEK_CLUTTER_KEYBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CLUTTER_KEYBOARD, EekClutterKeyboard))
|
||||
#define EEK_CLUTTER_KEYBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CLUTTER_KEYBOARD, EekClutterKeyboardClass))
|
||||
#define EEK_IS_CLUTTER_KEYBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CLUTTER_KEYBOARD))
|
||||
#define EEK_IS_CLUTTER_KEYBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CLUTTER_KEYBOARD))
|
||||
#define EEK_CLUTTER_KEYBOARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CLUTTER_KEYBOARD, EekClutterKeyboardClass))
|
||||
|
||||
typedef struct _EekClutterKeyboard EekClutterKeyboard;
|
||||
typedef struct _EekClutterKeyboardClass EekClutterKeyboardClass;
|
||||
typedef struct _EekClutterKeyboardPrivate EekClutterKeyboardPrivate;
|
||||
|
||||
struct _EekClutterKeyboard
|
||||
{
|
||||
/*< private >*/
|
||||
EekKeyboard parent;
|
||||
|
||||
EekClutterKeyboardPrivate *priv;
|
||||
};
|
||||
|
||||
struct _EekClutterKeyboardClass
|
||||
{
|
||||
/*< private >*/
|
||||
EekKeyboardClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_clutter_keyboard_get_type (void) G_GNUC_CONST;
|
||||
EekKeyboard *eek_clutter_keyboard_new (void);
|
||||
ClutterActor *eek_clutter_keyboard_get_actor (EekClutterKeyboard *keyboard);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CLUTTER_KEYBOARD_H */
|
||||
@@ -1,190 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-clutter-section.h"
|
||||
|
||||
G_DEFINE_TYPE (EekClutterSection, eek_clutter_section, EEK_TYPE_SECTION);
|
||||
|
||||
#define EEK_CLUTTER_SECTION_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CLUTTER_SECTION, EekClutterSectionPrivate))
|
||||
|
||||
struct _EekClutterSectionPrivate
|
||||
{
|
||||
EekClutterDrawingContext *context;
|
||||
ClutterActor *actor;
|
||||
};
|
||||
|
||||
static void
|
||||
eek_clutter_section_real_set_name (EekElement *self,
|
||||
const gchar *name)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_section_parent_class)->
|
||||
set_name (self, name);
|
||||
|
||||
if (priv->actor)
|
||||
clutter_actor_set_name (priv->actor, name);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_section_real_set_bounds (EekElement *self,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(self);
|
||||
|
||||
EEK_ELEMENT_CLASS (eek_clutter_section_parent_class)->
|
||||
set_bounds (self, bounds);
|
||||
|
||||
if (priv->actor) {
|
||||
clutter_actor_set_position (priv->actor, bounds->x, bounds->y);
|
||||
clutter_actor_set_size (priv->actor, bounds->width, bounds->height);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_section_real_set_angle (EekSection *self,
|
||||
gint angle)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(self);
|
||||
|
||||
EEK_SECTION_CLASS (eek_clutter_section_parent_class)->
|
||||
set_angle (self, angle);
|
||||
|
||||
g_return_if_fail (priv->actor);
|
||||
|
||||
clutter_actor_set_rotation (priv->actor,
|
||||
CLUTTER_Z_AXIS,
|
||||
eek_section_get_angle (self),
|
||||
0, 0, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
pressed_event (EekKey *key, gpointer user_data)
|
||||
{
|
||||
g_signal_emit_by_name (user_data, "key-pressed", key);
|
||||
}
|
||||
|
||||
static void
|
||||
released_event (EekKey *key, gpointer user_data)
|
||||
{
|
||||
g_signal_emit_by_name (user_data, "key-released", key);
|
||||
}
|
||||
|
||||
static EekKey *
|
||||
eek_clutter_section_real_create_key (EekSection *self,
|
||||
gint column,
|
||||
gint row)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(self);
|
||||
EekKey *key;
|
||||
gint num_columns, num_rows;
|
||||
EekOrientation orientation;
|
||||
ClutterActor *actor;
|
||||
|
||||
num_rows = eek_section_get_n_rows (self);
|
||||
g_return_val_if_fail (0 <= row && row < num_rows, NULL);
|
||||
eek_section_get_row (self, row, &num_columns, &orientation);
|
||||
g_return_val_if_fail (column < num_columns, NULL);
|
||||
|
||||
key = eek_clutter_key_new (priv->context, column, row);
|
||||
g_return_val_if_fail (key, NULL);
|
||||
|
||||
g_signal_connect (key, "pressed", G_CALLBACK(pressed_event), self);
|
||||
g_signal_connect (key, "released", G_CALLBACK(released_event), self);
|
||||
|
||||
EEK_CONTAINER_GET_CLASS(self)->add_child (EEK_CONTAINER(self),
|
||||
EEK_ELEMENT(key));
|
||||
|
||||
actor = eek_clutter_section_get_actor (EEK_CLUTTER_SECTION(self));
|
||||
clutter_container_add_actor
|
||||
(CLUTTER_CONTAINER(actor),
|
||||
eek_clutter_key_get_actor (EEK_CLUTTER_KEY(key)));
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_section_dispose (GObject *object)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(object);
|
||||
|
||||
if (priv->context) {
|
||||
g_object_unref (priv->context);
|
||||
priv->context = NULL;
|
||||
}
|
||||
if (priv->actor) {
|
||||
g_object_unref (priv->actor);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
G_OBJECT_CLASS (eek_clutter_section_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_section_class_init (EekClutterSectionClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
EekElementClass *element_class = EEK_ELEMENT_CLASS (klass);
|
||||
EekSectionClass *section_class = EEK_SECTION_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class, sizeof (EekClutterSectionPrivate));
|
||||
|
||||
section_class->set_angle = eek_clutter_section_real_set_angle;
|
||||
section_class->create_key = eek_clutter_section_real_create_key;
|
||||
element_class->set_name = eek_clutter_section_real_set_name;
|
||||
element_class->set_bounds = eek_clutter_section_real_set_bounds;
|
||||
gobject_class->dispose = eek_clutter_section_dispose;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_clutter_section_init (EekClutterSection *self)
|
||||
{
|
||||
EekClutterSectionPrivate *priv;
|
||||
priv = self->priv = EEK_CLUTTER_SECTION_GET_PRIVATE (self);
|
||||
priv->actor = NULL;
|
||||
}
|
||||
|
||||
ClutterActor *
|
||||
eek_clutter_section_get_actor (EekClutterSection *section)
|
||||
{
|
||||
EekClutterSectionPrivate *priv = EEK_CLUTTER_SECTION_GET_PRIVATE(section);
|
||||
if (!priv->actor) {
|
||||
priv->actor = clutter_group_new ();
|
||||
g_object_ref_sink (priv->actor);
|
||||
}
|
||||
return priv->actor;
|
||||
}
|
||||
|
||||
EekSection *
|
||||
eek_clutter_section_new (EekClutterDrawingContext *context)
|
||||
{
|
||||
EekClutterSection *section;
|
||||
|
||||
g_return_val_if_fail (context, NULL);
|
||||
section = g_object_new (EEK_TYPE_CLUTTER_SECTION, NULL);
|
||||
section->priv->context = context;
|
||||
g_object_ref_sink (G_OBJECT(section->priv->context));
|
||||
|
||||
return EEK_SECTION(section);
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_SECTION_H
|
||||
#define EEK_CLUTTER_SECTION_H 1
|
||||
|
||||
#include "eek-clutter-drawing-context.h"
|
||||
#include "eek-clutter-key.h"
|
||||
#include "eek-section.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
#define EEK_TYPE_CLUTTER_SECTION (eek_clutter_section_get_type())
|
||||
#define EEK_CLUTTER_SECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CLUTTER_SECTION, EekClutterSection))
|
||||
#define EEK_CLUTTER_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CLUTTER_SECTION, EekClutterSectionClass))
|
||||
#define EEK_IS_CLUTTER_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CLUTTER_SECTION))
|
||||
#define EEK_IS_CLUTTER_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CLUTTER_SECTION))
|
||||
#define EEK_CLUTTER_SECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CLUTTER_SECTION, EekClutterSectionClass))
|
||||
|
||||
typedef struct _EekClutterSection EekClutterSection;
|
||||
typedef struct _EekClutterSectionClass EekClutterSectionClass;
|
||||
typedef struct _EekClutterSectionPrivate EekClutterSectionPrivate;
|
||||
|
||||
struct _EekClutterSection
|
||||
{
|
||||
/*< private >*/
|
||||
EekSection parent;
|
||||
|
||||
EekClutterSectionPrivate *priv;
|
||||
};
|
||||
|
||||
struct _EekClutterSectionClass
|
||||
{
|
||||
/*< private >*/
|
||||
EekSectionClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_clutter_section_get_type (void) G_GNUC_CONST;
|
||||
EekSection * eek_clutter_section_new (EekClutterDrawingContext *context);
|
||||
ClutterActor *eek_clutter_section_get_actor (EekClutterSection *section);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CLUTTER_SECTION_H */
|
||||
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CLUTTER_H
|
||||
#define EEK_CLUTTER_H 1
|
||||
|
||||
#include "eek.h"
|
||||
#include "eek-clutter-keyboard.h"
|
||||
|
||||
#endif /* EEK_CLUTTER_H */
|
||||
@@ -1,270 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:eek-container
|
||||
* @short_description: Base class of a keyboard container
|
||||
*
|
||||
* The #EekContainerClass class represents a keyboard container, which
|
||||
* shall be used to implement #EekKeyboard and #EekSection.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-container.h"
|
||||
|
||||
enum {
|
||||
CHILD_ADDED,
|
||||
CHILD_REMOVED,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
static guint signals[LAST_SIGNAL] = { 0, };
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (EekContainer, eek_container, EEK_TYPE_ELEMENT);
|
||||
|
||||
#define EEK_CONTAINER_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_CONTAINER, EekContainerPrivate))
|
||||
|
||||
|
||||
struct _EekContainerPrivate
|
||||
{
|
||||
GSList *children;
|
||||
};
|
||||
|
||||
static void
|
||||
eek_container_real_add_child (EekContainer *self,
|
||||
EekElement *child)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(self);
|
||||
|
||||
g_return_if_fail (EEK_IS_ELEMENT(child));
|
||||
g_object_ref_sink (child);
|
||||
|
||||
priv->children = g_slist_prepend (priv->children, child);
|
||||
eek_element_set_parent (child, EEK_ELEMENT(self));
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_real_remove_child (EekContainer *self,
|
||||
EekElement *child)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(self);
|
||||
GSList *head;
|
||||
|
||||
g_return_if_fail (EEK_IS_ELEMENT(child));
|
||||
head = g_slist_find (priv->children, child);
|
||||
g_return_if_fail (head);
|
||||
g_object_unref (child);
|
||||
priv->children = g_slist_remove_link (priv->children, head);
|
||||
eek_element_set_parent (child, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_real_foreach_child (EekContainer *self,
|
||||
EekCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(self);
|
||||
GSList *head;
|
||||
|
||||
for (head = priv->children; head; head = g_slist_next (head))
|
||||
(*callback) (EEK_ELEMENT(head->data), user_data);
|
||||
}
|
||||
|
||||
static EekElement *
|
||||
eek_container_real_find (EekContainer *self,
|
||||
EekCompareFunc func,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(self);
|
||||
GSList *head;
|
||||
|
||||
head = g_slist_find_custom (priv->children, user_data, (GCompareFunc)func);
|
||||
if (head)
|
||||
return head->data;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_dispose (GObject *object)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(object);
|
||||
GSList *head;
|
||||
|
||||
for (head = priv->children; head; head = g_slist_next (head)) {
|
||||
if (head->data) {
|
||||
g_object_unref (head->data);
|
||||
head->data = NULL;
|
||||
}
|
||||
}
|
||||
G_OBJECT_CLASS(eek_container_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_finalize (GObject *object)
|
||||
{
|
||||
EekContainerPrivate *priv = EEK_CONTAINER_GET_PRIVATE(object);
|
||||
|
||||
g_slist_free (priv->children);
|
||||
G_OBJECT_CLASS(eek_container_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_class_init (EekContainerClass *klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekContainerPrivate));
|
||||
|
||||
klass->add_child = eek_container_real_add_child;
|
||||
klass->remove_child = eek_container_real_remove_child;
|
||||
klass->foreach_child = eek_container_real_foreach_child;
|
||||
klass->find = eek_container_real_find;
|
||||
|
||||
gobject_class->finalize = eek_container_finalize;
|
||||
gobject_class->dispose = eek_container_dispose;
|
||||
|
||||
/**
|
||||
* EekContainer::child-added:
|
||||
* @container: an #EekContainer
|
||||
* @element: an #EekElement
|
||||
*
|
||||
* The ::child-added signal is emitted each time an element is
|
||||
* added to @container.
|
||||
*/
|
||||
signals[CHILD_ADDED] =
|
||||
g_signal_new ("child-added",
|
||||
G_TYPE_FROM_CLASS(gobject_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET(EekContainerClass, child_added),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1,
|
||||
EEK_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* EekContainer::child-removed:
|
||||
* @container: an #EekContainer
|
||||
* @element: an #EekElement
|
||||
*
|
||||
* The ::child-removed signal is emitted each time an element is
|
||||
* removed from @container.
|
||||
*/
|
||||
signals[CHILD_REMOVED] =
|
||||
g_signal_new ("child-removed",
|
||||
G_TYPE_FROM_CLASS(gobject_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET(EekContainerClass, child_removed),
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1,
|
||||
EEK_TYPE_ELEMENT);
|
||||
}
|
||||
|
||||
static void
|
||||
eek_container_init (EekContainer *self)
|
||||
{
|
||||
EekContainerPrivate *priv;
|
||||
|
||||
priv = self->priv = EEK_CONTAINER_GET_PRIVATE(self);
|
||||
priv->children = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_container_foreach_child:
|
||||
* @container: an #EekContainer
|
||||
* @callback: an #EekCallback
|
||||
* @user_data: additional data passed to @callback
|
||||
*
|
||||
* Enumerate children of @container and run @callback with each child.
|
||||
*/
|
||||
void
|
||||
eek_container_foreach_child (EekContainer *container,
|
||||
EekCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_CONTAINER(container));
|
||||
EEK_CONTAINER_GET_CLASS(container)->foreach_child (container,
|
||||
callback,
|
||||
user_data);
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_container_find:
|
||||
* @container: an #EekContainer
|
||||
* @func: function to be used to compare two children
|
||||
* @user_data: additional data passed to @func
|
||||
*
|
||||
* Find a child which matches the criteria supplied as @func, in @container.
|
||||
* Returns: an #EekElement or NULL on failure
|
||||
*/
|
||||
EekElement *
|
||||
eek_container_find (EekContainer *container,
|
||||
EekCompareFunc func,
|
||||
gpointer user_data)
|
||||
{
|
||||
g_return_val_if_fail (EEK_IS_CONTAINER(container), NULL);
|
||||
return EEK_CONTAINER_GET_CLASS(container)->find (container,
|
||||
func,
|
||||
user_data);
|
||||
}
|
||||
|
||||
struct _FbpData
|
||||
{
|
||||
EekKey *key;
|
||||
gint x, y;
|
||||
};
|
||||
typedef struct _FbpData FbpData;
|
||||
|
||||
static gint
|
||||
compare_element_by_position (EekElement *element, gpointer user_data)
|
||||
{
|
||||
EekBounds bounds;
|
||||
FbpData *data = user_data;
|
||||
|
||||
eek_element_get_bounds (element, &bounds);
|
||||
if (bounds.x <= data->x && bounds.y <= data->y &&
|
||||
data->x <= (bounds.x + bounds.width) &&
|
||||
data->y <= (bounds.y + bounds.height))
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
EekElement *
|
||||
eek_container_find_by_position (EekContainer *container,
|
||||
gdouble x,
|
||||
gdouble y)
|
||||
{
|
||||
EekBounds bounds;
|
||||
FbpData data;
|
||||
|
||||
g_return_val_if_fail (EEK_IS_CONTAINER(container), NULL);
|
||||
eek_element_get_bounds (EEK_ELEMENT(container), &bounds);
|
||||
data.x = x - bounds.x;
|
||||
data.y = y - bounds.y;
|
||||
return eek_container_find (container,
|
||||
compare_element_by_position,
|
||||
&data);
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
#ifndef EEK_CONTAINER_H
|
||||
#define EEK_CONTAINER_H 1
|
||||
|
||||
#include "eek-element.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define EEK_TYPE_CONTAINER (eek_container_get_type())
|
||||
#define EEK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEK_TYPE_CONTAINER, EekContainer))
|
||||
#define EEK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EEK_TYPE_CONTAINER, EekContainerClass))
|
||||
#define EEK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EEK_TYPE_CONTAINER))
|
||||
#define EEK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EEK_TYPE_CONTAINER))
|
||||
#define EEK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EEK_TYPE_CONTAINER, EekContainerClass))
|
||||
|
||||
typedef struct _EekContainerClass EekContainerClass;
|
||||
typedef struct _EekContainerPrivate EekContainerPrivate;
|
||||
|
||||
typedef void (*EekCallback) (EekElement *element, gpointer user_data);
|
||||
typedef gint (*EekCompareFunc) (EekElement *element, gpointer user_data);
|
||||
|
||||
struct _EekContainer
|
||||
{
|
||||
/*< private >*/
|
||||
EekElement parent;
|
||||
|
||||
EekContainerPrivate *priv;
|
||||
};
|
||||
|
||||
/**
|
||||
* EekContainerClass:
|
||||
* @foreach_child: virtual function for iterating over the container's children
|
||||
* @find: virtual function for looking up a child
|
||||
* @child_added: class handler for #EekContainer::child-added
|
||||
* @child_removed: class handler for #EekContainer::child-added
|
||||
*/
|
||||
struct _EekContainerClass
|
||||
{
|
||||
/*< private >*/
|
||||
EekElementClass parent_class;
|
||||
|
||||
void (* add_child) (EekContainer *self,
|
||||
EekElement *element);
|
||||
|
||||
void (* remove_child) (EekContainer *self,
|
||||
EekElement *element);
|
||||
|
||||
/*< public >*/
|
||||
void (* foreach_child) (EekContainer *self,
|
||||
EekCallback callback,
|
||||
gpointer user_data);
|
||||
EekElement *(* find) (EekContainer *self,
|
||||
EekCompareFunc func,
|
||||
gpointer user_data);
|
||||
|
||||
/* signals */
|
||||
void (* child_added) (EekContainer *self,
|
||||
EekElement *element);
|
||||
void (* child_removed) (EekContainer *self,
|
||||
EekElement *element);
|
||||
|
||||
/*< private >*/
|
||||
/* padding */
|
||||
gpointer pdummy[24];
|
||||
};
|
||||
|
||||
GType eek_container_get_type (void) G_GNUC_CONST;
|
||||
|
||||
void eek_container_foreach_child (EekContainer *container,
|
||||
EekCallback callback,
|
||||
gpointer user_data);
|
||||
EekElement *eek_container_find (EekContainer *container,
|
||||
EekCompareFunc func,
|
||||
gpointer user_data);
|
||||
EekElement *eek_container_find_by_position (EekContainer *container,
|
||||
gdouble x,
|
||||
gdouble y);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_CONTAINER_H */
|
||||
@@ -1,466 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2006 Sergey V. Udaltsov <svu@gnome.org>
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-keyboard.h"
|
||||
#include "eek-key.h"
|
||||
#include "eek-drawing.h"
|
||||
#include "eek-keysym.h"
|
||||
|
||||
|
||||
void
|
||||
eek_draw_text_on_layout (PangoLayout *layout,
|
||||
const gchar *text)
|
||||
{
|
||||
/* pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER); */
|
||||
pango_layout_set_text (layout, text, -1);
|
||||
}
|
||||
|
||||
struct _GetFontSizeCallbackData
|
||||
{
|
||||
PangoLayout *layout;
|
||||
EekKeysymCategory category;
|
||||
gint minimum_font_size;
|
||||
gint font_size;
|
||||
};
|
||||
typedef struct _GetFontSizeCallbackData GetFontSizeCallbackData;
|
||||
|
||||
static gint
|
||||
get_font_size (const gchar *text,
|
||||
EekBounds *bounds,
|
||||
PangoLayout *layout)
|
||||
{
|
||||
gdouble scale_x, scale_y;
|
||||
const PangoFontDescription *base_font_desc;
|
||||
PangoFontDescription *font_desc;
|
||||
PangoRectangle logical_rect = { 0, };
|
||||
gint font_size;
|
||||
|
||||
layout = pango_layout_copy (layout);
|
||||
base_font_desc = pango_layout_get_font_description (layout);
|
||||
font_desc = pango_font_description_copy (base_font_desc);
|
||||
|
||||
font_size = eek_bounds_long_side (bounds) * PANGO_SCALE;
|
||||
pango_font_description_set_size (font_desc, font_size);
|
||||
pango_layout_set_font_description (layout, font_desc);
|
||||
pango_font_description_free (font_desc);
|
||||
|
||||
eek_draw_text_on_layout (layout, text);
|
||||
pango_layout_get_extents (layout, NULL, &logical_rect);
|
||||
|
||||
scale_x = scale_y = 1.0;
|
||||
if (logical_rect.width > bounds->width * PANGO_SCALE)
|
||||
scale_x = bounds->width * PANGO_SCALE / logical_rect.width;
|
||||
if (logical_rect.height > bounds->height * PANGO_SCALE)
|
||||
scale_y = bounds->height * PANGO_SCALE / logical_rect.height;
|
||||
g_object_unref (layout);
|
||||
return font_size * (scale_x < scale_y ? scale_x : scale_y);
|
||||
}
|
||||
|
||||
static void
|
||||
egf_key_callback (EekElement *element,
|
||||
gpointer user_data)
|
||||
{
|
||||
EekKey *key = EEK_KEY(element);
|
||||
GetFontSizeCallbackData *data = user_data;
|
||||
gdouble font_size;
|
||||
guint keysym;
|
||||
EekBounds bounds;
|
||||
gchar *label;
|
||||
|
||||
keysym = eek_key_get_keysym (key);
|
||||
if (keysym == EEK_INVALID_KEYSYM ||
|
||||
eek_keysym_get_category (keysym) != data->category)
|
||||
return;
|
||||
|
||||
eek_element_get_bounds (EEK_ELEMENT(key), &bounds);
|
||||
label = eek_keysym_to_string (keysym);
|
||||
if (!label)
|
||||
return;
|
||||
font_size = get_font_size (label, &bounds, data->layout);
|
||||
if (font_size < data->font_size && font_size >= data->minimum_font_size)
|
||||
data->font_size = font_size;
|
||||
g_free (label);
|
||||
}
|
||||
|
||||
static void
|
||||
egf_section_callback (EekElement *element,
|
||||
gpointer user_data)
|
||||
{
|
||||
eek_container_foreach_child (EEK_CONTAINER(element),
|
||||
egf_key_callback,
|
||||
user_data);
|
||||
}
|
||||
|
||||
static PangoFontDescription *
|
||||
get_font_for_category (EekKeyboard *keyboard,
|
||||
EekKeysymCategory category,
|
||||
PangoLayout *layout,
|
||||
gdouble minimum_font_size,
|
||||
gdouble maximum_font_size)
|
||||
{
|
||||
GetFontSizeCallbackData data;
|
||||
PangoFontDescription *font_desc;
|
||||
const PangoFontDescription *base_font_desc;
|
||||
|
||||
data.layout = layout;
|
||||
data.category = category;
|
||||
data.minimum_font_size = minimum_font_size;
|
||||
data.font_size = maximum_font_size;
|
||||
|
||||
eek_container_foreach_child (EEK_CONTAINER(keyboard),
|
||||
egf_section_callback,
|
||||
&data);
|
||||
|
||||
base_font_desc = pango_layout_get_font_description (layout);
|
||||
font_desc = pango_font_description_copy (base_font_desc);
|
||||
pango_font_description_set_size (font_desc, data.font_size);
|
||||
|
||||
return font_desc;
|
||||
}
|
||||
|
||||
void
|
||||
eek_get_fonts (EekKeyboard *keyboard,
|
||||
PangoLayout *layout,
|
||||
PangoFontDescription **fonts)
|
||||
{
|
||||
EekBounds bounds;
|
||||
PangoFontDescription *font_desc;
|
||||
gint font_size;
|
||||
|
||||
/* font for EEK_KEYSYM_CATEGORY_LETTER */
|
||||
eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds);
|
||||
font_desc = get_font_for_category (keyboard,
|
||||
EEK_KEYSYM_CATEGORY_LETTER,
|
||||
layout,
|
||||
0,
|
||||
eek_bounds_long_side (&bounds) *
|
||||
PANGO_SCALE);
|
||||
font_size = pango_font_description_get_size (font_desc);
|
||||
fonts[EEK_KEYSYM_CATEGORY_LETTER] = font_desc;
|
||||
|
||||
/* font for EEK_KEYSYM_CATEGORY_FUNCTION */
|
||||
font_desc = get_font_for_category (keyboard,
|
||||
EEK_KEYSYM_CATEGORY_FUNCTION,
|
||||
layout,
|
||||
font_size * 0.3,
|
||||
font_size);
|
||||
fonts[EEK_KEYSYM_CATEGORY_FUNCTION] = font_desc;
|
||||
|
||||
/* font for EEK_KEYSYM_CATEGORY_KEYNAME */
|
||||
font_desc = get_font_for_category (keyboard,
|
||||
EEK_KEYSYM_CATEGORY_KEYNAME,
|
||||
layout,
|
||||
font_size * 0.3,
|
||||
font_size);
|
||||
fonts[EEK_KEYSYM_CATEGORY_KEYNAME] = font_desc;
|
||||
}
|
||||
|
||||
void
|
||||
eek_draw_outline (cairo_t *cr, EekOutline *outline)
|
||||
{
|
||||
cairo_pattern_t *pat;
|
||||
|
||||
cairo_set_line_width (cr, 1);
|
||||
cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
|
||||
|
||||
pat = cairo_pattern_create_linear (0.0, 0.0, 0.0, 256.0);
|
||||
cairo_pattern_add_color_stop_rgba (pat, 1, 0.5, 0.5, 0.5, 1);
|
||||
cairo_pattern_add_color_stop_rgba (pat, 0, 1, 1, 1, 1);
|
||||
|
||||
cairo_set_source (cr, pat);
|
||||
|
||||
eek_draw_rounded_polygon (cr,
|
||||
TRUE,
|
||||
outline->corner_radius,
|
||||
outline->points,
|
||||
outline->num_points);
|
||||
|
||||
cairo_pattern_destroy (pat);
|
||||
|
||||
cairo_set_source_rgba (cr, 0.3, 0.3, 0.3, 0.5);
|
||||
eek_draw_rounded_polygon (cr,
|
||||
FALSE,
|
||||
outline->corner_radius,
|
||||
outline->points,
|
||||
outline->num_points);
|
||||
}
|
||||
|
||||
void
|
||||
eek_draw_key_label (cairo_t *cr,
|
||||
EekKey *key,
|
||||
PangoFontDescription **fonts)
|
||||
{
|
||||
guint keysym;
|
||||
EekKeysymCategory category;
|
||||
gchar *label;
|
||||
PangoLayout *layout;
|
||||
PangoRectangle logical_rect = { 0, };
|
||||
EekBounds bounds;
|
||||
|
||||
keysym = eek_key_get_keysym (key);
|
||||
if (keysym == EEK_INVALID_KEYSYM)
|
||||
return;
|
||||
|
||||
category = eek_keysym_get_category (keysym);
|
||||
if (category == EEK_KEYSYM_CATEGORY_UNKNOWN)
|
||||
return;
|
||||
|
||||
label = eek_keysym_to_string (keysym);
|
||||
if (!label)
|
||||
return;
|
||||
|
||||
eek_element_get_bounds (EEK_ELEMENT(key), &bounds);
|
||||
layout = pango_cairo_create_layout (cr);
|
||||
pango_layout_set_font_description (layout, fonts[category]);
|
||||
pango_layout_set_width (layout, PANGO_SCALE * bounds.width);
|
||||
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);
|
||||
pango_layout_set_text (layout, label, -1);
|
||||
pango_layout_get_extents (layout, NULL, &logical_rect);
|
||||
cairo_rel_move_to (cr,
|
||||
(bounds.width - logical_rect.width / PANGO_SCALE) / 2,
|
||||
(bounds.height - logical_rect.height / PANGO_SCALE) / 2);
|
||||
pango_cairo_show_layout (cr, layout);
|
||||
g_free (label);
|
||||
g_object_unref (layout);
|
||||
}
|
||||
|
||||
/*
|
||||
* The functions below are borrowed from
|
||||
* libgnomekbd/gkbd-keyboard-drawing.c.
|
||||
* Copyright (C) 2006 Sergey V. Udaltsov <svu@gnome.org>
|
||||
*
|
||||
* length(), point_line_distance(), normal_form(), inverse(), multiply(),
|
||||
* intersect(), rounded_corner(), draw_rounded_polygon()
|
||||
*/
|
||||
|
||||
static gdouble
|
||||
length (gdouble x, gdouble y)
|
||||
{
|
||||
return sqrt (x * x + y * y);
|
||||
}
|
||||
|
||||
static gdouble
|
||||
point_line_distance (gdouble ax, gdouble ay, gdouble nx, gdouble ny)
|
||||
{
|
||||
return ax * nx + ay * ny;
|
||||
}
|
||||
|
||||
static void
|
||||
normal_form (gdouble ax, gdouble ay,
|
||||
gdouble bx, gdouble by,
|
||||
gdouble * nx, gdouble * ny, gdouble * d)
|
||||
{
|
||||
gdouble l;
|
||||
|
||||
*nx = by - ay;
|
||||
*ny = ax - bx;
|
||||
|
||||
l = length (*nx, *ny);
|
||||
|
||||
*nx /= l;
|
||||
*ny /= l;
|
||||
|
||||
*d = point_line_distance (ax, ay, *nx, *ny);
|
||||
}
|
||||
|
||||
static void
|
||||
inverse (gdouble a, gdouble b, gdouble c, gdouble d,
|
||||
gdouble * e, gdouble * f, gdouble * g, gdouble * h)
|
||||
{
|
||||
gdouble det;
|
||||
|
||||
det = a * d - b * c;
|
||||
|
||||
*e = d / det;
|
||||
*f = -b / det;
|
||||
*g = -c / det;
|
||||
*h = a / det;
|
||||
}
|
||||
|
||||
static void
|
||||
multiply (gdouble a, gdouble b, gdouble c, gdouble d,
|
||||
gdouble e, gdouble f, gdouble * x, gdouble * y)
|
||||
{
|
||||
*x = a * e + b * f;
|
||||
*y = c * e + d * f;
|
||||
}
|
||||
|
||||
static void
|
||||
intersect (gdouble n1x, gdouble n1y, gdouble d1,
|
||||
gdouble n2x, gdouble n2y, gdouble d2, gdouble * x, gdouble * y)
|
||||
{
|
||||
gdouble e, f, g, h;
|
||||
|
||||
inverse (n1x, n1y, n2x, n2y, &e, &f, &g, &h);
|
||||
multiply (e, f, g, h, d1, d2, x, y);
|
||||
}
|
||||
|
||||
|
||||
/* draw an angle from the current point to b and then to c,
|
||||
* with a rounded corner of the given radius.
|
||||
*/
|
||||
static void
|
||||
rounded_corner (cairo_t * cr,
|
||||
gdouble bx, gdouble by,
|
||||
gdouble cx, gdouble cy, gdouble radius)
|
||||
{
|
||||
gdouble ax, ay;
|
||||
gdouble n1x, n1y, d1;
|
||||
gdouble n2x, n2y, d2;
|
||||
gdouble pd1, pd2;
|
||||
gdouble ix, iy;
|
||||
gdouble dist1, dist2;
|
||||
gdouble nx, ny, d;
|
||||
gdouble a1x, a1y, c1x, c1y;
|
||||
gdouble phi1, phi2;
|
||||
|
||||
cairo_get_current_point (cr, &ax, &ay);
|
||||
#ifdef KBDRAW_DEBUG
|
||||
printf (" current point: (%f, %f), radius %f:\n", ax, ay,
|
||||
radius);
|
||||
#endif
|
||||
|
||||
/* make sure radius is not too large */
|
||||
dist1 = length (bx - ax, by - ay);
|
||||
dist2 = length (cx - bx, cy - by);
|
||||
|
||||
radius = MIN (radius, MIN (dist1, dist2));
|
||||
|
||||
/* construct normal forms of the lines */
|
||||
normal_form (ax, ay, bx, by, &n1x, &n1y, &d1);
|
||||
normal_form (bx, by, cx, cy, &n2x, &n2y, &d2);
|
||||
|
||||
/* find which side of the line a,b the point c is on */
|
||||
if (point_line_distance (cx, cy, n1x, n1y) < d1)
|
||||
pd1 = d1 - radius;
|
||||
else
|
||||
pd1 = d1 + radius;
|
||||
|
||||
/* find which side of the line b,c the point a is on */
|
||||
if (point_line_distance (ax, ay, n2x, n2y) < d2)
|
||||
pd2 = d2 - radius;
|
||||
else
|
||||
pd2 = d2 + radius;
|
||||
|
||||
/* intersect the parallels to find the center of the arc */
|
||||
intersect (n1x, n1y, pd1, n2x, n2y, pd2, &ix, &iy);
|
||||
|
||||
nx = (bx - ax) / dist1;
|
||||
ny = (by - ay) / dist1;
|
||||
d = point_line_distance (ix, iy, nx, ny);
|
||||
|
||||
/* a1 is the point on the line a-b where the arc starts */
|
||||
intersect (n1x, n1y, d1, nx, ny, d, &a1x, &a1y);
|
||||
|
||||
nx = (cx - bx) / dist2;
|
||||
ny = (cy - by) / dist2;
|
||||
d = point_line_distance (ix, iy, nx, ny);
|
||||
|
||||
/* c1 is the point on the line b-c where the arc ends */
|
||||
intersect (n2x, n2y, d2, nx, ny, d, &c1x, &c1y);
|
||||
|
||||
/* determine the first angle */
|
||||
if (a1x - ix == 0)
|
||||
phi1 = (a1y - iy > 0) ? M_PI_2 : 3 * M_PI_2;
|
||||
else if (a1x - ix > 0)
|
||||
phi1 = atan ((a1y - iy) / (a1x - ix));
|
||||
else
|
||||
phi1 = M_PI + atan ((a1y - iy) / (a1x - ix));
|
||||
|
||||
/* determine the second angle */
|
||||
if (c1x - ix == 0)
|
||||
phi2 = (c1y - iy > 0) ? M_PI_2 : 3 * M_PI_2;
|
||||
else if (c1x - ix > 0)
|
||||
phi2 = atan ((c1y - iy) / (c1x - ix));
|
||||
else
|
||||
phi2 = M_PI + atan ((c1y - iy) / (c1x - ix));
|
||||
|
||||
/* compute the difference between phi2 and phi1 mod 2pi */
|
||||
d = phi2 - phi1;
|
||||
while (d < 0)
|
||||
d += 2 * M_PI;
|
||||
while (d > 2 * M_PI)
|
||||
d -= 2 * M_PI;
|
||||
|
||||
#ifdef KBDRAW_DEBUG
|
||||
printf (" line 1 to: (%f, %f):\n", a1x, a1y);
|
||||
#endif
|
||||
if (!(isnan (a1x) || isnan (a1y)))
|
||||
cairo_line_to (cr, a1x, a1y);
|
||||
|
||||
/* pick the short arc from phi1 to phi2 */
|
||||
if (d < M_PI)
|
||||
cairo_arc (cr, ix, iy, radius, phi1, phi2);
|
||||
else
|
||||
cairo_arc_negative (cr, ix, iy, radius, phi1, phi2);
|
||||
|
||||
#ifdef KBDRAW_DEBUG
|
||||
printf (" line 2 to: (%f, %f):\n", cx, cy);
|
||||
#endif
|
||||
cairo_line_to (cr, cx, cy);
|
||||
}
|
||||
|
||||
void
|
||||
eek_draw_rounded_polygon (cairo_t *cr,
|
||||
gboolean filled,
|
||||
gdouble radius,
|
||||
EekPoint *points,
|
||||
gint num_points)
|
||||
{
|
||||
gint i, j;
|
||||
|
||||
cairo_move_to (cr,
|
||||
(gdouble) (points[num_points - 1].x +
|
||||
points[0].x) / 2,
|
||||
(gdouble) (points[num_points - 1].y +
|
||||
points[0].y) / 2);
|
||||
|
||||
|
||||
#ifdef KBDRAW_DEBUG
|
||||
printf (" rounded polygon of radius %f:\n", radius);
|
||||
#endif
|
||||
for (i = 0; i < num_points; i++) {
|
||||
j = (i + 1) % num_points;
|
||||
rounded_corner (cr, (gdouble) points[i].x,
|
||||
(gdouble) points[i].y,
|
||||
(gdouble) (points[i].x + points[j].x) / 2,
|
||||
(gdouble) (points[i].y + points[j].y) / 2,
|
||||
radius);
|
||||
#ifdef KBDRAW_DEBUG
|
||||
printf (" corner (%d, %d) -> (%d, %d):\n",
|
||||
points[i].x, points[i].y, points[j].x,
|
||||
points[j].y);
|
||||
#endif
|
||||
};
|
||||
cairo_close_path (cr);
|
||||
|
||||
if (filled)
|
||||
cairo_fill (cr);
|
||||
else
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
#ifndef EEK_DRAWING_H
|
||||
#define EEK_DRAWING_H 1
|
||||
|
||||
#include <pango/pangocairo.h>
|
||||
#include "eek-keyboard.h"
|
||||
#include "eek-keysym.h"
|
||||
#include "eek-types.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void eek_draw_text_on_layout (PangoLayout *layout,
|
||||
const gchar *text);
|
||||
|
||||
void eek_get_fonts (EekKeyboard *keyboard,
|
||||
PangoLayout *layout,
|
||||
PangoFontDescription **fonts);
|
||||
|
||||
void eek_draw_outline (cairo_t *cr,
|
||||
EekOutline *outline);
|
||||
|
||||
void eek_draw_key_label (cairo_t *cr,
|
||||
EekKey *key,
|
||||
PangoFontDescription **fonts);
|
||||
|
||||
void eek_draw_rounded_polygon (cairo_t *cr,
|
||||
gboolean filled,
|
||||
gdouble radius,
|
||||
EekPoint *points,
|
||||
gint num_points);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* EEK_DRAWING_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010 Red Hat, Inc.
|
||||
* Copyright (C) 2010-2011 Daiki Ueno <ueno@unixuser.org>
|
||||
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
@@ -26,108 +26,29 @@
|
||||
* shall be used to implement #EekKeyboard, #EekSection, or #EekKey.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "eek-element.h"
|
||||
#include "eek-container.h"
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
PROP_NAME,
|
||||
PROP_BOUNDS,
|
||||
PROP_LAST
|
||||
};
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (EekElement, eek_element, G_TYPE_INITIALLY_UNOWNED);
|
||||
|
||||
#define EEK_ELEMENT_GET_PRIVATE(obj) \
|
||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), EEK_TYPE_ELEMENT, EekElementPrivate))
|
||||
|
||||
|
||||
struct _EekElementPrivate
|
||||
typedef struct _EekElementPrivate
|
||||
{
|
||||
gchar *name;
|
||||
EekBounds bounds;
|
||||
EekElement *parent;
|
||||
};
|
||||
} EekElementPrivate;
|
||||
|
||||
static void
|
||||
eek_element_real_set_parent (EekElement *self,
|
||||
EekElement *parent)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
if (!parent) {
|
||||
g_return_if_fail (priv->parent);
|
||||
/* release self-reference acquired when setting parent */
|
||||
g_object_unref (self);
|
||||
priv->parent = NULL;
|
||||
} else {
|
||||
g_return_if_fail (!priv->parent);
|
||||
g_object_ref_sink (self);
|
||||
priv->parent = parent;
|
||||
}
|
||||
}
|
||||
|
||||
static EekElement *
|
||||
eek_element_real_get_parent (EekElement *self)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
return priv->parent;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_element_real_set_name (EekElement *self,
|
||||
const gchar *name)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
g_free (priv->name);
|
||||
priv->name = g_strdup (name);
|
||||
|
||||
g_object_notify (G_OBJECT(self), "name");
|
||||
}
|
||||
|
||||
static G_CONST_RETURN gchar *
|
||||
eek_element_real_get_name (EekElement *self)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
return priv->name;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_element_real_set_bounds (EekElement *self,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
priv->bounds = *bounds;
|
||||
}
|
||||
|
||||
static void
|
||||
eek_element_real_get_bounds (EekElement *self,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
|
||||
g_return_if_fail (bounds);
|
||||
*bounds = priv->bounds;
|
||||
|
||||
g_object_notify (G_OBJECT(self), "bounds");
|
||||
}
|
||||
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (EekElement, eek_element, G_TYPE_OBJECT)
|
||||
|
||||
static void
|
||||
eek_element_finalize (GObject *object)
|
||||
{
|
||||
EekElementPrivate *priv = EEK_ELEMENT_GET_PRIVATE(object);
|
||||
|
||||
g_free (priv->name);
|
||||
G_OBJECT_CLASS (eek_element_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -136,15 +57,11 @@ eek_element_set_property (GObject *object,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_ELEMENT(object));
|
||||
EekElement *element = EEK_ELEMENT(object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_NAME:
|
||||
eek_element_set_name (EEK_ELEMENT(object),
|
||||
g_value_get_string (value));
|
||||
break;
|
||||
case PROP_BOUNDS:
|
||||
eek_element_set_bounds (EEK_ELEMENT(object),
|
||||
g_value_get_boxed (value));
|
||||
eek_element_set_bounds (element, g_value_get_boxed (value));
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
@@ -158,15 +75,12 @@ eek_element_get_property (GObject *object,
|
||||
GValue *value,
|
||||
GParamSpec *pspec)
|
||||
{
|
||||
EekBounds bounds;
|
||||
EekElement *element = EEK_ELEMENT(object);
|
||||
EekBounds bounds;
|
||||
|
||||
g_return_if_fail (EEK_IS_ELEMENT(object));
|
||||
switch (prop_id) {
|
||||
case PROP_NAME:
|
||||
g_value_set_string (value, eek_element_get_name (EEK_ELEMENT(object)));
|
||||
break;
|
||||
case PROP_BOUNDS:
|
||||
eek_element_get_bounds (EEK_ELEMENT(object), &bounds);
|
||||
eek_element_get_bounds (element, &bounds);
|
||||
g_value_set_boxed (value, &bounds);
|
||||
break;
|
||||
default:
|
||||
@@ -181,34 +95,11 @@ eek_element_class_init (EekElementClass *klass)
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
GParamSpec *pspec;
|
||||
|
||||
g_type_class_add_private (gobject_class,
|
||||
sizeof (EekElementPrivate));
|
||||
|
||||
klass->set_parent = eek_element_real_set_parent;
|
||||
klass->get_parent = eek_element_real_get_parent;
|
||||
klass->set_name = eek_element_real_set_name;
|
||||
klass->get_name = eek_element_real_get_name;
|
||||
klass->set_bounds = eek_element_real_set_bounds;
|
||||
klass->get_bounds = eek_element_real_get_bounds;
|
||||
|
||||
/* signals */
|
||||
gobject_class->set_property = eek_element_set_property;
|
||||
gobject_class->get_property = eek_element_get_property;
|
||||
gobject_class->finalize = eek_element_finalize;
|
||||
|
||||
/**
|
||||
* EekElement:name:
|
||||
*
|
||||
* The name of #EekElement.
|
||||
*/
|
||||
pspec = g_param_spec_string ("name",
|
||||
"Name",
|
||||
"Name",
|
||||
NULL,
|
||||
G_PARAM_READWRITE);
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_NAME,
|
||||
pspec);
|
||||
|
||||
/**
|
||||
* EekElement:bounds:
|
||||
*
|
||||
@@ -227,70 +118,7 @@ eek_element_class_init (EekElementClass *klass)
|
||||
static void
|
||||
eek_element_init (EekElement *self)
|
||||
{
|
||||
EekElementPrivate *priv;
|
||||
|
||||
priv = self->priv = EEK_ELEMENT_GET_PRIVATE(self);
|
||||
priv->name = NULL;
|
||||
memset (&priv->bounds, 0, sizeof priv->bounds);
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_element_set_parent:
|
||||
* @element: an #EekElement
|
||||
* @parent: an #EekElement
|
||||
*
|
||||
* Set the parent of @element to @parent.
|
||||
*/
|
||||
void
|
||||
eek_element_set_parent (EekElement *element,
|
||||
EekElement *parent)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_ELEMENT(element));
|
||||
g_return_if_fail (EEK_IS_ELEMENT(parent));
|
||||
EEK_ELEMENT_GET_CLASS(element)->set_parent (element, parent);
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_element_get_parent:
|
||||
* @element: an #EekElement
|
||||
*
|
||||
* Get the parent of @element.
|
||||
* Returns: an #EekElement if the parent is set
|
||||
*/
|
||||
EekElement *
|
||||
eek_element_get_parent (EekElement *element)
|
||||
{
|
||||
g_return_val_if_fail (EEK_IS_ELEMENT(element), NULL);
|
||||
return EEK_ELEMENT_GET_CLASS(element)->get_parent (element);
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_element_set_name:
|
||||
* @element: an #EekElement
|
||||
* @name: name of @element
|
||||
*
|
||||
* Set the name of @element to @name.
|
||||
*/
|
||||
void
|
||||
eek_element_set_name (EekElement *element,
|
||||
const gchar *name)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_ELEMENT(element));
|
||||
EEK_ELEMENT_GET_CLASS(element)->set_name (element, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_element_get_name:
|
||||
* @element: an #EekElement
|
||||
*
|
||||
* Get the name of @element.
|
||||
* Returns: the name of @element or NULL when the name is not set
|
||||
*/
|
||||
G_CONST_RETURN gchar *
|
||||
eek_element_get_name (EekElement *element)
|
||||
{
|
||||
g_return_val_if_fail (EEK_IS_ELEMENT(element), NULL);
|
||||
return EEK_ELEMENT_GET_CLASS(element)->get_name (element);
|
||||
(void)self;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -307,13 +135,16 @@ eek_element_set_bounds (EekElement *element,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_ELEMENT(element));
|
||||
EEK_ELEMENT_GET_CLASS(element)->set_bounds (element, bounds);
|
||||
|
||||
EekElementPrivate *priv = eek_element_get_instance_private (element);
|
||||
|
||||
memcpy (&priv->bounds, bounds, sizeof(EekBounds));
|
||||
}
|
||||
|
||||
/**
|
||||
* eek_element_get_bounds:
|
||||
* @element: an #EekElement
|
||||
* @bounds: pointer where bounding box of @element will be stored
|
||||
* @bounds: (out): pointer where bounding box of @element will be stored
|
||||
*
|
||||
* Get the bounding box of @element. Note that if @element has
|
||||
* parent, position of @bounds are relative to the parent. To obtain
|
||||
@@ -324,30 +155,9 @@ eek_element_get_bounds (EekElement *element,
|
||||
EekBounds *bounds)
|
||||
{
|
||||
g_return_if_fail (EEK_IS_ELEMENT(element));
|
||||
EEK_ELEMENT_GET_CLASS(element)->get_bounds (element, bounds);
|
||||
}
|
||||
g_return_if_fail (bounds != NULL);
|
||||
|
||||
/**
|
||||
* eek_element_get_absolute_position:
|
||||
* @element: an #EekElement
|
||||
* @x: pointer where the X coordinate of @element will be stored
|
||||
* @y: pointer where the Y coordinate of @element will be stored
|
||||
*
|
||||
* Compute the absolute position of @element.
|
||||
*/
|
||||
void
|
||||
eek_element_get_absolute_position (EekElement *element,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
{
|
||||
EekBounds bounds;
|
||||
gdouble ax = 0.0, ay = 0.0;
|
||||
EekElementPrivate *priv = eek_element_get_instance_private (element);
|
||||
|
||||
do {
|
||||
eek_element_get_bounds (element, &bounds);
|
||||
ax += bounds.x;
|
||||
ay += bounds.y;
|
||||
} while ((element = eek_element_get_parent (element)) != NULL);
|
||||
*x = ax;
|
||||
*y = ay;
|
||||
memcpy (bounds, &priv->bounds, sizeof(EekBounds));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user