| 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 |
#ifndef FLMSG_H |
| 22 |
#define FLMSG_H |
| 23 |
|
| 24 |
#include <string> |
| 25 |
#include <FL/Fl.H> |
| 26 |
#include <FL/Enumerations.H> |
| 27 |
#include <FL/Fl_Window.H> |
| 28 |
#include <FL/Fl_Double_Window.H> |
| 29 |
|
| 30 |
#include "arl_msgs.h" |
| 31 |
#include "hx_msgs.h" |
| 32 |
#include "crc16.h" |
| 33 |
#include "threads.h" |
| 34 |
|
| 35 |
#define DEBUG 0 |
| 36 |
|
| 37 |
enum MSGTYPE { NONE, |
| 38 |
ICS203, ICS205, ICS205A, ICS206, ICS213, ICS214, ICS216, ICS309, NETLOG, |
| 39 |
HICS203, HICS206, HICS213, HICS214, IARU, |
| 40 |
RADIOGRAM, PLAINTEXT, BLANK, CSV, CUSTOM, |
| 41 |
MARSDAILY, MARSINEEI, MARSNET, MARSARMY, MARSMSG, |
| 42 |
WXHC, SEVEREWX, STORMREP, CAP105, CAP110, F126, TRANSFER, CUSTOM_TRANSFER }; |
| 43 |
|
| 44 |
struct FIELD { std::string f_type; std::string f_data; void **w; char w_type; }; |
| 45 |
extern FIELD fields[]; |
| 46 |
extern FIELD ptfields[]; |
| 47 |
extern FIELD rgfields[]; |
| 48 |
|
| 49 |
extern int selected_form; |
| 50 |
|
| 51 |
extern void checkdirectories(void); |
| 52 |
extern int parse_args(int argc, char **argv, int& idx); |
| 53 |
extern void showoptions(); |
| 54 |
|
| 55 |
extern Fl_Double_Window *mainwindow; |
| 56 |
extern Fl_Double_Window *expert_dialog; |
| 57 |
extern Fl_Double_Window *tyro_dialog; |
| 58 |
|
| 59 |
extern Fl_Double_Window *optionswindow; |
| 60 |
extern Fl_Double_Window *arlwindow; |
| 61 |
extern Fl_Double_Window *config_files_window; |
| 62 |
extern Fl_Double_Window *hxwindow; |
| 63 |
extern Fl_Double_Window *header_window; |
| 64 |
extern Fl_Double_Window *time_estimate_window; |
| 65 |
extern Fl_Double_Window *socket_window; |
| 66 |
extern std::string flmsgHomeDir; |
| 67 |
extern std::string IcsHomeDir; |
| 68 |
|
| 69 |
extern bool printme; |
| 70 |
extern bool update_custom; |
| 71 |
//extern bool flmsg_editor; |
| 72 |
|
| 73 |
extern int arl_nbr; |
| 74 |
|
| 75 |
extern std::string FLMSG_dir; |
| 76 |
extern std::string ARQ_dir; |
| 77 |
extern std::string ARQ_files_dir; |
| 78 |
extern std::string ARQ_recv_dir; |
| 79 |
extern std::string ARQ_send_dir; |
| 80 |
extern std::string WRAP_dir; |
| 81 |
extern std::string WRAP_recv_dir; |
| 82 |
extern std::string WRAP_send_dir; |
| 83 |
extern std::string WRAP_auto_dir; |
| 84 |
extern std::string ICS_dir; |
| 85 |
extern std::string ICS_msg_dir; |
| 86 |
extern std::string ICS_tmp_dir; |
| 87 |
extern std::string CSV_dir; |
| 88 |
extern std::string CUSTOM_dir; |
| 89 |
extern std::string FLMSG_custom_dir; |
| 90 |
extern std::string XFR_dir; |
| 91 |
extern std::string FLMSG_temp_dir; |
| 92 |
extern std::string FLMSG_log_dir; |
| 93 |
|
| 94 |
extern std::string title; |
| 95 |
extern std::string buffer; |
| 96 |
|
| 97 |
extern std::string evalstr; |
| 98 |
|
| 99 |
extern char *named_file(); |
| 100 |
|
| 101 |
extern pthread_t *xmlrpc_thread; |
| 102 |
extern pthread_mutex_t mutex_xmlrpc; |
| 103 |
|
| 104 |
//menu callbacks |
| 105 |
extern void cb_new(); |
| 106 |
extern void cb_open(); |
| 107 |
extern void cb_save(); |
| 108 |
extern void cb_save_as(); |
| 109 |
extern void cb_text(); |
| 110 |
extern void cb_import(); |
| 111 |
extern void cb_export(); |
| 112 |
extern void cb_wrap_import(); |
| 113 |
extern void wrap_import(const char *fname); |
| 114 |
extern void cb_wrap_export(); |
| 115 |
extern void cb_wrap_autosend(); |
| 116 |
extern void cb_exit(); |
| 117 |
extern void cb_load_template(); |
| 118 |
extern void cb_save_template(); |
| 119 |
extern void cb_save_as_template(); |
| 120 |
extern void cb_config_files(); |
| 121 |
extern void cb_config_date_time(); |
| 122 |
extern void cb_config_personal(); |
| 123 |
extern void cb_config_radiogram(); |
| 124 |
extern void cb_config_socket(); |
| 125 |
extern void cb_config_arq(); |
| 126 |
extern void cb_config_UI(); |
| 127 |
extern void showoptions(); |
| 128 |
extern void show_help(); |
| 129 |
extern void custom_download(); |
| 130 |
extern void cb_About(); |
| 131 |
extern void cb_html(); |
| 132 |
extern void cb_html_fcopy(); |
| 133 |
extern void cb_folders(); |
| 134 |
|
| 135 |
extern void open_url(const char* url, int folder = 0); |
| 136 |
|
| 137 |
extern void cb_arl(); |
| 138 |
extern void cb_arl_cancel(); |
| 139 |
extern void cb_arl_add(); |
| 140 |
|
| 141 |
extern void cb_hx(); |
| 142 |
extern void cb_hx_select(); |
| 143 |
extern void cb_hx_select_add(); |
| 144 |
extern void cb_hx_select_cancel(); |
| 145 |
extern void cb_hx_select_ok(); |
| 146 |
|
| 147 |
extern void closeoptions(); |
| 148 |
|
| 149 |
extern void remove_spaces_from_filename(std::string &fname); |
| 150 |
extern char *szTime(int typ = 0); |
| 151 |
extern char *szDate(int df = -1); |
| 152 |
extern char *szAbbrevDate(); |
| 153 |
extern char *szDateTime(); |
| 154 |
extern char *szMarsDateTime(); |
| 155 |
extern char *szCAPDateTime(); |
| 156 |
|
| 157 |
extern void set_main_label(); |
| 158 |
extern void show_filename(std::string); |
| 159 |
extern void clear_fields(); |
| 160 |
extern void update_fields(); |
| 161 |
|
| 162 |
extern void to_html(std::string &s); |
| 163 |
extern void fm_html(std::string &html); |
| 164 |
|
| 165 |
extern void drop_box_changed(); |
| 166 |
|
| 167 |
extern int eval_transfer_size(); |
| 168 |
|
| 169 |
extern void extract_text(std::string &buffer, const char *fname); |
| 170 |
|
| 171 |
// used by all form management |
| 172 |
|
| 173 |
extern std::string lineout( std::string &, std::string & ); |
| 174 |
extern std::string binout( std::string &, bool & ); |
| 175 |
|
| 176 |
extern std::string hdr_from; |
| 177 |
extern std::string hdr_edit; |
| 178 |
|
| 179 |
extern void clear_header(); |
| 180 |
extern std::string header(const char *); |
| 181 |
extern void read_header(std::string &str); |
| 182 |
enum hdr_reason {NEW, CHANGED, FROM}; |
| 183 |
extern void update_header(hdr_reason sender = NEW); |
| 184 |
|
| 185 |
extern std::string findstr(std::string &, std::string &); |
| 186 |
extern bool findbin(std::string &, std::string &); |
| 187 |
extern void replacestr(std::string &form, std::string &where, std::string &what); |
| 188 |
extern void replacelf(std::string &form, int n = 0); |
| 189 |
extern void striplf(std::string &); |
| 190 |
|
| 191 |
extern void update_sernbr(); |
| 192 |
|
| 193 |
extern void print_and_exit(); |
| 194 |
|
| 195 |
// ham_form |
| 196 |
extern void hamform_changed(Fl_Widget *, void*); |
| 197 |
|
| 198 |
// ics |
| 199 |
extern void ics_changed(Fl_Widget *, void *); |
| 200 |
|
| 201 |
// ics205 |
| 202 |
extern std::string base_205_filename; |
| 203 |
extern std::string def_205_filename; |
| 204 |
extern std::string def_205_TemplateName; |
| 205 |
extern bool using_ics205_template; |
| 206 |
|
| 207 |
extern void cb_205_SetDateTime1(); |
| 208 |
extern void cb_205_SetDateTime2(); |
| 209 |
extern void cb_205_SetDateTime3(); |
| 210 |
extern void clear_205fields(); |
| 211 |
extern void update_205fields(); |
| 212 |
extern void clear_205_form(); |
| 213 |
extern std::string find(std::string haystack, std::string needle); |
| 214 |
extern void read_205_buffer(std::string data); |
| 215 |
extern void cb_205_new(); |
| 216 |
extern void cb_205_import(); |
| 217 |
extern void cb_205_export(); |
| 218 |
extern void cb_205_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 219 |
extern void cb_205_wrap_export(); |
| 220 |
extern void cb_205_wrap_autosend(); |
| 221 |
extern void cb_205_load_template(); |
| 222 |
extern void cb_205_save_template(); |
| 223 |
extern void cb_205_save_as_template(); |
| 224 |
extern void cb_205_open(); |
| 225 |
extern void write_205(std::string s); |
| 226 |
extern bool cb_205_save_as(); |
| 227 |
extern void cb_205_save(); |
| 228 |
extern void cb_205_html(); |
| 229 |
extern void cb_205_msg_type(); |
| 230 |
extern void cb_205_textout(); |
| 231 |
extern int eval_205_fsize(); |
| 232 |
|
| 233 |
// ics205a |
| 234 |
extern std::string base_205a_filename; |
| 235 |
extern std::string def_205a_filename; |
| 236 |
extern std::string def_205a_TemplateName; |
| 237 |
extern bool using_ics205a_template; |
| 238 |
|
| 239 |
extern void cb_205a_set_date_fm(); |
| 240 |
extern void cb_205a_set_time_fm(); |
| 241 |
extern void cb_205a_set_date_to(); |
| 242 |
extern void cb_205a_set_time_to(); |
| 243 |
extern void clear_205afields(); |
| 244 |
extern void update_205afields(); |
| 245 |
extern void update_205aform(); |
| 246 |
extern void clear_205a_form(); |
| 247 |
extern void read_205a_buffer(std::string data); |
| 248 |
extern void cb_205a_new(); |
| 249 |
extern void cb_205a_import(); |
| 250 |
extern void cb_205a_export(); |
| 251 |
extern void cb_205a_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 252 |
extern void cb_205a_wrap_export(); |
| 253 |
extern void cb_205a_wrap_autosend(); |
| 254 |
extern void cb_205a_load_template(); |
| 255 |
extern void cb_205a_save_template(); |
| 256 |
extern void cb_205a_save_as_template(); |
| 257 |
extern void cb_205a_open(); |
| 258 |
extern void write_205a(std::string s); |
| 259 |
extern bool cb_205a_save_as(); |
| 260 |
extern void cb_205a_save(); |
| 261 |
extern void cb_205a_html(); |
| 262 |
extern void cb_205a_msg_type(); |
| 263 |
extern void cb_205a_textout(); |
| 264 |
extern int eval_205a_fsize(); |
| 265 |
|
| 266 |
// ics203 |
| 267 |
extern std::string yes; |
| 268 |
extern std::string no; |
| 269 |
|
| 270 |
extern std::string buff203; |
| 271 |
extern std::string def_203_filename; |
| 272 |
extern std::string base_203_filename; |
| 273 |
extern std::string def_203_TemplateName; |
| 274 |
extern bool using_203_template; |
| 275 |
|
| 276 |
extern void cb_203_set_date(); |
| 277 |
extern void cb_203_set_time(); |
| 278 |
extern void clear_203fields(); |
| 279 |
extern void update_203fields(); |
| 280 |
extern void clear_203_form(); |
| 281 |
extern void read_203_buffer(std::string data); |
| 282 |
extern void cb_203_new(); |
| 283 |
extern void cb_203_import(); |
| 284 |
extern void cb_203_export(); |
| 285 |
extern void cb_203_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 286 |
extern void cb_203_wrap_export(); |
| 287 |
extern void cb_203_wrap_autosend(); |
| 288 |
extern void cb_203_load_template(); |
| 289 |
extern void cb_203_save_template(); |
| 290 |
extern void cb_203_save_as_template(); |
| 291 |
extern void cb_203_open(); |
| 292 |
extern void write_203(std::string s); |
| 293 |
extern bool cb_203_save_as(); |
| 294 |
extern void cb_203_save(); |
| 295 |
extern void cb_203_html(); |
| 296 |
extern void cb_203_msg_type(); |
| 297 |
extern void cb_203_textout(); |
| 298 |
extern int eval_203_fsize(); |
| 299 |
|
| 300 |
// ics206 |
| 301 |
extern std::string yes; |
| 302 |
extern std::string no; |
| 303 |
|
| 304 |
extern std::string buff206; |
| 305 |
extern std::string def_206_filename; |
| 306 |
extern std::string base_206_filename; |
| 307 |
extern std::string def_206_TemplateName; |
| 308 |
extern bool using_ics206_template; |
| 309 |
|
| 310 |
extern void cb_206_setdate(); |
| 311 |
extern void cb_206_settime(); |
| 312 |
extern void clear_206fields(); |
| 313 |
extern void update_206fields(); |
| 314 |
extern void clear_206_form(); |
| 315 |
extern void read_206_buffer(std::string data); |
| 316 |
extern void cb_206_new(); |
| 317 |
extern void cb_206_import(); |
| 318 |
extern void cb_206_export(); |
| 319 |
extern void cb_206_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 320 |
extern void cb_206_wrap_export(); |
| 321 |
extern void cb_206_wrap_autosend(); |
| 322 |
extern void cb_206_load_template(); |
| 323 |
extern void cb_206_save_template(); |
| 324 |
extern void cb_206_save_as_template(); |
| 325 |
extern void cb_206_open(); |
| 326 |
extern void write_206(std::string s); |
| 327 |
extern bool cb_206_save_as(); |
| 328 |
extern void cb_206_save(); |
| 329 |
extern void cb_206_html(); |
| 330 |
extern void cb_206_msg_type(); |
| 331 |
extern void cb_206_textout(); |
| 332 |
extern int eval_206_fsize(); |
| 333 |
|
| 334 |
// ics213 |
| 335 |
extern bool using_213Template; |
| 336 |
extern std::string base_213_filename; |
| 337 |
extern std::string def_213_filename; |
| 338 |
extern std::string def_213_TemplateName; |
| 339 |
|
| 340 |
extern void clear_213_form(); |
| 341 |
extern void read_213(std::string); |
| 342 |
extern void write_213(std::string); |
| 343 |
extern void read_213_buffer(std::string); |
| 344 |
|
| 345 |
extern void cb_213_new(); |
| 346 |
extern void cb_213_open(); |
| 347 |
extern void cb_213_save(); |
| 348 |
extern bool cb_213_save_as(); |
| 349 |
extern void cb_213_write(); |
| 350 |
extern void cb_213_html(); |
| 351 |
extern void cb_213_textout(); |
| 352 |
extern void cb_213_import(); |
| 353 |
extern void cb_213_export(); |
| 354 |
extern void cb_213_wrap_import(std::string, std::string); |
| 355 |
extern void cb_213_wrap_export(); |
| 356 |
extern void cb_213_wrap_autosend(); |
| 357 |
extern void cb_213_load_template(); |
| 358 |
extern void cb_213_save_template(); |
| 359 |
extern void cb_213_save_as_template(); |
| 360 |
extern void cb_SetDate1(); |
| 361 |
extern void cb_SetDate2(); |
| 362 |
extern void cb_SetTime1(); |
| 363 |
extern void cb_SetTime2(); |
| 364 |
extern int eval_213_fsize(); |
| 365 |
|
| 366 |
// ics214 |
| 367 |
|
| 368 |
extern std::string buff214; |
| 369 |
extern std::string def_214_filename; |
| 370 |
extern std::string base_214_filename; |
| 371 |
extern std::string def_214_TemplateName; |
| 372 |
extern bool using_ics214_template; |
| 373 |
|
| 374 |
extern void cb_214_set_date(); |
| 375 |
extern void cb_214_set_time(); |
| 376 |
extern void clear_214fields(); |
| 377 |
extern void update_214fields(); |
| 378 |
extern void clear_214_form(); |
| 379 |
extern void read_214_buffer(std::string data); |
| 380 |
extern void cb_214_new(); |
| 381 |
extern void cb_214_import(); |
| 382 |
extern void cb_214_export(); |
| 383 |
extern void cb_214_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 384 |
extern void cb_214_wrap_export(); |
| 385 |
extern void cb_214_wrap_autosend(); |
| 386 |
extern void cb_214_load_template(); |
| 387 |
extern void cb_214_save_template(); |
| 388 |
extern void cb_214_save_as_template(); |
| 389 |
extern void cb_214_open(); |
| 390 |
extern void write_214(std::string s); |
| 391 |
extern bool cb_214_save_as(); |
| 392 |
extern void cb_214_save(); |
| 393 |
extern void cb_214_html(); |
| 394 |
extern void cb_214_msg_type(); |
| 395 |
extern void cb_214_textout(); |
| 396 |
extern int eval_214_fsize(); |
| 397 |
|
| 398 |
// ics216 |
| 399 |
|
| 400 |
extern std::string buff216; |
| 401 |
extern std::string def_216_filename; |
| 402 |
extern std::string base_216_filename; |
| 403 |
extern std::string def_216_TemplateName; |
| 404 |
extern bool using_ics216_template; |
| 405 |
|
| 406 |
extern void cb_216_set_date(); |
| 407 |
extern void cb_216_set_time(); |
| 408 |
extern void clear_216fields(); |
| 409 |
extern void update_216fields(); |
| 410 |
extern void clear_216_form(); |
| 411 |
extern void read_216_buffer(std::string data); |
| 412 |
extern void cb_216_new(); |
| 413 |
extern void cb_216_import(); |
| 414 |
extern void cb_216_export(); |
| 415 |
extern void cb_216_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 416 |
extern void cb_216_wrap_export(); |
| 417 |
extern void cb_216_wrap_autosend(); |
| 418 |
extern void cb_216_load_template(); |
| 419 |
extern void cb_216_save_template(); |
| 420 |
extern void cb_216_save_as_template(); |
| 421 |
extern void cb_216_open(); |
| 422 |
extern void write_216(std::string s); |
| 423 |
extern bool cb_216_save_as(); |
| 424 |
extern void cb_216_save(); |
| 425 |
extern void cb_216_html(); |
| 426 |
extern void cb_216_msg_type(); |
| 427 |
extern void cb_216_textout(); |
| 428 |
extern int eval_216_fsize(); |
| 429 |
|
| 430 |
// ics309 |
| 431 |
|
| 432 |
extern std::string buff309; |
| 433 |
extern std::string def_309_filename; |
| 434 |
extern std::string base_309_filename; |
| 435 |
extern std::string def_309_TemplateName; |
| 436 |
extern bool using_ics309_template; |
| 437 |
|
| 438 |
extern void cb_309_set_date_fm(); |
| 439 |
extern void cb_309_set_time_fm(); |
| 440 |
extern void cb_309_set_date_to(); |
| 441 |
extern void cb_309_set_time_to(); |
| 442 |
extern void cb_309_set_date_time(); |
| 443 |
extern void clear_309fields(); |
| 444 |
extern void update_309fields(); |
| 445 |
extern void clear_309_form(); |
| 446 |
extern void read_309_buffer(std::string data); |
| 447 |
extern void cb_309_new(); |
| 448 |
extern void cb_309_import(); |
| 449 |
extern void cb_309_export(); |
| 450 |
extern void cb_309_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 451 |
extern void cb_309_wrap_export(); |
| 452 |
extern void cb_309_wrap_autosend(); |
| 453 |
extern void cb_309_load_template(); |
| 454 |
extern void cb_309_save_template(); |
| 455 |
extern void cb_309_save_as_template(); |
| 456 |
extern void cb_309_open(); |
| 457 |
extern void write_309(std::string s); |
| 458 |
extern bool cb_309_save_as(); |
| 459 |
extern void cb_309_save(); |
| 460 |
extern void cb_309_html(); |
| 461 |
extern void cb_309_msg_type(); |
| 462 |
extern void cb_309_textout(); |
| 463 |
extern int eval_309_fsize(); |
| 464 |
extern void ics309_csv(Fl_Widget *w, void *d); |
| 465 |
|
| 466 |
// netlog |
| 467 |
|
| 468 |
extern std::string buffnetlog; |
| 469 |
extern std::string def_netlog_filename; |
| 470 |
extern std::string base_netlog_filename; |
| 471 |
extern std::string def_netlog_TemplateName; |
| 472 |
extern bool using_netlog_template; |
| 473 |
|
| 474 |
extern void cb_netlog_set_date_fm(); |
| 475 |
extern void cb_netlog_set_time_fm(); |
| 476 |
extern void cb_netlog_set_date_to(); |
| 477 |
extern void cb_netlog_set_time_to(); |
| 478 |
extern void cb_netlog_set_date_time(); |
| 479 |
extern void clear_netlogfields(); |
| 480 |
extern void update_netlogfields(); |
| 481 |
extern void clear_netlog_form(); |
| 482 |
extern void read_netlog_buffer(std::string data); |
| 483 |
extern void cb_netlog_new(); |
| 484 |
extern void cb_netlog_import(); |
| 485 |
extern void cb_netlog_export(); |
| 486 |
extern void cb_netlog_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 487 |
extern void cb_netlog_wrap_export(); |
| 488 |
extern void cb_netlog_wrap_autosend(); |
| 489 |
extern void cb_netlog_load_template(); |
| 490 |
extern void cb_netlog_save_template(); |
| 491 |
extern void cb_netlog_save_as_template(); |
| 492 |
extern void cb_netlog_open(); |
| 493 |
extern void write_netlog(std::string s); |
| 494 |
extern bool cb_netlog_save_as(); |
| 495 |
extern void cb_netlog_save(); |
| 496 |
extern void cb_netlog_html(); |
| 497 |
extern void cb_netlog_msg_type(); |
| 498 |
extern void cb_netlog_textout(); |
| 499 |
extern int eval_netlog_fsize(); |
| 500 |
extern void netlog_csv(Fl_Widget *w, void *d); |
| 501 |
|
| 502 |
// radiogram |
| 503 |
extern bool using_rg_template; |
| 504 |
extern std::string base_rg_filename; |
| 505 |
extern std::string def_rg_filename; |
| 506 |
extern std::string def_rg_TemplateName; |
| 507 |
|
| 508 |
extern const char hxitems[]; |
| 509 |
extern const char precitems[]; |
| 510 |
extern const char *s_prec[]; |
| 511 |
extern const char *s_hx[]; |
| 512 |
|
| 513 |
extern void cb_rgSetDate1(); |
| 514 |
extern void cb_rgSetTime1(); |
| 515 |
extern void cb_rgSetDateTime2(); |
| 516 |
extern void cb_rgSetDateTime3(); |
| 517 |
extern void cb_rgSetDateTime4(); |
| 518 |
extern void cb_rgSetDateTime5(); |
| 519 |
extern void clear_rgfields(); |
| 520 |
extern void update_rgfields(); |
| 521 |
extern void clear_rg_form(); |
| 522 |
extern void read_rg_buffer(std::string data); |
| 523 |
extern void cb_rg_new(); |
| 524 |
extern void cb_rg_import(); |
| 525 |
extern void cb_rg_export(); |
| 526 |
extern void cb_rg_wrap_import(std::string, std::string); |
| 527 |
extern void cb_rg_wrap_export(); |
| 528 |
extern void cb_rg_wrap_autosend(); |
| 529 |
extern void cb_rg_load_template(); |
| 530 |
extern void cb_rg_save_template(); |
| 531 |
extern void cb_rg_save_as_template(); |
| 532 |
extern void read_rg(std::string s); |
| 533 |
extern void cb_rg_open(); |
| 534 |
extern void write_rg(std::string s); |
| 535 |
extern bool cb_rg_save_as(); |
| 536 |
extern void cb_rg_save(); |
| 537 |
extern void cb_rg_html(); |
| 538 |
extern void cb_rg_html_fcopy(); |
| 539 |
extern void cb_rg_rtf(); |
| 540 |
extern void cb_rg_textout(); |
| 541 |
extern void set_rg_choices(); |
| 542 |
extern void cb_rg_check(); |
| 543 |
extern void cb_rg_nbr(Fl_Widget *); |
| 544 |
extern void cb_rg_filter_input(Fl_Widget *); |
| 545 |
extern int eval_rg_fsize(); |
| 546 |
|
| 547 |
extern void read_data_file(std::string); |
| 548 |
|
| 549 |
// plaintext |
| 550 |
extern bool using_pt_template; |
| 551 |
extern std::string base_pt_filename; |
| 552 |
extern std::string def_pt_filename; |
| 553 |
extern std::string def_pt_TemplateName; |
| 554 |
|
| 555 |
extern void cb_set_pt_date(); |
| 556 |
extern void cb_set_pt_time(); |
| 557 |
extern void clear_ptfields(); |
| 558 |
extern void update_ptfields(); |
| 559 |
extern void clear_pt_form(); |
| 560 |
extern void read_ptbuffer(std::string data); |
| 561 |
extern void cb_pt_new(); |
| 562 |
extern void cb_pt_import(); |
| 563 |
extern void cb_pt_export(); |
| 564 |
extern void cb_pt_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 565 |
extern void cb_pt_wrap_export(); |
| 566 |
extern void cb_pt_wrap_autosend(); |
| 567 |
extern void cb_pt_load_template(); |
| 568 |
extern void cb_pt_save_template(); |
| 569 |
extern void cb_pt_save_as_template(); |
| 570 |
extern void read_pt_data_file(std::string s); |
| 571 |
extern void cb_pt_open(); |
| 572 |
extern void write_pt(std::string s); |
| 573 |
extern bool cb_pt_save_as(); |
| 574 |
extern void cb_pt_save(); |
| 575 |
extern void cb_pt_html(); |
| 576 |
extern void cb_pt_msg_type(); |
| 577 |
extern void cb_pt_textout(); |
| 578 |
extern int eval_pt_fsize(); |
| 579 |
|
| 580 |
// blank form |
| 581 |
extern bool using_blank_template; |
| 582 |
extern std::string base_blank_filename; |
| 583 |
extern std::string def_blank_filename; |
| 584 |
extern std::string def_blank_TemplateName; |
| 585 |
|
| 586 |
extern std::string TITLE; |
| 587 |
extern std::string errtext; |
| 588 |
|
| 589 |
extern void clear_blankfields(); |
| 590 |
extern void update_blankfields(); |
| 591 |
extern void clear_blank_form(); |
| 592 |
extern void read_blankbuffer(std::string data); |
| 593 |
extern void cb_blank_new(); |
| 594 |
extern void cb_blank_import(); |
| 595 |
extern void cb_blank_export(); |
| 596 |
extern void cb_blank_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 597 |
extern void cb_blank_wrap_export(); |
| 598 |
extern void cb_blank_wrap_autosend(); |
| 599 |
extern void cb_blank_load_template(); |
| 600 |
extern void cb_blank_save_template(); |
| 601 |
extern void cb_blank_save_as_template(); |
| 602 |
extern void read_blank_data_file(std::string s); |
| 603 |
extern void cb_blank_open(); |
| 604 |
extern void write_blank(std::string s); |
| 605 |
extern bool cb_blank_save_as(); |
| 606 |
extern void cb_blank_save(); |
| 607 |
extern void cb_blank_html(); |
| 608 |
extern void cb_blank_msg_type(); |
| 609 |
extern void cb_blank_textout(); |
| 610 |
extern int eval_blank_fsize(); |
| 611 |
|
| 612 |
// csv form |
| 613 |
extern bool using_csv_template; |
| 614 |
extern std::string base_csv_filename; |
| 615 |
extern std::string def_csv_filename; |
| 616 |
extern std::string def_csv_TemplateName; |
| 617 |
|
| 618 |
extern void clear_csvfields(); |
| 619 |
extern void update_csvfields(); |
| 620 |
extern void clear_csv_form(); |
| 621 |
extern void read_csvbuffer(std::string data); |
| 622 |
extern void cb_csv_new(); |
| 623 |
extern void cb_csv_import(); |
| 624 |
extern void cb_csv_export(); |
| 625 |
extern void cb_csv_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 626 |
extern void cb_csv_wrap_export(); |
| 627 |
extern void cb_csv_wrap_autosend(); |
| 628 |
extern void cb_csv_load_template(); |
| 629 |
extern void cb_csv_save_template(); |
| 630 |
extern void cb_csv_save_as_template(); |
| 631 |
extern void read_csv_data_file(std::string s); |
| 632 |
extern void cb_csv_open(); |
| 633 |
extern void write_csv(std::string s); |
| 634 |
extern bool cb_csv_save_as(); |
| 635 |
extern void cb_csv_save(); |
| 636 |
extern void cb_csv_html(); |
| 637 |
extern void cb_csv_msg_type(); |
| 638 |
extern void cb_csv_textout(); |
| 639 |
extern void cb_csv_export_data(bool); |
| 640 |
extern void cb_csv_import_data(); |
| 641 |
extern void csv_set_fname(const char *); |
| 642 |
extern int eval_csv_fsize(); |
| 643 |
|
| 644 |
// custom form |
| 645 |
|
| 646 |
enum HANDLE_TYPE {HANDLE_NONE, HANDLE_EDIT, HANDLE_VIEW, HANDLE_WAITING}; |
| 647 |
|
| 648 |
extern int custom_select; |
| 649 |
extern int handle_type; |
| 650 |
|
| 651 |
extern int flmsg_webserver_portnbr; |
| 652 |
extern char sz_srvr_portnbr[]; |
| 653 |
|
| 654 |
extern pthread_t *web_server_thread; |
| 655 |
extern pthread_mutex_t mutex_web_server; |
| 656 |
|
| 657 |
struct CUSTOM_PAIRS { |
| 658 |
char *mnu_name; |
| 659 |
char *file_name; |
| 660 |
}; |
| 661 |
|
| 662 |
extern CUSTOM_PAIRS custom_pairs[]; |
| 663 |
|
| 664 |
extern bool using_custom_template; |
| 665 |
extern std::string base_custom_filename; |
| 666 |
extern std::string def_custom_filename; |
| 667 |
extern std::string def_custom_TemplateName; |
| 668 |
|
| 669 |
extern void clear_customfields(); |
| 670 |
extern void update_customfields(); |
| 671 |
extern void clear_custom_form(); |
| 672 |
extern void read_custombuffer(std::string data); |
| 673 |
extern void cb_custom_new(); |
| 674 |
extern void cb_custom_import(); |
| 675 |
extern void cb_custom_export(); |
| 676 |
extern void cb_custom_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 677 |
extern void cb_custom_wrap_export(); |
| 678 |
extern void cb_custom_wrap_autosend(); |
| 679 |
extern void cb_custom_load_template(); |
| 680 |
extern void cb_custom_save_template(); |
| 681 |
extern void cb_custom_save_as_template(); |
| 682 |
extern void read_custom_data_file(std::string s); |
| 683 |
extern void cb_custom_open(); |
| 684 |
extern void write_custom(std::string s); |
| 685 |
extern bool cb_custom_save_as(); |
| 686 |
extern void cb_custom_save(); |
| 687 |
extern void cb_custom_html(bool); |
| 688 |
extern void cb_custom_msg_type(); |
| 689 |
extern void cb_custom_textout(); |
| 690 |
extern void cb_custom_export_data(bool); |
| 691 |
extern void cb_custom_import_data(); |
| 692 |
extern void custom_set_fname(const char *); |
| 693 |
extern int eval_custom_fsize(); |
| 694 |
|
| 695 |
// mars daily |
| 696 |
extern std::string def_mars_daily_filename; |
| 697 |
extern std::string def_mars_daily_TemplateName; |
| 698 |
extern std::string base_mars_daily_filename; |
| 699 |
|
| 700 |
extern void mars_changed(Fl_Widget *, void *); |
| 701 |
|
| 702 |
extern void clear_mars_dailyfields(); |
| 703 |
extern void update_mars_dailyfields(); |
| 704 |
extern void clear_mars_daily_form(); |
| 705 |
extern void read_mars_daily_buffer(std::string data); |
| 706 |
extern void cb_mars_daily_new(); |
| 707 |
extern void cb_mars_daily_import(); |
| 708 |
extern void cb_mars_daily_export(); |
| 709 |
extern void cb_mars_daily_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 710 |
extern void cb_mars_daily_wrap_export(); |
| 711 |
extern void cb_mars_daily_wrap_autosend(); |
| 712 |
extern void cb_mars_daily_load_template(); |
| 713 |
extern void cb_mars_daily_save_template(); |
| 714 |
extern void cb_mars_daily_save_as_template(); |
| 715 |
extern void read_mars_daily__data_file(std::string s); |
| 716 |
extern void cb_mars_daily_open(); |
| 717 |
extern void write_mars_daily(std::string s); |
| 718 |
extern bool cb_mars_daily_save_as(); |
| 719 |
extern void cb_mars_daily_save(); |
| 720 |
extern void cb_mars_daily_html(); |
| 721 |
extern void cb_mars_daily_msg_type(); |
| 722 |
extern void cb_mars_daily_textout(); |
| 723 |
extern int eval_mars_daily_fsize(); |
| 724 |
|
| 725 |
// mars ineei |
| 726 |
extern std::string def_mars_ineei_filename; |
| 727 |
extern std::string def_mars_ineei_TemplateName; |
| 728 |
extern std::string base_mars_ineei_filename; |
| 729 |
|
| 730 |
extern void cb_mars_ineei_SetDTG(); |
| 731 |
extern void clear_mars_ineei_fields(); |
| 732 |
extern void update_mars_ineei_fields(); |
| 733 |
extern void update_mars_ineeiform(); |
| 734 |
extern void clear_mars_ineei_form(); |
| 735 |
extern void read_mars_ineei_buffer(std::string data); |
| 736 |
extern void cb_mars_ineei_new(); |
| 737 |
extern void cb_mars_ineei_import(); |
| 738 |
extern void cb_mars_ineei_export(); |
| 739 |
extern void cb_mars_ineei_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 740 |
extern void cb_mars_ineei_wrap_export(); |
| 741 |
extern void cb_mars_ineei_wrap_autosend(); |
| 742 |
extern void cb_mars_ineei_load_template(); |
| 743 |
extern void cb_mars_ineei_save_template(); |
| 744 |
extern void cb_mars_ineei_save_as_template(); |
| 745 |
extern void cb_mars_ineei_open(); |
| 746 |
extern void write_mars_ineei(std::string s); |
| 747 |
extern bool cb_mars_ineei_save_as(); |
| 748 |
extern void cb_mars_ineei_save(); |
| 749 |
extern void cb_mars_ineei_html(); |
| 750 |
extern void cb_mars_ineei_textout(); |
| 751 |
extern void cb_mars_ineei_html(); |
| 752 |
extern void cb_mars_ineei_textout(); |
| 753 |
extern int eval_mars_ineei_fsize(); |
| 754 |
|
| 755 |
// mars net |
| 756 |
extern std::string def_mars_net_filename; |
| 757 |
extern std::string def_mars_net_TemplateName; |
| 758 |
extern std::string base_mars_net_filename; |
| 759 |
|
| 760 |
extern void cb_mars_net_SetDTG(); |
| 761 |
extern void cb_mars_net_SetDTGSTART(); |
| 762 |
extern void cb_mars_net_SetDTGEND(); |
| 763 |
extern void clear_mars_net_fields(); |
| 764 |
extern void update_mars_net_fields(); |
| 765 |
extern void update_mars_netform(); |
| 766 |
extern void clear_mars_net_form(); |
| 767 |
extern void read_mars_net_buffer(std::string data); |
| 768 |
extern void cb_mars_net_new(); |
| 769 |
extern void cb_mars_net_import(); |
| 770 |
extern void cb_mars_net_export(); |
| 771 |
extern void cb_mars_net_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 772 |
extern void cb_mars_net_wrap_export(); |
| 773 |
extern void cb_mars_net_wrap_autosend(); |
| 774 |
extern void cb_mars_net_load_template(); |
| 775 |
extern void cb_mars_net_save_template(); |
| 776 |
extern void cb_mars_net_save_as_template(); |
| 777 |
extern void cb_mars_net_open(); |
| 778 |
extern void write_mars_net(std::string s); |
| 779 |
extern bool cb_mars_net_save_as(); |
| 780 |
extern void cb_mars_net_save(); |
| 781 |
extern void cb_mars_net_html(); |
| 782 |
extern void cb_mars_net_textout(); |
| 783 |
extern int eval_mars_net_fsize(); |
| 784 |
|
| 785 |
// mars army |
| 786 |
extern bool using_mars_army_template; |
| 787 |
extern std::string base_mars_army_filename; |
| 788 |
extern std::string def_mars_army_filename; |
| 789 |
extern std::string def_mars_army_TemplateName; |
| 790 |
|
| 791 |
extern void clear_mars_armyfields(); |
| 792 |
extern void update_mars_armyfields(); |
| 793 |
extern void update_mars_armyform(); |
| 794 |
extern void clear_mars_army_form(); |
| 795 |
extern void read_mars_army_buffer(std::string data); |
| 796 |
extern void cb_mars_army_new(); |
| 797 |
extern void cb_mars_army_import(); |
| 798 |
extern void cb_mars_army_export(); |
| 799 |
extern void cb_mars_army_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 800 |
extern void cb_mars_army_wrap_export(); |
| 801 |
extern void cb_mars_army_wrap_autosend(); |
| 802 |
extern void cb_mars_army_load_template(); |
| 803 |
extern void cb_mars_army_save_template(); |
| 804 |
extern void cb_mars_army_save_as_template(); |
| 805 |
extern void cb_mars_army_open(); |
| 806 |
extern void write_mars_army(std::string s); |
| 807 |
extern bool cb_mars_army_save_as(); |
| 808 |
extern void cb_mars_army_save(); |
| 809 |
extern void cb_mars_army_html(); |
| 810 |
extern void cb_mars_army_msg_type(); |
| 811 |
extern void cb_mars_army_textout(); |
| 812 |
extern int eval_mars_army_fsize(); |
| 813 |
|
| 814 |
// mars msg |
| 815 |
extern bool using_mars_msg_template; |
| 816 |
extern std::string base_mars_msg_filename; |
| 817 |
extern std::string def_mars_msg_filename; |
| 818 |
extern std::string def_mars_msg_TemplateName; |
| 819 |
|
| 820 |
extern void clear_mars_msgfields(); |
| 821 |
extern void update_mars_msgfields(); |
| 822 |
extern void update_mars_msgform(); |
| 823 |
extern void clear_mars_msg_form(); |
| 824 |
extern void read_mars_msg_buffer(std::string data); |
| 825 |
extern void cb_mars_msg_new(); |
| 826 |
extern void cb_mars_msg_import(); |
| 827 |
extern void cb_mars_msg_export(); |
| 828 |
extern void cb_mars_msg_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 829 |
extern void cb_mars_msg_wrap_export(); |
| 830 |
extern void cb_mars_msg_wrap_autosend(); |
| 831 |
extern void cb_mars_msg_load_template(); |
| 832 |
extern void cb_mars_msg_save_template(); |
| 833 |
extern void cb_mars_msg_save_as_template(); |
| 834 |
extern void cb_mars_msg_open(); |
| 835 |
extern void write_mars_msg(std::string s); |
| 836 |
extern bool cb_mars_msg_save_as(); |
| 837 |
extern void cb_mars_msg_save(); |
| 838 |
extern void cb_mars_msg_html(); |
| 839 |
extern void cb_mars_msg_msg_type(); |
| 840 |
extern void cb_mars_msg_textout(); |
| 841 |
extern int eval_mars_msg_fsize(); |
| 842 |
|
| 843 |
// hics203 |
| 844 |
extern std::string hics_buff203; |
| 845 |
extern std::string def_hics203_filename; |
| 846 |
extern std::string base_hics203_filename; |
| 847 |
extern std::string def_hics203_TemplateName; |
| 848 |
extern bool using_hics203_template; |
| 849 |
extern void hics_changed(Fl_Widget *, void *); |
| 850 |
|
| 851 |
extern void cb_hics203_set_date(); |
| 852 |
extern void cb_hics203_set_time(); |
| 853 |
extern void clear_hics203fields(); |
| 854 |
extern void update_hics203fields(); |
| 855 |
extern void clear_hics203_form(); |
| 856 |
extern void read_hics203_buffer(std::string data); |
| 857 |
extern void cb_hics203_new(); |
| 858 |
extern void cb_hics203_import(); |
| 859 |
extern void cb_hics203_export(); |
| 860 |
extern void cb_hics203_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 861 |
extern void cb_hics203_wrap_export(); |
| 862 |
extern void cb_hics203_wrap_autosend(); |
| 863 |
extern void cb_hics203_load_template(); |
| 864 |
extern void cb_hics203_save_template(); |
| 865 |
extern void cb_hics203_save_as_template(); |
| 866 |
extern void cb_hics203_open(); |
| 867 |
extern void write_hics203(std::string s); |
| 868 |
extern bool cb_hics203_save_as(); |
| 869 |
extern void cb_hics203_save(); |
| 870 |
extern void cb_hics203_html(); |
| 871 |
extern void cb_hics203_msg_type(); |
| 872 |
extern void cb_hics203_textout(); |
| 873 |
extern int eval_hics203_fsize(); |
| 874 |
|
| 875 |
// ics_h206 |
| 876 |
extern std::string h206_buff; |
| 877 |
extern std::string h206_def_filename; |
| 878 |
extern std::string h206_base_filename; |
| 879 |
extern std::string h206_def_template_name; |
| 880 |
extern bool h206_using_template; |
| 881 |
|
| 882 |
extern void h206_cb_setdate(); |
| 883 |
extern void h206_cb_settime(); |
| 884 |
extern void h206_clear_fields(); |
| 885 |
extern void h206_update_fields(); |
| 886 |
extern void h206_clear__form(); |
| 887 |
extern void h206_read_buffer(std::string data); |
| 888 |
extern void h206_cb_new(); |
| 889 |
extern void h206_cb_import(); |
| 890 |
extern void h206_cb_export(); |
| 891 |
extern void h206_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 892 |
extern void h206_cb_wrap_export(); |
| 893 |
extern void h206_cb_wrap_autosend(); |
| 894 |
extern void h206_cb_load_template(); |
| 895 |
extern void h206_cb_save_template(); |
| 896 |
extern void h206_cb_save_as_template(); |
| 897 |
extern void h206_cb_open(); |
| 898 |
extern void h206_write(std::string s); |
| 899 |
extern bool h206_cb_save_as(); |
| 900 |
extern void h206_cb_save(); |
| 901 |
extern void h206_cb_html(); |
| 902 |
extern void h206_cb_textout(); |
| 903 |
extern int eval_h206_fsize(); |
| 904 |
|
| 905 |
// ics_h213 |
| 906 |
|
| 907 |
extern std::string h213_buffer; |
| 908 |
extern std::string h213_def_filename; |
| 909 |
extern std::string h213_base_filename; |
| 910 |
extern std::string h213_def_template_name; |
| 911 |
extern bool h213_using_template; |
| 912 |
|
| 913 |
extern void h213_cb_set_date(); |
| 914 |
extern void h213_cb_set_time0(); |
| 915 |
extern void h213_cb_set_time1(); |
| 916 |
extern void h213_cb_set_time2(); |
| 917 |
extern void h213_clear_fields(); |
| 918 |
extern void h213_update_fields(); |
| 919 |
extern void h213_clear_form(); |
| 920 |
extern void h213_update_form(); |
| 921 |
extern void h213_read_buffer(std::string data); |
| 922 |
extern void h213_cb_new(); |
| 923 |
extern void h213_cb_import(); |
| 924 |
extern void h213_cb_export(); |
| 925 |
extern void h213_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 926 |
extern void h213_cb_wrap_export(); |
| 927 |
extern void h213_cb_wrap_autosend(); |
| 928 |
extern void h213_cb_load_template(); |
| 929 |
extern void h213_cb_save_template(); |
| 930 |
extern void h213_cb_save_as_template(); |
| 931 |
extern void h213_cb_open(); |
| 932 |
extern void h213_write(std::string s); |
| 933 |
extern bool h213_cb_save_as(); |
| 934 |
extern void h213_cb_save(); |
| 935 |
extern void h213_cb_html(); |
| 936 |
extern void h213_cb_textout(); |
| 937 |
extern int eval_h213_fsize(); |
| 938 |
|
| 939 |
// hics 214 variables and functions |
| 940 |
|
| 941 |
extern std::string hics214_incident; |
| 942 |
extern std::string hics214_date; |
| 943 |
extern std::string hics214_time; |
| 944 |
extern std::string hics214_op_period; |
| 945 |
extern std::string hics214_sec_brch; |
| 946 |
extern std::string hics214_position; |
| 947 |
extern std::string hics214_activity_time[30]; |
| 948 |
extern std::string hics214_activity_event[30]; |
| 949 |
extern std::string hics214_prepared_by; |
| 950 |
extern std::string hics214_facility; |
| 951 |
|
| 952 |
extern std::string hics214_buff; |
| 953 |
extern std::string hics214_def_filename; |
| 954 |
extern std::string hics214_base_filename; |
| 955 |
extern std::string hics214_template_name; |
| 956 |
extern bool hics214_using_template; |
| 957 |
|
| 958 |
extern void hics214_cb_set_date(); |
| 959 |
extern void hics214_cb_set_time(); |
| 960 |
extern void hics214_clear_fields(); |
| 961 |
extern void hics214_update_fields(); |
| 962 |
extern void hics214_update_form(); |
| 963 |
extern void hics214_clear_form(); |
| 964 |
extern void hics214_read_buffer(std::string data); |
| 965 |
extern void hics214_cb_new(); |
| 966 |
extern void hics214_cb_import(); |
| 967 |
extern void hics214_cb_export(); |
| 968 |
extern void hics214_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 969 |
extern void hics214_cb_wrap_export(); |
| 970 |
extern void hics214_cb_wrap_autosend(); |
| 971 |
extern void hics214_cb_load_template(); |
| 972 |
extern void hics214_cb_save_template(); |
| 973 |
extern void hics214_cb_save_as_template(); |
| 974 |
extern void hics214_cb_open(); |
| 975 |
extern void hics214_write(std::string s); |
| 976 |
extern bool hics214_cb_save_as(); |
| 977 |
extern void hics214_cb_save(); |
| 978 |
extern void hics214_cb_html(); |
| 979 |
extern void hics214_cb_textout(); |
| 980 |
extern int eval_hics214_fsize(); |
| 981 |
|
| 982 |
// IARU form |
| 983 |
|
| 984 |
extern bool iaru_using_template; |
| 985 |
extern int iaru_num_fields; |
| 986 |
|
| 987 |
extern void iaru_cb_set_d1(); |
| 988 |
extern void iaru_cb_set_t1(); |
| 989 |
extern void iaru_cb_set_d2(); |
| 990 |
extern void iaru_cb_set_t2(); |
| 991 |
extern void iaru_cb_set_d3(); |
| 992 |
extern void iaru_cb_set_t3(); |
| 993 |
extern void iaru_cb_nbr(Fl_Widget *wdg); |
| 994 |
extern void iaru_cb_filter_input(Fl_Widget *wdg); |
| 995 |
extern void iaru_clear_fields(); |
| 996 |
extern void iaru_set_choices(); |
| 997 |
extern void iaru_update_fields(); |
| 998 |
extern void iaru_clear_form(); |
| 999 |
extern void iaru_update_form(); |
| 1000 |
extern void iaru_read_buffer(std::string data); |
| 1001 |
extern void iaru_cb_new(); |
| 1002 |
extern void iaru_cb_import(); |
| 1003 |
extern void iaru_cb_export(); |
| 1004 |
extern void iaru_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1005 |
extern void iaru_cb_wrap_export(); |
| 1006 |
extern void iaru_cb_wrap_autosend(); |
| 1007 |
extern void iaru_cb_load_template(); |
| 1008 |
extern void iaru_cb_save_template(); |
| 1009 |
extern void iaru_cb_save_as_template(); |
| 1010 |
extern void iaru_cb_open(); |
| 1011 |
extern void iaru_write(std::string s); |
| 1012 |
extern bool iaru_cb_save_as(); |
| 1013 |
extern void iaru_cb_save(); |
| 1014 |
extern void iaru_cb_check(); |
| 1015 |
extern void iaru_cb_html(); |
| 1016 |
extern void iaru_cb_textout(); |
| 1017 |
extern int eval_iaru_fsize(); |
| 1018 |
|
| 1019 |
extern std::string iaru_base_filename; |
| 1020 |
extern std::string iaru_def_filename; |
| 1021 |
extern std::string iaru_def_template_name; |
| 1022 |
|
| 1023 |
//====================================================================== |
| 1024 |
// National Hurricane Center, Hurricane Weather Report Form |
| 1025 |
//====================================================================== |
| 1026 |
|
| 1027 |
extern std::string buffwxhc; |
| 1028 |
extern std::string def_wxhc_filename; |
| 1029 |
extern std::string base_wxhc_filename; |
| 1030 |
extern std::string def_wxhc_TemplateName; |
| 1031 |
|
| 1032 |
extern void clear_wxhcfields(); |
| 1033 |
extern bool check_wxhcfields(); |
| 1034 |
extern void update_wxhcfields(); |
| 1035 |
extern void set_nhc_wx_combos(); |
| 1036 |
extern void update_wxhcform(); |
| 1037 |
extern void clear_wxhc_form(); |
| 1038 |
extern void read_wxhc_buffer(std::string data); |
| 1039 |
extern void cb_wxhc_new(); |
| 1040 |
extern void cb_wxhc_import(); |
| 1041 |
extern void cb_wxhc_export(); |
| 1042 |
extern void cb_wxhc_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1043 |
extern void cb_wxhc_wrap_export(); |
| 1044 |
extern void cb_wxhc_wrap_autosend(); |
| 1045 |
extern void cb_wxhc_load_template(); |
| 1046 |
extern void cb_wxhc_save_template(); |
| 1047 |
extern void cb_wxhc_save_as_template(); |
| 1048 |
extern void cb_wxhc_open(); |
| 1049 |
extern void write_wxhc(std::string s); |
| 1050 |
extern bool cb_wxhc_save_as(); |
| 1051 |
extern void cb_wxhc_save(); |
| 1052 |
extern void cb_wxhc_html(); |
| 1053 |
extern void cb_wxhc_textout(); |
| 1054 |
extern int eval_wxhc_fsize(); |
| 1055 |
|
| 1056 |
//====================================================================== |
| 1057 |
// Severe Weather Report Form |
| 1058 |
//====================================================================== |
| 1059 |
|
| 1060 |
extern std::string buffsevere_wx; |
| 1061 |
extern std::string def_severe_wx_filename; |
| 1062 |
extern std::string base_severe_wx_filename; |
| 1063 |
extern std::string def_severe_wx_TemplateName; |
| 1064 |
|
| 1065 |
extern void clear_severe_wxfields(); |
| 1066 |
extern bool check_severe_wxfields(); |
| 1067 |
extern void update_severe_wxfields(); |
| 1068 |
extern void update_severe_wxform(); |
| 1069 |
extern void clear_severe_wx_form(); |
| 1070 |
extern void read_severe_wx_buffer(std::string data); |
| 1071 |
extern void cb_severe_wx_new(); |
| 1072 |
extern void cb_severe_wx_import(); |
| 1073 |
extern void cb_severe_wx_export(); |
| 1074 |
extern void cb_severe_wx_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1075 |
extern int eval_severe_wx_fsize(); |
| 1076 |
extern void cb_severe_wx_wrap_export(); |
| 1077 |
extern void cb_severe_wx_wrap_autosend(); |
| 1078 |
extern void cb_severe_wx_load_template(); |
| 1079 |
extern void cb_severe_wx_save_template(); |
| 1080 |
extern void cb_severe_wx_save_as_template(); |
| 1081 |
extern void cb_severe_wx_open(); |
| 1082 |
extern void write_severe_wx(std::string s); |
| 1083 |
extern bool cb_severe_wx_save_as(); |
| 1084 |
extern void cb_severe_wx_save(); |
| 1085 |
extern void cb_severe_wx_html(); |
| 1086 |
extern void cb_severe_wx_textout(); |
| 1087 |
extern void set_severe_wx_combos(); |
| 1088 |
extern void set_severe_wx_counties(int); |
| 1089 |
|
| 1090 |
//====================================================================== |
| 1091 |
// Storm Report Form |
| 1092 |
//====================================================================== |
| 1093 |
|
| 1094 |
extern std::string buffstorm; |
| 1095 |
extern std::string def_storm_filename; |
| 1096 |
extern std::string base_storm_filename; |
| 1097 |
extern std::string def_storm_TemplateName; |
| 1098 |
|
| 1099 |
extern void clear_stormfields(); |
| 1100 |
extern bool check_stormfields(); |
| 1101 |
extern void update_stormfields(); |
| 1102 |
extern void update_stormform(); |
| 1103 |
extern void clear_storm_form(); |
| 1104 |
extern void read_storm_buffer(std::string data); |
| 1105 |
extern void cb_storm_new(); |
| 1106 |
extern void cb_storm_import(); |
| 1107 |
extern void cb_storm_export(); |
| 1108 |
extern void cb_storm_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1109 |
extern int eval_storm_fsize(); |
| 1110 |
extern void cb_storm_wrap_export(); |
| 1111 |
extern void cb_storm_wrap_autosend(); |
| 1112 |
extern void cb_storm_load_template(); |
| 1113 |
extern void cb_storm_save_template(); |
| 1114 |
extern void cb_storm_save_as_template(); |
| 1115 |
extern void cb_storm_open(); |
| 1116 |
extern void write_storm(std::string s); |
| 1117 |
extern bool cb_storm_save_as(); |
| 1118 |
extern void cb_storm_save(); |
| 1119 |
extern void cb_storm_html(); |
| 1120 |
extern void cb_storm_textout(); |
| 1121 |
|
| 1122 |
//====================================================================== |
| 1123 |
// generic file transfer |
| 1124 |
//====================================================================== |
| 1125 |
|
| 1126 |
extern std::string transfer_buffer; |
| 1127 |
extern std::string def_transfer_filename; |
| 1128 |
extern std::string base_transfer_filename; |
| 1129 |
|
| 1130 |
extern void clear_transfer_form(); |
| 1131 |
extern void read_transfer_buffer(std::string data); |
| 1132 |
extern void cb_transfer_new(); |
| 1133 |
extern void cb_transfer_import(); |
| 1134 |
extern void cb_transfer_export(); |
| 1135 |
extern void cb_transfer_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1136 |
extern int eval_transfer_fsize(); |
| 1137 |
extern void cb_transfer_wrap_export(); |
| 1138 |
extern void cb_transfer_wrap_autosend(); |
| 1139 |
extern void cb_transfer_load_template(); |
| 1140 |
extern void cb_transfer_save_template(); |
| 1141 |
extern void cb_transfer_save_as_template(); |
| 1142 |
extern void cb_transfer_open(); |
| 1143 |
extern void write_transfer(std::string s); |
| 1144 |
extern void cb_transfer_open_as(); |
| 1145 |
extern void cb_transfer_msg_type(); |
| 1146 |
extern void cb_transfer_html(); |
| 1147 |
extern void cb_transfer_textout(); |
| 1148 |
extern void cb_transfer_import_data(); |
| 1149 |
extern void cb_transfer_export_data(); |
| 1150 |
|
| 1151 |
extern std::string def_custom_transfer_filename; |
| 1152 |
extern void load_custom_html_file(); |
| 1153 |
extern void load_custom_transfer(); |
| 1154 |
extern void update_custom_transfer(); |
| 1155 |
|
| 1156 |
extern void cb_custom_form_wrap_import(std::string s1, std::string s2); |
| 1157 |
extern int eval_transfer_custom_form_fsize(); |
| 1158 |
extern void cb_transfer_custom_html(); |
| 1159 |
extern void cb_save_custom_html(Fl_Widget *w, void *d); |
| 1160 |
extern void cb_btn_select_custom_html(Fl_Widget *w, void *d); |
| 1161 |
|
| 1162 |
//===================================================================== |
| 1163 |
// CAP 105 |
| 1164 |
//===================================================================== |
| 1165 |
|
| 1166 |
extern std::string cap105_base_filename; |
| 1167 |
extern std::string cap105_def_filename; |
| 1168 |
extern std::string cap105_def_template_name; |
| 1169 |
|
| 1170 |
extern void cap105_cb_set_dtm(); |
| 1171 |
extern void cap105_cb_set_rcvd_dtm(); |
| 1172 |
extern void cap105_cb_set_sent_dtm(); |
| 1173 |
extern void cap105_cb_nbr(Fl_Widget *wdg); |
| 1174 |
extern void cap105_cb_filter_input(Fl_Widget *wdg); |
| 1175 |
extern void cap105_clear_fields(); |
| 1176 |
extern void cap105_set_choices(); |
| 1177 |
extern bool cap105_check_fields(); |
| 1178 |
extern void cap105_update_fields(); |
| 1179 |
extern void cap105_clear_form(); |
| 1180 |
extern void cap105_update_form(); |
| 1181 |
extern void cap105_make_buffer(bool compress = false); |
| 1182 |
extern void cap105_read_buffer(std::string data); |
| 1183 |
extern void cap105_cb_new(); |
| 1184 |
extern void cap105_cb_import(); |
| 1185 |
extern void cap105_cb_export(); |
| 1186 |
extern void cap105_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1187 |
extern int eval_cap105_fsize(); |
| 1188 |
extern void cap105_cb_wrap_export(); |
| 1189 |
extern void cap105_cb_wrap_autosend(); |
| 1190 |
extern void cap105_cb_load_template(); |
| 1191 |
extern void cap105_cb_save_template(); |
| 1192 |
extern void cap105_cb_save_as_template(); |
| 1193 |
extern void cap105_cb_open(); |
| 1194 |
extern void cap105_write(std::string s); |
| 1195 |
extern bool cap105_cb_save_as(); |
| 1196 |
extern void cap105_cb_save(); |
| 1197 |
extern void cap105_cb_check(); |
| 1198 |
extern void cap105_cb_html(); |
| 1199 |
extern void cap105_cb_textout(); |
| 1200 |
|
| 1201 |
//===================================================================== |
| 1202 |
// CAP 110 |
| 1203 |
//===================================================================== |
| 1204 |
|
| 1205 |
extern std::string cap110_def_filename; |
| 1206 |
extern std::string cap110_base_filename; |
| 1207 |
extern std::string cap110_def_template_name; |
| 1208 |
|
| 1209 |
extern void cap110_set_date(); |
| 1210 |
extern void clear_110fields(); |
| 1211 |
extern bool check_110fields(); |
| 1212 |
extern void update_110fields(); |
| 1213 |
extern void update_110form(); |
| 1214 |
extern void clear_110_form(); |
| 1215 |
extern std::string &cap110_nn(std::string & subst, int n); |
| 1216 |
extern void read_c110_buffer(std::string data); |
| 1217 |
extern void cap110_cb_load_template(std::string data); |
| 1218 |
extern void cap110_cb_new(); |
| 1219 |
extern void cap110_cb_import(); |
| 1220 |
extern void cap110_cb_export(); |
| 1221 |
extern void cap110_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1222 |
extern int eval_cap110_fsize(); |
| 1223 |
extern void cap110_cb_wrap_export(); |
| 1224 |
extern void cap110_cb_wrap_autosend(); |
| 1225 |
extern void cap110_cb_load_template(); |
| 1226 |
extern void cap110_cb_save_template(); |
| 1227 |
extern void cap110_cb_save_as_template(); |
| 1228 |
extern void cap110_cb_open(); |
| 1229 |
extern void write_110(std::string s); |
| 1230 |
extern bool cap110_cb_save_as(); |
| 1231 |
extern void cap110_cb_save(); |
| 1232 |
extern void cap110_cb_html(); |
| 1233 |
extern void cap110_cb_msg_type(); |
| 1234 |
extern void cap110_cb_textout(); |
| 1235 |
|
| 1236 |
//===================================================================== |
| 1237 |
// RAFAC ACP126 / F126 |
| 1238 |
//===================================================================== |
| 1239 |
|
| 1240 |
extern std::string f126_base_filename; |
| 1241 |
extern std::string f126_def_filename; |
| 1242 |
extern std::string f126_def_template_name; |
| 1243 |
|
| 1244 |
extern void f126_cb_set_dtm(); |
| 1245 |
extern void f126_cb_set_rcvd_dtm(); |
| 1246 |
extern void f126_cb_set_sent_dtm(); |
| 1247 |
extern void f126_cb_nbr(Fl_Widget *wdg); |
| 1248 |
extern void f126_cb_filter_input(Fl_Widget *wdg); |
| 1249 |
extern void f126_clear_fields(); |
| 1250 |
extern void f126_set_choices(); |
| 1251 |
extern bool f126_check_fields(); |
| 1252 |
extern void f126_update_fields(); |
| 1253 |
extern void f126_clear_form(); |
| 1254 |
extern void f126_update_form(); |
| 1255 |
extern void f126_make_buffer(bool compress = false); |
| 1256 |
extern void f126_read_buffer(std::string data); |
| 1257 |
extern void f126_cb_new(); |
| 1258 |
extern void f126_cb_import(); |
| 1259 |
extern void f126_cb_export(); |
| 1260 |
extern void f126_cb_wrap_import(std::string wrapfilename, std::string inpbuffer); |
| 1261 |
extern int eval_f126_fsize(); |
| 1262 |
extern void f126_cb_wrap_export(); |
| 1263 |
extern void f126_cb_wrap_autosend(); |
| 1264 |
extern void f126_cb_load_template(); |
| 1265 |
extern void f126_cb_save_template(); |
| 1266 |
extern void f126_cb_save_as_template(); |
| 1267 |
extern void f126_cb_open(); |
| 1268 |
extern void f126_write(std::string s); |
| 1269 |
extern bool f126_cb_save_as(); |
| 1270 |
extern void f126_cb_save(); |
| 1271 |
extern void f126_cb_check(); |
| 1272 |
extern void f126_cb_html(); |
| 1273 |
extern void f126_cb_textout(); |
| 1274 |
|
| 1275 |
#endif |