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