|
Lines 5-13
Link Here
|
| 5 |
|
5 |
|
| 6 |
(on-next |
6 |
(on-next |
| 7 |
(case (printer-location current) |
7 |
(case (printer-location current) |
| 8 |
((0) (goto "/printers/local" 'printer-name (printer-name text))) |
8 |
((0) (goto "/printers/local" 'printer-name (printer-name text) 'printer-description (printer-description text) )) |
| 9 |
((1) (run-dialog `(/information message ,(_ "Not Implemented yet")))) |
9 |
((1) (run-dialog `(/information message ,(_ "Not Implemented yet")))) |
| 10 |
((2) (goto "/printers/samba" 'printer-name (printer-name text))) |
10 |
((2) (goto "/printers/samba" 'printer-name (printer-name text) 'printer-description (printer-description text) )) |
| 11 |
(else |
11 |
(else |
| 12 |
(run-dialog '(/error reason (_ "Strange choise")))))) |
12 |
(run-dialog '(/error reason (_ "Strange choise")))))) |
| 13 |
|
13 |
|
|
Lines 18-23
Link Here
|
| 18 |
(id 'printer-name (edit (or (global 'printer-name) "") |
18 |
(id 'printer-name (edit (or (global 'printer-name) "") |
| 19 |
(on-change |
19 |
(on-change |
| 20 |
(next-button enabled (not-empty-string? (printer-name text))))))) |
20 |
(next-button enabled (not-empty-string? (printer-name text))))))) |
|
|
21 |
(hbox spacing 1 |
| 22 |
(label (_ "Printer description:")) |
| 23 |
(id 'printer-description (edit (or (global 'printer-description) "")))) |
| 21 |
(label (_"Select printer connection:")) |
24 |
(label (_"Select printer connection:")) |
| 22 |
(id 'printer-location (listbox |
25 |
(id 'printer-location (listbox |
| 23 |
sizepolicy '(expanding . fixed) |
26 |
sizepolicy '(expanding . fixed) |