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_ics206 = (Fl_Group *)0;
29 Fl_Tabs		*tab_ics206_type = (Fl_Tabs *)0;
30 Fl_Group	*tab_206_med_plan = (Fl_Group *)0;
31 Fl_Input2	*txt_206_name = (Fl_Input2 *)0;
32 Fl_Input2	*txt_206_op_period = (Fl_Input2 *)0;
33 Fl_Input2	*txt_206_time_prepared = (Fl_Input2 *)0;
34 Fl_Button	*btn_206_time = (Fl_Button *)0;
35 Fl_DateInput	*txt_206_date_prepared = (Fl_DateInput *)0;
36 Fl_Button	*btn_206_date = (Fl_Button *)0;
37 Fl_Input2	*txt_206_medaid_sta[5]={(Fl_Input2 *)0};
38 Fl_Input2	*txt_206_medaid_loc[5]={(Fl_Input2 *)0};
39 Fl_Check_Button	*btn_206_medaid_paramedics[5]={(Fl_Check_Button *)0};
40 Fl_Input2	*txt_206_preparer = (Fl_Input2 *)0;
41 Fl_Input2	*txt_206_reviewer = (Fl_Input2 *)0;
42 Fl_Group	*tab_206_transport = (Fl_Group *)0;
43 Fl_Input2	*txt_206_transport_name[5]={(Fl_Input2 *)0};
44 Fl_Input2	*txt_206_transport_address[5]={(Fl_Input2 *)0};
45 Fl_Check_Button	*btn_206_transport_paramedics[5]={(Fl_Check_Button *)0};
46 Fl_Input2	*txt_206_transport_phone[5]={(Fl_Input2 *)0};
47 Fl_Group	*tab_206_ambulance = (Fl_Group *)0;
48 Fl_Input2	*txt_206_ambulance_name[5]={(Fl_Input2 *)0};
49 Fl_Input2	*txt_206_ambulance_loc[5]={(Fl_Input2 *)0};
50 Fl_Check_Button	*btn_206_ambulance_paramedics[5]={(Fl_Check_Button *)0};
51 Fl_Group	*tab_206_hospital = (Fl_Group *)0;
52 Fl_Input2	*txt_206_hosp_name[5]={(Fl_Input2 *)0};
53 Fl_Input2	*txt_206_hosp_address[5]={(Fl_Input2 *)0};
54 Fl_Input2	*txt_206_hosp_phone[5]={(Fl_Input2 *)0};
55 Fl_Input2	*txt_206_hosp_airtime[5]={(Fl_Input2 *)0};
56 Fl_Input2	*txt_206_hosp_gndtime[5]={(Fl_Input2 *)0};
57 Fl_Check_Button	*btn_206_hosp_helipad[5]={(Fl_Check_Button *)0};
58 Fl_Check_Button	*btn_206_hosp_burn_center[5]={(Fl_Check_Button *)0};
59 Fl_Group	*tab_206_med_proc = (Fl_Group *)0;
60 FTextEdit	*txt_206_procedure = (FTextEdit *)0;
61 
cb_btn_206_time(Fl_Button *,void *)62 static void cb_btn_206_time(Fl_Button*, void*) {
63   cb_206_settime();
64 }
65 
cb_btn_206_date(Fl_Button *,void *)66 static void cb_btn_206_date(Fl_Button*, void*) {
67   cb_206_setdate();
68 }
69 
create_ics206_tab()70 void create_ics206_tab()
71 {
72 	int Y = tab_top;
73 	tab_ics206 = new Fl_Group(0, Y, 570, 390);
74 	tab_ics206->align(FL_ALIGN_TOP);
75 
76 	tab_ics206_type = new Fl_Tabs(0, Y, 570, 387);
77 	tab_ics206_type->selection_color((Fl_Color)246);
78 
79 	tab_206_med_plan = new Fl_Group(0, Y+25, 570, 360, _("Med Plan"));
80 		{
81 		Fl_Group* o = new Fl_Group(2, Y+30, 566, 80);
82 		o->box(FL_ENGRAVED_FRAME);
83 		txt_206_name = new Fl_Input2(9, Y+49, 242, 24, _("Incident Name"));
84 		txt_206_name->tooltip(_("Addressee"));
85 		txt_206_name->box(FL_DOWN_BOX);
86 		txt_206_name->color((Fl_Color)FL_BACKGROUND2_COLOR);
87 		txt_206_name->selection_color((Fl_Color)FL_SELECTION_COLOR);
88 		txt_206_name->labeltype(FL_NORMAL_LABEL);
89 		txt_206_name->labelfont(0);
90 		txt_206_name->labelsize(14);
91 		txt_206_name->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
92 		txt_206_name->align(FL_ALIGN_TOP_LEFT);
93 		txt_206_name->callback(ics_changed);
94 		txt_206_name->when(FL_WHEN_CHANGED);
95 
96 		txt_206_op_period = new Fl_Input2(151, Y+77, 410, 24, _("Operational Period:"));
97 		txt_206_op_period->tooltip(_("Subject"));
98 		txt_206_op_period->box(FL_DOWN_BOX);
99 		txt_206_op_period->color((Fl_Color)FL_BACKGROUND2_COLOR);
100 		txt_206_op_period->selection_color((Fl_Color)FL_SELECTION_COLOR);
101 		txt_206_op_period->labeltype(FL_NORMAL_LABEL);
102 		txt_206_op_period->labelfont(0);
103 		txt_206_op_period->labelsize(14);
104 		txt_206_op_period->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
105 		txt_206_op_period->align(FL_ALIGN_LEFT);
106 		txt_206_op_period->callback(ics_changed);
107 		txt_206_op_period->when(FL_WHEN_CHANGED);
108 
109 		txt_206_time_prepared = new Fl_Input2(407, Y+47, 103, 24, _("Time Prepared"));
110 		txt_206_time_prepared->tooltip(_("Time of origination"));
111 		txt_206_time_prepared->box(FL_DOWN_BOX);
112 		txt_206_time_prepared->color((Fl_Color)FL_BACKGROUND2_COLOR);
113 		txt_206_time_prepared->selection_color((Fl_Color)FL_SELECTION_COLOR);
114 		txt_206_time_prepared->labeltype(FL_NORMAL_LABEL);
115 		txt_206_time_prepared->labelfont(0);
116 		txt_206_time_prepared->labelsize(14);
117 		txt_206_time_prepared->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
118 		txt_206_time_prepared->align(FL_ALIGN_TOP_LEFT);
119 		txt_206_time_prepared->callback(ics_changed);
120 		txt_206_time_prepared->when(FL_WHEN_CHANGED);
121 
122 		btn_206_time = new Fl_Button(517, Y+49, 20, 20, _("..."));
123 		btn_206_time->tooltip(_("Set time now"));
124 		btn_206_time->callback((Fl_Callback*)cb_btn_206_time);
125 
126 		txt_206_date_prepared = new Fl_DateInput(256, Y+47, 125, 24, _("Date Prepared"));
127 		txt_206_date_prepared->tooltip(_("Date of origination"));
128 		txt_206_date_prepared->box(FL_DOWN_BOX);
129 		txt_206_date_prepared->color((Fl_Color)FL_BACKGROUND2_COLOR);
130 		txt_206_date_prepared->selection_color((Fl_Color)FL_SELECTION_COLOR);
131 		txt_206_date_prepared->labeltype(FL_NORMAL_LABEL);
132 		txt_206_date_prepared->labelfont(0);
133 		txt_206_date_prepared->labelsize(14);
134 		txt_206_date_prepared->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
135 		txt_206_date_prepared->align(FL_ALIGN_TOP_LEFT);
136 		txt_206_date_prepared->callback(ics_changed);
137 		txt_206_date_prepared->when(FL_WHEN_CHANGED);
138 
139 		btn_206_date = new Fl_Button(383, Y+49, 20, 20, _("..."));
140 		btn_206_date->tooltip(_("Set today"));
141 		btn_206_date->callback((Fl_Callback*)cb_btn_206_date);
142 
143 		o->end();
144 		}
145 		{
146 		Fl_Group* o = new Fl_Group(2, Y+110, 566, 210);
147 		o->box(FL_ENGRAVED_FRAME);
148 		o->align(FL_ALIGN_TOP_LEFT);
149 		for (int i = 0; i < 5; i++) {
150 			txt_206_medaid_sta[i] = new Fl_Input2(
151 				7, Y+136 + i*38, 160, 24, i == 0 ? _("Medical Aid Stations"):"");
152 			txt_206_medaid_sta[i]->tooltip(_(""));
153 			txt_206_medaid_sta[i]->box(FL_DOWN_BOX);
154 			txt_206_medaid_sta[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
155 			txt_206_medaid_sta[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
156 			txt_206_medaid_sta[i]->labeltype(FL_NORMAL_LABEL);
157 			txt_206_medaid_sta[i]->labelfont(0);
158 			txt_206_medaid_sta[i]->labelsize(14);
159 			txt_206_medaid_sta[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
160 			txt_206_medaid_sta[i]->align(FL_ALIGN_TOP_LEFT);
161 			txt_206_medaid_sta[i]->callback(ics_changed);
162 			txt_206_medaid_sta[i]->when(FL_WHEN_CHANGED);
163 
164 			txt_206_medaid_loc[i] = new Fl_Input2(169, Y+136 + i*38, 370, 24, i == 0 ? _("Location"):"");
165 			txt_206_medaid_loc[i]->tooltip(_(""));
166 			txt_206_medaid_loc[i]->box(FL_DOWN_BOX);
167 			txt_206_medaid_loc[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
168 			txt_206_medaid_loc[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
169 			txt_206_medaid_loc[i]->labeltype(FL_NORMAL_LABEL);
170 			txt_206_medaid_loc[i]->labelfont(0);
171 			txt_206_medaid_loc[i]->labelsize(14);
172 			txt_206_medaid_loc[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
173 			txt_206_medaid_loc[i]->align(FL_ALIGN_TOP_LEFT);
174 			txt_206_medaid_loc[i]->callback(ics_changed);
175 			txt_206_medaid_loc[i]->when(FL_WHEN_CHANGED);
176 
177 			btn_206_medaid_paramedics[i] = new Fl_Check_Button(
178 				540, Y+136 + i*38, 20, 22, i == 0 ? _("Paramedics"):"");
179 			btn_206_medaid_paramedics[i]->down_box(FL_DOWN_BOX);
180 			btn_206_medaid_paramedics[i]->align(FL_ALIGN_TOP_RIGHT);
181 		} // Fl_Check_Button* btn_206_medaid_paramedics[i]
182 		o->end();
183 		}
184 
185 		{
186 		Fl_Group* o = new Fl_Group(2, Y+320, 566, 30);
187 		o->box(FL_ENGRAVED_FRAME);
188 		txt_206_preparer = new Fl_Input2(71, Y+323, 210, 24, _("Preparer"));
189 		txt_206_preparer->tooltip(_(""));
190 		txt_206_preparer->box(FL_DOWN_BOX);
191 		txt_206_preparer->color((Fl_Color)FL_BACKGROUND2_COLOR);
192 		txt_206_preparer->selection_color((Fl_Color)FL_SELECTION_COLOR);
193 		txt_206_preparer->labeltype(FL_NORMAL_LABEL);
194 		txt_206_preparer->labelfont(0);
195 		txt_206_preparer->labelsize(14);
196 		txt_206_preparer->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
197 		txt_206_preparer->align(FL_ALIGN_LEFT);
198 		txt_206_preparer->callback(ics_changed);
199 		txt_206_preparer->when(FL_WHEN_CHANGED);
200 
201 		txt_206_reviewer = new Fl_Input2(350, Y+323, 210, 24, _("Reviewer"));
202 		txt_206_reviewer->tooltip(_(""));
203 		txt_206_reviewer->box(FL_DOWN_BOX);
204 		txt_206_reviewer->color((Fl_Color)FL_BACKGROUND2_COLOR);
205 		txt_206_reviewer->selection_color((Fl_Color)FL_SELECTION_COLOR);
206 		txt_206_reviewer->labeltype(FL_NORMAL_LABEL);
207 		txt_206_reviewer->labelfont(0);
208 		txt_206_reviewer->labelsize(14);
209 		txt_206_reviewer->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
210 		txt_206_reviewer->align(FL_ALIGN_LEFT);
211 		txt_206_reviewer->callback(ics_changed);
212 		txt_206_reviewer->when(FL_WHEN_CHANGED);
213 
214 		o->end();
215 		}
216 	tab_206_med_plan->end();
217 
218 	tab_206_transport = new Fl_Group(0, Y+25, 570, 360, _("Transport"));
219 	tab_206_transport->hide();
220 	{
221 	Fl_Group* o = new Fl_Group(2, Y+35, 566, 238, _("Ambulance Services"));
222 	o->box(FL_ENGRAVED_FRAME);
223 	o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
224 	for (int i = 0; i < 5; i++) {
225 		txt_206_transport_name[i] = new Fl_Input2(
226 			7, Y+80 + i*38, 125, 24, i == 0 ? _("Service Name"):"");
227 		txt_206_transport_name[i]->tooltip(_(""));
228 		txt_206_transport_name[i]->box(FL_DOWN_BOX);
229 		txt_206_transport_name[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
230 		txt_206_transport_name[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
231 		txt_206_transport_name[i]->labeltype(FL_NORMAL_LABEL);
232 		txt_206_transport_name[i]->labelfont(0);
233 		txt_206_transport_name[i]->labelsize(14);
234 		txt_206_transport_name[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
235 		txt_206_transport_name[i]->align(FL_ALIGN_TOP_LEFT);
236 		txt_206_transport_name[i]->callback(ics_changed);
237 		txt_206_transport_name[i]->when(FL_WHEN_CHANGED);
238 
239 		txt_206_transport_address[i] = new Fl_Input2(
240 			135, Y+80 + i*38, 280, 24, i == 0 ? _("Address"):"");
241 		txt_206_transport_address[i]->tooltip(_(""));
242 		txt_206_transport_address[i]->box(FL_DOWN_BOX);
243 		txt_206_transport_address[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
244 		txt_206_transport_address[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
245 		txt_206_transport_address[i]->labeltype(FL_NORMAL_LABEL);
246 		txt_206_transport_address[i]->labelfont(0);
247 		txt_206_transport_address[i]->labelsize(14);
248 		txt_206_transport_address[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
249 		txt_206_transport_address[i]->align(FL_ALIGN_TOP_LEFT);
250 		txt_206_transport_address[i]->callback(ics_changed);
251 		txt_206_transport_address[i]->when(FL_WHEN_CHANGED);
252 
253 		btn_206_transport_paramedics[i] = new Fl_Check_Button(
254 			540, Y+80 + i*38, 20, 22, i == 0 ? _("Paramedics"):"");
255 		btn_206_transport_paramedics[i]->down_box(FL_DOWN_BOX);
256 		btn_206_transport_paramedics[i]->align(FL_ALIGN_TOP_RIGHT);
257 
258 		txt_206_transport_phone[i] = new Fl_Input2(
259 			417, Y+80 + i*38, 121, 24, i == 0 ? _("Phone"):"");
260 		txt_206_transport_phone[i]->tooltip(_(""));
261 		txt_206_transport_phone[i]->box(FL_DOWN_BOX);
262 		txt_206_transport_phone[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
263 		txt_206_transport_phone[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
264 		txt_206_transport_phone[i]->labeltype(FL_NORMAL_LABEL);
265 		txt_206_transport_phone[i]->labelfont(0);
266 		txt_206_transport_phone[i]->labelsize(14);
267 		txt_206_transport_phone[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
268 		txt_206_transport_phone[i]->align(FL_ALIGN_TOP_LEFT);
269 		txt_206_transport_phone[i]->callback(ics_changed);
270 		txt_206_transport_phone[i]->when(FL_WHEN_CHANGED);
271 	}
272 	o->end();
273 	}
274 	tab_206_transport->end();
275 
276 	tab_206_ambulance = new Fl_Group(0, Y+25, 570, 360, _("Ambulance"));
277 	tab_206_ambulance->hide();
278 	{
279 	Fl_Group* o = new Fl_Group(2, Y+30, 565, 235, _("Incident Ambulances"));
280 	o->box(FL_ENGRAVED_FRAME);
281 	o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
282 	for (int i = 0; i < 5; i++) {
283 		txt_206_ambulance_name[i] = new Fl_Input2(
284 			8, Y+77 + i*38, 160, 24, i == 0 ? _("Name"):"");
285 		txt_206_ambulance_name[i]->tooltip(_(""));
286 		txt_206_ambulance_name[i]->box(FL_DOWN_BOX);
287 		txt_206_ambulance_name[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
288 		txt_206_ambulance_name[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
289 		txt_206_ambulance_name[i]->labeltype(FL_NORMAL_LABEL);
290 		txt_206_ambulance_name[i]->labelfont(0);
291 		txt_206_ambulance_name[i]->labelsize(14);
292 		txt_206_ambulance_name[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
293 		txt_206_ambulance_name[i]->align(FL_ALIGN_TOP_LEFT);
294 		txt_206_ambulance_name[i]->callback(ics_changed);
295 		txt_206_ambulance_name[i]->when(FL_WHEN_CHANGED);
296 
297 		txt_206_ambulance_loc[i] = new Fl_Input2(
298 			170, Y+77 + i*38, 370, 24, i == 0 ? _("Location"):"");
299 		txt_206_ambulance_loc[i]->tooltip(_(""));
300 		txt_206_ambulance_loc[i]->box(FL_DOWN_BOX);
301 		txt_206_ambulance_loc[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
302 		txt_206_ambulance_loc[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
303 		txt_206_ambulance_loc[i]->labeltype(FL_NORMAL_LABEL);
304 		txt_206_ambulance_loc[i]->labelfont(0);
305 		txt_206_ambulance_loc[i]->labelsize(14);
306 		txt_206_ambulance_loc[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
307 		txt_206_ambulance_loc[i]->align(FL_ALIGN_TOP_LEFT);
308 		txt_206_ambulance_loc[i]->callback(ics_changed);
309 		txt_206_ambulance_loc[i]->when(FL_WHEN_CHANGED);
310 
311 		btn_206_ambulance_paramedics[i] = new Fl_Check_Button(
312 			541, Y+77 + i*38, 20, 22, i == 0 ? _("Paramedics"):"");
313 		btn_206_ambulance_paramedics[i]->down_box(FL_DOWN_BOX);
314 		btn_206_ambulance_paramedics[i]->align(FL_ALIGN_TOP_RIGHT);
315 	}
316 	o->end();
317 	} // Fl_Group* o
318 	tab_206_ambulance->end();
319 
320 	tab_206_hospital = new Fl_Group(0, Y+25, 570, 360, _("Hospital"));
321 	tab_206_hospital->hide();
322 	{
323 	Fl_Group* o = new Fl_Group(2, Y+31, 566, 318, _("Hospitals"));
324 	o->box(FL_ENGRAVED_FRAME);
325 	o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
326 	for (int i = 0; i < 5; i++) {
327 		txt_206_hosp_name[i] = new Fl_Input2(9, Y+76 + i*54, 125, 24, i == 0 ? _("Name"):"");
328 		txt_206_hosp_name[i]->tooltip(_(""));
329 		txt_206_hosp_name[i]->box(FL_DOWN_BOX);
330 		txt_206_hosp_name[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
331 		txt_206_hosp_name[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
332 		txt_206_hosp_name[i]->labeltype(FL_NORMAL_LABEL);
333 		txt_206_hosp_name[i]->labelfont(0);
334 		txt_206_hosp_name[i]->labelsize(14);
335 		txt_206_hosp_name[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
336 		txt_206_hosp_name[i]->align(FL_ALIGN_TOP_LEFT);
337 		txt_206_hosp_name[i]->callback(ics_changed);
338 		txt_206_hosp_name[i]->when(FL_WHEN_CHANGED);
339 
340 		txt_206_hosp_address[i] = new Fl_Input2(137, Y+76 + i*54, 300, 24, i == 0 ? _("Address"):"");
341 		txt_206_hosp_address[i]->tooltip(_(""));
342 		txt_206_hosp_address[i]->box(FL_DOWN_BOX);
343 		txt_206_hosp_address[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
344 		txt_206_hosp_address[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
345 		txt_206_hosp_address[i]->labeltype(FL_NORMAL_LABEL);
346 		txt_206_hosp_address[i]->labelfont(0);
347 		txt_206_hosp_address[i]->labelsize(14);
348 		txt_206_hosp_address[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
349 		txt_206_hosp_address[i]->align(FL_ALIGN_TOP_LEFT);
350 		txt_206_hosp_address[i]->callback(ics_changed);
351 		txt_206_hosp_address[i]->when(FL_WHEN_CHANGED);
352 
353 		txt_206_hosp_phone[i] = new Fl_Input2(440, Y+76 + i*54, 121, 24, i == 0 ? _("Phone"):"");
354 		txt_206_hosp_phone[i]->tooltip(_(""));
355 		txt_206_hosp_phone[i]->box(FL_DOWN_BOX);
356 		txt_206_hosp_phone[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
357 		txt_206_hosp_phone[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
358 		txt_206_hosp_phone[i]->labeltype(FL_NORMAL_LABEL);
359 		txt_206_hosp_phone[i]->labelfont(0);
360 		txt_206_hosp_phone[i]->labelsize(14);
361 		txt_206_hosp_phone[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
362 		txt_206_hosp_phone[i]->align(FL_ALIGN_TOP_LEFT);
363 		txt_206_hosp_phone[i]->callback(ics_changed);
364 		txt_206_hosp_phone[i]->when(FL_WHEN_CHANGED);
365 
366 		txt_206_hosp_airtime[i] = new Fl_Input2(136, Y+104 + i*54, 80, 24, _("Travel Time Air:"));		txt_206_hosp_airtime[i]->tooltip(_(""));
367 		txt_206_hosp_airtime[i]->box(FL_DOWN_BOX);
368 		txt_206_hosp_airtime[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
369 		txt_206_hosp_airtime[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
370 		txt_206_hosp_airtime[i]->labeltype(FL_NORMAL_LABEL);
371 		txt_206_hosp_airtime[i]->labelfont(0);
372 		txt_206_hosp_airtime[i]->labelsize(14);
373 		txt_206_hosp_airtime[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
374 		txt_206_hosp_airtime[i]->align(FL_ALIGN_LEFT);
375 		txt_206_hosp_airtime[i]->callback(ics_changed);
376 		txt_206_hosp_airtime[i]->when(FL_WHEN_CHANGED);
377 
378 		txt_206_hosp_gndtime[i] = new Fl_Input2(253, Y+104 + i*54, 80, 24, _("Gnd"));
379 		txt_206_hosp_gndtime[i]->tooltip(_(""));
380 		txt_206_hosp_gndtime[i]->box(FL_DOWN_BOX);
381 		txt_206_hosp_gndtime[i]->color((Fl_Color)FL_BACKGROUND2_COLOR);
382 		txt_206_hosp_gndtime[i]->selection_color((Fl_Color)FL_SELECTION_COLOR);
383 		txt_206_hosp_gndtime[i]->labeltype(FL_NORMAL_LABEL);
384 		txt_206_hosp_gndtime[i]->labelfont(0);
385 		txt_206_hosp_gndtime[i]->labelsize(14);
386 		txt_206_hosp_gndtime[i]->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
387 		txt_206_hosp_gndtime[i]->align(FL_ALIGN_LEFT);
388 		txt_206_hosp_gndtime[i]->callback(ics_changed);
389 		txt_206_hosp_gndtime[i]->when(FL_WHEN_CHANGED);
390 
391 		btn_206_hosp_helipad[i] = new Fl_Check_Button(342, Y+108 + i*54, 82, 15, _("Helipad"));
392 		btn_206_hosp_helipad[i]->down_box(FL_DOWN_BOX);
393 
394 		btn_206_hosp_burn_center[i] = new Fl_Check_Button(440, Y+108 + i*54, 107, 15, _("Burn center"));
395 		btn_206_hosp_burn_center[i]->down_box(FL_DOWN_BOX);
396 	}
397 	o->end();
398 	} // Fl_Group* o
399 
400 	tab_206_hospital->end();
401 
402 	tab_206_med_proc = new Fl_Group(0, Y+25, 570, 360, _("Med\' Proc\'"));
403 	tab_206_med_proc->hide();
404 	txt_206_procedure = new FTextEdit(4, Y+35, 562, 345);
405 	txt_206_procedure->box(FL_DOWN_FRAME);
406 	txt_206_procedure->color((Fl_Color)FL_BACKGROUND2_COLOR);
407 	txt_206_procedure->selection_color((Fl_Color)FL_SELECTION_COLOR);
408 	txt_206_procedure->labeltype(FL_NORMAL_LABEL);
409 	txt_206_procedure->labelfont(0);
410 	txt_206_procedure->labelsize(14);
411 	txt_206_procedure->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
412 	txt_206_procedure->align(FL_ALIGN_CENTER);
413 	txt_206_procedure->callback(ics_changed);
414 	txt_206_procedure->when(FL_WHEN_CHANGED);
415 
416 	Fl_Group::current()->resizable(txt_206_procedure);
417 	tab_206_med_proc->end();
418 	tab_ics206_type->end();
419 	Fl_Group::current()->resizable(tab_ics206_type);
420 	tab_ics206->end();
421 
422 	tab_ics206->hide();
423 }
424