summaryrefslogtreecommitdiffstats
path: root/panels/mouse/cc-mouse-panel.ui
blob: c5d1351be9565f6413f189d0c5ac3bd7c88f2346 (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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcMousePanel" parent="CcPanel">

    <child type="titlebar-end">
      <object class="GtkToggleButton" id="test_button">
        <property name="use_underline">True</property>
        <property name="valign">center</property>
        <property name="label" translatable="yes">Test Your _Settings</property>
        <signal name="toggled" handler="test_button_toggled_cb" object="CcMousePanel" swapped="yes"/>
        <style>
          <class name="text-button"/>
        </style>
      </object>
    </child>

    <child type="content">
      <object class="GtkStack" id="stack">
        <child>
          <object class="AdwPreferencesPage" id="preferences">
            <child>
              <object class="AdwPreferencesGroup">
                <property name="title" translatable="yes">General</property>
                <child>
                  <object class="AdwActionRow" id="primary_button_row">
                    <property name="title" translatable="yes">Primary Button</property>
                    <property name="subtitle" translatable="yes">Sets the order of physical buttons on mice and touchpads.</property>
                    <property name="subtitle-lines">0</property>
                    <child>
                      <object class="GtkBox" id="primary_button_box">
                        <property name="valign">center</property>
                        <property name="homogeneous">True</property>
                        <property name="margin_top">12</property>
                        <property name="margin_bottom">12</property>
                        <style>
                         <class name="linked"/>
                        </style>
                        <child>
                          <object class="GtkToggleButton" id="primary_button_left">
                            <property name="hexpand">True</property>
                            <property name="label" translatable="yes">Left</property>
                            <property name="height_request">35</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkToggleButton" id="primary_button_right">
                            <property name="hexpand">True</property>
                            <property name="label" translatable="yes">Right</property>
                            <property name="group">primary_button_left</property>
                            <property name="height_request">35</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwPreferencesGroup" id="mouse_group">
                <property name="title" translatable="yes">Mouse</property>
                <child>
                  <object class="AdwActionRow" id="mouse_row">
                    <property name="title" translatable="yes">Mouse Speed</property>
                    <child>
                      <object class="GtkScale" id="mouse_speed_scale">
                        <property name="adjustment">mouse_speed_adjustment</property>
                        <property name="draw_value">False</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <accessibility>
                          <property name="label">Mouse speed</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="mouse_natural_scrolling_row">
                    <property name="title" translatable="yes" comments="Translators: This switch reverses the scrolling direction for mices. The term used comes from OS X so use the same translation if possible.">Natural Scrolling</property>
                    <property name="subtitle" translatable="yes">Scrolling moves the content, not the view.</property>
                    <property name="activatable-widget">mouse_natural_scrolling_switch</property>
                    <child>
                      <object class="GtkSwitch" id="mouse_natural_scrolling_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Natural Scrolling</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwPreferencesGroup" id="touchpad_group">
                <property name="title" translatable="yes">Touchpad</property>
                <child>
                  <object class="AdwActionRow" id="touchpad_toggle_row">
                    <property name="title" translatable="yes">Touchpad</property>
                    <property name="activatable-widget">touchpad_toggle_switch</property>
                    <child>
                      <object class="GtkSwitch" id="touchpad_toggle_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Touchpad</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="touchpad_natural_scrolling_row">
                    <property name="title" translatable="yes" comments="Translators: This switch reverses the scrolling direction for touchpads. The term used comes from OS X so use the same translation if possible. ">Natural Scrolling</property>
                    <property name="subtitle" translatable="yes">Scrolling moves the content, not the view.</property>
                    <property name="activatable-widget">touchpad_natural_scrolling_switch</property>
                    <child>
                      <object class="GtkSwitch" id="touchpad_natural_scrolling_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Natural Scrolling</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="touchpad_speed_row">
                    <property name="title" translatable="yes">Touchpad Speed</property>
                    <child>
                      <object class="GtkScale" id="touchpad_speed_scale">
                        <property name="adjustment">touchpad_speed_adjustment</property>
                        <property name="draw_value">False</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <accessibility>
                          <property name="label">Double-click timeout</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="tap_to_click_row">
                    <property name="visible">False</property>
                    <property name="title" translatable="yes">Tap to Click</property>
                    <property name="activatable-widget">tap_to_click_switch</property>
                    <child>
                      <object class="GtkSwitch" id="tap_to_click_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Tap to click</property>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="two_finger_scrolling_row">
                    <property name="visible">False</property>
                    <property name="title" translatable="yes">Two-finger Scrolling</property>
                    <property name="activatable-widget">two_finger_scrolling_switch</property>
                    <child>
                      <object class="GtkSwitch" id="two_finger_scrolling_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Two-finger Scrolling</property>
                        </accessibility>
                        <signal name="state-set" handler="two_finger_scrolling_changed_event" object="CcMousePanel" swapped="yes"/>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwActionRow" id="edge_scrolling_row">
                    <property name="visible">False</property>
                    <property name="title" translatable="yes">Edge Scrolling</property>
                    <property name="activatable-widget">edge_scrolling_switch</property>
                    <child>
                      <object class="GtkSwitch" id="edge_scrolling_switch">
                        <property name="valign">center</property>
                        <accessibility>
                          <property name="label" translatable="yes">Edge Scrolling</property>
                        </accessibility>
                        <signal name="state-set" handler="edge_scrolling_changed_event" object="CcMousePanel" swapped="yes"/>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>
        <child>
          <object class="CcMouseTest" id="mouse_test">
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkAdjustment" id="mouse_speed_adjustment">
    <property name="lower">-1</property>
    <property name="upper">1</property>
  </object>
  <object class="GtkAdjustment" id="touchpad_speed_adjustment">
    <property name="lower">-1</property>
    <property name="upper">1</property>
  </object>
  <object class="GtkSizeGroup">
    <property name="mode">horizontal</property>
    <widgets>
      <widget name="mouse_speed_scale"/>
      <widget name="touchpad_speed_scale"/>
    </widgets>
  </object>
</interface>