mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
Poll tuner
* add separate control to enable/disable polling of
tuner state
This commit is contained in:
parent
96e74e6488
commit
f0ad4da1db
4 changed files with 20 additions and 1 deletions
|
|
@ -91,6 +91,7 @@ Fl_Value_Input *poll_split = (Fl_Value_Input *)0;
|
|||
Fl_Value_Input *poll_noise = (Fl_Value_Input *)0;
|
||||
Fl_Value_Input *poll_nr = (Fl_Value_Input *)0;
|
||||
Fl_Value_Input *poll_compression = (Fl_Value_Input *)0;
|
||||
Fl_Value_Input *poll_tuner = (Fl_Value_Input *)0;
|
||||
Fl_Button *btnClearAddControls = (Fl_Button *)0;
|
||||
|
||||
Fl_Value_Input *poll_meters = (Fl_Value_Input *)0;
|
||||
|
|
@ -522,6 +523,10 @@ static void cb_poll_compression(Fl_Value_Input* o, void *) {
|
|||
progStatus.poll_compression = o->value();
|
||||
}
|
||||
|
||||
static void cb_poll_tuner(Fl_Value_Input* o, void *) {
|
||||
progStatus.poll_tuner = o->value();
|
||||
}
|
||||
|
||||
static void cb_poll_meters(Fl_Value_Input* o, void*) {
|
||||
progStatus.poll_meters = o->value();
|
||||
}
|
||||
|
|
@ -570,6 +575,7 @@ static void cb_btnSetAdd(Fl_Button*, void*) {
|
|||
poll_noise->value(progStatus.poll_all);
|
||||
poll_nr->value(progStatus.poll_all);
|
||||
poll_compression->value(progStatus.poll_all);
|
||||
poll_tuner->value(progStatus.poll_all);
|
||||
|
||||
progStatus.poll_volume = progStatus.poll_all;
|
||||
progStatus.poll_micgain = progStatus.poll_all;
|
||||
|
|
@ -584,6 +590,7 @@ static void cb_btnSetAdd(Fl_Button*, void*) {
|
|||
progStatus.poll_noise = progStatus.poll_all;
|
||||
progStatus.poll_nr = progStatus.poll_all;
|
||||
progStatus.poll_compression = progStatus.poll_all;
|
||||
progStatus.poll_tuner = progStatus.poll_all;
|
||||
}
|
||||
|
||||
static void cb_btn_send_command(Fl_Button *o, void*) {
|
||||
|
|
@ -1429,6 +1436,14 @@ Fl_Group *createPOLLING(int X, int Y, int W, int H, const char *label)
|
|||
poll_auto_notch->align(Fl_Align(FL_ALIGN_RIGHT));
|
||||
poll_auto_notch->value(progStatus.poll_auto_notch);
|
||||
|
||||
poll_tuner = new Fl_Value_Input(X + 280, Y + 140, 30, 20, _("Tuner"));
|
||||
poll_tuner->tooltip(_("Auto Tuner"));
|
||||
poll_tuner->maximum(10);
|
||||
poll_tuner->step(1);
|
||||
poll_tuner->callback((Fl_Callback*)cb_poll_tuner);
|
||||
poll_tuner->align(Fl_Align(FL_ALIGN_RIGHT));
|
||||
poll_tuner->value(progStatus.poll_tuner);
|
||||
|
||||
poll_pre_att = new Fl_Value_Input(X + 10, Y + 165, 30, 20, _("Pre/Att"));
|
||||
poll_pre_att->tooltip(_("Preamp / Attenuator"));
|
||||
poll_pre_att->maximum(10);
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ struct status {
|
|||
int poll_meters;
|
||||
int poll_ops;
|
||||
int poll_compression;
|
||||
int poll_tuner;
|
||||
int poll_all;
|
||||
|
||||
int iBW_A;
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ status progStatus = {
|
|||
1, // poll_meters;
|
||||
1, // poll_ops;
|
||||
1, // poll_compression;
|
||||
1, // poll_tuner;
|
||||
4, // int poll_all;
|
||||
|
||||
-1, // int iBW_A;
|
||||
|
|
@ -490,6 +491,7 @@ void status::saveLastState()
|
|||
spref.set("poll_noise", poll_noise);
|
||||
spref.set("poll_nr", poll_nr);
|
||||
spref.set("poll_compression", poll_compression);
|
||||
spref.set("poll_tuner", poll_tuner);
|
||||
spref.set("poll_all", poll_all);
|
||||
|
||||
spref.set("bw_A", iBW_A);
|
||||
|
|
@ -930,6 +932,7 @@ bool status::loadXcvrState(string xcvr)
|
|||
spref.get("poll_noise", poll_noise, poll_noise);
|
||||
spref.get("poll_nr", poll_nr, poll_nr);
|
||||
spref.get("poll_compression", poll_compression, poll_compression);
|
||||
spref.get("poll_tuner", poll_tuner, poll_tuner);
|
||||
spref.get("poll_all", poll_all, poll_all);
|
||||
|
||||
spref.get("bw_A", iBW_A, iBW_A);
|
||||
|
|
|
|||
|
|
@ -1061,7 +1061,7 @@ POLL_PAIR RX_poll_pairs[] = {
|
|||
{&progStatus.poll_mode, read_mode},
|
||||
{&progStatus.poll_bandwidth, read_bandwidth},
|
||||
{&progStatus.poll_smeter, read_smeter},
|
||||
{&progStatus.poll_smeter, read_tuner},
|
||||
{&progStatus.poll_tuner, read_tuner},
|
||||
{&progStatus.poll_volume, read_volume},
|
||||
{&progStatus.poll_auto_notch, read_auto_notch},
|
||||
{&progStatus.poll_notch, read_notch},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue