requires gtk3
[psensor.git] / src / glade / sensor-edit.glade
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3   <requires lib="gtk+" version="3.0"/>
4   <!-- interface-naming-policy project-wide -->
5   <object class="GtkDialog" id="dialog1">
6     <property name="can_focus">False</property>
7     <property name="border_width">5</property>
8     <property name="title" translatable="yes">Edit Sensor Preferences</property>
9     <property name="modal">True</property>
10     <property name="destroy_with_parent">True</property>
11     <property name="type_hint">dialog</property>
12     <child internal-child="vbox">
13       <object class="GtkVBox" id="dialog-vbox1">
14         <property name="visible">True</property>
15         <property name="can_focus">False</property>
16         <property name="spacing">2</property>
17         <child internal-child="action_area">
18           <object class="GtkHButtonBox" id="dialog-action_area1">
19             <property name="visible">True</property>
20             <property name="can_focus">False</property>
21             <property name="layout_style">end</property>
22             <child>
23               <object class="GtkButton" id="btn_ok">
24                 <property name="label">gtk-ok</property>
25                 <property name="visible">True</property>
26                 <property name="can_focus">True</property>
27                 <property name="receives_default">True</property>
28                 <property name="use_action_appearance">False</property>
29                 <property name="use_stock">True</property>
30               </object>
31               <packing>
32                 <property name="expand">False</property>
33                 <property name="fill">False</property>
34                 <property name="position">0</property>
35               </packing>
36             </child>
37             <child>
38               <object class="GtkButton" id="btn_cancel">
39                 <property name="label">gtk-cancel</property>
40                 <property name="visible">True</property>
41                 <property name="can_focus">True</property>
42                 <property name="receives_default">True</property>
43                 <property name="use_action_appearance">False</property>
44                 <property name="use_stock">True</property>
45               </object>
46               <packing>
47                 <property name="expand">False</property>
48                 <property name="fill">False</property>
49                 <property name="position">1</property>
50               </packing>
51             </child>
52           </object>
53           <packing>
54             <property name="expand">False</property>
55             <property name="fill">True</property>
56             <property name="pack_type">end</property>
57             <property name="position">0</property>
58           </packing>
59         </child>
60         <child>
61           <object class="GtkHPaned" id="hpaned1">
62             <property name="visible">True</property>
63             <property name="can_focus">True</property>
64             <child>
65               <object class="GtkTreeView" id="sensors_list">
66                 <property name="visible">True</property>
67                 <property name="can_focus">True</property>
68                 <property name="model">sensors_liststore</property>
69               </object>
70               <packing>
71                 <property name="resize">False</property>
72                 <property name="shrink">True</property>
73               </packing>
74             </child>
75             <child>
76               <object class="GtkTable" id="table1">
77                 <property name="visible">True</property>
78                 <property name="can_focus">False</property>
79                 <property name="n_rows">10</property>
80                 <property name="n_columns">2</property>
81                 <child>
82                   <object class="GtkLabel" id="sensor_id">
83                     <property name="visible">True</property>
84                     <property name="can_focus">False</property>
85                     <property name="xalign">0</property>
86                     <property name="label" translatable="yes">N/A</property>
87                   </object>
88                   <packing>
89                     <property name="left_attach">1</property>
90                     <property name="right_attach">2</property>
91                     <property name="top_attach">1</property>
92                     <property name="bottom_attach">2</property>
93                     <property name="x_padding">4</property>
94                     <property name="y_padding">4</property>
95                   </packing>
96                 </child>
97                 <child>
98                   <object class="GtkLabel" id="label3">
99                     <property name="visible">True</property>
100                     <property name="can_focus">False</property>
101                     <property name="xalign">0</property>
102                     <property name="xpad">10</property>
103                     <property name="label" translatable="yes">Name:</property>
104                   </object>
105                   <packing>
106                     <property name="top_attach">3</property>
107                     <property name="bottom_attach">4</property>
108                     <property name="x_options">GTK_FILL</property>
109                     <property name="x_padding">4</property>
110                     <property name="y_padding">4</property>
111                   </packing>
112                 </child>
113                 <child>
114                   <object class="GtkEntry" id="sensor_name">
115                     <property name="visible">True</property>
116                     <property name="can_focus">True</property>
117                     <property name="invisible_char">•</property>
118                     <property name="invisible_char_set">True</property>
119                     <property name="primary_icon_activatable">False</property>
120                     <property name="secondary_icon_activatable">False</property>
121                     <property name="primary_icon_sensitive">True</property>
122                     <property name="secondary_icon_sensitive">True</property>
123                   </object>
124                   <packing>
125                     <property name="left_attach">1</property>
126                     <property name="right_attach">2</property>
127                     <property name="top_attach">3</property>
128                     <property name="bottom_attach">4</property>
129                     <property name="x_padding">4</property>
130                     <property name="y_padding">4</property>
131                   </packing>
132                 </child>
133                 <child>
134                   <object class="GtkLabel" id="label4">
135                     <property name="visible">True</property>
136                     <property name="can_focus">False</property>
137                     <property name="xalign">0</property>
138                     <property name="label" translatable="yes">Type:</property>
139                   </object>
140                   <packing>
141                     <property name="top_attach">2</property>
142                     <property name="bottom_attach">3</property>
143                     <property name="x_padding">14</property>
144                     <property name="y_padding">4</property>
145                   </packing>
146                 </child>
147                 <child>
148                   <object class="GtkLabel" id="sensor_type">
149                     <property name="visible">True</property>
150                     <property name="can_focus">False</property>
151                     <property name="xalign">0</property>
152                     <property name="label" translatable="yes">N/A</property>
153                   </object>
154                   <packing>
155                     <property name="left_attach">1</property>
156                     <property name="right_attach">2</property>
157                     <property name="top_attach">2</property>
158                     <property name="bottom_attach">3</property>
159                     <property name="x_padding">4</property>
160                     <property name="y_padding">4</property>
161                   </packing>
162                 </child>
163                 <child>
164                   <object class="GtkLabel" id="label2">
165                     <property name="visible">True</property>
166                     <property name="can_focus">False</property>
167                     <property name="xalign">0</property>
168                     <property name="label" translatable="yes">Id:</property>
169                   </object>
170                   <packing>
171                     <property name="top_attach">1</property>
172                     <property name="bottom_attach">2</property>
173                     <property name="x_options">GTK_FILL</property>
174                     <property name="x_padding">14</property>
175                     <property name="y_padding">4</property>
176                   </packing>
177                 </child>
178                 <child>
179                   <object class="GtkLabel" id="label5">
180                     <property name="visible">True</property>
181                     <property name="can_focus">False</property>
182                     <property name="xalign">0</property>
183                     <property name="label" translatable="yes">Graph</property>
184                     <attributes>
185                       <attribute name="weight" value="bold"/>
186                     </attributes>
187                   </object>
188                   <packing>
189                     <property name="right_attach">2</property>
190                     <property name="top_attach">4</property>
191                     <property name="bottom_attach">5</property>
192                     <property name="x_padding">4</property>
193                     <property name="y_padding">4</property>
194                   </packing>
195                 </child>
196                 <child>
197                   <object class="GtkLabel" id="label7">
198                     <property name="visible">True</property>
199                     <property name="can_focus">False</property>
200                     <property name="xalign">0</property>
201                     <property name="label" translatable="yes">Color:</property>
202                   </object>
203                   <packing>
204                     <property name="top_attach">6</property>
205                     <property name="bottom_attach">7</property>
206                     <property name="x_padding">14</property>
207                     <property name="y_padding">4</property>
208                   </packing>
209                 </child>
210                 <child>
211                   <object class="GtkLabel" id="label6">
212                     <property name="visible">True</property>
213                     <property name="can_focus">False</property>
214                     <property name="xalign">0</property>
215                     <property name="label" translatable="yes">Alarm</property>
216                     <attributes>
217                       <attribute name="weight" value="bold"/>
218                     </attributes>
219                   </object>
220                   <packing>
221                     <property name="right_attach">2</property>
222                     <property name="top_attach">7</property>
223                     <property name="bottom_attach">8</property>
224                     <property name="x_padding">4</property>
225                     <property name="y_padding">4</property>
226                   </packing>
227                 </child>
228                 <child>
229                   <object class="GtkCheckButton" id="sensor_alarm">
230                     <property name="label" translatable="yes">Activate desktop notifications</property>
231                     <property name="visible">True</property>
232                     <property name="can_focus">True</property>
233                     <property name="receives_default">False</property>
234                     <property name="use_action_appearance">False</property>
235                     <property name="draw_indicator">True</property>
236                   </object>
237                   <packing>
238                     <property name="right_attach">2</property>
239                     <property name="top_attach">8</property>
240                     <property name="bottom_attach">9</property>
241                     <property name="x_padding">14</property>
242                     <property name="y_padding">4</property>
243                   </packing>
244                 </child>
245                 <child>
246                   <object class="GtkLabel" id="label8">
247                     <property name="visible">True</property>
248                     <property name="can_focus">False</property>
249                     <property name="xalign">0</property>
250                     <property name="label" translatable="yes">Temperature limit:</property>
251                   </object>
252                   <packing>
253                     <property name="top_attach">9</property>
254                     <property name="bottom_attach">10</property>
255                     <property name="x_options">GTK_FILL</property>
256                     <property name="x_padding">14</property>
257                     <property name="y_padding">4</property>
258                   </packing>
259                 </child>
260                 <child>
261                   <object class="GtkLabel" id="label1">
262                     <property name="visible">True</property>
263                     <property name="can_focus">False</property>
264                     <property name="xalign">0</property>
265                     <property name="label" translatable="yes">Sensor Information</property>
266                     <attributes>
267                       <attribute name="weight" value="bold"/>
268                     </attributes>
269                   </object>
270                   <packing>
271                     <property name="right_attach">2</property>
272                     <property name="x_padding">4</property>
273                     <property name="y_padding">4</property>
274                   </packing>
275                 </child>
276                 <child>
277                   <object class="GtkCheckButton" id="sensor_draw">
278                     <property name="label" translatable="yes">Draw sensor curve</property>
279                     <property name="visible">True</property>
280                     <property name="can_focus">True</property>
281                     <property name="receives_default">False</property>
282                     <property name="use_action_appearance">False</property>
283                     <property name="yalign">0.41999998688697815</property>
284                     <property name="draw_indicator">True</property>
285                   </object>
286                   <packing>
287                     <property name="right_attach">2</property>
288                     <property name="top_attach">5</property>
289                     <property name="bottom_attach">6</property>
290                     <property name="x_padding">14</property>
291                     <property name="y_padding">4</property>
292                   </packing>
293                 </child>
294                 <child>
295                   <object class="GtkHBox" id="hbox1">
296                     <property name="visible">True</property>
297                     <property name="can_focus">False</property>
298                     <child>
299                       <object class="GtkSpinButton" id="sensor_temp_limit">
300                         <property name="visible">True</property>
301                         <property name="can_focus">True</property>
302                         <property name="max_length">3</property>
303                         <property name="invisible_char">•</property>
304                         <property name="invisible_char_set">True</property>
305                         <property name="primary_icon_activatable">False</property>
306                         <property name="secondary_icon_activatable">False</property>
307                         <property name="primary_icon_sensitive">True</property>
308                         <property name="secondary_icon_sensitive">True</property>
309                         <property name="adjustment">temp_limit</property>
310                         <property name="climb_rate">1</property>
311                         <property name="snap_to_ticks">True</property>
312                         <property name="numeric">True</property>
313                         <property name="update_policy">if-valid</property>
314                       </object>
315                       <packing>
316                         <property name="expand">False</property>
317                         <property name="fill">True</property>
318                         <property name="position">0</property>
319                       </packing>
320                     </child>
321                     <child>
322                       <object class="GtkLabel" id="label9">
323                         <property name="visible">True</property>
324                         <property name="can_focus">False</property>
325                         <property name="xalign">0</property>
326                         <property name="label" translatable="yes">°C</property>
327                       </object>
328                       <packing>
329                         <property name="expand">True</property>
330                         <property name="fill">True</property>
331                         <property name="position">1</property>
332                       </packing>
333                     </child>
334                   </object>
335                   <packing>
336                     <property name="left_attach">1</property>
337                     <property name="right_attach">2</property>
338                     <property name="top_attach">9</property>
339                     <property name="bottom_attach">10</property>
340                   </packing>
341                 </child>
342                 <child>
343                   <object class="GtkColorButton" id="sensor_color">
344                     <property name="visible">True</property>
345                     <property name="can_focus">True</property>
346                     <property name="receives_default">True</property>
347                     <property name="use_action_appearance">False</property>
348                     <property name="xalign">0</property>
349                     <property name="color">#000000000000</property>
350                   </object>
351                   <packing>
352                     <property name="left_attach">1</property>
353                     <property name="right_attach">2</property>
354                     <property name="top_attach">6</property>
355                     <property name="bottom_attach">7</property>
356                     <property name="x_options"></property>
357                     <property name="x_padding">4</property>
358                     <property name="y_padding">4</property>
359                   </packing>
360                 </child>
361               </object>
362               <packing>
363                 <property name="resize">True</property>
364                 <property name="shrink">False</property>
365               </packing>
366             </child>
367           </object>
368           <packing>
369             <property name="expand">True</property>
370             <property name="fill">True</property>
371             <property name="position">1</property>
372           </packing>
373         </child>
374       </object>
375     </child>
376     <action-widgets>
377       <action-widget response="-3">btn_ok</action-widget>
378       <action-widget response="0">btn_cancel</action-widget>
379     </action-widgets>
380   </object>
381   <object class="GtkListStore" id="sensors_liststore">
382     <columns>
383       <!-- column-name sensor_name -->
384       <column type="gchararray"/>
385     </columns>
386   </object>
387   <object class="GtkAdjustment" id="temp_limit">
388     <property name="upper">256</property>
389     <property name="step_increment">1</property>
390     <property name="page_increment">10</property>
391   </object>
392 </interface>