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_ics216 = (Fl_Group *)0;
29 Fl_Group *tab_ics_216 = (Fl_Group *)0;
30 Fl_Tabs *tab_ics216_type = (Fl_Tabs *)0;
31 Fl_Group *tab_216_1 = (Fl_Group *)0;
32 Fl_Group *tab_216_2 = (Fl_Group *)0;
33 Fl_Group *tab_216_3 = (Fl_Group *)0;
34 Fl_Group *tab_216_4 = (Fl_Group *)0;
35 Fl_Group *tab_216_5 = (Fl_Group *)0;
36 Fl_Input2 *txt_216_incident = (Fl_Input2 *)0;
37 Fl_Input2 *txt_216_date = (Fl_Input2 *)0;
38 Fl_Button *btn_216_date = (Fl_Button *)0;
39 Fl_Input2 *txt_216_time = (Fl_Input2 *)0;
40 Fl_Button *btn_216_time = (Fl_Button *)0;
41 Fl_Input2 *txt_216_branch = (Fl_Input2 *)0;
42 Fl_Input2 *txt_216_agc = (Fl_Input2 *)0;
43 Fl_Input2 *txt_216_op_period = (Fl_Input2 *)0;
44 Fl_Input2 *txt_216_tac_freq = (Fl_Input2 *)0;
45 Fl_Input2 *txt_216_prepared_by = (Fl_Input2 *)0;
46 Fl_Input2 *txt_216_div_grp[4]={(Fl_Input2 *)0};
47 Fl_Input2 *txt_216_agency[4]={(Fl_Input2 *)0};
48 Fl_Input2 *txt_216_ag[36]={(Fl_Input2 *)0};
49 Fl_Input2 *txt_216_id[36]={(Fl_Input2 *)0};
50 Fl_Input2 *txt_216_rr[36]={(Fl_Input2 *)0};
51
cb_btn_216_date(Fl_Button *,void *)52 static void cb_btn_216_date(Fl_Button*, void*) {
53 cb_216_set_date();
54 }
55
cb_btn_216_time(Fl_Button *,void *)56 static void cb_btn_216_time(Fl_Button*, void*) {
57 cb_216_set_time();
58 }
59
create_ics216_tab()60 void create_ics216_tab()
61 {
62 int Y = tab_top;
63 tab_ics216 = new Fl_Group(0, Y, 570, 390);
64 tab_ics216->align(FL_ALIGN_TOP);
65
66 tab_ics216_type = new Fl_Tabs(0, Y, 570, 387);
67 tab_ics216_type->selection_color((Fl_Color)246);
68
69 tab_216_1 = new Fl_Group(0, Y+25, 570, 360, _("Incident"));
70 {
71 Fl_Group* o = new Fl_Group(2, Y+32, 566, 190);
72 o->box(FL_ENGRAVED_FRAME);
73 o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
74
75 txt_216_incident = new Fl_Input2(135, Y+38, 425, 24, _("1.Incident Name"));
76 txt_216_incident->tooltip(_("Incident name"));
77 txt_216_incident->box(FL_DOWN_BOX);
78 txt_216_incident->color((Fl_Color)FL_BACKGROUND2_COLOR);
79 txt_216_incident->selection_color((Fl_Color)FL_SELECTION_COLOR);
80 txt_216_incident->labeltype(FL_NORMAL_LABEL);
81 txt_216_incident->labelfont(0);
82 txt_216_incident->labelsize(14);
83 txt_216_incident->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
84 txt_216_incident->align(FL_ALIGN_LEFT);
85 txt_216_incident->callback(ics_changed);
86 txt_216_incident->when(FL_WHEN_CHANGED);
87
88 txt_216_date = new Fl_Input2(135, Y+65, 155, 24, _("2. Date"));
89 txt_216_date->tooltip(_("Date"));
90 txt_216_date->box(FL_DOWN_BOX);
91 txt_216_date->color((Fl_Color)FL_BACKGROUND2_COLOR);
92 txt_216_date->selection_color((Fl_Color)FL_SELECTION_COLOR);
93 txt_216_date->labeltype(FL_NORMAL_LABEL);
94 txt_216_date->labelfont(0);
95 txt_216_date->labelsize(14);
96 txt_216_date->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
97 txt_216_date->align(FL_ALIGN_LEFT);
98 txt_216_date->callback(ics_changed);
99 txt_216_date->when(FL_WHEN_CHANGED);
100
101 btn_216_date = new Fl_Button(294, Y+67, 20, 20, _("..."));
102 btn_216_date->tooltip(_("Set today"));
103 btn_216_date->callback((Fl_Callback*)cb_btn_216_date);
104
105 txt_216_time = new Fl_Input2(135, Y+90, 103, 24, _("3. Time"));
106 txt_216_time->tooltip(_("Time prepared"));
107 txt_216_time->box(FL_DOWN_BOX);
108 txt_216_time->color((Fl_Color)FL_BACKGROUND2_COLOR);
109 txt_216_time->selection_color((Fl_Color)FL_SELECTION_COLOR);
110 txt_216_time->labeltype(FL_NORMAL_LABEL);
111 txt_216_time->labelfont(0);
112 txt_216_time->labelsize(14);
113 txt_216_time->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
114 txt_216_time->align(FL_ALIGN_LEFT);
115 txt_216_time->callback(ics_changed);
116 txt_216_time->when(FL_WHEN_CHANGED);
117
118 btn_216_time = new Fl_Button(247, Y+92, 20, 20, _("..."));
119 btn_216_time->tooltip(_("Set time now"));
120 btn_216_time->callback((Fl_Callback*)cb_btn_216_time);
121
122 txt_216_branch = new Fl_Input2(135, Y+115, 425, 24, _("4. Branch"));
123 txt_216_branch->tooltip(_("branch"));
124 txt_216_branch->box(FL_DOWN_BOX);
125 txt_216_branch->color((Fl_Color)FL_BACKGROUND2_COLOR);
126 txt_216_branch->selection_color((Fl_Color)FL_SELECTION_COLOR);
127 txt_216_branch->labeltype(FL_NORMAL_LABEL);
128 txt_216_branch->labelfont(0);
129 txt_216_branch->labelsize(14);
130 txt_216_branch->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
131 txt_216_branch->align(FL_ALIGN_LEFT);
132 txt_216_branch->callback(ics_changed);
133 txt_216_branch->when(FL_WHEN_CHANGED);
134
135 txt_216_agc = new Fl_Input2(135, Y+140, 425, 24, _("5. Agency"));
136 txt_216_agc->tooltip(_("agency name"));
137 txt_216_agc->box(FL_DOWN_BOX);
138 txt_216_agc->color((Fl_Color)FL_BACKGROUND2_COLOR);
139 txt_216_agc->selection_color((Fl_Color)FL_SELECTION_COLOR);
140 txt_216_agc->labeltype(FL_NORMAL_LABEL);
141 txt_216_agc->labelfont(0);
142 txt_216_agc->labelsize(14);
143 txt_216_agc->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
144 txt_216_agc->align(FL_ALIGN_LEFT);
145 txt_216_agc->callback(ics_changed);
146 txt_216_agc->when(FL_WHEN_CHANGED);
147
148 txt_216_op_period = new Fl_Input2(135, Y+165, 425, 24, _("6. Oper\' Period"));
149 txt_216_op_period->tooltip(_("Date / Time"));
150 txt_216_op_period->box(FL_DOWN_BOX);
151 txt_216_op_period->color((Fl_Color)FL_BACKGROUND2_COLOR);
152 txt_216_op_period->selection_color((Fl_Color)FL_SELECTION_COLOR);
153 txt_216_op_period->labeltype(FL_NORMAL_LABEL);
154 txt_216_op_period->labelfont(0);
155 txt_216_op_period->labelsize(14);
156 txt_216_op_period->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
157 txt_216_op_period->align(FL_ALIGN_LEFT);
158 txt_216_op_period->callback(ics_changed);
159 txt_216_op_period->when(FL_WHEN_CHANGED);
160
161 txt_216_tac_freq = new Fl_Input2(135, Y+190, 425, 24, _("7. Tac\' Freq\'"));
162 txt_216_tac_freq->tooltip(_("tactical frequency"));
163 txt_216_tac_freq->box(FL_DOWN_BOX);
164 txt_216_tac_freq->color((Fl_Color)FL_BACKGROUND2_COLOR);
165 txt_216_tac_freq->selection_color((Fl_Color)FL_SELECTION_COLOR);
166 txt_216_tac_freq->labeltype(FL_NORMAL_LABEL);
167 txt_216_tac_freq->labelfont(0);
168 txt_216_tac_freq->labelsize(14);
169 txt_216_tac_freq->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
170 txt_216_tac_freq->align(FL_ALIGN_LEFT);
171 txt_216_tac_freq->callback(ics_changed);
172 txt_216_tac_freq->when(FL_WHEN_CHANGED);
173
174 o->end();
175 }
176
177 {
178 Fl_Group* o = new Fl_Group(2, Y+224, 566, 35);
179 o->box(FL_ENGRAVED_FRAME);
180
181 txt_216_prepared_by = new Fl_Input2(135, Y+226, 425, 24, _("Prepared By"));
182 txt_216_prepared_by->tooltip(_("Name and Position"));
183 txt_216_prepared_by->box(FL_DOWN_BOX);
184 txt_216_prepared_by->color((Fl_Color)FL_BACKGROUND2_COLOR);
185 txt_216_prepared_by->selection_color((Fl_Color)FL_SELECTION_COLOR);
186 txt_216_prepared_by->labeltype(FL_NORMAL_LABEL);
187 txt_216_prepared_by->labelfont(0);
188 txt_216_prepared_by->labelsize(14);
189 txt_216_prepared_by->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
190 txt_216_prepared_by->align(FL_ALIGN_LEFT);
191 txt_216_prepared_by->callback(ics_changed);
192 txt_216_prepared_by->when(FL_WHEN_CHANGED);
193
194 o->end();
195 }
196 tab_216_1->end();
197
198 Y = tab_top;
199 tab_216_2 = new Fl_Group(0, Y+25, 570, 360, _("Div-Grp 1"));
200 tab_216_2->hide();
201 Y+= 35;
202
203 txt_216_div_grp[0] = new Fl_Input2(120, Y, 448, 24, _("Division/Group") );
204 txt_216_div_grp[0]->tooltip(_(""));
205 txt_216_div_grp[0]->box(FL_DOWN_BOX);
206 txt_216_div_grp[0]->color((Fl_Color)FL_BACKGROUND2_COLOR);
207 txt_216_div_grp[0]->selection_color((Fl_Color)FL_SELECTION_COLOR);
208 txt_216_div_grp[0]->labeltype(FL_NORMAL_LABEL);
209 txt_216_div_grp[0]->labelfont(0);
210 txt_216_div_grp[0]->labelsize(14);
211 txt_216_div_grp[0]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
212 txt_216_div_grp[0]->align(FL_ALIGN_LEFT);
213 txt_216_div_grp[0]->callback(ics_changed);
214 txt_216_div_grp[0]->when(FL_WHEN_CHANGED);
215 Y += 24;
216
217 txt_216_agency[0] = new Fl_Input2(120, Y, 448, 24, _("Agency") );
218 txt_216_agency[0]->tooltip(_(""));
219 txt_216_agency[0]->box(FL_DOWN_BOX);
220 txt_216_agency[0]->color((Fl_Color)FL_BACKGROUND2_COLOR);
221 txt_216_agency[0]->selection_color((Fl_Color)FL_SELECTION_COLOR);
222 txt_216_agency[0]->labeltype(FL_NORMAL_LABEL);
223 txt_216_agency[0]->labelfont(0);
224 txt_216_agency[0]->labelsize(14);
225 txt_216_agency[0]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
226 txt_216_agency[0]->align(FL_ALIGN_LEFT);
227 txt_216_agency[0]->callback(ics_changed);
228 txt_216_agency[0]->when(FL_WHEN_CHANGED);
229 Y += 48;
230
231 for (int i = 0, j = 0; i < 9; i++, j++) {
232 txt_216_ag[j] = new Fl_Input2(5, Y, 180, 24, i == 0 ? "Agency" : "");
233 txt_216_ag[j]->tooltip(_(""));
234 txt_216_ag[j]->box(FL_DOWN_BOX);
235 txt_216_ag[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
236 txt_216_ag[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
237 txt_216_ag[j]->labeltype(FL_NORMAL_LABEL);
238 txt_216_ag[j]->labelfont(0);
239 txt_216_ag[j]->labelsize(14);
240 txt_216_ag[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
241 txt_216_ag[j]->align(FL_ALIGN_TOP);
242 txt_216_ag[j]->callback(ics_changed);
243 txt_216_ag[j]->when(FL_WHEN_CHANGED);
244
245 txt_216_id[j] = new Fl_Input2(186, Y, 100, 24, i == 0 ? "ID No." : "");
246 txt_216_id[j]->tooltip(_(""));
247 txt_216_id[j]->box(FL_DOWN_BOX);
248 txt_216_id[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
249 txt_216_id[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
250 txt_216_id[j]->labeltype(FL_NORMAL_LABEL);
251 txt_216_id[j]->labelfont(0);
252 txt_216_id[j]->labelsize(14);
253 txt_216_id[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
254 txt_216_id[j]->align(FL_ALIGN_TOP);
255 txt_216_id[j]->callback(ics_changed);
256 txt_216_id[j]->when(FL_WHEN_CHANGED);
257
258 txt_216_rr[j] = new Fl_Input2(287, Y, 280, 24, i == 0 ? "Radio Requirements" : "");
259 txt_216_rr[j]->tooltip(_(""));
260 txt_216_rr[j]->box(FL_DOWN_BOX);
261 txt_216_rr[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
262 txt_216_rr[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
263 txt_216_rr[j]->labeltype(FL_NORMAL_LABEL);
264 txt_216_rr[j]->labelfont(0);
265 txt_216_rr[j]->labelsize(14);
266 txt_216_rr[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
267 txt_216_rr[j]->align(FL_ALIGN_TOP);
268 txt_216_rr[j]->callback(ics_changed);
269 txt_216_rr[j]->when(FL_WHEN_CHANGED);
270 Y += 24;
271 }
272 tab_216_2->end();
273
274 Y = tab_top;
275 tab_216_3 = new Fl_Group(0, 95, 570, 360, _("Div-Grp 2"));
276 tab_216_3->hide();
277 Y += 35;
278
279 txt_216_div_grp[1] = new Fl_Input2(120, Y, 448, 24, _("Division/Group") );
280 txt_216_div_grp[1]->tooltip(_(""));
281 txt_216_div_grp[1]->box(FL_DOWN_BOX);
282 txt_216_div_grp[1]->color((Fl_Color)FL_BACKGROUND2_COLOR);
283 txt_216_div_grp[1]->selection_color((Fl_Color)FL_SELECTION_COLOR);
284 txt_216_div_grp[1]->labeltype(FL_NORMAL_LABEL);
285 txt_216_div_grp[1]->labelfont(0);
286 txt_216_div_grp[1]->labelsize(14);
287 txt_216_div_grp[1]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
288 txt_216_div_grp[1]->align(FL_ALIGN_LEFT);
289 txt_216_div_grp[1]->callback(ics_changed);
290 txt_216_div_grp[1]->when(FL_WHEN_CHANGED);
291 Y += 24;
292
293 txt_216_agency[1] = new Fl_Input2(120, Y, 448, 24, _("Agency") );
294 txt_216_agency[1]->tooltip(_(""));
295 txt_216_agency[1]->box(FL_DOWN_BOX);
296 txt_216_agency[1]->color((Fl_Color)FL_BACKGROUND2_COLOR);
297 txt_216_agency[1]->selection_color((Fl_Color)FL_SELECTION_COLOR);
298 txt_216_agency[1]->labeltype(FL_NORMAL_LABEL);
299 txt_216_agency[1]->labelfont(0);
300 txt_216_agency[1]->labelsize(14);
301 txt_216_agency[1]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
302 txt_216_agency[1]->align(FL_ALIGN_LEFT);
303 txt_216_agency[1]->callback(ics_changed);
304 txt_216_agency[1]->when(FL_WHEN_CHANGED);
305 Y += 48;
306
307 for (int i = 0, j = 9; i < 9; i++, j++) {
308 txt_216_ag[j] = new Fl_Input2(5, Y, 180, 24, i == 0 ? "Agency" : "");
309 txt_216_ag[j]->tooltip(_(""));
310 txt_216_ag[j]->box(FL_DOWN_BOX);
311 txt_216_ag[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
312 txt_216_ag[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
313 txt_216_ag[j]->labeltype(FL_NORMAL_LABEL);
314 txt_216_ag[j]->labelfont(0);
315 txt_216_ag[j]->labelsize(14);
316 txt_216_ag[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
317 txt_216_ag[j]->align(FL_ALIGN_TOP);
318 txt_216_ag[j]->callback(ics_changed);
319 txt_216_ag[j]->when(FL_WHEN_CHANGED);
320
321 txt_216_id[j] = new Fl_Input2(186, Y, 100, 24, i == 0 ? "ID No." : "");
322 txt_216_id[j]->tooltip(_(""));
323 txt_216_id[j]->box(FL_DOWN_BOX);
324 txt_216_id[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
325 txt_216_id[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
326 txt_216_id[j]->labeltype(FL_NORMAL_LABEL);
327 txt_216_id[j]->labelfont(0);
328 txt_216_id[j]->labelsize(14);
329 txt_216_id[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
330 txt_216_id[j]->align(FL_ALIGN_TOP);
331 txt_216_id[j]->callback(ics_changed);
332 txt_216_id[j]->when(FL_WHEN_CHANGED);
333
334 txt_216_rr[j] = new Fl_Input2(287, Y, 280, 24, i == 0 ? "Radio Requirements" : "");
335 txt_216_rr[j]->tooltip(_(""));
336 txt_216_rr[j]->box(FL_DOWN_BOX);
337 txt_216_rr[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
338 txt_216_rr[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
339 txt_216_rr[j]->labeltype(FL_NORMAL_LABEL);
340 txt_216_rr[j]->labelfont(0);
341 txt_216_rr[j]->labelsize(14);
342 txt_216_rr[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
343 txt_216_rr[j]->align(FL_ALIGN_TOP);
344 txt_216_rr[j]->callback(ics_changed);
345 txt_216_rr[j]->when(FL_WHEN_CHANGED);
346 Y += 24;
347 }
348 tab_216_3->end();
349
350 Y = tab_top;
351 tab_216_4 = new Fl_Group(0, Y+25, 570, 360, _("Div-Grp 3"));
352 tab_216_4->hide();
353 Y += 35;
354
355 txt_216_div_grp[2] = new Fl_Input2(120, Y, 448, 24, _("Division/Group") );
356 txt_216_div_grp[2]->tooltip(_(""));
357 txt_216_div_grp[2]->box(FL_DOWN_BOX);
358 txt_216_div_grp[2]->color((Fl_Color)FL_BACKGROUND2_COLOR);
359 txt_216_div_grp[2]->selection_color((Fl_Color)FL_SELECTION_COLOR);
360 txt_216_div_grp[2]->labeltype(FL_NORMAL_LABEL);
361 txt_216_div_grp[2]->labelfont(0);
362 txt_216_div_grp[2]->labelsize(14);
363 txt_216_div_grp[2]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
364 txt_216_div_grp[2]->align(FL_ALIGN_LEFT);
365 txt_216_div_grp[2]->callback(ics_changed);
366 txt_216_div_grp[2]->when(FL_WHEN_CHANGED);
367 Y += 24;
368
369 txt_216_agency[2] = new Fl_Input2(120, Y, 448, 24, _("Agency") );
370 txt_216_agency[2]->tooltip(_(""));
371 txt_216_agency[2]->box(FL_DOWN_BOX);
372 txt_216_agency[2]->color((Fl_Color)FL_BACKGROUND2_COLOR);
373 txt_216_agency[2]->selection_color((Fl_Color)FL_SELECTION_COLOR);
374 txt_216_agency[2]->labeltype(FL_NORMAL_LABEL);
375 txt_216_agency[2]->labelfont(0);
376 txt_216_agency[2]->labelsize(14);
377 txt_216_agency[2]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
378 txt_216_agency[2]->align(FL_ALIGN_LEFT);
379 txt_216_agency[2]->callback(ics_changed);
380 txt_216_agency[2]->when(FL_WHEN_CHANGED);
381 Y += 48;
382
383 for (int i = 0, j = 18; i < 9; i++, j++) {
384 txt_216_ag[j] = new Fl_Input2(5, Y, 180, 24, i == 0 ? "Agency" : "");
385 txt_216_ag[j]->tooltip(_(""));
386 txt_216_ag[j]->box(FL_DOWN_BOX);
387 txt_216_ag[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
388 txt_216_ag[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
389 txt_216_ag[j]->labeltype(FL_NORMAL_LABEL);
390 txt_216_ag[j]->labelfont(0);
391 txt_216_ag[j]->labelsize(14);
392 txt_216_ag[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
393 txt_216_ag[j]->align(FL_ALIGN_TOP);
394 txt_216_ag[j]->callback(ics_changed);
395 txt_216_ag[j]->when(FL_WHEN_CHANGED);
396
397 txt_216_id[j] = new Fl_Input2(186, Y, 100, 24, i == 0 ? "ID No." : "");
398 txt_216_id[j]->tooltip(_(""));
399 txt_216_id[j]->box(FL_DOWN_BOX);
400 txt_216_id[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
401 txt_216_id[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
402 txt_216_id[j]->labeltype(FL_NORMAL_LABEL);
403 txt_216_id[j]->labelfont(0);
404 txt_216_id[j]->labelsize(14);
405 txt_216_id[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
406 txt_216_id[j]->align(FL_ALIGN_TOP);
407 txt_216_id[j]->callback(ics_changed);
408 txt_216_id[j]->when(FL_WHEN_CHANGED);
409
410 txt_216_rr[j] = new Fl_Input2(287, Y, 280, 24, i == 0 ? "Radio Requirements" : "");
411 txt_216_rr[j]->tooltip(_(""));
412 txt_216_rr[j]->box(FL_DOWN_BOX);
413 txt_216_rr[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
414 txt_216_rr[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
415 txt_216_rr[j]->labeltype(FL_NORMAL_LABEL);
416 txt_216_rr[j]->labelfont(0);
417 txt_216_rr[j]->labelsize(14);
418 txt_216_rr[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
419 txt_216_rr[j]->align(FL_ALIGN_TOP);
420 txt_216_rr[j]->callback(ics_changed);
421 txt_216_rr[j]->when(FL_WHEN_CHANGED);
422 Y += 24;
423 }
424 tab_216_4->end();
425
426 Y = tab_top;
427 tab_216_5 = new Fl_Group(0, Y+25, 570, 360, _("Div-Grp 4"));
428 tab_216_5->hide();
429 Y += 35;
430
431 txt_216_div_grp[3] = new Fl_Input2(120, Y, 448, 24, _("Division/Group") );
432 txt_216_div_grp[3]->tooltip(_(""));
433 txt_216_div_grp[3]->box(FL_DOWN_BOX);
434 txt_216_div_grp[3]->color((Fl_Color)FL_BACKGROUND2_COLOR);
435 txt_216_div_grp[3]->selection_color((Fl_Color)FL_SELECTION_COLOR);
436 txt_216_div_grp[3]->labeltype(FL_NORMAL_LABEL);
437 txt_216_div_grp[3]->labelfont(0);
438 txt_216_div_grp[3]->labelsize(14);
439 txt_216_div_grp[3]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
440 txt_216_div_grp[3]->align(FL_ALIGN_LEFT);
441 txt_216_div_grp[3]->callback(ics_changed);
442 txt_216_div_grp[3]->when(FL_WHEN_CHANGED);
443 Y += 24;
444
445 txt_216_agency[3] = new Fl_Input2(120, Y, 448, 24, _("Agency") );
446 txt_216_agency[3]->tooltip(_(""));
447 txt_216_agency[3]->box(FL_DOWN_BOX);
448 txt_216_agency[3]->color((Fl_Color)FL_BACKGROUND2_COLOR);
449 txt_216_agency[3]->selection_color((Fl_Color)FL_SELECTION_COLOR);
450 txt_216_agency[3]->labeltype(FL_NORMAL_LABEL);
451 txt_216_agency[3]->labelfont(0);
452 txt_216_agency[3]->labelsize(14);
453 txt_216_agency[3]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
454 txt_216_agency[3]->align(FL_ALIGN_LEFT);
455 txt_216_agency[3]->callback(ics_changed);
456 txt_216_agency[3]->when(FL_WHEN_CHANGED);
457 Y += 48;
458
459 for (int i = 0, j = 27; i < 9; i++, j++) {
460 txt_216_ag[j] = new Fl_Input2(5, Y, 180, 24, i == 0 ? "Agency" : "");
461 txt_216_ag[j]->tooltip(_(""));
462 txt_216_ag[j]->box(FL_DOWN_BOX);
463 txt_216_ag[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
464 txt_216_ag[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
465 txt_216_ag[j]->labeltype(FL_NORMAL_LABEL);
466 txt_216_ag[j]->labelfont(0);
467 txt_216_ag[j]->labelsize(14);
468 txt_216_ag[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
469 txt_216_ag[j]->align(FL_ALIGN_TOP);
470 txt_216_ag[j]->callback(ics_changed);
471 txt_216_ag[j]->when(FL_WHEN_CHANGED);
472
473 txt_216_id[j] = new Fl_Input2(186, Y, 100, 24, i == 0 ? "ID No." : "");
474 txt_216_id[j]->tooltip(_(""));
475 txt_216_id[j]->box(FL_DOWN_BOX);
476 txt_216_id[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
477 txt_216_id[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
478 txt_216_id[j]->labeltype(FL_NORMAL_LABEL);
479 txt_216_id[j]->labelfont(0);
480 txt_216_id[j]->labelsize(14);
481 txt_216_id[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
482 txt_216_id[j]->align(FL_ALIGN_TOP);
483 txt_216_id[j]->callback(ics_changed);
484 txt_216_id[j]->when(FL_WHEN_CHANGED);
485
486 txt_216_rr[j] = new Fl_Input2(287, Y, 280, 24, i == 0 ? "Radio Requirements" : "");
487 txt_216_rr[j]->tooltip(_(""));
488 txt_216_rr[j]->box(FL_DOWN_BOX);
489 txt_216_rr[j]->color((Fl_Color)FL_BACKGROUND2_COLOR);
490 txt_216_rr[j]->selection_color((Fl_Color)FL_SELECTION_COLOR);
491 txt_216_rr[j]->labeltype(FL_NORMAL_LABEL);
492 txt_216_rr[j]->labelfont(0);
493 txt_216_rr[j]->labelsize(14);
494 txt_216_rr[j]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
495 txt_216_rr[j]->align(FL_ALIGN_TOP);
496 txt_216_rr[j]->callback(ics_changed);
497 txt_216_rr[j]->when(FL_WHEN_CHANGED);
498 Y += 24;
499 }
500 tab_216_5->end();
501
502 tab_ics216_type->end();
503
504 tab_ics216->end();
505
506 tab_ics216->hide();
507 }
508