gnome-control-center/panels/wacom/gnome-wacom-properties.ui
Georges Basile Stavracas Neto 816e6203e3 wacom: Port to GTK4
Many part of this commit were made by Carlos
Garnacho <carlosg@gnome.org>

WIP wacom: Port to GTK4

Lots of stuff missing and probably broken.

wacom: Port CcDrawingArea input to gestures

We have a handy GtkGestureStylus to use here, which avoids direct
handling of GdkEvents.

wacom: Update current stylus tracking to GtkGestureStylus

Use the ::proximity signal to notice when we are being hovered with
a tablet stylus, and look up the tool from there.
2021-12-14 22:34:21 -03:00

324 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkListStore" id="liststore-tabletmode">
<columns>
<!-- column-name tabletmode -->
<column type="guint"/>
<!-- column-name tabletmode-label -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0">0</col>
<col id="1" translatable="yes">Tablet (absolute)</col>
</row>
<row>
<col id="0">1</col>
<col id="1" translatable="yes">Touchpad (relative)</col>
</row>
</data>
</object>
<object class="GtkDialog" id="wacom_properties_dialog">
<property name="vexpand">True</property>
<property name="title" translatable="yes">Tablet Preferences</property>
<property name="resizable">False</property>
<property name="default_width">675</property>
<property name="default_height">460</property>
<property name="icon_name">input-tablet</property>
<child>
<object class="GtkBox" id="dialog-vbox1">
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<object class="GtkBox" id="dialog-action_area1">
<child>
<object class="GtkButton" id="helpbutton1">
<property name="label" translatable="yes">_Help</property>
<property name="use_action_appearance">False</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="closebutton1">
<property name="label" translatable="yes">_Close</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkNotebook" id="main-notebook">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="show_tabs">False</property>
<property name="show_border">False</property>
<child>
<object class="GtkGrid" id="main-box">
<child>
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">3</property>
<property name="row-span">3</property>
</layout>
<child>
<object class="GtkImage">
<property name="sensitive">False</property>
<property name="valign">end</property>
<property name="vexpand">True</property>
<property name="pixel_size">96</property>
<property name="icon_name">input-tablet-symbolic</property>
<property name="icon_size">0</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="advice-label1">
<property name="vexpand">False</property>
<property name="label" translatable="yes">No tablet detected</property>
<property name="justify">center</property>
<property name="yalign">1</property>
</object>
</child>
<child>
<object class="GtkLabel" id="advice-label2">
<property name="valign">start</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">Please plug in or turn on your Wacom tablet</property>
<property name="justify">center</property>
<property name="yalign">0</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLinkButton" id="linkbutton">
<property name="label" translatable="yes">Bluetooth Settings</property>
<property name="halign">end</property>
<property name="valign">end</property>
<property name="vexpand">True</property>
<layout>
<property name="column">2</property>
<property name="row">2</property>
</layout>
</object>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="label4">
<property name="label">Plugin</property>
</object>
</child>
<child>
<object class="GtkGrid" id="main-grid">
<property name="row_spacing">10</property>
<property name="column_spacing">10</property>
<child>
<object class="GtkLabel" id="label-tabletmodel">
<property name="halign">start</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Wacom Tablet</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">2</property>
</layout>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkPicture" id="image-tablet">
<property name="halign">center</property>
<property name="valign">start</property>
<property name="can-shrink">False</property>
<property name="file">resource:///org/gnome/control-center/wacom/wacom-tablet.svg</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkGrid" id="main-controls-grid">
<property name="margin_start">16</property>
<property name="orientation">vertical</property>
<property name="row_spacing">10</property>
<property name="column_spacing">10</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
<child>
<object class="GtkLabel" id="label-trackingmode">
<property name="halign">end</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Tracking Mode</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkComboBox" id="combo-tabletmode">
<property name="hexpand">True</property>
<property name="model">liststore-tabletmode</property>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="label-left-handed">
<property name="halign">end</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Left-Handed Orientation</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkSwitch" id="switch-left-handed">
<property name="halign">start</property>
<property name="valign">center</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkBox" id="tablet-buttons-box">
<property name="halign">start</property>
<property name="spacing">10</property>
<layout>
<property name="column">1</property>
<property name="row">2</property>
</layout>
<child>
<object class="GtkButton" id="display-mapping-button">
<property name="label" translatable="yes">Map to Monitor…</property>
</object>
</child>
<child>
<object class="GtkButton" id="map-buttons-button">
<property name="label" translatable="yes">Map Buttons…</property>
<property name="visible">False</property>
</object>
</child>
<child>
<object class="GtkButton" id="button-calibrate">
<property name="label" translatable="yes">Calibrate…</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLinkButton" id="mouse-link">
<property name="label" translatable="yes">Adjust mouse settings</property>
<property name="halign">start</property>
<property name="valign">start</property>
<layout>
<property name="column">1</property>
<property name="row">3</property>
</layout>
</object>
</child>
<child>
<object class="GtkLinkButton" id="display-link">
<property name="label" translatable="yes">Adjust display resolution</property>
<property name="halign">start</property>
<property name="valign">start</property>
<layout>
<property name="column">1</property>
<property name="row">3</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="label-decouple-display">
<property name="halign">end</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Decouple Display</property>
<layout>
<property name="column">0</property>
<property name="row">4</property>
</layout>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkSwitch" id="switch-decouple-display">
<property name="halign">start</property>
<property name="valign">center</property>
<property name="active">True</property>
<layout>
<property name="column">1</property>
<property name="row">4</property>
</layout>
</object>
</child>
<child>
<object class="GtkButton" id="display-mapping-button-2">
<property name="label" translatable="yes">Map to Monitor…</property>
<property name="halign">start</property>
<layout>
<property name="column">1</property>
<property name="row">6</property>
</layout>
</object>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="navigation-placeholder">
<property name="halign">end</property>
<property name="transition_type">crossfade</property>
<property name="transition_duration">100</property>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="label1">
<property name="label">Wacom</property>
</object>
</child>
</object>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">helpbutton1</action-widget>
<action-widget response="0">closebutton1</action-widget>
</action-widgets>
</object>
</interface>