71 |
GtkWidget *vboxpage4; |
GtkWidget *vboxpage4; |
72 |
#if WANT_HAMLIB |
#if WANT_HAMLIB |
73 |
GtkWidget *hamlibvbox, *radiohbox, *radiolabel, *devicehbox, *devicelabel, |
GtkWidget *hamlibvbox, *radiohbox, *radiolabel, *devicehbox, *devicelabel, |
74 |
*hamlibseparator, *configurelabel, *pollingframe, *pollinghbox, *pollinglabel, |
*hamlibseparator, *configurelabel, *pollingframe, *pollinghbox, |
75 |
*secondslabel, *digitshbox, *digitslabel, *characterslabel; |
*pollinglabel, *secondslabel, *digitshbox, *digitslabel, *characterslabel, |
76 |
|
*fcccheckbutton; |
77 |
GList *riglist; |
GList *riglist; |
78 |
#endif |
#endif |
79 |
GtkWidget *vboxpage5, *logsframe, *logsvbox, *pathlabel, *pathhbox, |
GtkWidget *vboxpage5, *logsframe, *logsvbox, *pathlabel, *pathhbox, |
100 |
*pollingcheckbutton, *rigsetconfentry, *pollcombo; |
*pollingcheckbutton, *rigsetconfentry, *pollcombo; |
101 |
gchar *radio = NULL, *device = NULL, *digits = NULL, *pollstr = NULL, |
gchar *radio = NULL, *device = NULL, *digits = NULL, *pollstr = NULL, |
102 |
*rigconf = NULL; |
*rigconf = NULL; |
103 |
gboolean hamlibyes, frequencyyesno, smeteryesno, pollingyes, hamlibresult; |
gboolean hamlibyes, frequencyyesno, smeteryesno, pollingyes, fccyes, |
104 |
|
hamlibresult; |
105 |
gint i, indexradio = -1, numrigs, hamlibwidgets = 0; |
gint i, indexradio = -1, numrigs, hamlibwidgets = 0; |
106 |
#endif |
#endif |
107 |
|
|
357 |
hamlibseparator = gtk_hseparator_new (); |
hamlibseparator = gtk_hseparator_new (); |
358 |
gtk_box_pack_start |
gtk_box_pack_start |
359 |
(GTK_BOX (hamlibvbox), hamlibseparator, FALSE, FALSE, 10); |
(GTK_BOX (hamlibvbox), hamlibseparator, FALSE, FALSE, 10); |
360 |
|
fcccheckbutton = gtk_check_button_new_with_label |
361 |
|
(_("Use FCC emission designators for modes (e.g. A1A, J3E, etc.)")); |
362 |
|
gtk_label_set_line_wrap |
363 |
|
(GTK_LABEL (GTK_BIN (fcccheckbutton)->child), TRUE); |
364 |
|
gtk_box_pack_start |
365 |
|
(GTK_BOX (hamlibvbox), fcccheckbutton, FALSE, FALSE, 0); |
366 |
|
hamlibseparator = gtk_hseparator_new (); |
367 |
|
gtk_box_pack_start |
368 |
|
(GTK_BOX (hamlibvbox), hamlibseparator, FALSE, FALSE, 10); |
369 |
pollingcheckbutton = gtk_check_button_new_with_label |
pollingcheckbutton = gtk_check_button_new_with_label |
370 |
(_("Enable polling")); |
(_("Enable polling")); |
371 |
gtk_box_pack_start |
gtk_box_pack_start |
727 |
if (g_ascii_strcasecmp (preferences.rigconf, "?")) |
if (g_ascii_strcasecmp (preferences.rigconf, "?")) |
728 |
gtk_entry_set_text (GTK_ENTRY (rigsetconfentry), preferences.rigconf); |
gtk_entry_set_text (GTK_ENTRY (rigsetconfentry), preferences.rigconf); |
729 |
|
|
730 |
|
if (preferences.fcc == 1) |
731 |
|
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fcccheckbutton), TRUE); |
732 |
|
|
733 |
/* polling */ |
/* polling */ |
734 |
if (preferences.polltime == 0) |
if (preferences.polltime == 0) |
735 |
{ |
{ |
1023 |
(GTK_TOGGLE_BUTTON (smetercheckbutton)); |
(GTK_TOGGLE_BUTTON (smetercheckbutton)); |
1024 |
pollingyes = gtk_toggle_button_get_active |
pollingyes = gtk_toggle_button_get_active |
1025 |
(GTK_TOGGLE_BUTTON (pollingcheckbutton)); |
(GTK_TOGGLE_BUTTON (pollingcheckbutton)); |
1026 |
|
fccyes = gtk_toggle_button_get_active |
1027 |
|
(GTK_TOGGLE_BUTTON (fcccheckbutton)); |
1028 |
radio = gtk_editable_get_chars |
radio = gtk_editable_get_chars |
1029 |
(GTK_EDITABLE (GTK_BIN(radiocombo)->child), 0, -1); |
(GTK_EDITABLE (GTK_BIN(radiocombo)->child), 0, -1); |
1030 |
device = gtk_editable_get_chars |
device = gtk_editable_get_chars |
1051 |
sethamlibwidgets (hamlibwidgets, FALSE); |
sethamlibwidgets (hamlibwidgets, FALSE); |
1052 |
|
|
1053 |
preferences.round = atoi (digits); |
preferences.round = atoi (digits); |
1054 |
|
if (fccyes) |
1055 |
|
preferences.fcc = 1; |
1056 |
|
else |
1057 |
|
preferences.fcc = 0; |
1058 |
|
|
1059 |
/* hamlib should be started or restarted because settings have changed */ |
/* hamlib should be started or restarted because settings have changed */ |
1060 |
if (hamlib_changed |
if (hamlib_changed |