summaryrefslogtreecommitdiffstats
path: root/panels/wacom/cc-wacom-page.ui
blob: 327e5a9b1196f05d1cf1f3242dc058c887db6427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcWacomPage" parent="GtkBox">
    <property name="orientation">vertical</property>
    <property name="spacing">24</property>
    <child>
      <object class="AdwPreferencesGroup" id="tablet_section">
        <property name="header-suffix">
          <object class="GtkPicture" id="tablet_icon">
            <property name="halign">end</property>
            <property name="valign">start</property>
          </object>
        </property>
        <child>
          <object class="AdwActionRow" id="tablet_mode">
            <property name="title" translatable="yes">Tablet Mode</property>
            <property name="subtitle" translatable="yes">Use absolute positioning for the pen</property>
            <property name="activatable_widget">tablet_mode_switch</property>
            <child>
              <object class="GtkSwitch" id="tablet_mode_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="tablet_left_handed">
            <property name="title" translatable="yes">Left Hand Orientation</property>
            <property name="subtitle" translatable="yes">Tablet and Express Keys™ are rotated for left hand use</property>
            <property name="activatable_widget">tablet_left_handed_switch</property>
            <child>
              <object class="GtkSwitch" id="tablet_left_handed_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="tablet_map_buttons">
            <property name="title" translatable="yes">Map Buttons</property>
            <property name="activatable">True</property>
            <signal name="activated" handler="on_map_buttons_activated" object="CcWacomPage" swapped="yes" />
            <child type="suffix">
              <object class="GtkImage">
                <property name="icon-name">go-next-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>

    <child>
      <object class="AdwPreferencesGroup" id="display_section">
        <child>
          <object class="AdwComboRow" id="tablet_display">
            <property name="width_request">100</property>
            <property name="title" translatable="yes" context="display setting">Map to Monitor</property>
            <signal name="notify::selected-item" handler="on_display_selected" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="tablet_aspect_ratio">
            <property name="title" translatable="yes">Keep Aspect Ratio</property>
            <property name="subtitle" translatable="yes">Only use a portion of the tablet surface to keep monitor aspect ratio</property>
            <property name="activatable_widget">tablet_aspect_ratio_switch</property>
            <child>
              <object class="GtkSwitch" id="tablet_aspect_ratio_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="tablet_calibrate">
            <property name="title" translatable="yes">Calibrate</property>
            <property name="activatable">True</property>
            <signal name="activated" handler="on_calibrate_activated" object="CcWacomPage" swapped="yes" />
            <child type="suffix">
              <object class="GtkImage">
                <property name="icon-name">go-next-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>