summaryrefslogtreecommitdiffstats
path: root/panels/wacom/cc-wacom-stylus-page.ui
blob: a7850f7e0088b1e1332919376c22c76d5c8f3a7d (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcWacomStylusPage" parent="GtkBox">
    <property name="orientation">vertical</property>
    <property name="spacing">24</property>
    <child>
      <object class="AdwPreferencesGroup" id="stylus_section">
        <property name="header-suffix">
          <object class="GtkPicture" id="stylus_icon">
            <property name="halign">end</property>
            <property name="valign">start</property>
          </object>
        </property>
        <child>
          <object class="AdwActionRow" id="stylus_tip_pressure">
            <property name="title" translatable="yes">Tip Pressure Feel</property>
            <child>
              <object class="GtkBox" id="stylus_tip_pressure_box">
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Soft</property>
                    <style>
                      <class name="caption"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkScale" id="stylus_tip_pressure_scale">
                    <property name="adjustment">stylus_tip_pressure_adjustment</property>
                    <property name="draw_value">False</property>
                    <property name="hexpand">True</property>
                    <property name="vexpand">True</property>
                    <signal name="value-changed" handler="on_tip_pressure_value_changed" swapped="yes"/>
                    <accessibility>
                      <property name="label" translatable="yes">Stylus tip pressure</property>
                    </accessibility>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Firm</property>
                    <style>
                      <class name="caption"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwComboRow" id="stylus_button1_action">
            <property name="width_request">100</property>
            <property name="title" translatable="yes" context="display setting">Button 1</property>
            <property name="model">button_model</property>
            <signal name="notify::selected-item" handler="on_stylus_action_selected" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwComboRow" id="stylus_button2_action">
            <property name="width_request">100</property>
            <property name="title" translatable="yes" context="display setting">Button 2</property>
            <property name="model">button_model</property>
            <signal name="notify::selected-item" handler="on_stylus_action_selected" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwComboRow" id="stylus_button3_action">
            <property name="width_request">100</property>
            <property name="title" translatable="yes" context="display setting">Button 3</property>
            <property name="model">button_model</property>
            <signal name="notify::selected-item" handler="on_stylus_action_selected" swapped="no"/>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="stylus_eraser_pressure">
            <property name="title" translatable="yes">Eraser Pressure Feel</property>
            <child>
              <object class="GtkBox" id="stylus_eraser_pressure_box">
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Soft</property>
                    <style>
                      <class name="caption"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkScale" id="stylus_eraser_pressure_scale">
                    <property name="adjustment">stylus_eraser_pressure_adjustment</property>
                    <property name="draw_value">False</property>
                    <property name="hexpand">True</property>
                    <property name="vexpand">True</property>
                    <signal name="value-changed" handler="on_eraser_pressure_value_changed" swapped="yes"/>
                    <accessibility>
                      <property name="label" translatable="yes">Eraser pressure</property>
                    </accessibility>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Firm</property>
                    <style>
                      <class name="caption"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkAdjustment" id="stylus_tip_pressure_adjustment">
    <property name="upper">6</property>
    <property name="step_increment">1</property>
    <property name="page_increment">3</property>
  </object>
  <object class="GtkAdjustment" id="stylus_eraser_pressure_adjustment">
    <property name="upper">6</property>
    <property name="step_increment">1</property>
    <property name="page_increment">3</property>
  </object>
  <object class="GtkSizeGroup" id="sizegroup_pressure">
    <widgets>
      <widget name="stylus_tip_pressure_box" />
      <widget name="stylus_eraser_pressure_box" />
    </widgets>
  </object>
  <object class="GtkStringList" id="button_model">
    <items>
      <item translatable="yes">Default</item>
      <item translatable="yes">Middle Mouse Button Click</item>
      <item translatable="yes">Right Mouse Button Click</item>
      <item translatable="yes">Back</item>
      <item translatable="yes">Forward</item>
    </items>
  </object>
</interface>