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 #include "fileselect.h"
28 
29 Fl_Group	*tab_mars_daily = (Fl_Group *)0;
30 
31 Fl_Tabs		*tab_mars_daily_type = (Fl_Tabs *)0;
32 
33 //----------------------------------------------------------------------
34 
35 Fl_Group	*tab_mars_daily_1 = (Fl_Group *)0;
36 
37 Fl_Input2	*txt_mars_daily_incident = (Fl_Input2 *)0;
38 Fl_Input2	*txt_mars_daily_de = (Fl_Input2 *)0;
39 Fl_Input2	*txt_mars_daily_nbr = (Fl_Input2 *)0;
40 Fl_Input2	*txt_mars_daily_dtg = (Fl_Input2 *)0;
41 Fl_Input2	*txt_mars_daily_fm_name = (Fl_Input2 *)0;
42 Fl_Input2	*txt_mars_daily_fm_call = (Fl_Input2 *)0;
43 Fl_Input2	*txt_mars_daily_fm_state = (Fl_Input2 *)0;
44 Fl_Input2	*txt_mars_daily_to_pos = (Fl_Input2 *)0;
45 Fl_Input2	*txt_mars_daily_to_call = (Fl_Input2 *)0;
46 Fl_Input2	*txt_mars_daily_to_state = (Fl_Input2 *)0;
47 Fl_Input2	*txt_mars_daily_pos1 = (Fl_Input2 *)0;
48 Fl_Input2	*txt_mars_daily_call1 = (Fl_Input2 *)0;
49 Fl_Input2	*txt_mars_daily_state1 = (Fl_Input2 *)0;
50 Fl_Input2	*txt_mars_daily_pos2 = (Fl_Input2 *)0;
51 Fl_Input2	*txt_mars_daily_call2 = (Fl_Input2 *)0;
52 Fl_Input2	*txt_mars_daily_state2 = (Fl_Input2 *)0;
53 Fl_Input2	*txt_mars_daily_pos3 = (Fl_Input2 *)0;
54 Fl_Input2	*txt_mars_daily_call3 = (Fl_Input2 *)0;
55 Fl_Input2	*txt_mars_daily_state3 = (Fl_Input2 *)0;
56 
57 Fl_Button	*btn_mars_daily_de_me = (Fl_Button *)0;
58 Fl_Button	*btn_mars_daily_dtg = (Fl_Button *)0;
59 Fl_Button	*btn_mars_daily_pick_fm = (Fl_Button *)0;
60 Fl_Button	*btn_mars_daily_pick_to = (Fl_Button *)0;
61 Fl_Button	*btn_mars_daily_pick_info1 = (Fl_Button *)0;
62 Fl_Button	*btn_mars_daily_pick_info2 = (Fl_Button *)0;
63 Fl_Button	*btn_mars_daily_pick_info3 = (Fl_Button *)0;
64 
65 Fl_ListBox	*sel_mars_daily_prec = (Fl_ListBox *)0;
66 
67 //----------------------------------------------------------------------
68 
69 Fl_Group	*tab_mars_daily_2 = (Fl_Group *)0;
70 
71 Fl_Input2	*txt_mars_daily_sitrep_id = (Fl_Input2 *)0;
72 Fl_Input2	*txt_mars_daily_sitrep_loc = (Fl_Input2 *)0;
73 Fl_Input2	*txt_mars_daily_dtg_24hr = (Fl_Input2 *)0;
74 Fl_Input2	*txt_mars_daily_netcall = (Fl_Input2 *)0;
75 Fl_Input2	*txt_mars_daily_dtg_active = (Fl_Input2 *)0;
76 Fl_Input2	*txt_mars_daily_dtg_deactive = (Fl_Input2 *)0;
77 Fl_Input2	*txt_mars_daily_nbr_stations = (Fl_Input2 *)0;
78 Fl_Input2	*txt_mars_daily_details = (Fl_Input2 *)0;
79 Fl_Input2	*txt_mars_daily_activations = (Fl_Input2 *)0;
80 Fl_Input2	*txt_mars_daily_agencies = (Fl_Input2 *)0;
81 Fl_Input2	*txt_mars_daily_remarks = (Fl_Input2 *)0;
82 
83 Fl_Button	*btn_mars_daily_dtg_24hr = (Fl_Button *)0;
84 Fl_Button	*btn_mars_daily_pick_netcall = (Fl_Button *)0;
85 Fl_Button	*btn_mars_daily_dtg_active = (Fl_Button *)0;
86 Fl_Button	*btn_mars_daily_dtg_deactive = (Fl_Button *)0;
87 
88 Fl_ListBox	*sel_mars_daily_e_x = (Fl_ListBox *)0;
89 
90 //----------------------------------------------------------------------
91 
92 // widget callbacks & support
cb_btn_mars_daily_de_me(Fl_Widget * w,void * d)93 void cb_btn_mars_daily_de_me(Fl_Widget *w, void *d)
94 {
95 	txt_mars_daily_de->value(progStatus.my_call.c_str());
96 }
97 
cb_btn_mars_daily_pick_fm(Fl_Widget * w,void * d)98 void cb_btn_mars_daily_pick_fm(Fl_Widget *w, void *d)
99 {
100 	if (!get_mars_list_text()) return;
101 	txt_mars_daily_fm_call->value(mars_list_call.c_str());
102 	txt_mars_daily_fm_name->value(mars_list_lname.c_str());
103 	txt_mars_daily_fm_state->value(mars_list_state.c_str());
104 }
105 
cb_btn_mars_daily_pick_to(Fl_Widget * w,void * d)106 void cb_btn_mars_daily_pick_to(Fl_Widget *w, void *d)
107 {
108 	if (!get_mars_list_text()) return;
109 	txt_mars_daily_to_call->value(mars_list_bcall.c_str());
110 	txt_mars_daily_to_pos->value(mars_list_position.c_str());
111 	txt_mars_daily_to_state->value(mars_list_state.c_str());
112 }
113 
cb_btn_mars_daily_pick_info1(Fl_Widget * w,void * d)114 void cb_btn_mars_daily_pick_info1(Fl_Widget *w, void *d)
115 {
116 	if (!get_mars_list_text()) return;
117 	txt_mars_daily_call1->value(mars_list_bcall.c_str());
118 	txt_mars_daily_pos1->value(mars_list_position.c_str());
119 	txt_mars_daily_state1->value(mars_list_state.c_str());
120 }
121 
cb_btn_mars_daily_pick_info2(Fl_Widget * w,void * d)122 void cb_btn_mars_daily_pick_info2(Fl_Widget *w, void *d)
123 {
124 	if (!get_mars_list_text()) return;
125 	txt_mars_daily_call2->value(mars_list_bcall.c_str());
126 	txt_mars_daily_pos2->value(mars_list_position.c_str());
127 	txt_mars_daily_state2->value(mars_list_state.c_str());
128 }
129 
cb_btn_mars_daily_pick_info3(Fl_Widget * w,void * d)130 void cb_btn_mars_daily_pick_info3(Fl_Widget *w, void *d)
131 {
132 	if (!get_mars_list_text()) return;
133 	txt_mars_daily_call3->value(mars_list_bcall.c_str());
134 	txt_mars_daily_pos3->value(mars_list_position.c_str());
135 	txt_mars_daily_state3->value(mars_list_state.c_str());
136 }
137 
cb_btn_mars_daily_dtg(Fl_Widget * w,void * d)138 void cb_btn_mars_daily_dtg(Fl_Widget *w, void *d)
139 {
140 	txt_mars_daily_dtg->value(szMarsDateTime());
141 }
142 
cb_btn_mars_daily_dtg_24hr(Fl_Widget * w,void * d)143 void cb_btn_mars_daily_dtg_24hr(Fl_Widget *w, void *d)
144 {
145 	txt_mars_daily_dtg_24hr->value(szMarsDateTime());
146 }
147 
cb_btn_mars_daily_dtg_active(Fl_Widget * w,void * d)148 void cb_btn_mars_daily_dtg_active(Fl_Widget *w, void *d)
149 {
150 	txt_mars_daily_dtg_active->value(szMarsDateTime());
151 }
152 
cb_btn_mars_daily_dtg_deactive(Fl_Widget * w,void * d)153 void cb_btn_mars_daily_dtg_deactive(Fl_Widget *w, void *d)
154 {
155 	txt_mars_daily_dtg_deactive->value(szMarsDateTime());
156 }
157 
cb_btn_mars_daily_pick_netcall(Fl_Widget * w,void * d)158 void cb_btn_mars_daily_pick_netcall(Fl_Widget *w, void *d)
159 {
160 	if (!get_mars_list_text()) return;
161 	txt_mars_daily_netcall->value(mars_list_bcall.c_str());
162 }
163 
create_mars_daily()164 void create_mars_daily()
165 {
166 	int Y = tab_top;
167 	tab_mars_daily = new Fl_Group(0, Y, 570, 390);
168 	tab_mars_daily->align(FL_ALIGN_TOP);
169 
170 	tab_mars_daily_type = new Fl_Tabs(0, Y+2, 570, 387);
171 	tab_mars_daily_type->selection_color((Fl_Color)246);
172 
173 	tab_mars_daily_1 = new Fl_Group(0, Y+25, 570, 360, _("Header"));
174 
175 	Y += 30;
176 
177 	txt_mars_daily_incident = new Fl_Input2(100, Y, 450, 24, _("INCIDENT"));
178 	txt_mars_daily_incident->tooltip(_("Incident"));
179 	txt_mars_daily_incident->callback((Fl_Callback*)cb_mars_fl_input2);
180 	txt_mars_daily_incident->when(FL_WHEN_CHANGED);
181 
182 	Y += 25;
183 	txt_mars_daily_de = new Fl_Input2(100, Y, 150, 24, _("DE"));
184 	txt_mars_daily_de->tooltip(_(""));
185 	txt_mars_daily_de->callback((Fl_Callback*)cb_mars_fl_input2);
186 	txt_mars_daily_de->when(FL_WHEN_CHANGED);
187 
188 	btn_mars_daily_de_me = new Fl_Button(252, Y, 30, 24, _("ME"));
189 	btn_mars_daily_de_me->callback((Fl_Callback*)cb_btn_mars_daily_de_me);
190 
191 	txt_mars_daily_nbr = new Fl_Input2(370, Y, 150, 24, _("MSG NBR"));
192 	txt_mars_daily_nbr->tooltip(_(""));
193 	txt_mars_daily_nbr->callback((Fl_Callback*)cb_mars_fl_input2);
194 	txt_mars_daily_nbr->when(FL_WHEN_CHANGED);
195 
196 	Y += 25;
197 	sel_mars_daily_prec = new Fl_ListBox(100, Y, 45, 24, _("PREC"));
198 	sel_mars_daily_prec->tooltip(
199 		_("R - Routine\nP - Priority\nO - Immediate\nZ - Flash"));
200 	sel_mars_daily_prec->add("R|P|O|Z");
201 	sel_mars_daily_prec->align(FL_ALIGN_LEFT);
202 	sel_mars_daily_prec->index(0);
203 
204 	txt_mars_daily_dtg = new Fl_Input2(185, Y, 150, 24, _("DTG"));
205 	txt_mars_daily_dtg->tooltip(_(""));
206 
207 	btn_mars_daily_dtg = new Fl_Button(335, Y, 22, 24, _("..."));
208 	btn_mars_daily_dtg->tooltip(_("Set Date/Time Group"));
209 	btn_mars_daily_dtg->callback((Fl_Callback*)cb_btn_mars_daily_dtg);
210 
211 	Y += 25;
212 	txt_mars_daily_fm_name = new Fl_Input2(100, Y, 150, 24, _("FM"));
213 	txt_mars_daily_fm_name->tooltip(_("Name"));
214 	txt_mars_daily_fm_name->callback((Fl_Callback*)cb_mars_fl_input2);
215 	txt_mars_daily_fm_name->when(FL_WHEN_CHANGED);
216 
217 	txt_mars_daily_fm_call = new Fl_Input2(252, Y, 150, 24, _(""));
218 	txt_mars_daily_fm_call->tooltip(_("Call"));
219 	txt_mars_daily_fm_call->callback((Fl_Callback*)cb_mars_fl_input2);
220 	txt_mars_daily_fm_call->when(FL_WHEN_CHANGED);
221 
222 	txt_mars_daily_fm_state = new Fl_Input2(404, Y, 30, 24, _(""));
223 	txt_mars_daily_fm_state->tooltip(_("State"));
224 	txt_mars_daily_fm_state->callback((Fl_Callback*)cb_mars_fl_input2);
225 	txt_mars_daily_fm_state->when(FL_WHEN_CHANGED);
226 
227 	btn_mars_daily_pick_fm = new Fl_Button(436, Y, 30, 24, _("List"));
228 	btn_mars_daily_pick_fm->tooltip(_("Select from list"));
229 	btn_mars_daily_pick_fm->callback((Fl_Callback*)cb_btn_mars_daily_pick_fm);
230 
231 	Y += 25;
232 	txt_mars_daily_to_pos = new Fl_Input2(100, Y, 150, 24, _("TO"));
233 	txt_mars_daily_to_pos->tooltip(_("Position"));
234 	txt_mars_daily_to_pos->callback((Fl_Callback*)cb_mars_fl_input2);
235 	txt_mars_daily_to_pos->when(FL_WHEN_CHANGED);
236 
237 	txt_mars_daily_to_call = new Fl_Input2(252, Y, 150, 24, _(""));
238 	txt_mars_daily_to_call->tooltip(_("Call"));
239 	txt_mars_daily_to_call->callback((Fl_Callback*)cb_mars_fl_input2);
240 	txt_mars_daily_to_call->when(FL_WHEN_CHANGED);
241 
242 	txt_mars_daily_to_state = new Fl_Input2(404, Y, 30, 24, _(""));
243 	txt_mars_daily_to_state->tooltip(_("State"));
244 	txt_mars_daily_to_state->callback((Fl_Callback*)cb_mars_fl_input2);
245 	txt_mars_daily_to_state->when(FL_WHEN_CHANGED);
246 
247 	btn_mars_daily_pick_to = new Fl_Button(436, Y, 30, 24, _("List"));
248 	btn_mars_daily_pick_to->tooltip(_("Select from list"));
249 	btn_mars_daily_pick_to->callback((Fl_Callback*)cb_btn_mars_daily_pick_to);
250 
251 	Y += 25;
252 	txt_mars_daily_pos1 = new Fl_Input2(100, Y, 150, 24, _("INFO1"));
253 	txt_mars_daily_pos1->tooltip(_("Position"));
254 	txt_mars_daily_pos1->callback((Fl_Callback*)cb_mars_fl_input2);
255 	txt_mars_daily_pos1->when(FL_WHEN_CHANGED);
256 
257 	txt_mars_daily_call1 = new Fl_Input2(252, Y, 150, 24, _(""));
258 	txt_mars_daily_call1->tooltip(_("Call"));
259 	txt_mars_daily_call1->callback((Fl_Callback*)cb_mars_fl_input2);
260 	txt_mars_daily_call1->when(FL_WHEN_CHANGED);
261 
262 	txt_mars_daily_state1 = new Fl_Input2(404, Y, 30, 24, _(""));
263 	txt_mars_daily_state1->tooltip(_("State"));
264 	txt_mars_daily_state1->callback((Fl_Callback*)cb_mars_fl_input2);
265 	txt_mars_daily_state1->when(FL_WHEN_CHANGED);
266 
267 	btn_mars_daily_pick_info1 = new Fl_Button(436, Y, 30, 24, _("List"));
268 	btn_mars_daily_pick_info1->tooltip(_("Select from list"));
269 	btn_mars_daily_pick_info1->callback((Fl_Callback*)cb_btn_mars_daily_pick_info1);
270 
271 	Y += 25;
272 	txt_mars_daily_pos2 = new Fl_Input2(100, Y, 150, 24, _("INFO2"));
273 	txt_mars_daily_pos2->tooltip(_("Position"));
274 	txt_mars_daily_pos2->callback((Fl_Callback*)cb_mars_fl_input2);
275 	txt_mars_daily_pos2->when(FL_WHEN_CHANGED);
276 
277 	txt_mars_daily_call2 = new Fl_Input2(252, Y, 150, 24, _(""));
278 	txt_mars_daily_call2->tooltip(_("Call"));
279 	txt_mars_daily_call2->callback((Fl_Callback*)cb_mars_fl_input2);
280 	txt_mars_daily_call2->when(FL_WHEN_CHANGED);
281 
282 	txt_mars_daily_state2 = new Fl_Input2(404, Y, 30, 24, _(""));
283 	txt_mars_daily_state2->tooltip(_("State"));
284 	txt_mars_daily_state2->callback((Fl_Callback*)cb_mars_fl_input2);
285 	txt_mars_daily_state2->when(FL_WHEN_CHANGED);
286 
287 	btn_mars_daily_pick_info2 = new Fl_Button(436, Y, 30, 24, _("List"));
288 	btn_mars_daily_pick_info2->tooltip(_("Select from list"));
289 	btn_mars_daily_pick_info2->callback((Fl_Callback*)cb_btn_mars_daily_pick_info2);
290 
291 	Y += 25;
292 	txt_mars_daily_pos3 = new Fl_Input2(100, Y, 150, 24, _("INFO3"));
293 	txt_mars_daily_pos3->tooltip(_("Position"));
294 	txt_mars_daily_pos3->callback((Fl_Callback*)cb_mars_fl_input2);
295 	txt_mars_daily_pos3->when(FL_WHEN_CHANGED);
296 
297 	txt_mars_daily_call3 = new Fl_Input2(252, Y, 150, 24, _(""));
298 	txt_mars_daily_call3->tooltip(_("Call"));
299 	txt_mars_daily_call3->callback((Fl_Callback*)cb_mars_fl_input2);
300 	txt_mars_daily_call3->when(FL_WHEN_CHANGED);
301 
302 	txt_mars_daily_state3 = new Fl_Input2(404, Y, 30, 24, _(""));
303 	txt_mars_daily_state3->tooltip(_("State"));
304 	txt_mars_daily_state3->callback((Fl_Callback*)cb_mars_fl_input2);
305 	txt_mars_daily_state3->when(FL_WHEN_CHANGED);
306 
307 	btn_mars_daily_pick_info3 = new Fl_Button(436, Y, 30, 24, _("List"));
308 	btn_mars_daily_pick_info3->tooltip(_("Select from list"));
309 	btn_mars_daily_pick_info3->callback((Fl_Callback*)cb_btn_mars_daily_pick_info3);
310 
311 	Y += 25;
312 	txt_mars_daily_sitrep_id = new Fl_Input2(100, Y, 150, 24, _("SUBJECT"));
313 	txt_mars_daily_sitrep_id->tooltip(_("Sitrep Id"));
314 	txt_mars_daily_sitrep_id->callback((Fl_Callback*)cb_mars_fl_input2);
315 	txt_mars_daily_sitrep_id->when(FL_WHEN_CHANGED);
316 
317 	txt_mars_daily_sitrep_loc = new Fl_Input2(252, Y, 150, 24, _(""));
318 	txt_mars_daily_sitrep_loc->tooltip(_("Sitrep location"));
319 	txt_mars_daily_sitrep_loc->callback((Fl_Callback*)cb_mars_fl_input2);
320 	txt_mars_daily_sitrep_loc->when(FL_WHEN_CHANGED);
321 
322 	Y += 25;
323 	tab_mars_daily_1->end();
324 
325 	Y = tab_top;
326 	tab_mars_daily_2 = new Fl_Group(0, Y+25, 570, 360, _("Body"));
327 
328 	Y += 30;
329 	txt_mars_daily_dtg_24hr = new Fl_Input2(30, Y, 150, 24, _("1."));
330 	txt_mars_daily_dtg_24hr->tooltip(_("DTG 24 HR PERIOD"));
331 	btn_mars_daily_dtg_24hr = new Fl_Button(182, Y, 22, 24, _("..."));
332 	btn_mars_daily_dtg_24hr->tooltip(_("Set Date/Time Group"));
333 	btn_mars_daily_dtg_24hr->callback((Fl_Callback*)cb_btn_mars_daily_dtg_24hr);
334 
335 	Y += 25;
336 	txt_mars_daily_netcall = new Fl_Input2(30, Y, 150, 24, _("2."));
337 	txt_mars_daily_netcall->tooltip(_("Net call"));
338 	txt_mars_daily_netcall->callback((Fl_Callback*)cb_mars_fl_input2);
339 	txt_mars_daily_netcall->when(FL_WHEN_CHANGED);
340 
341 	btn_mars_daily_pick_netcall = new Fl_Button(182, Y, 30, 24, _("List"));
342 	btn_mars_daily_pick_netcall->tooltip(_("Select from list"));
343 	btn_mars_daily_pick_netcall->callback((Fl_Callback*)cb_btn_mars_daily_pick_netcall);
344 
345 	sel_mars_daily_e_x = new Fl_ListBox(214, Y, 40, 24, _("E/X"));
346 	sel_mars_daily_e_x->tooltip(
347 		_("E - Emergency\nX - eXercise"));
348 	sel_mars_daily_e_x->add("E|X");
349 	sel_mars_daily_e_x->index(1);
350 	sel_mars_daily_e_x->align(FL_ALIGN_RIGHT);
351 
352 	Y += 25;
353 	txt_mars_daily_dtg_active = new Fl_Input2(30, Y, 150, 24, _("3."));
354 	txt_mars_daily_dtg_active->tooltip(_("DTG activation"));
355 	btn_mars_daily_dtg_active = new Fl_Button(182, Y, 22, 24, _("..."));
356 	btn_mars_daily_dtg_active->tooltip(_("Set Date/Time Group"));
357 	btn_mars_daily_dtg_active->callback((Fl_Callback*)cb_btn_mars_daily_dtg_active);
358 
359 	txt_mars_daily_dtg_deactive = new Fl_Input2(210, Y, 150, 24, _(""));
360 	txt_mars_daily_dtg_deactive->tooltip(_("DTG deactivation"));
361 	btn_mars_daily_dtg_deactive = new Fl_Button(362, Y, 22, 24, _("..."));
362 	btn_mars_daily_dtg_deactive->tooltip(_("Set Date/Time Group"));
363 	btn_mars_daily_dtg_deactive->callback((Fl_Callback*)cb_btn_mars_daily_dtg_deactive);
364 
365 	txt_mars_daily_nbr_stations = new Fl_Input2(390, Y, 120, 24, _(""));
366 	txt_mars_daily_nbr_stations->tooltip(_("# stations"));
367 
368 	Y += 25;
369 	Fl_Box *label = new Fl_Box(0, Y, 30, 24, "A.");
370 	label->align(FL_ALIGN_RIGHT | FL_ALIGN_INSIDE);
371 
372 	txt_mars_daily_details = new Fl_Input2(30, Y, 530, 58, "");
373 	txt_mars_daily_details->tooltip(_("DETAILS"));
374 	txt_mars_daily_details->type(4);
375 	txt_mars_daily_details->color((Fl_Color)FL_BACKGROUND2_COLOR);
376 	txt_mars_daily_details->selection_color((Fl_Color)FL_SELECTION_COLOR);
377 	txt_mars_daily_details->labeltype(FL_NORMAL_LABEL);
378 	txt_mars_daily_details->labelfont(0);
379 	txt_mars_daily_details->labelsize(14);
380 	txt_mars_daily_details->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
381 	txt_mars_daily_details->callback((Fl_Callback*)cb_mars_fl_input2);
382 	txt_mars_daily_details->when(FL_WHEN_CHANGED);
383 
384 	Y += 60;
385 	label = new Fl_Box(0, Y, 30, 24, "B.");
386 	label->align(FL_ALIGN_RIGHT | FL_ALIGN_INSIDE);
387 
388 	txt_mars_daily_activations = new Fl_Input2(30, Y, 530, 58, "");
389 	txt_mars_daily_activations->tooltip(_("Activitations"));
390 	txt_mars_daily_activations->type(4);
391 	txt_mars_daily_activations->color((Fl_Color)FL_BACKGROUND2_COLOR);
392 	txt_mars_daily_activations->selection_color((Fl_Color)FL_SELECTION_COLOR);
393 	txt_mars_daily_activations->labeltype(FL_NORMAL_LABEL);
394 	txt_mars_daily_activations->labelfont(0);
395 	txt_mars_daily_activations->labelsize(14);
396 	txt_mars_daily_activations->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
397 	txt_mars_daily_activations->callback((Fl_Callback*)cb_mars_fl_input2);
398 	txt_mars_daily_activations->when(FL_WHEN_CHANGED);
399 
400 	Y += 60;
401 	label = new Fl_Box(0, Y, 30, 24, "4.");
402 	label->align(FL_ALIGN_RIGHT | FL_ALIGN_INSIDE);
403 
404 	txt_mars_daily_agencies = new Fl_Input2(30, Y, 530, 58, "");
405 	txt_mars_daily_agencies->tooltip(_("AGENCIES"));
406 	txt_mars_daily_agencies->color((Fl_Color)FL_BACKGROUND2_COLOR);
407 	txt_mars_daily_agencies->type(4);
408 	txt_mars_daily_agencies->selection_color((Fl_Color)FL_SELECTION_COLOR);
409 	txt_mars_daily_agencies->labeltype(FL_NORMAL_LABEL);
410 	txt_mars_daily_agencies->labelfont(0);
411 	txt_mars_daily_agencies->labelsize(14);
412 	txt_mars_daily_agencies->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
413 	txt_mars_daily_agencies->callback((Fl_Callback*)cb_mars_fl_input2);
414 	txt_mars_daily_agencies->when(FL_WHEN_CHANGED);
415 
416 	Y += 60;
417 	label = new Fl_Box(0, Y, 30, 24, "5.");
418 	label->align(FL_ALIGN_RIGHT | FL_ALIGN_INSIDE);
419 
420 	txt_mars_daily_remarks = new Fl_Input2(30, Y, 530, 58, "");
421 	txt_mars_daily_remarks->tooltip(_("REMARKS"));
422 	txt_mars_daily_remarks->type(4);
423 	txt_mars_daily_remarks->color((Fl_Color)FL_BACKGROUND2_COLOR);
424 	txt_mars_daily_remarks->selection_color((Fl_Color)FL_SELECTION_COLOR);
425 	txt_mars_daily_remarks->labeltype(FL_NORMAL_LABEL);
426 	txt_mars_daily_remarks->labelfont(0);
427 	txt_mars_daily_remarks->labelsize(14);
428 	txt_mars_daily_remarks->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
429 	txt_mars_daily_remarks->callback((Fl_Callback*)cb_mars_fl_input2);
430 	txt_mars_daily_remarks->when(FL_WHEN_CHANGED);
431 
432 	tab_mars_daily_2->end();
433 
434 	tab_mars_daily_type->end();
435 
436 	tab_mars_daily->end();
437 
438 	tab_mars_daily->hide();
439 };
440 
441