1 // generated by Fast Light User Interface Designer (fluid) version 1.0305
2 
3 #include "gettext.h"
4 #include "cwioUI.h"
5 
6 Fl_Input2 *txt_to_send=(Fl_Input2 *)0;
7 
cb_txt_to_send(Fl_Input2 *,void *)8 static void cb_txt_to_send(Fl_Input2*, void*) {
9   control_function_keys();
10 }
11 
12 Fl_Value_Slider2 *sldr_cwioWPM=(Fl_Value_Slider2 *)0;
13 
cb_sldr_cwioWPM(Fl_Value_Slider2 * o,void *)14 static void cb_sldr_cwioWPM(Fl_Value_Slider2* o, void*) {
15   progStatus.cwioWPM = (int)o->value();
16 }
17 
18 Fl_Button *btn_cwio_config=(Fl_Button *)0;
19 
cb_btn_cwio_config(Fl_Button *,void *)20 static void cb_btn_cwio_config(Fl_Button*, void*) {
21   open_cwio_config();
22 }
23 
24 Fl_Button *btn_cwio_clear=(Fl_Button *)0;
25 
cb_btn_cwio_clear(Fl_Button *,void *)26 static void cb_btn_cwio_clear(Fl_Button*, void*) {
27   cwio_clear_text();
28 }
29 
30 Fl_Light_Button *btn_cwioSEND=(Fl_Light_Button *)0;
31 
cb_btn_cwioSEND(Fl_Light_Button * o,void *)32 static void cb_btn_cwioSEND(Fl_Light_Button* o, void*) {
33   send_text(o->value());
34 }
35 
cb_btn_msg(Fl_Button *,void *)36 static void cb_btn_msg(Fl_Button*, void*) {
37   exec_msg(0);
38 }
39 
cb_btn_msg1(Fl_Button *,void *)40 static void cb_btn_msg1(Fl_Button*, void*) {
41   exec_msg(1);
42 }
43 
cb_btn_msg2(Fl_Button *,void *)44 static void cb_btn_msg2(Fl_Button*, void*) {
45   exec_msg(2);
46 }
47 
cb_btn_msg3(Fl_Button *,void *)48 static void cb_btn_msg3(Fl_Button*, void*) {
49   exec_msg(3);
50 }
51 
cb_btn_msg4(Fl_Button *,void *)52 static void cb_btn_msg4(Fl_Button*, void*) {
53   exec_msg(4);
54 }
55 
cb_btn_msg5(Fl_Button *,void *)56 static void cb_btn_msg5(Fl_Button*, void*) {
57   exec_msg(5);
58 }
59 
cb_btn_msg6(Fl_Button *,void *)60 static void cb_btn_msg6(Fl_Button*, void*) {
61   exec_msg(6);
62 }
63 
cb_btn_msg7(Fl_Button *,void *)64 static void cb_btn_msg7(Fl_Button*, void*) {
65   exec_msg(7);
66 }
67 
cb_btn_msg8(Fl_Button *,void *)68 static void cb_btn_msg8(Fl_Button*, void*) {
69   exec_msg(8);
70 }
71 
cb_btn_msg9(Fl_Button *,void *)72 static void cb_btn_msg9(Fl_Button*, void*) {
73   exec_msg(9);
74 }
75 
cb_btn_msga(Fl_Button *,void *)76 static void cb_btn_msga(Fl_Button*, void*) {
77   exec_msg(10);
78 }
79 
80 Fl_Button *btn_msg[12]={(Fl_Button *)0};
81 
cb_btn_msgb(Fl_Button *,void *)82 static void cb_btn_msgb(Fl_Button*, void*) {
83   exec_msg(11);
84 }
85 
cwio_window()86 Fl_Double_Window* cwio_window() {
87   Fl_Double_Window* w;
88   { Fl_Double_Window* o = new Fl_Double_Window(670, 130, _("CW keying"));
89     w = o; if (w) {/* empty */}
90     { txt_to_send = new Fl_Input2(2, 2, 666, 68);
91       txt_to_send->type(4);
92       txt_to_send->box(FL_DOWN_BOX);
93       txt_to_send->color(FL_BACKGROUND2_COLOR);
94       txt_to_send->selection_color(FL_SELECTION_COLOR);
95       txt_to_send->labeltype(FL_NORMAL_LABEL);
96       txt_to_send->labelfont(0);
97       txt_to_send->labelsize(14);
98       txt_to_send->labelcolor(FL_FOREGROUND_COLOR);
99       txt_to_send->callback((Fl_Callback*)cb_txt_to_send);
100       txt_to_send->align(Fl_Align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
101       txt_to_send->when(FL_WHEN_CHANGED);
102       Fl_Group::current()->resizable(txt_to_send);
103     } // Fl_Input2* txt_to_send
104     { Fl_Group* o = new Fl_Group(0, 70, 670, 60);
105       { Fl_Value_Slider2* o = sldr_cwioWPM = new Fl_Value_Slider2(4, 74, 300, 20, _("char WPM"));
106         sldr_cwioWPM->tooltip(_("My transmit CW WPM"));
107         sldr_cwioWPM->type(5);
108         sldr_cwioWPM->box(FL_DOWN_BOX);
109         sldr_cwioWPM->color((Fl_Color)246);
110         sldr_cwioWPM->selection_color((Fl_Color)4);
111         sldr_cwioWPM->labeltype(FL_NORMAL_LABEL);
112         sldr_cwioWPM->labelfont(0);
113         sldr_cwioWPM->labelsize(14);
114         sldr_cwioWPM->labelcolor(FL_FOREGROUND_COLOR);
115         sldr_cwioWPM->minimum(5);
116         sldr_cwioWPM->maximum(50);
117         sldr_cwioWPM->step(1);
118         sldr_cwioWPM->value(20);
119         sldr_cwioWPM->textsize(14);
120         sldr_cwioWPM->callback((Fl_Callback*)cb_sldr_cwioWPM);
121         sldr_cwioWPM->align(Fl_Align(FL_ALIGN_RIGHT));
122         sldr_cwioWPM->when(FL_WHEN_CHANGED);
123         o->value(progStatus.cwioWPM);
124       } // Fl_Value_Slider2* sldr_cwioWPM
125       { btn_cwio_config = new Fl_Button(390, 73, 60, 22, _("Config"));
126         btn_cwio_config->tooltip(_("Clear transmit text"));
127         btn_cwio_config->callback((Fl_Callback*)cb_btn_cwio_config);
128       } // Fl_Button* btn_cwio_config
129       { btn_cwio_clear = new Fl_Button(473, 73, 60, 22, _("Clear"));
130         btn_cwio_clear->tooltip(_("Clear transmit text"));
131         btn_cwio_clear->callback((Fl_Callback*)cb_btn_cwio_clear);
132       } // Fl_Button* btn_cwio_clear
133       { btn_cwioSEND = new Fl_Light_Button(557, 73, 105, 22, _("Send/Pause"));
134         btn_cwioSEND->tooltip(_("Send / Pause sending characters"));
135         btn_cwioSEND->callback((Fl_Callback*)cb_btn_cwioSEND);
136       } // Fl_Light_Button* btn_cwioSEND
137       { Fl_Group* o = new Fl_Group(2, 98, 220, 30);
138         o->box(FL_ENGRAVED_BOX);
139         { btn_msg[0] = new Fl_Button(5, 102, 50, 22, _("F 1"));
140           btn_msg[0]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
141           btn_msg[0]->callback((Fl_Callback*)cb_btn_msg);
142         } // Fl_Button* btn_msg[0]
143         { btn_msg[1] = new Fl_Button(59, 102, 50, 22, _("F 2"));
144           btn_msg[1]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
145           btn_msg[1]->callback((Fl_Callback*)cb_btn_msg1);
146         } // Fl_Button* btn_msg[1]
147         { btn_msg[2] = new Fl_Button(113, 102, 50, 22, _("F 3"));
148           btn_msg[2]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
149           btn_msg[2]->callback((Fl_Callback*)cb_btn_msg2);
150         } // Fl_Button* btn_msg[2]
151         { btn_msg[3] = new Fl_Button(168, 102, 50, 22, _("F 4"));
152           btn_msg[3]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
153           btn_msg[3]->callback((Fl_Callback*)cb_btn_msg3);
154         } // Fl_Button* btn_msg[3]
155         o->end();
156       } // Fl_Group* o
157       { Fl_Group* o = new Fl_Group(225, 98, 220, 30);
158         o->box(FL_ENGRAVED_BOX);
159         { btn_msg[4] = new Fl_Button(229, 102, 50, 22, _("F 5"));
160           btn_msg[4]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
161           btn_msg[4]->callback((Fl_Callback*)cb_btn_msg4);
162         } // Fl_Button* btn_msg[4]
163         { btn_msg[5] = new Fl_Button(283, 102, 50, 22, _("F 6"));
164           btn_msg[5]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
165           btn_msg[5]->callback((Fl_Callback*)cb_btn_msg5);
166         } // Fl_Button* btn_msg[5]
167         { btn_msg[6] = new Fl_Button(337, 102, 50, 22, _("F 7"));
168           btn_msg[6]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
169           btn_msg[6]->callback((Fl_Callback*)cb_btn_msg6);
170         } // Fl_Button* btn_msg[6]
171         { btn_msg[7] = new Fl_Button(391, 102, 50, 22, _("F 8"));
172           btn_msg[7]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
173           btn_msg[7]->callback((Fl_Callback*)cb_btn_msg7);
174         } // Fl_Button* btn_msg[7]
175         o->end();
176       } // Fl_Group* o
177       { Fl_Group* o = new Fl_Group(448, 98, 220, 30);
178         o->box(FL_ENGRAVED_BOX);
179         { btn_msg[8] = new Fl_Button(451, 102, 50, 22, _("F 9"));
180           btn_msg[8]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
181           btn_msg[8]->callback((Fl_Callback*)cb_btn_msg8);
182         } // Fl_Button* btn_msg[8]
183         { btn_msg[9] = new Fl_Button(505, 102, 50, 22, _("F 10"));
184           btn_msg[9]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
185           btn_msg[9]->callback((Fl_Callback*)cb_btn_msg9);
186         } // Fl_Button* btn_msg[9]
187         { btn_msg[10] = new Fl_Button(559, 102, 50, 22, _("F 11"));
188           btn_msg[10]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
189           btn_msg[10]->callback((Fl_Callback*)cb_btn_msga);
190         } // Fl_Button* btn_msg[10]
191         { btn_msg[11] = new Fl_Button(614, 102, 50, 22, _("F 12"));
192           btn_msg[11]->tooltip(_("Action - Function Key Left click\nEdit - Control left click"));
193           btn_msg[11]->callback((Fl_Callback*)cb_btn_msgb);
194         } // Fl_Button* btn_msg[11]
195         o->end();
196       } // Fl_Group* o
197       o->end();
198     } // Fl_Group* o
199     o->end();
200   } // Fl_Double_Window* o
201   return w;
202 }
203 
cb_edit_label(Fl_Input2 *,void *)204 static void cb_edit_label(Fl_Input2*, void*) {
205   label_cb(1);
206 }
207 
cb_edit_msg(Fl_Input2 *,void *)208 static void cb_edit_msg(Fl_Input2*, void*) {
209   msg_cb(1);
210 }
211 
cb_edit_label1(Fl_Input2 *,void *)212 static void cb_edit_label1(Fl_Input2*, void*) {
213   label_cb(2);
214 }
215 
cb_edit_msg1(Fl_Input2 *,void *)216 static void cb_edit_msg1(Fl_Input2*, void*) {
217   msg_cb(2);
218 }
219 
cb_edit_label2(Fl_Input2 *,void *)220 static void cb_edit_label2(Fl_Input2*, void*) {
221   label_cb(3);
222 }
223 
cb_edit_msg2(Fl_Input2 *,void *)224 static void cb_edit_msg2(Fl_Input2*, void*) {
225   msg_cb(3);
226 }
227 
cb_edit_label3(Fl_Input2 *,void *)228 static void cb_edit_label3(Fl_Input2*, void*) {
229   label_cb(4);
230 }
231 
cb_edit_msg3(Fl_Input2 *,void *)232 static void cb_edit_msg3(Fl_Input2*, void*) {
233   msg_cb(4);
234 }
235 
cb_edit_label4(Fl_Input2 *,void *)236 static void cb_edit_label4(Fl_Input2*, void*) {
237   label_cb(5);
238 }
239 
cb_edit_msg4(Fl_Input2 *,void *)240 static void cb_edit_msg4(Fl_Input2*, void*) {
241   msg_cb(5);
242 }
243 
cb_edit_label5(Fl_Input2 *,void *)244 static void cb_edit_label5(Fl_Input2*, void*) {
245   label_cb(6);
246 }
247 
cb_edit_msg5(Fl_Input2 *,void *)248 static void cb_edit_msg5(Fl_Input2*, void*) {
249   msg_cb(6);
250 }
251 
cb_edit_label6(Fl_Input2 *,void *)252 static void cb_edit_label6(Fl_Input2*, void*) {
253   label_cb(7);
254 }
255 
cb_edit_msg6(Fl_Input2 *,void *)256 static void cb_edit_msg6(Fl_Input2*, void*) {
257   msg_cb(7);
258 }
259 
cb_edit_label7(Fl_Input2 *,void *)260 static void cb_edit_label7(Fl_Input2*, void*) {
261   label_cb(8);
262 }
263 
cb_edit_msg7(Fl_Input2 *,void *)264 static void cb_edit_msg7(Fl_Input2*, void*) {
265   msg_cb(8);
266 }
267 
cb_edit_label8(Fl_Input2 *,void *)268 static void cb_edit_label8(Fl_Input2*, void*) {
269   label_cb(9);
270 }
271 
cb_edit_msg8(Fl_Input2 *,void *)272 static void cb_edit_msg8(Fl_Input2*, void*) {
273   msg_cb(9);
274 }
275 
cb_edit_label9(Fl_Input2 *,void *)276 static void cb_edit_label9(Fl_Input2*, void*) {
277   label_cb(10);
278 }
279 
cb_edit_msg9(Fl_Input2 *,void *)280 static void cb_edit_msg9(Fl_Input2*, void*) {
281   msg_cb(10);
282 }
283 
cb_edit_labela(Fl_Input2 *,void *)284 static void cb_edit_labela(Fl_Input2*, void*) {
285   label_cb(11);
286 }
287 
cb_edit_msga(Fl_Input2 *,void *)288 static void cb_edit_msga(Fl_Input2*, void*) {
289   msg_cb(11);
290 }
291 
292 Fl_Input2 *edit_label[12]={(Fl_Input2 *)0};
293 
cb_edit_labelb(Fl_Input2 *,void *)294 static void cb_edit_labelb(Fl_Input2*, void*) {
295   label_cb(12);
296 }
297 
298 Fl_Input2 *edit_msg[12]={(Fl_Input2 *)0};
299 
cb_edit_msgb(Fl_Input2 *,void *)300 static void cb_edit_msgb(Fl_Input2*, void*) {
301   msg_cb(12);
302 }
303 
304 Fl_Button *btn_cancel_edit=(Fl_Button *)0;
305 
cb_btn_cancel_edit(Fl_Button *,void *)306 static void cb_btn_cancel_edit(Fl_Button*, void*) {
307   cancel_edit();
308 }
309 
310 Fl_Button *btn_apply_edit=(Fl_Button *)0;
311 
cb_btn_apply_edit(Fl_Button *,void *)312 static void cb_btn_apply_edit(Fl_Button*, void*) {
313   apply_edit();
314 }
315 
316 Fl_Button *btn_done_edit=(Fl_Button *)0;
317 
cb_btn_done_edit(Fl_Button *,void *)318 static void cb_btn_done_edit(Fl_Button*, void*) {
319   done_edit();
320 }
321 
make_message_editor()322 Fl_Double_Window* make_message_editor() {
323   Fl_Double_Window* w;
324   { Fl_Double_Window* o = new Fl_Double_Window(603, 348, _("Message Editor"));
325     w = o; if (w) {/* empty */}
326     { Fl_Tabs* o = new Fl_Tabs(0, 0, 530, 345);
327       o->align(Fl_Align(FL_ALIGN_TOP|FL_ALIGN_INSIDE));
328       { Fl_Group* o = new Fl_Group(0, 25, 530, 320, _("F1-F4"));
329         { new Fl_Box(22, 30, 84, 20, _("Label"));
330         } // Fl_Box* o
331         { new Fl_Box(211, 30, 223, 20, _("Message Text"));
332         } // Fl_Box* o
333         { edit_label[0] = new Fl_Input2(5, 74, 80, 22, _("F1"));
334           edit_label[0]->box(FL_DOWN_BOX);
335           edit_label[0]->color(FL_BACKGROUND2_COLOR);
336           edit_label[0]->selection_color(FL_SELECTION_COLOR);
337           edit_label[0]->labeltype(FL_NORMAL_LABEL);
338           edit_label[0]->labelfont(0);
339           edit_label[0]->labelsize(14);
340           edit_label[0]->labelcolor(FL_FOREGROUND_COLOR);
341           edit_label[0]->callback((Fl_Callback*)cb_edit_label);
342           edit_label[0]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
343           edit_label[0]->when(FL_WHEN_RELEASE);
344         } // Fl_Input2* edit_label[0]
345         { edit_msg[0] = new Fl_Input2(90, 55, 435, 65);
346           edit_msg[0]->type(4);
347           edit_msg[0]->box(FL_DOWN_BOX);
348           edit_msg[0]->color(FL_BACKGROUND2_COLOR);
349           edit_msg[0]->selection_color(FL_SELECTION_COLOR);
350           edit_msg[0]->labeltype(FL_NORMAL_LABEL);
351           edit_msg[0]->labelfont(0);
352           edit_msg[0]->labelsize(14);
353           edit_msg[0]->labelcolor(FL_FOREGROUND_COLOR);
354           edit_msg[0]->callback((Fl_Callback*)cb_edit_msg);
355           edit_msg[0]->align(Fl_Align(FL_ALIGN_LEFT));
356           edit_msg[0]->when(FL_WHEN_RELEASE);
357         } // Fl_Input2* edit_msg[0]
358         { edit_label[1] = new Fl_Input2(5, 144, 80, 22, _("F2"));
359           edit_label[1]->box(FL_DOWN_BOX);
360           edit_label[1]->color(FL_BACKGROUND2_COLOR);
361           edit_label[1]->selection_color(FL_SELECTION_COLOR);
362           edit_label[1]->labeltype(FL_NORMAL_LABEL);
363           edit_label[1]->labelfont(0);
364           edit_label[1]->labelsize(14);
365           edit_label[1]->labelcolor(FL_FOREGROUND_COLOR);
366           edit_label[1]->callback((Fl_Callback*)cb_edit_label1);
367           edit_label[1]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
368           edit_label[1]->when(FL_WHEN_RELEASE);
369         } // Fl_Input2* edit_label[1]
370         { edit_msg[1] = new Fl_Input2(90, 125, 435, 65);
371           edit_msg[1]->type(4);
372           edit_msg[1]->box(FL_DOWN_BOX);
373           edit_msg[1]->color(FL_BACKGROUND2_COLOR);
374           edit_msg[1]->selection_color(FL_SELECTION_COLOR);
375           edit_msg[1]->labeltype(FL_NORMAL_LABEL);
376           edit_msg[1]->labelfont(0);
377           edit_msg[1]->labelsize(14);
378           edit_msg[1]->labelcolor(FL_FOREGROUND_COLOR);
379           edit_msg[1]->callback((Fl_Callback*)cb_edit_msg1);
380           edit_msg[1]->align(Fl_Align(FL_ALIGN_LEFT));
381           edit_msg[1]->when(FL_WHEN_RELEASE);
382         } // Fl_Input2* edit_msg[1]
383         { edit_label[2] = new Fl_Input2(5, 214, 80, 22, _("F3"));
384           edit_label[2]->box(FL_DOWN_BOX);
385           edit_label[2]->color(FL_BACKGROUND2_COLOR);
386           edit_label[2]->selection_color(FL_SELECTION_COLOR);
387           edit_label[2]->labeltype(FL_NORMAL_LABEL);
388           edit_label[2]->labelfont(0);
389           edit_label[2]->labelsize(14);
390           edit_label[2]->labelcolor(FL_FOREGROUND_COLOR);
391           edit_label[2]->callback((Fl_Callback*)cb_edit_label2);
392           edit_label[2]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
393           edit_label[2]->when(FL_WHEN_RELEASE);
394         } // Fl_Input2* edit_label[2]
395         { edit_msg[2] = new Fl_Input2(90, 195, 435, 65);
396           edit_msg[2]->type(4);
397           edit_msg[2]->box(FL_DOWN_BOX);
398           edit_msg[2]->color(FL_BACKGROUND2_COLOR);
399           edit_msg[2]->selection_color(FL_SELECTION_COLOR);
400           edit_msg[2]->labeltype(FL_NORMAL_LABEL);
401           edit_msg[2]->labelfont(0);
402           edit_msg[2]->labelsize(14);
403           edit_msg[2]->labelcolor(FL_FOREGROUND_COLOR);
404           edit_msg[2]->callback((Fl_Callback*)cb_edit_msg2);
405           edit_msg[2]->align(Fl_Align(FL_ALIGN_LEFT));
406           edit_msg[2]->when(FL_WHEN_RELEASE);
407         } // Fl_Input2* edit_msg[2]
408         { edit_label[3] = new Fl_Input2(5, 284, 80, 22, _("F4"));
409           edit_label[3]->box(FL_DOWN_BOX);
410           edit_label[3]->color(FL_BACKGROUND2_COLOR);
411           edit_label[3]->selection_color(FL_SELECTION_COLOR);
412           edit_label[3]->labeltype(FL_NORMAL_LABEL);
413           edit_label[3]->labelfont(0);
414           edit_label[3]->labelsize(14);
415           edit_label[3]->labelcolor(FL_FOREGROUND_COLOR);
416           edit_label[3]->callback((Fl_Callback*)cb_edit_label3);
417           edit_label[3]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
418           edit_label[3]->when(FL_WHEN_RELEASE);
419         } // Fl_Input2* edit_label[3]
420         { edit_msg[3] = new Fl_Input2(90, 265, 435, 65);
421           edit_msg[3]->type(4);
422           edit_msg[3]->box(FL_DOWN_BOX);
423           edit_msg[3]->color(FL_BACKGROUND2_COLOR);
424           edit_msg[3]->selection_color(FL_SELECTION_COLOR);
425           edit_msg[3]->labeltype(FL_NORMAL_LABEL);
426           edit_msg[3]->labelfont(0);
427           edit_msg[3]->labelsize(14);
428           edit_msg[3]->labelcolor(FL_FOREGROUND_COLOR);
429           edit_msg[3]->callback((Fl_Callback*)cb_edit_msg3);
430           edit_msg[3]->align(Fl_Align(FL_ALIGN_LEFT));
431           edit_msg[3]->when(FL_WHEN_RELEASE);
432         } // Fl_Input2* edit_msg[3]
433         o->end();
434       } // Fl_Group* o
435       { Fl_Group* o = new Fl_Group(0, 25, 530, 320, _("F5-f8"));
436         o->hide();
437         { new Fl_Box(22, 30, 84, 20, _("Label"));
438         } // Fl_Box* o
439         { new Fl_Box(211, 30, 223, 20, _("Message Text"));
440         } // Fl_Box* o
441         { edit_label[4] = new Fl_Input2(5, 74, 80, 22, _("F5"));
442           edit_label[4]->box(FL_DOWN_BOX);
443           edit_label[4]->color(FL_BACKGROUND2_COLOR);
444           edit_label[4]->selection_color(FL_SELECTION_COLOR);
445           edit_label[4]->labeltype(FL_NORMAL_LABEL);
446           edit_label[4]->labelfont(0);
447           edit_label[4]->labelsize(14);
448           edit_label[4]->labelcolor(FL_FOREGROUND_COLOR);
449           edit_label[4]->callback((Fl_Callback*)cb_edit_label4);
450           edit_label[4]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
451           edit_label[4]->when(FL_WHEN_RELEASE);
452         } // Fl_Input2* edit_label[4]
453         { edit_msg[4] = new Fl_Input2(90, 55, 435, 65);
454           edit_msg[4]->type(4);
455           edit_msg[4]->box(FL_DOWN_BOX);
456           edit_msg[4]->color(FL_BACKGROUND2_COLOR);
457           edit_msg[4]->selection_color(FL_SELECTION_COLOR);
458           edit_msg[4]->labeltype(FL_NORMAL_LABEL);
459           edit_msg[4]->labelfont(0);
460           edit_msg[4]->labelsize(14);
461           edit_msg[4]->labelcolor(FL_FOREGROUND_COLOR);
462           edit_msg[4]->callback((Fl_Callback*)cb_edit_msg4);
463           edit_msg[4]->align(Fl_Align(FL_ALIGN_LEFT));
464           edit_msg[4]->when(FL_WHEN_RELEASE);
465         } // Fl_Input2* edit_msg[4]
466         { edit_label[5] = new Fl_Input2(5, 144, 80, 22, _("F6"));
467           edit_label[5]->box(FL_DOWN_BOX);
468           edit_label[5]->color(FL_BACKGROUND2_COLOR);
469           edit_label[5]->selection_color(FL_SELECTION_COLOR);
470           edit_label[5]->labeltype(FL_NORMAL_LABEL);
471           edit_label[5]->labelfont(0);
472           edit_label[5]->labelsize(14);
473           edit_label[5]->labelcolor(FL_FOREGROUND_COLOR);
474           edit_label[5]->callback((Fl_Callback*)cb_edit_label5);
475           edit_label[5]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
476           edit_label[5]->when(FL_WHEN_RELEASE);
477         } // Fl_Input2* edit_label[5]
478         { edit_msg[5] = new Fl_Input2(90, 125, 435, 65);
479           edit_msg[5]->type(4);
480           edit_msg[5]->box(FL_DOWN_BOX);
481           edit_msg[5]->color(FL_BACKGROUND2_COLOR);
482           edit_msg[5]->selection_color(FL_SELECTION_COLOR);
483           edit_msg[5]->labeltype(FL_NORMAL_LABEL);
484           edit_msg[5]->labelfont(0);
485           edit_msg[5]->labelsize(14);
486           edit_msg[5]->labelcolor(FL_FOREGROUND_COLOR);
487           edit_msg[5]->callback((Fl_Callback*)cb_edit_msg5);
488           edit_msg[5]->align(Fl_Align(FL_ALIGN_LEFT));
489           edit_msg[5]->when(FL_WHEN_RELEASE);
490         } // Fl_Input2* edit_msg[5]
491         { edit_label[6] = new Fl_Input2(5, 214, 80, 22, _("F7"));
492           edit_label[6]->box(FL_DOWN_BOX);
493           edit_label[6]->color(FL_BACKGROUND2_COLOR);
494           edit_label[6]->selection_color(FL_SELECTION_COLOR);
495           edit_label[6]->labeltype(FL_NORMAL_LABEL);
496           edit_label[6]->labelfont(0);
497           edit_label[6]->labelsize(14);
498           edit_label[6]->labelcolor(FL_FOREGROUND_COLOR);
499           edit_label[6]->callback((Fl_Callback*)cb_edit_label6);
500           edit_label[6]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
501           edit_label[6]->when(FL_WHEN_RELEASE);
502         } // Fl_Input2* edit_label[6]
503         { edit_msg[6] = new Fl_Input2(90, 195, 435, 65);
504           edit_msg[6]->type(4);
505           edit_msg[6]->box(FL_DOWN_BOX);
506           edit_msg[6]->color(FL_BACKGROUND2_COLOR);
507           edit_msg[6]->selection_color(FL_SELECTION_COLOR);
508           edit_msg[6]->labeltype(FL_NORMAL_LABEL);
509           edit_msg[6]->labelfont(0);
510           edit_msg[6]->labelsize(14);
511           edit_msg[6]->labelcolor(FL_FOREGROUND_COLOR);
512           edit_msg[6]->callback((Fl_Callback*)cb_edit_msg6);
513           edit_msg[6]->align(Fl_Align(FL_ALIGN_LEFT));
514           edit_msg[6]->when(FL_WHEN_RELEASE);
515         } // Fl_Input2* edit_msg[6]
516         { edit_label[7] = new Fl_Input2(5, 284, 80, 22, _("F8"));
517           edit_label[7]->box(FL_DOWN_BOX);
518           edit_label[7]->color(FL_BACKGROUND2_COLOR);
519           edit_label[7]->selection_color(FL_SELECTION_COLOR);
520           edit_label[7]->labeltype(FL_NORMAL_LABEL);
521           edit_label[7]->labelfont(0);
522           edit_label[7]->labelsize(14);
523           edit_label[7]->labelcolor(FL_FOREGROUND_COLOR);
524           edit_label[7]->callback((Fl_Callback*)cb_edit_label7);
525           edit_label[7]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
526           edit_label[7]->when(FL_WHEN_RELEASE);
527         } // Fl_Input2* edit_label[7]
528         { edit_msg[7] = new Fl_Input2(90, 265, 435, 65);
529           edit_msg[7]->type(4);
530           edit_msg[7]->box(FL_DOWN_BOX);
531           edit_msg[7]->color(FL_BACKGROUND2_COLOR);
532           edit_msg[7]->selection_color(FL_SELECTION_COLOR);
533           edit_msg[7]->labeltype(FL_NORMAL_LABEL);
534           edit_msg[7]->labelfont(0);
535           edit_msg[7]->labelsize(14);
536           edit_msg[7]->labelcolor(FL_FOREGROUND_COLOR);
537           edit_msg[7]->callback((Fl_Callback*)cb_edit_msg7);
538           edit_msg[7]->align(Fl_Align(FL_ALIGN_LEFT));
539           edit_msg[7]->when(FL_WHEN_RELEASE);
540         } // Fl_Input2* edit_msg[7]
541         o->end();
542       } // Fl_Group* o
543       { Fl_Group* o = new Fl_Group(0, 25, 530, 320, _("F9-F12"));
544         o->hide();
545         { new Fl_Box(22, 30, 84, 20, _("Label"));
546         } // Fl_Box* o
547         { new Fl_Box(211, 30, 223, 20, _("Message Text"));
548         } // Fl_Box* o
549         { edit_label[8] = new Fl_Input2(5, 73, 80, 22, _("F9"));
550           edit_label[8]->box(FL_DOWN_BOX);
551           edit_label[8]->color(FL_BACKGROUND2_COLOR);
552           edit_label[8]->selection_color(FL_SELECTION_COLOR);
553           edit_label[8]->labeltype(FL_NORMAL_LABEL);
554           edit_label[8]->labelfont(0);
555           edit_label[8]->labelsize(14);
556           edit_label[8]->labelcolor(FL_FOREGROUND_COLOR);
557           edit_label[8]->callback((Fl_Callback*)cb_edit_label8);
558           edit_label[8]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
559           edit_label[8]->when(FL_WHEN_RELEASE);
560         } // Fl_Input2* edit_label[8]
561         { edit_msg[8] = new Fl_Input2(90, 55, 435, 65);
562           edit_msg[8]->type(4);
563           edit_msg[8]->box(FL_DOWN_BOX);
564           edit_msg[8]->color(FL_BACKGROUND2_COLOR);
565           edit_msg[8]->selection_color(FL_SELECTION_COLOR);
566           edit_msg[8]->labeltype(FL_NORMAL_LABEL);
567           edit_msg[8]->labelfont(0);
568           edit_msg[8]->labelsize(14);
569           edit_msg[8]->labelcolor(FL_FOREGROUND_COLOR);
570           edit_msg[8]->callback((Fl_Callback*)cb_edit_msg8);
571           edit_msg[8]->align(Fl_Align(FL_ALIGN_LEFT));
572           edit_msg[8]->when(FL_WHEN_RELEASE);
573         } // Fl_Input2* edit_msg[8]
574         { edit_label[9] = new Fl_Input2(5, 143, 80, 22, _("F10"));
575           edit_label[9]->box(FL_DOWN_BOX);
576           edit_label[9]->color(FL_BACKGROUND2_COLOR);
577           edit_label[9]->selection_color(FL_SELECTION_COLOR);
578           edit_label[9]->labeltype(FL_NORMAL_LABEL);
579           edit_label[9]->labelfont(0);
580           edit_label[9]->labelsize(14);
581           edit_label[9]->labelcolor(FL_FOREGROUND_COLOR);
582           edit_label[9]->callback((Fl_Callback*)cb_edit_label9);
583           edit_label[9]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
584           edit_label[9]->when(FL_WHEN_RELEASE);
585         } // Fl_Input2* edit_label[9]
586         { edit_msg[9] = new Fl_Input2(90, 125, 435, 65);
587           edit_msg[9]->type(4);
588           edit_msg[9]->box(FL_DOWN_BOX);
589           edit_msg[9]->color(FL_BACKGROUND2_COLOR);
590           edit_msg[9]->selection_color(FL_SELECTION_COLOR);
591           edit_msg[9]->labeltype(FL_NORMAL_LABEL);
592           edit_msg[9]->labelfont(0);
593           edit_msg[9]->labelsize(14);
594           edit_msg[9]->labelcolor(FL_FOREGROUND_COLOR);
595           edit_msg[9]->callback((Fl_Callback*)cb_edit_msg9);
596           edit_msg[9]->align(Fl_Align(FL_ALIGN_LEFT));
597           edit_msg[9]->when(FL_WHEN_RELEASE);
598         } // Fl_Input2* edit_msg[9]
599         { edit_label[10] = new Fl_Input2(5, 213, 80, 22, _("F11"));
600           edit_label[10]->box(FL_DOWN_BOX);
601           edit_label[10]->color(FL_BACKGROUND2_COLOR);
602           edit_label[10]->selection_color(FL_SELECTION_COLOR);
603           edit_label[10]->labeltype(FL_NORMAL_LABEL);
604           edit_label[10]->labelfont(0);
605           edit_label[10]->labelsize(14);
606           edit_label[10]->labelcolor(FL_FOREGROUND_COLOR);
607           edit_label[10]->callback((Fl_Callback*)cb_edit_labela);
608           edit_label[10]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
609           edit_label[10]->when(FL_WHEN_RELEASE);
610         } // Fl_Input2* edit_label[10]
611         { edit_msg[10] = new Fl_Input2(90, 195, 435, 65);
612           edit_msg[10]->type(4);
613           edit_msg[10]->box(FL_DOWN_BOX);
614           edit_msg[10]->color(FL_BACKGROUND2_COLOR);
615           edit_msg[10]->selection_color(FL_SELECTION_COLOR);
616           edit_msg[10]->labeltype(FL_NORMAL_LABEL);
617           edit_msg[10]->labelfont(0);
618           edit_msg[10]->labelsize(14);
619           edit_msg[10]->labelcolor(FL_FOREGROUND_COLOR);
620           edit_msg[10]->callback((Fl_Callback*)cb_edit_msga);
621           edit_msg[10]->align(Fl_Align(FL_ALIGN_LEFT));
622           edit_msg[10]->when(FL_WHEN_RELEASE);
623         } // Fl_Input2* edit_msg[10]
624         { edit_label[11] = new Fl_Input2(5, 283, 80, 22, _("F12"));
625           edit_label[11]->box(FL_DOWN_BOX);
626           edit_label[11]->color(FL_BACKGROUND2_COLOR);
627           edit_label[11]->selection_color(FL_SELECTION_COLOR);
628           edit_label[11]->labeltype(FL_NORMAL_LABEL);
629           edit_label[11]->labelfont(0);
630           edit_label[11]->labelsize(14);
631           edit_label[11]->labelcolor(FL_FOREGROUND_COLOR);
632           edit_label[11]->callback((Fl_Callback*)cb_edit_labelb);
633           edit_label[11]->align(Fl_Align(FL_ALIGN_TOP_LEFT));
634           edit_label[11]->when(FL_WHEN_RELEASE);
635         } // Fl_Input2* edit_label[11]
636         { edit_msg[11] = new Fl_Input2(90, 265, 435, 65);
637           edit_msg[11]->type(4);
638           edit_msg[11]->box(FL_DOWN_BOX);
639           edit_msg[11]->color(FL_BACKGROUND2_COLOR);
640           edit_msg[11]->selection_color(FL_SELECTION_COLOR);
641           edit_msg[11]->labeltype(FL_NORMAL_LABEL);
642           edit_msg[11]->labelfont(0);
643           edit_msg[11]->labelsize(14);
644           edit_msg[11]->labelcolor(FL_FOREGROUND_COLOR);
645           edit_msg[11]->callback((Fl_Callback*)cb_edit_msgb);
646           edit_msg[11]->align(Fl_Align(FL_ALIGN_LEFT));
647           edit_msg[11]->when(FL_WHEN_RELEASE);
648         } // Fl_Input2* edit_msg[11]
649         o->end();
650       } // Fl_Group* o
651       o->end();
652     } // Fl_Tabs* o
653     { Fl_Group* o = new Fl_Group(534, 16, 65, 146);
654       o->box(FL_ENGRAVED_FRAME);
655       { new Fl_Box(537, 19, 59, 20, _("ProSign"));
656       } // Fl_Box* o
657       { Fl_Box* o = new Fl_Box(536, 40, 60, 20, _("= BT"));
658         o->tooltip(_("-...-"));
659       } // Fl_Box* o
660       { Fl_Box* o = new Fl_Box(536, 60, 60, 20, _("+ KN"));
661         o->tooltip(_("-.--."));
662       } // Fl_Box* o
663       { Fl_Box* o = new Fl_Box(536, 79, 60, 20, _("% SK"));
664         o->tooltip(_("...-..-"));
665       } // Fl_Box* o
666       { Fl_Box* o = new Fl_Box(536, 98, 60, 20, _("~ AA"));
667         o->tooltip(_(".-..-."));
668       } // Fl_Box* o
669       { Fl_Box* o = new Fl_Box(536, 118, 60, 20, _("< AS"));
670         o->tooltip(_(".----."));
671       } // Fl_Box* o
672       { Fl_Box* o = new Fl_Box(536, 137, 60, 20, _("> AR"));
673         o->tooltip(_(".-.-."));
674       } // Fl_Box* o
675       o->end();
676     } // Fl_Group* o
677     { btn_cancel_edit = new Fl_Button(534, 268, 65, 22, _("Cancel"));
678       btn_cancel_edit->tooltip(_("Exit editor, discard changes"));
679       btn_cancel_edit->callback((Fl_Callback*)cb_btn_cancel_edit);
680     } // Fl_Button* btn_cancel_edit
681     { btn_apply_edit = new Fl_Button(534, 294, 65, 22, _("Apply"));
682       btn_apply_edit->tooltip(_("Apply current changes to function keys"));
683       btn_apply_edit->callback((Fl_Callback*)cb_btn_apply_edit);
684     } // Fl_Button* btn_apply_edit
685     { btn_done_edit = new Fl_Button(534, 321, 65, 22, _("Close"));
686       btn_done_edit->tooltip(_("Apply changes and close editor"));
687       btn_done_edit->callback((Fl_Callback*)cb_btn_done_edit);
688     } // Fl_Button* btn_done_edit
689     { Fl_Group* o = new Fl_Group(534, 168, 65, 86);
690       o->box(FL_ENGRAVED_FRAME);
691       { new Fl_Box(537, 175, 59, 20, _("Control"));
692       } // Fl_Box* o
693       { new Fl_Box(537, 199, 59, 20, _("[ Send"));
694       } // Fl_Box* o
695       { new Fl_Box(537, 226, 59, 20, _("] Rcv"));
696       } // Fl_Box* o
697       o->end();
698     } // Fl_Group* o
699     o->end();
700     o->resizable(o);
701   } // Fl_Double_Window* o
702   return w;
703 }
704 
705 Fl_ComboBox *select_cwioPORT=(Fl_ComboBox *)0;
706 
cb_select_cwioPORT(Fl_ComboBox * o,void *)707 static void cb_select_cwioPORT(Fl_ComboBox* o, void*) {
708   progStatus.cwioPORT = o->value();
709 }
710 
711 Fl_Light_Button *btn_cwioCONNECT=(Fl_Light_Button *)0;
712 
cb_btn_cwioCONNECT(Fl_Light_Button * o,void *)713 static void cb_btn_cwioCONNECT(Fl_Light_Button* o, void*) {
714   if (o->value() == 0) {
715   close_cwkey();
716   btn_cwioCAT->activate();
717   btn_cwioAUX->activate();
718   btn_cwioSEP->activate();
719   progStatus.cwioCONNECTED = 0;
720 }
721 else if (!open_cwkey()) {
722   o->value(0);
723   btn_cwioCAT->activate();
724   btn_cwioAUX->activate();
725   btn_cwioSEP->activate();
726   progStatus.cwioCONNECTED = 0;
727 } else {
728   btn_cwioCAT->value(0); btn_cwioCAT->deactivate();
729   btn_cwioAUX->value(0); btn_cwioAUX->deactivate();
730   btn_cwioSEP->value(0); btn_cwioSEP->deactivate();
731   progStatus.cwioCONNECTED = 1;
732 }
733 progStatus.cwioSHARED = 0;
734 }
735 
736 Fl_Check_Button *btn_cwioCAT=(Fl_Check_Button *)0;
737 
cb_btn_cwioCAT(Fl_Check_Button * o,void *)738 static void cb_btn_cwioCAT(Fl_Check_Button* o, void*) {
739   if (o->value()) {
740   progStatus.cwioSHARED = 1;
741   btn_cwioAUX->value(0); btn_cwioAUX->deactivate();
742   btn_cwioSEP->value(0); btn_cwioSEP->deactivate();
743   btn_cwioCONNECT->value(0); btn_cwioCONNECT->deactivate();
744 }else {
745   progStatus.cwioSHARED = 0;
746   btn_cwioCONNECT->activate();
747   btn_cwioAUX->activate();
748   btn_cwioSEP->activate();
749 };
750 }
751 
752 Fl_Check_Button *btn_cwioAUX=(Fl_Check_Button *)0;
753 
cb_btn_cwioAUX(Fl_Check_Button * o,void *)754 static void cb_btn_cwioAUX(Fl_Check_Button* o, void*) {
755   if (o->value()) {
756   progStatus.cwioSHARED = 2;
757   btn_cwioCAT->value(0); btn_cwioCAT->deactivate();
758   btn_cwioSEP->value(0); btn_cwioSEP->deactivate();
759   btn_cwioCONNECT->value(0); btn_cwioCONNECT->deactivate();
760 }else {
761   progStatus.cwioSHARED = 0;
762   btn_cwioCONNECT->activate();
763   btn_cwioCAT->activate();
764   btn_cwioSEP->activate();
765 };
766 }
767 
768 Fl_Check_Button *btn_cwioSEP=(Fl_Check_Button *)0;
769 
cb_btn_cwioSEP(Fl_Check_Button * o,void *)770 static void cb_btn_cwioSEP(Fl_Check_Button* o, void*) {
771   if (o->value()) {
772   progStatus.cwioSHARED = 3;
773   btn_cwioAUX->value(0); btn_cwioAUX->deactivate();
774   btn_cwioCAT->value(0); btn_cwioCAT->deactivate();
775   btn_cwioCONNECT->value(0); btn_cwioCONNECT->deactivate();
776 }else {
777   progStatus.cwioSHARED = 0;
778   btn_cwioCONNECT->activate();
779   btn_cwioAUX->activate();
780   btn_cwioCAT->activate();
781 };
782 }
783 
784 Fl_ListBox *listbox_cwioKEYLINE=(Fl_ListBox *)0;
785 
cb_listbox_cwioKEYLINE(Fl_ListBox * o,void *)786 static void cb_listbox_cwioKEYLINE(Fl_ListBox* o, void*) {
787   progStatus.cwioKEYLINE = o->index();
788 }
789 
790 Fl_Spinner *cntr_cwioPTT=(Fl_Spinner *)0;
791 
cb_cntr_cwioPTT(Fl_Spinner * o,void *)792 static void cb_cntr_cwioPTT(Fl_Spinner* o, void*) {
793   progStatus.cwioPTT = o->value();
794 }
795 
796 Fl_Light_Button *btn_cw_dtr_calibrate=(Fl_Light_Button *)0;
797 
cb_btn_cw_dtr_calibrate(Fl_Light_Button *,void *)798 static void cb_btn_cw_dtr_calibrate(Fl_Light_Button*, void*) {
799   calibrate_cwio();
800 }
801 
802 Fl_Counter *cnt_cwio_comp=(Fl_Counter *)0;
803 
cb_cnt_cwio_comp(Fl_Counter * o,void *)804 static void cb_cnt_cwio_comp(Fl_Counter* o, void*) {
805   progStatus.cwio_comp = int(o->value());
806 }
807 
cwio_config_dialog()808 Fl_Double_Window* cwio_config_dialog() {
809   Fl_Double_Window* w;
810   { Fl_Double_Window* o = new Fl_Double_Window(670, 104, _("CW Configuration"));
811     w = o; if (w) {/* empty */}
812     { Fl_Group* o = new Fl_Group(2, 3, 666, 100);
813       o->box(FL_ENGRAVED_FRAME);
814       { Fl_ComboBox* o = select_cwioPORT = new Fl_ComboBox(73, 73, 496, 23, _("Ser. Port"));
815         select_cwioPORT->tooltip(_("CWIO serial port"));
816         select_cwioPORT->box(FL_DOWN_BOX);
817         select_cwioPORT->color((Fl_Color)53);
818         select_cwioPORT->selection_color(FL_BACKGROUND_COLOR);
819         select_cwioPORT->labeltype(FL_NORMAL_LABEL);
820         select_cwioPORT->labelfont(0);
821         select_cwioPORT->labelsize(14);
822         select_cwioPORT->labelcolor(FL_FOREGROUND_COLOR);
823         select_cwioPORT->callback((Fl_Callback*)cb_select_cwioPORT);
824         select_cwioPORT->align(Fl_Align(FL_ALIGN_LEFT));
825         select_cwioPORT->when(FL_WHEN_RELEASE);
826         o->value(progStatus.cwioPORT.c_str());
827         select_cwioPORT->end();
828       } // Fl_ComboBox* select_cwioPORT
829       { Fl_Light_Button* o = btn_cwioCONNECT = new Fl_Light_Button(578, 73, 80, 23, _("Connect"));
830         btn_cwioCONNECT->callback((Fl_Callback*)cb_btn_cwioCONNECT);
831         o->value(progStatus.cwioCONNECTED);
832       } // Fl_Light_Button* btn_cwioCONNECT
833       { Fl_Check_Button* o = btn_cwioCAT = new Fl_Check_Button(111, 15, 23, 15, _("Use CAT"));
834         btn_cwioCAT->tooltip(_("Use DTR/RTS on CAT serial port"));
835         btn_cwioCAT->down_box(FL_DOWN_BOX);
836         btn_cwioCAT->callback((Fl_Callback*)cb_btn_cwioCAT);
837         btn_cwioCAT->align(Fl_Align(FL_ALIGN_LEFT));
838         o->value(progStatus.cwioSHARED == 1);
839       } // Fl_Check_Button* btn_cwioCAT
840       { Fl_Check_Button* o = btn_cwioAUX = new Fl_Check_Button(112, 46, 23, 15, _("Use AUX"));
841         btn_cwioAUX->tooltip(_("Use DTR/RTS on Auxiliary serial port"));
842         btn_cwioAUX->down_box(FL_DOWN_BOX);
843         btn_cwioAUX->callback((Fl_Callback*)cb_btn_cwioAUX);
844         btn_cwioAUX->align(Fl_Align(FL_ALIGN_LEFT));
845         o->value(progStatus.cwioSHARED == 2);
846       } // Fl_Check_Button* btn_cwioAUX
847       { Fl_Check_Button* o = btn_cwioSEP = new Fl_Check_Button(208, 15, 23, 15, _("Use SEP"));
848         btn_cwioSEP->tooltip(_("Use DTR/RTS Separate serial port"));
849         btn_cwioSEP->down_box(FL_DOWN_BOX);
850         btn_cwioSEP->callback((Fl_Callback*)cb_btn_cwioSEP);
851         btn_cwioSEP->align(Fl_Align(FL_ALIGN_LEFT));
852         o->value(progStatus.cwioSHARED == 3);
853       } // Fl_Check_Button* btn_cwioSEP
854       { Fl_ListBox* o = listbox_cwioKEYLINE = new Fl_ListBox(593, 41, 65, 24, _("CW Keyline"));
855         listbox_cwioKEYLINE->tooltip(_("Select either DTR or RTS for keyline"));
856         listbox_cwioKEYLINE->box(FL_DOWN_BOX);
857         listbox_cwioKEYLINE->color(FL_BACKGROUND2_COLOR);
858         listbox_cwioKEYLINE->selection_color(FL_BACKGROUND_COLOR);
859         listbox_cwioKEYLINE->labeltype(FL_NORMAL_LABEL);
860         listbox_cwioKEYLINE->labelfont(0);
861         listbox_cwioKEYLINE->labelsize(14);
862         listbox_cwioKEYLINE->labelcolor(FL_FOREGROUND_COLOR);
863         listbox_cwioKEYLINE->callback((Fl_Callback*)cb_listbox_cwioKEYLINE);
864         listbox_cwioKEYLINE->align(Fl_Align(FL_ALIGN_LEFT));
865         listbox_cwioKEYLINE->when(FL_WHEN_RELEASE);
866         o->add("None|RTS|DTR");
867         o->index(progStatus.cwioKEYLINE);
868         listbox_cwioKEYLINE->end();
869       } // Fl_ListBox* listbox_cwioKEYLINE
870       { Fl_Spinner* o = cntr_cwioPTT = new Fl_Spinner(608, 10, 50, 25, _("PTT delay"));
871         cntr_cwioPTT->tooltip(_("PTT delay before keydown\n0 = Break-in"));
872         cntr_cwioPTT->minimum(0);
873         cntr_cwioPTT->value(0);
874         cntr_cwioPTT->callback((Fl_Callback*)cb_cntr_cwioPTT);
875         o->value(progStatus.cwioPTT);
876       } // Fl_Spinner* cntr_cwioPTT
877       { btn_cw_dtr_calibrate = new Fl_Light_Button(384, 10, 84, 24, _("Calibrate"));
878         btn_cw_dtr_calibrate->selection_color((Fl_Color)6);
879         btn_cw_dtr_calibrate->callback((Fl_Callback*)cb_btn_cw_dtr_calibrate);
880       } // Fl_Light_Button* btn_cw_dtr_calibrate
881       { Fl_Counter* o = cnt_cwio_comp = new Fl_Counter(368, 41, 100, 24, _("Comp (msec)"));
882         cnt_cwio_comp->tooltip(_("Timing compensation"));
883         cnt_cwio_comp->minimum(0);
884         cnt_cwio_comp->maximum(10);
885         cnt_cwio_comp->callback((Fl_Callback*)cb_cnt_cwio_comp);
886         cnt_cwio_comp->align(Fl_Align(FL_ALIGN_LEFT));
887         o->value(progStatus.cwio_comp);
888         o->lstep(1.0);
889       } // Fl_Counter* cnt_cwio_comp
890       o->end();
891     } // Fl_Group* o
892     o->end();
893   } // Fl_Double_Window* o
894   return w;
895 }
896