gnome-control-center/panels/wacom/cc-wacom-ekr-page.ui
Carlos Garnacho 39402f21ba wacom: Show distinct entries for Wacom Express Key Remote
If you did not know the Wacom Express Key Remote (or EKR for short),
let me introduce it to you:

https://estore.wacom.com/media/catalog/product/cache/fb4143a007ae6439deba9b18afd745f2/a/c/ack-411050_main_2.jpg

This is a hand-sized standalone pad device, meant to be used together
with drawing tablets, providing additional buttons and a touch sensitive
ring that can be mapped to actions and keypresses.

These pads were so far handled in GNOME, but in a very subtle manner.
As the EKR is implicitly paired to a tablet, it was possible to map
EKR buttons from the paired tablet once the pad OSD UI from GNOME
Shell was shown.

As this device basically just needs a "Map buttons" action to
configure it, it just didn't sit well in the older Settings UI,
it would get a separate page with just a lone button in there. So
its support has been kind of an easter egg so far.

But the new UI can indeed accomodate better a device that is neither
tablet nor stylus, and has few options. This commit adds the EKR
as a separate AdwPreferencesGroup.
2022-08-17 11:57:33 +00:00

32 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcWacomEkrPage" parent="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">24</property>
<child>
<object class="AdwPreferencesGroup" id="ekr_section">
<property name="description" translatable="yes"
comments="translators: this is a drawing tablet pad, i.e. a collection of buttons and knobs">External pad device</property>
<property name="header-suffix">
<object class="GtkPicture" id="ekr_icon">
<property name="halign">end</property>
<property name="valign">start</property>
<property name="file">resource:///org/gnome/control-center/wacom/wacom-tablet.svg</property>
</object>
</property>
<child>
<object class="AdwActionRow" id="ekr_map_buttons">
<property name="title" translatable="yes">Map Buttons</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_map_buttons_activated" object="CcWacomEkrPage" swapped="yes" />
<child type="suffix">
<object class="GtkImage">
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>