1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2014
3 // David Freese, W1HKJ
4 //
5 // This file is part of flmsg
6 //
7 // flrig is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // flrig is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 // ----------------------------------------------------------------------------
20
21 #include "gettext.h"
22 #include "status.h"
23 #include "util.h"
24
25 #include "flmsg_dialog.h"
26 #include "flmsg.h"
27
28 Fl_Group *tab_radiogram = (Fl_Group *)0;
29 Fl_Tabs *tabs_radiogram = (Fl_Tabs *)0;
30 Fl_Group *tab_radiogram_message = (Fl_Group *)0;
31 Fl_Input2 *txt_rg_nbr = (Fl_Input2 *)0;
32
33 Fl_ListBox *sel_rg_prec = (Fl_ListBox *)0;
34 Fl_Input2 *txt_rg_hx = (Fl_Input2 *)0;
35 Fl_Button *btn_rg_hx = (Fl_Button *)0;
36 Fl_Input2 *txt_rg_station = (Fl_Input2 *)0;
37 Fl_Input2 *txt_rg_place = (Fl_Input2 *)0;
38 Fl_Input2 *txt_rg_t1 = (Fl_Input2 *)0;
39 Fl_Button *btn_rgTime1 = (Fl_Button *)0;
40 Fl_Input2 *txt_rg_d1 = (Fl_Input2 *)0;
41 Fl_Button *btn_rgDate1 = (Fl_Button *)0;
42 Fl_Input2 *txt_rg_to = (Fl_Input2 *)0;
43 Fl_Input2 *txt_rg_phone = (Fl_Input2 *)0;
44 Fl_Input2 *txt_rg_opnote = (Fl_Input2 *)0;
45 FTextEdit *txt_rg_msg = (FTextEdit *)0;
46 Fl_Button *btn_arl = (Fl_Button *)0;
47 Fl_Input2 *txt_rg_check = (Fl_Input2 *)0;
48 Fl_Button *btn_rg_check = (Fl_Button *)0;
49
50 Fl_Input2 *txt_rg_sig = (Fl_Input2 *)0;
51 Fl_Input2 *txt_rg_opnote2 = (Fl_Input2 *)0;
52 Fl_Check_Button *btn_rg_svc = (Fl_Check_Button *)0;
53 Fl_Group *tab_radiogram_information = (Fl_Group *)0;
54 Fl_Input2 *txt_rg_orig = (Fl_Input2 *)0;
55 Fl_Input2 *txt_rg_dt2 = (Fl_Input2 *)0;
56 Fl_Button *btn_rgDateTime2 = (Fl_Button *)0;
57 Fl_Input2 *txt_rg_dt3 = (Fl_Input2 *)0;
58 Fl_Button *btn_rgDateTime3 = (Fl_Button *)0;
59 Fl_Input2 *txt_rg_dlvd_to = (Fl_Input2 *)0;
60 Fl_Input2 *txt_rg_rcv_fm = (Fl_Input2 *)0;
61 Fl_Input2 *txt_rg_rcv_net = (Fl_Input2 *)0;
62 Fl_Input2 *txt_rg_dt4 = (Fl_Input2 *)0;
63 Fl_Button *btn_rgDateTime4 = (Fl_Button *)0;
64 Fl_Input2 *txt_rg_sent_to = (Fl_Input2 *)0;
65 Fl_Input2 *txt_rg_snt_net = (Fl_Input2 *)0;
66 Fl_Input2 *txt_rg_dt5 = (Fl_Input2 *)0;
67 Fl_Button *btn_rgDateTime5 = (Fl_Button *)0;
68
69 Fl_Check_Button *btn_rg_standard;
70
cb_txt_rg_nbr(Fl_Input2 *,void *)71 static void cb_txt_rg_nbr(Fl_Input2*, void*) {
72 cb_rg_nbr(txt_rg_nbr);
73 estimate();
74 }
75
cb_btn_rg_hx(Fl_Button *,void *)76 static void cb_btn_rg_hx(Fl_Button*, void*) {
77 cb_hx();
78 estimate();
79 }
80
cb_txt_rg_station(Fl_Input2 *,void *)81 static void cb_txt_rg_station(Fl_Input2*, void*) {
82 cb_rg_filter_input(txt_rg_station);
83 estimate();
84 }
85
cb_txt_rg_place(Fl_Input2 *,void *)86 static void cb_txt_rg_place(Fl_Input2*, void*) {
87 cb_rg_filter_input(txt_rg_place);
88 estimate();
89 }
90
cb_btn_rgTime1(Fl_Button *,void *)91 static void cb_btn_rgTime1(Fl_Button*, void*) {
92 cb_rgSetTime1();
93 estimate();
94 }
95
cb_btn_rgDate1(Fl_Button *,void *)96 static void cb_btn_rgDate1(Fl_Button*, void*) {
97 cb_rgSetDate1();
98 estimate();
99 }
100
cb_txt_rg_to(Fl_Input2 *,void *)101 static void cb_txt_rg_to(Fl_Input2*, void*) {
102 cb_rg_filter_input(txt_rg_to);
103 estimate();
104 }
105
cb_txt_rg_phone(Fl_Input2 *,void *)106 static void cb_txt_rg_phone(Fl_Input2*, void*) {
107 cb_rg_filter_input(txt_rg_phone);
108 estimate();
109 }
110
cb_txt_rg_opnote(Fl_Input2 *,void *)111 static void cb_txt_rg_opnote(Fl_Input2*, void*) {
112 cb_rg_filter_input(txt_rg_opnote);
113 estimate();
114 }
115
cb_txt_rg_msg(FTextEdit *,void *)116 static void cb_txt_rg_msg(FTextEdit*, void*) {
117 btn_rg_check->labelcolor(FL_RED);
118 btn_rg_check->redraw_label();
119 estimate();
120 }
121
cb_btn_arl(Fl_Button *,void *)122 static void cb_btn_arl(Fl_Button*, void*) {
123 cb_arl();
124 estimate();
125 }
126
cb_btn_rg_check(Fl_Button *,void *)127 static void cb_btn_rg_check(Fl_Button*, void*) {
128 cb_rg_check();
129 estimate();
130 }
131
cb_txt_rg_sig(Fl_Input2 *,void *)132 static void cb_txt_rg_sig(Fl_Input2*, void*) {
133 cb_rg_filter_input(txt_rg_sig);
134 estimate();
135 }
136
cb_txt_rg_opnote2(Fl_Input2 *,void *)137 static void cb_txt_rg_opnote2(Fl_Input2*, void*) {
138 cb_rg_filter_input(txt_rg_opnote2);
139 estimate();
140 }
141
cb_btn_rgDateTime2(Fl_Button *,void *)142 static void cb_btn_rgDateTime2(Fl_Button*, void*) {
143 cb_rgSetDateTime2();
144 estimate();
145 }
146
cb_btn_rgDateTime3(Fl_Button *,void *)147 static void cb_btn_rgDateTime3(Fl_Button*, void*) {
148 cb_rgSetDateTime3();
149 estimate();
150 }
151
cb_btn_rgDateTime4(Fl_Button *,void *)152 static void cb_btn_rgDateTime4(Fl_Button*, void*) {
153 cb_rgSetDateTime4();
154 estimate();
155 }
156
cb_btn_rgDateTime5(Fl_Button *,void *)157 static void cb_btn_rgDateTime5(Fl_Button*, void*) {
158 cb_rgSetDateTime5();
159 estimate();
160 }
161
rg_changed(Fl_Widget *,void *)162 void rg_changed(Fl_Widget *, void *)
163 {
164 estimate();
165 }
166
create_radiogram_tab()167 void create_radiogram_tab()
168 {
169 int Y = tab_top;
170 tab_radiogram = new Fl_Group(0, Y, 570, 380);
171 tab_radiogram->hide();
172
173 tabs_radiogram = new Fl_Tabs(0, Y, 570, 380);
174 tabs_radiogram->selection_color((Fl_Color)246);
175
176 tab_radiogram_message = new Fl_Group(0, Y+25, 570, 355, _("Message"));
177
178 Fl_Box *svctxt = new Fl_Box(12, Y+34, 17, 15, _("SVC"));
179 svctxt->box(FL_FLAT_BOX);
180 btn_rg_svc = new Fl_Check_Button(12, Y+55, 17, 15);
181 btn_rg_svc->tooltip(_("Check for Service Message"));
182 btn_rg_svc->down_box(FL_DOWN_BOX);
183 btn_rg_svc->align(FL_ALIGN_TOP);
184
185 txt_rg_nbr = new Fl_Input2(36, Y+50, 50, 24, _("*NR"));
186 txt_rg_nbr->tooltip(_("Message number at station of origin"));
187 txt_rg_nbr->box(FL_DOWN_BOX);
188 txt_rg_nbr->color((Fl_Color)FL_BACKGROUND2_COLOR);
189 txt_rg_nbr->selection_color((Fl_Color)FL_SELECTION_COLOR);
190 txt_rg_nbr->labeltype(FL_NORMAL_LABEL);
191 txt_rg_nbr->labelfont(0);
192 txt_rg_nbr->labelsize(14);
193 txt_rg_nbr->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
194 txt_rg_nbr->callback((Fl_Callback*)cb_txt_rg_nbr);
195 txt_rg_nbr->align(FL_ALIGN_TOP);
196 txt_rg_nbr->when(FL_WHEN_CHANGED);
197
198 sel_rg_prec = new Fl_ListBox(88, Y+50, 120, 24, _("*PREC"));
199 sel_rg_prec->tooltip(_("Message Precedence"));
200 sel_rg_prec->align(FL_ALIGN_TOP);
201
202 txt_rg_hx = new Fl_Input2(210, Y+50, 95, 24, _("HX__"));
203 txt_rg_hx->tooltip(_("Handling instructions"));
204 txt_rg_hx->box(FL_DOWN_BOX);
205 txt_rg_hx->color((Fl_Color)FL_BACKGROUND2_COLOR);
206 txt_rg_hx->selection_color((Fl_Color)FL_SELECTION_COLOR);
207 txt_rg_hx->labeltype(FL_NORMAL_LABEL);
208 txt_rg_hx->labelfont(0);
209 txt_rg_hx->labelsize(14);
210 txt_rg_hx->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
211 txt_rg_hx->align(FL_ALIGN_TOP);
212 txt_rg_hx->callback(rg_changed);
213 txt_rg_hx->when(FL_WHEN_CHANGED);
214
215 btn_rg_hx = new Fl_Button(308, Y+50, 24, 24, _("hx"));
216 btn_rg_hx->tooltip(_("Open HX dialog"));
217 btn_rg_hx->callback((Fl_Callback*)cb_btn_rg_hx);
218
219 txt_rg_station = new Fl_Input2(336, Y+50, 101, 24, _("*STN ORIG"));
220 txt_rg_station->tooltip(_("Station call sign"));
221 txt_rg_station->box(FL_DOWN_BOX);
222 txt_rg_station->color((Fl_Color)FL_BACKGROUND2_COLOR);
223 txt_rg_station->selection_color((Fl_Color)FL_SELECTION_COLOR);
224 txt_rg_station->labeltype(FL_NORMAL_LABEL);
225 txt_rg_station->labelfont(0);
226 txt_rg_station->labelsize(14);
227 txt_rg_station->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
228 txt_rg_station->callback((Fl_Callback*)cb_txt_rg_station);
229 txt_rg_station->align(FL_ALIGN_TOP);
230 txt_rg_station->when(FL_WHEN_CHANGED);
231
232 txt_rg_check = new Fl_Input2(439, Y+50, 101, 24, _("CK"));
233 txt_rg_check->tooltip(_("Message check count"));
234 txt_rg_check->box(FL_DOWN_BOX);
235 txt_rg_check->color((Fl_Color)FL_BACKGROUND2_COLOR);
236 txt_rg_check->selection_color((Fl_Color)FL_SELECTION_COLOR);
237 txt_rg_check->labeltype(FL_NORMAL_LABEL);
238 txt_rg_check->labelfont(0);
239 txt_rg_check->labelsize(14);
240 txt_rg_check->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
241 txt_rg_check->align(FL_ALIGN_TOP);
242 txt_rg_check->when(FL_WHEN_CHANGED);
243
244 btn_rg_check = new Fl_Button(541, Y+50, 24, 24, _("ck"));
245 btn_rg_check->tooltip(_("Compute check count"));
246 btn_rg_check->callback((Fl_Callback*)cb_btn_rg_check);
247
248 txt_rg_place = new Fl_Input2(6, Y+96, 266, 24, _("PLACE OF ORIG"));
249 txt_rg_place->tooltip(_("Place of origin"));
250 txt_rg_place->box(FL_DOWN_BOX);
251 txt_rg_place->color((Fl_Color)FL_BACKGROUND2_COLOR);
252 txt_rg_place->selection_color((Fl_Color)FL_SELECTION_COLOR);
253 txt_rg_place->labeltype(FL_NORMAL_LABEL);
254 txt_rg_place->labelfont(0);
255 txt_rg_place->labelsize(14);
256 txt_rg_place->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
257 txt_rg_place->callback((Fl_Callback*)cb_txt_rg_place);
258 txt_rg_place->align(FL_ALIGN_TOP_LEFT);
259 txt_rg_place->when(FL_WHEN_CHANGED);
260
261 txt_rg_t1 = new Fl_Input2(288, Y+96, 81, 24, _("TIME FILED"));
262 txt_rg_t1->tooltip(_("Time of origination"));
263 txt_rg_t1->box(FL_DOWN_BOX);
264 txt_rg_t1->color((Fl_Color)FL_BACKGROUND2_COLOR);
265 txt_rg_t1->selection_color((Fl_Color)FL_SELECTION_COLOR);
266 txt_rg_t1->labeltype(FL_NORMAL_LABEL);
267 txt_rg_t1->labelfont(0);
268 txt_rg_t1->labelsize(14);
269 txt_rg_t1->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
270 txt_rg_t1->align(FL_ALIGN_TOP_LEFT);
271 txt_rg_t1->callback(rg_changed);
272 txt_rg_t1->when(FL_WHEN_CHANGED);
273
274 btn_rgTime1 = new Fl_Button(372, Y+96, 24, 24, _("..."));
275 btn_rgTime1->tooltip(_("Set time now"));
276 btn_rgTime1->callback((Fl_Callback*)cb_btn_rgTime1);
277
278 txt_rg_d1 = new Fl_Input2(416, Y+96, 123, 24, _("*MON DY"));
279 txt_rg_d1->tooltip(_("Date of origination"));
280 txt_rg_d1->box(FL_DOWN_BOX);
281 txt_rg_d1->color((Fl_Color)FL_BACKGROUND2_COLOR);
282 txt_rg_d1->selection_color((Fl_Color)FL_SELECTION_COLOR);
283 txt_rg_d1->labeltype(FL_NORMAL_LABEL);
284 txt_rg_d1->labelfont(0);
285 txt_rg_d1->labelsize(14);
286 txt_rg_d1->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
287 txt_rg_d1->align(FL_ALIGN_TOP_LEFT);
288 txt_rg_d1->callback(rg_changed);
289 txt_rg_d1->when(FL_WHEN_CHANGED);
290
291 btn_rgDate1 = new Fl_Button(541, Y+96, 24, 24, _("..."));
292 btn_rgDate1->tooltip(_("Set today"));
293 btn_rgDate1->callback((Fl_Callback*)cb_btn_rgDate1);
294
295 txt_rg_to = new Fl_Input2(6, Y+138, 277, 70, _("*TO"));
296 txt_rg_to->tooltip(_("Addressee"));
297 txt_rg_to->type(4);
298 txt_rg_to->box(FL_DOWN_BOX);
299 txt_rg_to->color((Fl_Color)FL_BACKGROUND2_COLOR);
300 txt_rg_to->selection_color((Fl_Color)FL_SELECTION_COLOR);
301 txt_rg_to->labeltype(FL_NORMAL_LABEL);
302 txt_rg_to->labelfont(0);
303 txt_rg_to->labelsize(14);
304 txt_rg_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
305 txt_rg_to->callback((Fl_Callback*)cb_txt_rg_to);
306 txt_rg_to->align(FL_ALIGN_TOP_LEFT);
307 txt_rg_to->when(FL_WHEN_CHANGED);
308
309 txt_rg_phone = new Fl_Input2(327, Y+137, 238, 24, _("TEL:"));
310 txt_rg_phone->tooltip(_("Addressee telephone number"));
311 txt_rg_phone->box(FL_DOWN_BOX);
312 txt_rg_phone->color((Fl_Color)FL_BACKGROUND2_COLOR);
313 txt_rg_phone->selection_color((Fl_Color)FL_SELECTION_COLOR);
314 txt_rg_phone->labeltype(FL_NORMAL_LABEL);
315 txt_rg_phone->labelfont(0);
316 txt_rg_phone->labelsize(14);
317 txt_rg_phone->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
318 txt_rg_phone->callback((Fl_Callback*)cb_txt_rg_phone);
319 txt_rg_phone->align(FL_ALIGN_LEFT);
320 txt_rg_phone->when(FL_WHEN_CHANGED);
321
322 txt_rg_opnote = new Fl_Input2(360, Y+164, 205, 24, _("OP NOTE:"));
323 txt_rg_opnote->tooltip(_("Operating notes"));
324 txt_rg_opnote->box(FL_DOWN_BOX);
325 txt_rg_opnote->color((Fl_Color)FL_BACKGROUND2_COLOR);
326 txt_rg_opnote->selection_color((Fl_Color)FL_SELECTION_COLOR);
327 txt_rg_opnote->labeltype(FL_NORMAL_LABEL);
328 txt_rg_opnote->labelfont(0);
329 txt_rg_opnote->labelsize(14);
330 txt_rg_opnote->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
331 txt_rg_opnote->callback((Fl_Callback*)cb_txt_rg_opnote);
332 txt_rg_opnote->align(FL_ALIGN_LEFT);
333 txt_rg_opnote->when(FL_WHEN_CHANGED);
334
335 btn_rg_standard = new Fl_Check_Button(300, Y+195, 50, 24, _("Standard Format"));
336 btn_rg_standard->tooltip(_("Uncheck to allow punctuation and lower case"));
337 btn_rg_standard->value(1);
338
339 btn_arl = new Fl_Button(489, Y+195, 76, 24, _("ARL MSG"));
340 btn_arl->tooltip(_("ARL message selector"));
341 btn_arl->callback((Fl_Callback*)cb_btn_arl);
342
343 txt_rg_msg = new FTextEdit(4, Y+227, 562, 125, _("TXT:"));
344 txt_rg_msg->tooltip(_("Message contents - recommend limit to 25 words or less"));
345 txt_rg_msg->box(FL_DOWN_BOX);
346 txt_rg_msg->color((Fl_Color)FL_BACKGROUND2_COLOR);
347 txt_rg_msg->selection_color((Fl_Color)FL_SELECTION_COLOR);
348 txt_rg_msg->labeltype(FL_NORMAL_LABEL);
349 txt_rg_msg->labelfont(0);
350 txt_rg_msg->labelsize(14);
351 txt_rg_msg->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
352 txt_rg_msg->callback((Fl_Callback*)cb_txt_rg_msg);
353 txt_rg_msg->align(FL_ALIGN_TOP_LEFT);
354 txt_rg_msg->when(FL_WHEN_CHANGED);
355
356 txt_rg_sig = new Fl_Input2(48, Y+354, 238, 24, _("SIG:"));
357 txt_rg_sig->tooltip(_("Signature"));
358 txt_rg_sig->box(FL_DOWN_BOX);
359 txt_rg_sig->color((Fl_Color)FL_BACKGROUND2_COLOR);
360 txt_rg_sig->selection_color((Fl_Color)FL_SELECTION_COLOR);
361 txt_rg_sig->labeltype(FL_NORMAL_LABEL);
362 txt_rg_sig->labelfont(0);
363 txt_rg_sig->labelsize(14);
364 txt_rg_sig->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
365 txt_rg_sig->callback((Fl_Callback*)cb_txt_rg_sig);
366 txt_rg_sig->align(FL_ALIGN_LEFT);
367 txt_rg_sig->when(FL_WHEN_CHANGED);
368
369 txt_rg_opnote2 = new Fl_Input2(364, Y+354, 201, 24, _("OP NOTE:"));
370 txt_rg_opnote2->tooltip(_("Operating notes"));
371 txt_rg_opnote2->box(FL_DOWN_BOX);
372 txt_rg_opnote2->color((Fl_Color)FL_BACKGROUND2_COLOR);
373 txt_rg_opnote2->selection_color((Fl_Color)FL_SELECTION_COLOR);
374 txt_rg_opnote2->labeltype(FL_NORMAL_LABEL);
375 txt_rg_opnote2->labelfont(0);
376 txt_rg_opnote2->labelsize(14);
377 txt_rg_opnote2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
378 txt_rg_opnote2->callback((Fl_Callback*)cb_txt_rg_opnote2);
379 txt_rg_opnote2->align(FL_ALIGN_LEFT);
380 txt_rg_opnote2->when(FL_WHEN_CHANGED);
381
382 tab_radiogram_message->end();
383
384 tab_radiogram_information = new Fl_Group(0, Y+25, 570, 355, _("Records"));
385 tab_radiogram_information->hide();
386
387 Fl_Group* frame1 = new Fl_Group(5, Y+32, 560, 58);
388 frame1->box(FL_ENGRAVED_FRAME);
389
390 txt_rg_rcv_fm = new Fl_Input2(82, Y+36, 100, 24, _("RCVD FM:"));
391 txt_rg_rcv_fm->tooltip(_("Call sign of sender"));
392 txt_rg_rcv_fm->box(FL_DOWN_BOX);
393 txt_rg_rcv_fm->color((Fl_Color)FL_BACKGROUND2_COLOR);
394 txt_rg_rcv_fm->selection_color((Fl_Color)FL_SELECTION_COLOR);
395 txt_rg_rcv_fm->labeltype(FL_NORMAL_LABEL);
396 txt_rg_rcv_fm->labelfont(0);
397 txt_rg_rcv_fm->labelsize(14);
398 txt_rg_rcv_fm->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
399 txt_rg_rcv_fm->align(FL_ALIGN_LEFT);
400 txt_rg_rcv_fm->callback(rg_changed);
401 txt_rg_rcv_fm->when(FL_WHEN_CHANGED);
402
403 txt_rg_rcv_net = new Fl_Input2(221, Y+36, 100, 24, _("NET:"));
404 txt_rg_rcv_net->tooltip(_("Net rcvd from"));
405 txt_rg_rcv_net->box(FL_DOWN_BOX);
406 txt_rg_rcv_net->color((Fl_Color)FL_BACKGROUND2_COLOR);
407 txt_rg_rcv_net->selection_color((Fl_Color)FL_SELECTION_COLOR);
408 txt_rg_rcv_net->labeltype(FL_NORMAL_LABEL);
409 txt_rg_rcv_net->labelfont(0);
410 txt_rg_rcv_net->labelsize(14);
411 txt_rg_rcv_net->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
412 txt_rg_rcv_net->align(FL_ALIGN_LEFT);
413 txt_rg_rcv_net->callback(rg_changed);
414 txt_rg_rcv_net->when(FL_WHEN_CHANGED);
415
416 txt_rg_dt4 = new Fl_Input2(381, Y+36, 152, 24, _("DT/TM"));
417 txt_rg_dt4->tooltip(_("ddhhmm MMM YY of receipt"));
418 txt_rg_dt4->box(FL_DOWN_BOX);
419 txt_rg_dt4->color((Fl_Color)FL_BACKGROUND2_COLOR);
420 txt_rg_dt4->selection_color((Fl_Color)FL_SELECTION_COLOR);
421 txt_rg_dt4->labeltype(FL_NORMAL_LABEL);
422 txt_rg_dt4->labelfont(0);
423 txt_rg_dt4->labelsize(14);
424 txt_rg_dt4->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
425 txt_rg_dt4->align(FL_ALIGN_LEFT);
426 txt_rg_dt4->callback(rg_changed);
427 txt_rg_dt4->when(FL_WHEN_CHANGED);
428
429 btn_rgDateTime4 = new Fl_Button(536, Y+36, 24, 24, _("..."));
430 btn_rgDateTime4->tooltip(_("Set today"));
431 btn_rgDateTime4->callback((Fl_Callback*)cb_btn_rgDateTime4);
432
433 txt_rg_sent_to = new Fl_Input2(82, Y+62, 100, 24, _("SENT TO:"));
434 txt_rg_sent_to->tooltip(_("Sent to call sign"));
435 txt_rg_sent_to->box(FL_DOWN_BOX);
436 txt_rg_sent_to->color((Fl_Color)FL_BACKGROUND2_COLOR);
437 txt_rg_sent_to->selection_color((Fl_Color)FL_SELECTION_COLOR);
438 txt_rg_sent_to->labeltype(FL_NORMAL_LABEL);
439 txt_rg_sent_to->labelfont(0);
440 txt_rg_sent_to->labelsize(14);
441 txt_rg_sent_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
442 txt_rg_sent_to->align(FL_ALIGN_LEFT);
443 txt_rg_sent_to->callback(rg_changed);
444 txt_rg_sent_to->when(FL_WHEN_CHANGED);
445
446 txt_rg_snt_net = new Fl_Input2(221, Y+62, 100, 24, _("NET:"));
447 txt_rg_snt_net->tooltip(_("Sent via net"));
448 txt_rg_snt_net->box(FL_DOWN_BOX);
449 txt_rg_snt_net->color((Fl_Color)FL_BACKGROUND2_COLOR);
450 txt_rg_snt_net->selection_color((Fl_Color)FL_SELECTION_COLOR);
451 txt_rg_snt_net->labeltype(FL_NORMAL_LABEL);
452 txt_rg_snt_net->labelfont(0);
453 txt_rg_snt_net->labelsize(14);
454 txt_rg_snt_net->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
455 txt_rg_snt_net->align(FL_ALIGN_LEFT);
456 txt_rg_snt_net->callback(rg_changed);
457 txt_rg_snt_net->when(FL_WHEN_CHANGED);
458
459 txt_rg_dt5 = new Fl_Input2(381, Y+62, 152, 24, _("DT/TM"));
460 txt_rg_dt5->tooltip(_("ddhhmm MMM YY when sent"));
461 txt_rg_dt5->box(FL_DOWN_BOX);
462 txt_rg_dt5->color((Fl_Color)FL_BACKGROUND2_COLOR);
463 txt_rg_dt5->selection_color((Fl_Color)FL_SELECTION_COLOR);
464 txt_rg_dt5->labeltype(FL_NORMAL_LABEL);
465 txt_rg_dt5->labelfont(0);
466 txt_rg_dt5->labelsize(14);
467 txt_rg_dt5->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
468 txt_rg_dt5->align(FL_ALIGN_LEFT);
469 txt_rg_dt5->callback(rg_changed);
470 txt_rg_dt5->when(FL_WHEN_CHANGED);
471
472 btn_rgDateTime5 = new Fl_Button(536, Y+62, 24, 24, _("..."));
473 btn_rgDateTime5->tooltip(_("Set today"));
474 btn_rgDateTime5->callback((Fl_Callback*)cb_btn_rgDateTime5);
475
476 frame1->end();
477
478 Fl_Group* frame2 = new Fl_Group(5, Y+90, 560, 142, _("ORIG - FM - DATE/TIME"));
479 frame2->box(FL_ENGRAVED_FRAME);
480 frame2->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
481
482 txt_rg_dt2 = new Fl_Input2(381, Y+96, 152, 24, _("DT/TM"));
483 txt_rg_dt2->tooltip(_("ddhhmm MMM YY of preparation"));
484 txt_rg_dt2->box(FL_DOWN_BOX);
485 txt_rg_dt2->color((Fl_Color)FL_BACKGROUND2_COLOR);
486 txt_rg_dt2->selection_color((Fl_Color)FL_SELECTION_COLOR);
487 txt_rg_dt2->labeltype(FL_NORMAL_LABEL);
488 txt_rg_dt2->labelfont(0);
489 txt_rg_dt2->labelsize(14);
490 txt_rg_dt2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
491 txt_rg_dt2->align(FL_ALIGN_LEFT);
492 txt_rg_dt2->callback(rg_changed);
493 txt_rg_dt2->when(FL_WHEN_CHANGED);
494
495 btn_rgDateTime2 = new Fl_Button(536, Y+96, 24, 24, _("..."));
496 btn_rgDateTime2->tooltip(_("Set today"));
497 btn_rgDateTime2->callback((Fl_Callback*)cb_btn_rgDateTime2);
498
499 txt_rg_orig = new Fl_Input2(10, Y+128, 550, 98, _("Name/Addr/City/Tel"));
500 txt_rg_orig->tooltip(_("Person requesting message"));
501 txt_rg_orig->type(4);
502 txt_rg_orig->box(FL_DOWN_BOX);
503 txt_rg_orig->color((Fl_Color)FL_BACKGROUND2_COLOR);
504 txt_rg_orig->selection_color((Fl_Color)FL_SELECTION_COLOR);
505 txt_rg_orig->labeltype(FL_NORMAL_LABEL);
506 txt_rg_orig->labelfont(0);
507 txt_rg_orig->labelsize(14);
508 txt_rg_orig->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
509 txt_rg_orig->align(FL_ALIGN_TOP_LEFT);
510 txt_rg_orig->callback(rg_changed);
511 txt_rg_orig->when(FL_WHEN_CHANGED);
512
513 frame2->end();
514
515 Fl_Group* frame4 = new Fl_Group(5, Y+234, 560, 144, _("DLVD -TO - DATE/TIME"));
516 frame4->box(FL_ENGRAVED_FRAME);
517 frame4->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
518
519 txt_rg_dt3 = new Fl_Input2(381, Y+240, 152, 24, _("DT/TM"));
520 txt_rg_dt3->tooltip(_("ddhhmm MMM YY of delivery"));
521 txt_rg_dt3->box(FL_DOWN_BOX);
522 txt_rg_dt3->color((Fl_Color)FL_BACKGROUND2_COLOR);
523 txt_rg_dt3->selection_color((Fl_Color)FL_SELECTION_COLOR);
524 txt_rg_dt3->labeltype(FL_NORMAL_LABEL);
525 txt_rg_dt3->labelfont(0);
526 txt_rg_dt3->labelsize(14);
527 txt_rg_dt3->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
528 txt_rg_dt3->align(FL_ALIGN_LEFT);
529 txt_rg_dt3->callback(rg_changed);
530 txt_rg_dt3->when(FL_WHEN_CHANGED);
531
532 btn_rgDateTime3 = new Fl_Button(537, Y+240, 24, 24, _("..."));
533 btn_rgDateTime3->tooltip(_("Set to today"));
534 btn_rgDateTime3->callback((Fl_Callback*)cb_btn_rgDateTime3);
535
536 txt_rg_dlvd_to = new Fl_Input2(10, Y+272, 550, 100, _("Name/Addr/City/Tel"));
537 txt_rg_dlvd_to->tooltip(_("Message sent to"));
538 txt_rg_dlvd_to->type(4);
539 txt_rg_dlvd_to->box(FL_DOWN_BOX);
540 txt_rg_dlvd_to->color((Fl_Color)FL_BACKGROUND2_COLOR);
541 txt_rg_dlvd_to->selection_color((Fl_Color)FL_SELECTION_COLOR);
542 txt_rg_dlvd_to->labeltype(FL_NORMAL_LABEL);
543 txt_rg_dlvd_to->labelfont(0);
544 txt_rg_dlvd_to->labelsize(14);
545 txt_rg_dlvd_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
546 txt_rg_dlvd_to->align(FL_ALIGN_TOP_LEFT);
547 txt_rg_dlvd_to->callback(rg_changed);
548 txt_rg_dlvd_to->when(FL_WHEN_CHANGED);
549
550 frame4->end();
551
552 tab_radiogram_information->end();
553 Fl_Group::current()->resizable(tab_radiogram_information);
554 tabs_radiogram->end();
555 Fl_Group::current()->resizable(tabs_radiogram);
556 tab_radiogram->end();
557
558 tab_radiogram->hide();
559 }
560