ig3tool 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
2
  <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
3
- <!--Generated with glade3 3.4.3 on Wed Apr 30 00:49:09 2008 -->
3
+ <!--Generated with glade3 3.4.5 on Tue Oct 21 15:06:07 2008 -->
4
4
  <glade-interface>
5
5
  <widget class="GtkWindow" id="window">
6
6
  <property name="visible">True</property>
@@ -152,7 +152,7 @@
152
152
  <property name="visible">True</property>
153
153
  <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
154
154
  <child>
155
- <widget class="GtkAlignment" id="alignment3">
155
+ <widget class="GtkAlignment" id="alignment1">
156
156
  <property name="visible">True</property>
157
157
  <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
158
158
  <child>
@@ -217,6 +217,17 @@
217
217
  <property name="position">3</property>
218
218
  </packing>
219
219
  </child>
220
+ <child>
221
+ <widget class="GtkLabel" id="label27">
222
+ <property name="visible">True</property>
223
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
224
+ <property name="xalign">1</property>
225
+ <property name="xpad">5</property>
226
+ </widget>
227
+ <packing>
228
+ <property name="position">4</property>
229
+ </packing>
230
+ </child>
220
231
  </widget>
221
232
  </child>
222
233
  </widget>
@@ -279,6 +290,19 @@
279
290
  <property name="position">3</property>
280
291
  </packing>
281
292
  </child>
293
+ <child>
294
+ <widget class="GtkCheckButton" id="continuous_stock_check">
295
+ <property name="visible">True</property>
296
+ <property name="can_focus">True</property>
297
+ <property name="tooltip" translatable="yes">check this box if this product doesn't have a real stock</property>
298
+ <property name="label" translatable="yes">continuous stock?</property>
299
+ <property name="response_id">0</property>
300
+ <property name="draw_indicator">True</property>
301
+ </widget>
302
+ <packing>
303
+ <property name="position">4</property>
304
+ </packing>
305
+ </child>
282
306
  </widget>
283
307
  </child>
284
308
  </widget>
@@ -521,11 +545,11 @@
521
545
  <property name="visible">True</property>
522
546
  <property name="top_padding">10</property>
523
547
  <child>
524
- <widget class="GtkHButtonBox" id="hbuttonbox1">
548
+ <widget class="GtkHButtonBox" id="hbuttonbox3">
525
549
  <property name="visible">True</property>
526
550
  <property name="layout_style">GTK_BUTTONBOX_END</property>
527
551
  <child>
528
- <widget class="GtkButton" id="button3">
552
+ <widget class="GtkButton" id="button1">
529
553
  <property name="visible">True</property>
530
554
  <property name="can_focus">True</property>
531
555
  <property name="receives_default">True</property>
@@ -1007,7 +1031,7 @@
1007
1031
  </widget>
1008
1032
  </child>
1009
1033
  <child>
1010
- <widget class="GtkAlignment" id="alignment44">
1034
+ <widget class="GtkAlignment" id="alignment2">
1011
1035
  <property name="visible">True</property>
1012
1036
  <child>
1013
1037
  <widget class="GtkAlignment" id="alignment55">
@@ -1545,7 +1569,7 @@
1545
1569
  </widget>
1546
1570
  </child>
1547
1571
  <child>
1548
- <widget class="GtkAlignment" id="alignment39">
1572
+ <widget class="GtkAlignment" id="alignment8">
1549
1573
  <property name="visible">True</property>
1550
1574
  <child>
1551
1575
  <widget class="GtkLabel" id="purchase_notification">
@@ -2065,7 +2089,7 @@
2065
2089
  </widget>
2066
2090
  </child>
2067
2091
  <child>
2068
- <widget class="GtkAlignment" id="alignment8">
2092
+ <widget class="GtkAlignment" id="alignment17">
2069
2093
  <property name="visible">True</property>
2070
2094
  <child>
2071
2095
  <widget class="GtkLabel" id="stock_notification">
@@ -2368,11 +2392,11 @@
2368
2392
  <widget class="GtkAlignment" id="alignment37">
2369
2393
  <property name="visible">True</property>
2370
2394
  <child>
2371
- <widget class="GtkHButtonBox" id="hbuttonbox3">
2395
+ <widget class="GtkHButtonBox" id="hbuttonbox4">
2372
2396
  <property name="visible">True</property>
2373
2397
  <property name="layout_style">GTK_BUTTONBOX_END</property>
2374
2398
  <child>
2375
- <widget class="GtkButton" id="button1">
2399
+ <widget class="GtkButton" id="button4">
2376
2400
  <property name="visible">True</property>
2377
2401
  <property name="can_focus">True</property>
2378
2402
  <property name="receives_default">True</property>
@@ -2383,7 +2407,7 @@
2383
2407
  </widget>
2384
2408
  </child>
2385
2409
  <child>
2386
- <widget class="GtkButton" id="button4">
2410
+ <widget class="GtkButton" id="button5">
2387
2411
  <property name="visible">True</property>
2388
2412
  <property name="can_focus">True</property>
2389
2413
  <property name="receives_default">True</property>
@@ -2455,7 +2479,7 @@
2455
2479
  </widget>
2456
2480
  </child>
2457
2481
  <child>
2458
- <widget class="GtkAlignment" id="alignment19">
2482
+ <widget class="GtkAlignment" id="alignment18">
2459
2483
  <property name="visible">True</property>
2460
2484
  <property name="right_padding">25</property>
2461
2485
  <child>
@@ -24,86 +24,40 @@
24
24
  <placeholder/>
25
25
  </child>
26
26
  <child>
27
- <widget class="GtkAlignment" id="alignment2">
28
- <property name="visible">True</property>
29
- <child>
30
- <widget class="GtkLabel" id="saldo_label">
31
- <property name="visible">True</property>
32
- <property name="xalign">0</property>
33
- </widget>
34
- </child>
35
- </widget>
36
- <packing>
37
- <property name="left_attach">2</property>
38
- <property name="right_attach">3</property>
39
- <property name="top_attach">1</property>
40
- <property name="bottom_attach">2</property>
41
- </packing>
42
- </child>
43
- <child>
44
- <widget class="GtkAlignment" id="alignment1">
45
- <property name="visible">True</property>
46
- <child>
47
- <widget class="GtkLabel" id="saldo">
48
- <property name="visible">True</property>
49
- <property name="xalign">0</property>
50
- <property name="use_markup">True</property>
51
- </widget>
52
- </child>
53
- </widget>
54
- <packing>
55
- <property name="left_attach">3</property>
56
- <property name="right_attach">4</property>
57
- <property name="top_attach">1</property>
58
- <property name="bottom_attach">2</property>
59
- </packing>
60
- </child>
61
- <child>
62
- <widget class="GtkComboBox" id="debugger">
27
+ <widget class="GtkLabel" id="label6">
63
28
  <property name="visible">True</property>
64
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
65
- <property name="active">0</property>
66
- <signal name="changed" handler="debugger_changed"/>
29
+ <property name="xalign">0</property>
30
+ <property name="label" translatable="yes">Debugger:</property>
67
31
  </widget>
68
32
  <packing>
69
- <property name="left_attach">1</property>
70
- <property name="right_attach">2</property>
71
33
  <property name="top_attach">1</property>
72
34
  <property name="bottom_attach">2</property>
35
+ <property name="x_options">GTK_FILL</property>
36
+ <property name="y_options"></property>
73
37
  </packing>
74
38
  </child>
75
39
  <child>
76
- <widget class="GtkEntry" id="smartzap">
40
+ <widget class="GtkEntry" id="count">
77
41
  <property name="visible">True</property>
78
42
  <property name="can_focus">True</property>
79
- <signal name="activate" handler="smartzap_activate"/>
43
+ <property name="text" translatable="yes">1</property>
44
+ <signal name="activate" handler="count_activate"/>
80
45
  </widget>
81
46
  <packing>
82
47
  <property name="left_attach">1</property>
83
48
  <property name="right_attach">2</property>
49
+ <property name="top_attach">2</property>
50
+ <property name="bottom_attach">3</property>
84
51
  <property name="y_options"></property>
85
52
  </packing>
86
53
  </child>
87
54
  <child>
88
- <widget class="GtkLabel" id="label1">
89
- <property name="visible">True</property>
90
- <property name="xalign">0</property>
91
- <property name="label" translatable="yes">Smartzap:</property>
92
- </widget>
93
- <packing>
94
- <property name="x_options">GTK_FILL</property>
95
- <property name="y_options"></property>
96
- </packing>
97
- </child>
98
- <child>
99
- <widget class="GtkLabel" id="label7">
55
+ <widget class="GtkLabel" id="label5">
100
56
  <property name="visible">True</property>
101
57
  <property name="xalign">0</property>
102
- <property name="label" translatable="yes">Lid:</property>
58
+ <property name="label" translatable="yes">Aantal:</property>
103
59
  </widget>
104
60
  <packing>
105
- <property name="left_attach">2</property>
106
- <property name="right_attach">3</property>
107
61
  <property name="top_attach">2</property>
108
62
  <property name="bottom_attach">3</property>
109
63
  <property name="x_options">GTK_FILL</property>
@@ -115,7 +69,8 @@
115
69
  <property name="visible">True</property>
116
70
  <property name="active">0</property>
117
71
  <property name="items" translatable="yes">non member
118
- debugger</property>
72
+ debugger
73
+ member</property>
119
74
  <signal name="changed" handler="member_changed"/>
120
75
  <child internal-child="entry">
121
76
  <widget class="GtkEntry" id="comboboxentry-entry1">
@@ -133,12 +88,14 @@ debugger</property>
133
88
  </packing>
134
89
  </child>
135
90
  <child>
136
- <widget class="GtkLabel" id="label5">
91
+ <widget class="GtkLabel" id="label7">
137
92
  <property name="visible">True</property>
138
93
  <property name="xalign">0</property>
139
- <property name="label" translatable="yes">Aantal:</property>
94
+ <property name="label" translatable="yes">Lid:</property>
140
95
  </widget>
141
96
  <packing>
97
+ <property name="left_attach">2</property>
98
+ <property name="right_attach">3</property>
142
99
  <property name="top_attach">2</property>
143
100
  <property name="bottom_attach">3</property>
144
101
  <property name="x_options">GTK_FILL</property>
@@ -146,31 +103,75 @@ debugger</property>
146
103
  </packing>
147
104
  </child>
148
105
  <child>
149
- <widget class="GtkEntry" id="count">
106
+ <widget class="GtkLabel" id="label1">
107
+ <property name="visible">True</property>
108
+ <property name="xalign">0</property>
109
+ <property name="label" translatable="yes">Smartzap:</property>
110
+ </widget>
111
+ <packing>
112
+ <property name="x_options">GTK_FILL</property>
113
+ <property name="y_options"></property>
114
+ </packing>
115
+ </child>
116
+ <child>
117
+ <widget class="GtkEntry" id="smartzap">
150
118
  <property name="visible">True</property>
151
119
  <property name="can_focus">True</property>
152
- <property name="text" translatable="yes">1</property>
153
- <signal name="activate" handler="count_activate"/>
120
+ <signal name="activate" handler="smartzap_activate"/>
154
121
  </widget>
155
122
  <packing>
156
123
  <property name="left_attach">1</property>
157
124
  <property name="right_attach">2</property>
158
- <property name="top_attach">2</property>
159
- <property name="bottom_attach">3</property>
160
125
  <property name="y_options"></property>
161
126
  </packing>
162
127
  </child>
163
128
  <child>
164
- <widget class="GtkLabel" id="label6">
129
+ <widget class="GtkComboBox" id="debugger">
165
130
  <property name="visible">True</property>
166
- <property name="xalign">0</property>
167
- <property name="label" translatable="yes">Debugger:</property>
131
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
132
+ <property name="active">0</property>
133
+ <signal name="changed" handler="debugger_changed"/>
168
134
  </widget>
169
135
  <packing>
136
+ <property name="left_attach">1</property>
137
+ <property name="right_attach">2</property>
138
+ <property name="top_attach">1</property>
139
+ <property name="bottom_attach">2</property>
140
+ </packing>
141
+ </child>
142
+ <child>
143
+ <widget class="GtkAlignment" id="alignment1">
144
+ <property name="visible">True</property>
145
+ <child>
146
+ <widget class="GtkLabel" id="saldo">
147
+ <property name="visible">True</property>
148
+ <property name="xalign">0</property>
149
+ <property name="use_markup">True</property>
150
+ </widget>
151
+ </child>
152
+ </widget>
153
+ <packing>
154
+ <property name="left_attach">3</property>
155
+ <property name="right_attach">4</property>
156
+ <property name="top_attach">1</property>
157
+ <property name="bottom_attach">2</property>
158
+ </packing>
159
+ </child>
160
+ <child>
161
+ <widget class="GtkAlignment" id="alignment2">
162
+ <property name="visible">True</property>
163
+ <child>
164
+ <widget class="GtkLabel" id="saldo_label">
165
+ <property name="visible">True</property>
166
+ <property name="xalign">0</property>
167
+ </widget>
168
+ </child>
169
+ </widget>
170
+ <packing>
171
+ <property name="left_attach">2</property>
172
+ <property name="right_attach">3</property>
170
173
  <property name="top_attach">1</property>
171
174
  <property name="bottom_attach">2</property>
172
- <property name="x_options">GTK_FILL</property>
173
- <property name="y_options"></property>
174
175
  </packing>
175
176
  </child>
176
177
  </widget>
@@ -251,27 +252,33 @@ debugger</property>
251
252
  <property name="column_spacing">6</property>
252
253
  <property name="row_spacing">3</property>
253
254
  <child>
254
- <widget class="GtkLabel" id="label9">
255
+ <widget class="GtkEntry" id="change">
255
256
  <property name="visible">True</property>
256
- <property name="xalign">0</property>
257
- <property name="label" translatable="yes">€</property>
257
+ <property name="can_focus">True</property>
258
+ <property name="editable">False</property>
259
+ <property name="has_frame">False</property>
260
+ <property name="width_chars">9</property>
258
261
  </widget>
259
262
  <packing>
260
- <property name="left_attach">2</property>
261
- <property name="right_attach">3</property>
263
+ <property name="left_attach">1</property>
264
+ <property name="right_attach">2</property>
265
+ <property name="top_attach">2</property>
266
+ <property name="bottom_attach">3</property>
262
267
  <property name="x_options">GTK_FILL</property>
263
268
  <property name="y_options"></property>
264
269
  </packing>
265
270
  </child>
266
271
  <child>
267
- <widget class="GtkLabel" id="label10">
272
+ <widget class="GtkEntry" id="paid">
268
273
  <property name="visible">True</property>
269
- <property name="xalign">0</property>
270
- <property name="label" translatable="yes">€</property>
274
+ <property name="can_focus">True</property>
275
+ <property name="has_frame">False</property>
276
+ <property name="width_chars">9</property>
277
+ <signal name="changed" handler="price_entries_changed"/>
271
278
  </widget>
272
279
  <packing>
273
- <property name="left_attach">2</property>
274
- <property name="right_attach">3</property>
280
+ <property name="left_attach">1</property>
281
+ <property name="right_attach">2</property>
275
282
  <property name="top_attach">1</property>
276
283
  <property name="bottom_attach">2</property>
277
284
  <property name="x_options">GTK_FILL</property>
@@ -279,27 +286,31 @@ debugger</property>
279
286
  </packing>
280
287
  </child>
281
288
  <child>
282
- <widget class="GtkLabel" id="label11">
289
+ <widget class="GtkEntry" id="total">
283
290
  <property name="visible">True</property>
284
- <property name="xalign">0</property>
285
- <property name="label" translatable="yes">€</property>
291
+ <property name="can_focus">True</property>
292
+ <property name="editable">False</property>
293
+ <property name="has_frame">False</property>
294
+ <property name="width_chars">9</property>
295
+ <property name="text" translatable="yes">0.00</property>
296
+ <signal name="changed" handler="price_entries_changed"/>
286
297
  </widget>
287
298
  <packing>
288
- <property name="left_attach">2</property>
289
- <property name="right_attach">3</property>
290
- <property name="top_attach">2</property>
291
- <property name="bottom_attach">3</property>
299
+ <property name="left_attach">1</property>
300
+ <property name="right_attach">2</property>
292
301
  <property name="x_options">GTK_FILL</property>
293
302
  <property name="y_options"></property>
294
303
  </packing>
295
304
  </child>
296
305
  <child>
297
- <widget class="GtkLabel" id="label12">
306
+ <widget class="GtkLabel" id="label14">
298
307
  <property name="visible">True</property>
299
308
  <property name="xalign">0</property>
300
- <property name="label" translatable="yes">Totaal:</property>
309
+ <property name="label" translatable="yes">Terug:</property>
301
310
  </widget>
302
311
  <packing>
312
+ <property name="top_attach">2</property>
313
+ <property name="bottom_attach">3</property>
303
314
  <property name="x_options">GTK_FILL</property>
304
315
  <property name="y_options"></property>
305
316
  </packing>
@@ -318,46 +329,40 @@ debugger</property>
318
329
  </packing>
319
330
  </child>
320
331
  <child>
321
- <widget class="GtkLabel" id="label14">
332
+ <widget class="GtkLabel" id="label12">
322
333
  <property name="visible">True</property>
323
334
  <property name="xalign">0</property>
324
- <property name="label" translatable="yes">Terug:</property>
335
+ <property name="label" translatable="yes">Totaal:</property>
325
336
  </widget>
326
337
  <packing>
327
- <property name="top_attach">2</property>
328
- <property name="bottom_attach">3</property>
329
338
  <property name="x_options">GTK_FILL</property>
330
339
  <property name="y_options"></property>
331
340
  </packing>
332
341
  </child>
333
342
  <child>
334
- <widget class="GtkEntry" id="total">
343
+ <widget class="GtkLabel" id="label11">
335
344
  <property name="visible">True</property>
336
- <property name="can_focus">True</property>
337
- <property name="editable">False</property>
338
- <property name="has_frame">False</property>
339
- <property name="width_chars">9</property>
340
- <property name="text" translatable="yes">0.00</property>
341
- <signal name="changed" handler="price_entries_changed"/>
345
+ <property name="xalign">0</property>
346
+ <property name="label" translatable="yes">€</property>
342
347
  </widget>
343
348
  <packing>
344
- <property name="left_attach">1</property>
345
- <property name="right_attach">2</property>
349
+ <property name="left_attach">2</property>
350
+ <property name="right_attach">3</property>
351
+ <property name="top_attach">2</property>
352
+ <property name="bottom_attach">3</property>
346
353
  <property name="x_options">GTK_FILL</property>
347
354
  <property name="y_options"></property>
348
355
  </packing>
349
356
  </child>
350
357
  <child>
351
- <widget class="GtkEntry" id="paid">
358
+ <widget class="GtkLabel" id="label10">
352
359
  <property name="visible">True</property>
353
- <property name="can_focus">True</property>
354
- <property name="has_frame">False</property>
355
- <property name="width_chars">9</property>
356
- <signal name="changed" handler="price_entries_changed"/>
360
+ <property name="xalign">0</property>
361
+ <property name="label" translatable="yes">€</property>
357
362
  </widget>
358
363
  <packing>
359
- <property name="left_attach">1</property>
360
- <property name="right_attach">2</property>
364
+ <property name="left_attach">2</property>
365
+ <property name="right_attach">3</property>
361
366
  <property name="top_attach">1</property>
362
367
  <property name="bottom_attach">2</property>
363
368
  <property name="x_options">GTK_FILL</property>
@@ -365,18 +370,14 @@ debugger</property>
365
370
  </packing>
366
371
  </child>
367
372
  <child>
368
- <widget class="GtkEntry" id="change">
373
+ <widget class="GtkLabel" id="label9">
369
374
  <property name="visible">True</property>
370
- <property name="can_focus">True</property>
371
- <property name="editable">False</property>
372
- <property name="has_frame">False</property>
373
- <property name="width_chars">9</property>
375
+ <property name="xalign">0</property>
376
+ <property name="label" translatable="yes">€</property>
374
377
  </widget>
375
378
  <packing>
376
- <property name="left_attach">1</property>
377
- <property name="right_attach">2</property>
378
- <property name="top_attach">2</property>
379
- <property name="bottom_attach">3</property>
379
+ <property name="left_attach">2</property>
380
+ <property name="right_attach">3</property>
380
381
  <property name="x_options">GTK_FILL</property>
381
382
  <property name="y_options"></property>
382
383
  </packing>
data/lib/lib/util.rb CHANGED
@@ -35,6 +35,12 @@ class String
35
35
  self
36
36
  end
37
37
  end
38
+
39
+ def to_boolean
40
+ return true if (self == "t" or self.to_i != 0)
41
+ false
42
+ end
43
+
38
44
  end
39
45
 
40
46
  class Numeric