123 |
*unknown1hbox, *unknown2hbox, *remarksvbox, *unknownlabel1, |
*unknown1hbox, *unknown2hbox, *remarksvbox, *unknownlabel1, |
124 |
*unknownlabel2, *dialog_vbox, *mainvbox, *mainhbox, *fieldlabel, |
*unknownlabel2, *dialog_vbox, *mainvbox, *mainhbox, *fieldlabel, |
125 |
*showhidelabel, *widthlabel, *hseparator, |
*showhidelabel, *widthlabel, *hseparator, |
126 |
*lehbox0, *lelabel0_1, *lelabel0_2, *lee0, |
*lehbox0, *lelabel0_1, *lecombo0, *lee0, |
127 |
*lehbox1, *lelabel1_1, *lelabel1_2, *lee1, |
*lehbox1, *lelabel1_1, *lelabel1_2, *lee1, |
128 |
*lehbox2, *lelabel2_1, *lelabel2_2, *lee2, |
*lehbox2, *lelabel2_1, *lelabel2_2, *lee2, |
129 |
*lehbox3, *lelabel3_1, *lecombo3, *lee3, |
*lehbox3, *lelabel3_1, *lecombo3, *lee3, |
192 |
gtk_widget_set_size_request (lehbox0, -1, 30); |
gtk_widget_set_size_request (lehbox0, -1, 30); |
193 |
lelabel0_1 = gtk_label_new (_("QSO Number")); |
lelabel0_1 = gtk_label_new (_("QSO Number")); |
194 |
gtk_box_pack_start (GTK_BOX (lehbox0), lelabel0_1, FALSE, FALSE, 0); |
gtk_box_pack_start (GTK_BOX (lehbox0), lelabel0_1, FALSE, FALSE, 0); |
195 |
lelabel0_2 = gtk_label_new (_("Show")); |
lecombo0 = gtk_combo_box_new_text (); |
196 |
gtk_box_pack_start (GTK_BOX (lehbox0), lelabel0_2, FALSE, FALSE, 0); |
gtk_box_pack_start (GTK_BOX (lehbox0), lecombo0, TRUE, TRUE, 0); |
197 |
|
gtk_combo_box_append_text (GTK_COMBO_BOX (lecombo0), _("Show")); |
198 |
|
gtk_combo_box_append_text (GTK_COMBO_BOX (lecombo0), _("Hide")); |
199 |
lee0 = gtk_entry_new (); |
lee0 = gtk_entry_new (); |
200 |
gtk_widget_set_size_request (lee0, 50, -1); |
gtk_widget_set_size_request (lee0, 50, -1); |
201 |
gtk_box_pack_start (GTK_BOX (lehbox0), lee0, FALSE, FALSE, 0); |
gtk_box_pack_start (GTK_BOX (lehbox0), lee0, FALSE, FALSE, 0); |
437 |
gtk_dialog_add_action_widget (GTK_DIALOG (logeditor), logeditorokbutton, GTK_RESPONSE_OK); |
gtk_dialog_add_action_widget (GTK_DIALOG (logeditor), logeditorokbutton, GTK_RESPONSE_OK); |
438 |
GTK_WIDGET_SET_FLAGS (logeditorokbutton, GTK_CAN_DEFAULT); |
GTK_WIDGET_SET_FLAGS (logeditorokbutton, GTK_CAN_DEFAULT); |
439 |
|
|
440 |
|
logw = g_list_nth_data (logwindowlist, page); |
441 |
|
column = gtk_tree_view_get_column (GTK_TREE_VIEW (logw->treeview), NR); |
442 |
|
if (gtk_tree_view_column_get_visible (column)) |
443 |
|
gtk_combo_box_set_active (GTK_COMBO_BOX (lecombo0), 0); |
444 |
|
else |
445 |
|
gtk_combo_box_set_active (GTK_COMBO_BOX (lecombo0), 1); |
446 |
|
|
447 |
endhbox = lookup_widget (mainwindow, "endhbox"); |
endhbox = lookup_widget (mainwindow, "endhbox"); |
448 |
if (GTK_WIDGET_VISIBLE (endhbox)) |
if (GTK_WIDGET_VISIBLE (endhbox)) |
449 |
gtk_combo_box_set_active (GTK_COMBO_BOX (lecombo3), 0); |
gtk_combo_box_set_active (GTK_COMBO_BOX (lecombo3), 0); |
505 |
if (response == GTK_RESPONSE_OK) |
if (response == GTK_RESPONSE_OK) |
506 |
{ |
{ |
507 |
|
|
|
logw = g_list_nth_data (logwindowlist, page); |
|
|
|
|
508 |
/* fields is the array with visible columns */ |
/* fields is the array with visible columns */ |
509 |
for (i = 0; i < logw->columns; i++) |
for (i = 0; i < logw->columns; i++) |
510 |
fields[i] = logw->logfields[i]; |
fields[i] = logw->logfields[i]; |
512 |
fields[i] = 0; |
fields[i] = 0; |
513 |
|
|
514 |
/* show/hide columns and update the array */ |
/* show/hide columns and update the array */ |
515 |
|
index = gtk_combo_box_get_active (GTK_COMBO_BOX (lecombo0)); |
516 |
|
column = gtk_tree_view_get_column (GTK_TREE_VIEW (logw->treeview), NR); |
517 |
|
if (index == 1) |
518 |
|
{ |
519 |
|
gtk_tree_view_column_set_visible (GTK_TREE_VIEW_COLUMN(column), FALSE); |
520 |
|
preferences.shownr = 0; |
521 |
|
} |
522 |
|
else |
523 |
|
{ |
524 |
|
gtk_tree_view_column_set_visible (GTK_TREE_VIEW_COLUMN(column), TRUE); |
525 |
|
preferences.shownr = 1; |
526 |
|
} |
527 |
|
|
528 |
index = gtk_combo_box_get_active (GTK_COMBO_BOX (lecombo3)); |
index = gtk_combo_box_get_active (GTK_COMBO_BOX (lecombo3)); |
529 |
column = gtk_tree_view_get_column (GTK_TREE_VIEW (logw->treeview), GMTEND); |
column = gtk_tree_view_get_column (GTK_TREE_VIEW (logw->treeview), GMTEND); |
530 |
if (index == 1) |
if (index == 1) |