/[xlog]/xlog/src/gui_dialogsdialog.c
ViewVC logotype

Diff of /xlog/src/gui_dialogsdialog.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by pa4tu, Thu Jan 27 16:33:15 2005 UTC revision 1.10 by pa4tu, Sat Jun 4 19:59:58 2005 UTC
# Line 45  on_menu_dialogs_activate(GtkMenuItem * m Line 45  on_menu_dialogs_activate(GtkMenuItem * m
45                  *b410, *b411, *b412, *b413, *b414, *b415, *b416, *b417, *b418,                  *b410, *b411, *b412, *b413, *b414, *b415, *b416, *b417, *b418,
46                  *badif, *hsep, *bu1, *bu2, *bu3, *bu4, *bu5, *bu6, *bu7, *bu8,                  *badif, *hsep, *bu1, *bu2, *bu3, *bu4, *bu5, *bu6, *bu7, *bu8,
47                  *bu9, *bu10, *bu11, *bu12, *bu13, *bu14, *bu15, *bu16, *bu17,                  *bu9, *bu10, *bu11, *bu12, *bu13, *bu14, *bu15, *bu16, *bu17,
48                  *b4treeview, *tsvhbox;                  *b4treeview, *tsvhbox, *bucalc;
49          gchar **states, **split;          gchar **states, **split;
50          gboolean check;          gboolean check;
51          GtkTreeViewColumn *column;          GtkTreeViewColumn *column;
# Line 142  on_menu_dialogs_activate(GtkMenuItem * m Line 142  on_menu_dialogs_activate(GtkMenuItem * m
142          vbox = gtk_vbox_new (FALSE, 0);          vbox = gtk_vbox_new (FALSE, 0);
143          gtk_container_add (GTK_CONTAINER (notebook), vbox);          gtk_container_add (GTK_CONTAINER (notebook), vbox);
144    
145          label = gtk_label_new (_("Export options for the 'Save As' dialog"));          label = gtk_label_new (_("Options for the export dialog"));
146          gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 10);          gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 10);
147          gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);          gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
148    
149          frame = gtk_frame_new ("ADIF");          frame = gtk_frame_new ("ADIF");
150          gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);          gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
151          badif = gtk_check_button_new_with_label          badif = gtk_check_button_new_with_label
152                  (_("When saving as ADIF convert frequency to band"));                  (_("When exporting to ADIF convert frequency to band"));
153          if (preferences.saveasadif == 1)          if (preferences.saveasadif == 1)
154                  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (badif), TRUE);                  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (badif), TRUE);
155          gtk_container_add (GTK_CONTAINER (frame), badif);          gtk_container_add (GTK_CONTAINER (frame), badif);
# Line 231  on_menu_dialogs_activate(GtkMenuItem * m Line 231  on_menu_dialogs_activate(GtkMenuItem * m
231    
232          g_strfreev(split);          g_strfreev(split);
233    
234            hsep = gtk_hseparator_new ();
235            gtk_container_add (GTK_CONTAINER (vbox2), hsep);
236            bucalc = gtk_check_button_new_with_label
237    (_("Add calculated bearing and distance fields when the locator log field is used"));
238            gtk_label_set_line_wrap (GTK_LABEL (GTK_BIN (bucalc)->child), TRUE);
239            gtk_toggle_button_set_active
240                    (GTK_TOGGLE_BUTTON (bucalc), preferences.tsvcalc);
241            gtk_box_pack_start (GTK_BOX (vbox2), bucalc, FALSE, FALSE, 0);
242    
243          label = gtk_label_new (_("Worked Before"));          label = gtk_label_new (_("Worked Before"));
244          gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook),          gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook),
245                  gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), label);                  gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), label);
246          label = gtk_label_new (_("Save As"));          label = gtk_label_new (_("Export"));
247          gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook),          gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook),
248                  gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), label);                  gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), label);
249    
# Line 438  on_menu_dialogs_activate(GtkMenuItem * m Line 447  on_menu_dialogs_activate(GtkMenuItem * m
447                  for (i = 0; i < 17; i++)                  for (i = 0; i < 17; i++)
448                          g_free (states[i]);                          g_free (states[i]);
449                  g_free (states);                  g_free (states);
450    
451                    check = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(bucalc));
452                    if (check)
453                            preferences.tsvcalc = 1;
454                    else
455                            preferences.tsvcalc = 0;
456          }          }
457          gtk_widget_destroy (dialogsdialog);          gtk_widget_destroy (dialogsdialog);
458  }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26