From: John Melton G0ORX Date: Sat, 10 Oct 2020 16:09:21 +0000 (+0100) Subject: Add xvtrs to pa_menu X-Git-Url: https://git.rkrishnan.org/pf/components/install.html?a=commitdiff_plain;h=28f1076bcf904dcfda181733a2b9b020b1b66c76;p=pihpsdr.git Add xvtrs to pa_menu --- diff --git a/pa_menu.c b/pa_menu.c index c12a736..43c3890 100644 --- a/pa_menu.c +++ b/pa_menu.c @@ -280,7 +280,7 @@ void pa_menu(GtkWidget *parent) { break; } - + int b=0; for(i=0;ipa_calibration); gtk_widget_show(pa_r); - gtk_grid_attach(GTK_GRID(grid1),pa_r,((i/6)*2)+1,(i%6)+1,1,1); + gtk_grid_attach(GTK_GRID(grid1),pa_r,((b/6)*2)+1,(b%6)+1,1,1); g_signal_connect(pa_r,"value_changed",G_CALLBACK(pa_value_changed_cb),band); + + b++; } + for(i=BANDS;ititle)>0) { + GtkWidget *band_label=gtk_label_new(NULL); + char band_text[32]; + sprintf(band_text,"%s",band->title); + gtk_label_set_markup(GTK_LABEL(band_label), band_text); + //gtk_widget_override_font(band_label, pango_font_description_from_string("Arial 18")); + gtk_widget_show(band_label); + gtk_grid_attach(GTK_GRID(grid1),band_label,(b/6)*2,(b%6)+1,1,1); + + GtkWidget *pa_r=gtk_spin_button_new_with_range(38.8,100.0,0.1); + //gtk_widget_override_font(pa_r, pango_font_description_from_string("Arial 18")); + gtk_spin_button_set_value(GTK_SPIN_BUTTON(pa_r),(double)band->pa_calibration); + gtk_widget_show(pa_r); + gtk_grid_attach(GTK_GRID(grid1),pa_r,((b/6)*2)+1,(b%6)+1,1,1); + g_signal_connect(pa_r,"value_changed",G_CALLBACK(pa_value_changed_cb),band); + + b++; + } + } gtk_notebook_append_page(GTK_NOTEBOOK(notebook),grid1,gtk_label_new("Calibrate"));