1 // ----------------------------------------------------------------------------
2 // fmt_dialog.h  --  fmt modem
3 //
4 // Copyright (C) 2020
5 //		Dave Freese, W1HKJ
6 //		JC Gibbons,  N8OBJ
7 //
8 // This file is part of fldigi.
9 //
10 // Fldigi is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Fldigi is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with fldigi.  If not, see <http://www.gnu.org/licenses/>.
22 // ----------------------------------------------------------------------------
23 
24 #ifndef fmt_dialog_h
25 #define fmt_dialog_h
26 #include <FL/Fl.H>
27 #include <FL/Fl_Double_Window.H>
28 #include <FL/Fl_Group.H>
29 
30 #include "plot_xy.h"
31 #include <FL/Fl_Check_Button.H>
32 #include <FL/Fl_Counter.H>
33 #include <FL/Fl_Button.H>
34 #include <FL/Fl_Light_Button.H>
35 #include <FL/Fl_Output.H>
36 #include <FL/Fl_Choice.H>
37 #include <FL/Fl_Box.H>
38 
39 #include "combo.h"
40 #include "fmt.h"
41 
42 extern plot_xy *fmt_plot;
43 
44 extern Fl_Group			*ref_group;
45 extern Fl_Light_Button	*btn_ref_enable;
46 extern Fl_Button		*btn_ref_up;
47 extern Fl_Counter		*cnt_ref_freq;
48 extern Fl_Button		*btn_ref_dn;
49 extern Fl_Button		*btn_ref_reset;
50 extern Fl_Button		*btn_ref_clear;
51 extern Fl_Output		*fmt_ref_val;
52 extern Fl_Output		*fmt_ref_db;
53 extern Fl_Box			*ref_color;
54 
55 extern Fl_Group			*unk_group;
56 extern Fl_Light_Button	*btn_unk_enable;
57 extern Fl_Button		*btn_unk_up;
58 extern Fl_Counter		*cnt_unk_freq;
59 extern Fl_Button		*btn_unk_dn;
60 extern Fl_Button		*btn_unk_reset;
61 extern Fl_Button		*btn_unk_clear;
62 extern Fl_Output		*fmt_unk_val;
63 extern Fl_Output		*fmt_unk_db;
64 extern Fl_Box			*unk_color;
65 
66 extern Fl_Group			*fmt_record_group;
67 extern Fl_Light_Button	*btn_fmt_record ;
68 extern Fl_Box			*box_fmt_recording;
69 
70 extern Fl_ListBox		*fmt_rec_interval;
71 extern Fl_ListBox		*fmt_scale;
72 extern Fl_ListBox		*fmt_cntr_minutes;
73 
74 extern Fl_Group* fmt_panel(int, int, int, int);
75 
76 extern void set_fmt_scope ();
77 
78 extern void clear_ref_scope();
79 extern void clear_unk_scope();
80 
81 extern void show_1(bool);
82 extern void show_2(bool);
83 
84 extern void cb_ref_reset (void *);
85 extern void cb_ref_clear (void *);
86 
87 extern void cb_unk_reset (void *);
88 extern void cb_unk_clear (void *);
89 
90 extern void put_unk_value (const char *msg);
91 extern void put_ref_value (const char *msg);
92 extern void put_unk_amp (const char *msg);
93 extern void put_ref_amp (const char *msg);
94 
95 extern void set_ref_freq (void *);
96 extern void set_unk_freq (void *);
97 extern void set_unk_freq_value(double f);
98 extern void set_ref_freq_value(double f);
99 
100 #endif
101