mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Remove unneeded files, we have switched to use the libglade and there is no
need for these generated files. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1864 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
071d35750a
commit
7ff4fa26c0
@ -1,10 +0,0 @@
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainsertcitation_callbacks.h"
|
||||
#include "diainsertcitation_interface.h"
|
||||
#include "support.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include <gnome.h>
|
||||
|
@ -1,333 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainsertcitation_callbacks.h"
|
||||
#include "diainsertcitation_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
GtkWidget*
|
||||
create_DiaInsertCitation (void)
|
||||
{
|
||||
GtkWidget *DiaInsertCitation;
|
||||
GtkWidget *dialog_vbox2;
|
||||
GtkWidget *vbox4;
|
||||
GtkWidget *vpaned_info;
|
||||
GtkWidget *hpaned_key;
|
||||
GtkWidget *vbox_keys;
|
||||
GtkWidget *label17;
|
||||
GtkWidget *scrolledwindow2;
|
||||
GtkWidget *clist_selected;
|
||||
GtkWidget *label18;
|
||||
GtkWidget *table2;
|
||||
GtkWidget *label19;
|
||||
GtkWidget *vbuttonbox2;
|
||||
GtkWidget *button_select;
|
||||
GtkWidget *button_unselect;
|
||||
GtkWidget *button_up;
|
||||
GtkWidget *button_down;
|
||||
GtkWidget *scrolledwindow_bib;
|
||||
GtkWidget *hbox3;
|
||||
GtkWidget *search_text;
|
||||
GtkWidget *combo_entry1;
|
||||
GtkWidget *button_search;
|
||||
GtkWidget *button_regexp;
|
||||
GtkWidget *vbox5;
|
||||
GtkWidget *alignment2;
|
||||
GtkWidget *label16;
|
||||
GtkWidget *info;
|
||||
GtkWidget *hbox2;
|
||||
GtkWidget *label15;
|
||||
GtkWidget *text_after;
|
||||
GtkWidget *entry3;
|
||||
GtkWidget *dialog_action_area2;
|
||||
GtkWidget *button_ok;
|
||||
GtkWidget *button_cancel;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
DiaInsertCitation = gnome_dialog_new (_("Insert Citation"), NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertCitation), "DiaInsertCitation", DiaInsertCitation);
|
||||
GTK_WINDOW (DiaInsertCitation)->type = GTK_WINDOW_DIALOG;
|
||||
gtk_window_set_policy (GTK_WINDOW (DiaInsertCitation), TRUE, TRUE, FALSE);
|
||||
|
||||
dialog_vbox2 = GNOME_DIALOG (DiaInsertCitation)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertCitation), "dialog_vbox2", dialog_vbox2);
|
||||
gtk_widget_show (dialog_vbox2);
|
||||
|
||||
vbox4 = gtk_vbox_new (FALSE, 4);
|
||||
gtk_widget_ref (vbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "vbox4", vbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox4);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox4, TRUE, TRUE, 0);
|
||||
|
||||
vpaned_info = gtk_vpaned_new ();
|
||||
gtk_widget_ref (vpaned_info);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "vpaned_info", vpaned_info,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vpaned_info);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), vpaned_info, TRUE, TRUE, 0);
|
||||
gtk_paned_set_gutter_size (GTK_PANED (vpaned_info), 10);
|
||||
gtk_paned_set_position (GTK_PANED (vpaned_info), 245);
|
||||
|
||||
hpaned_key = gtk_hpaned_new ();
|
||||
gtk_widget_ref (hpaned_key);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "hpaned_key", hpaned_key,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hpaned_key);
|
||||
gtk_paned_pack1 (GTK_PANED (vpaned_info), hpaned_key, FALSE, TRUE);
|
||||
gtk_paned_set_gutter_size (GTK_PANED (hpaned_key), 10);
|
||||
gtk_paned_set_position (GTK_PANED (hpaned_key), 250);
|
||||
|
||||
vbox_keys = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_ref (vbox_keys);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "vbox_keys", vbox_keys,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox_keys);
|
||||
gtk_paned_pack1 (GTK_PANED (hpaned_key), vbox_keys, FALSE, TRUE);
|
||||
|
||||
label17 = gtk_label_new (_("Insert keys:"));
|
||||
gtk_widget_ref (label17);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "label17", label17,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label17);
|
||||
gtk_box_pack_start (GTK_BOX (vbox_keys), label17, FALSE, FALSE, 0);
|
||||
|
||||
scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "scrolledwindow2", scrolledwindow2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (scrolledwindow2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox_keys), scrolledwindow2, TRUE, TRUE, 0);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
||||
clist_selected = gtk_clist_new (1);
|
||||
gtk_widget_ref (clist_selected);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "clist_selected", clist_selected,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (clist_selected);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow2), clist_selected);
|
||||
gtk_clist_set_column_width (GTK_CLIST (clist_selected), 0, 80);
|
||||
gtk_clist_column_titles_hide (GTK_CLIST (clist_selected));
|
||||
|
||||
label18 = gtk_label_new ("");
|
||||
gtk_widget_ref (label18);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "label18", label18,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label18);
|
||||
gtk_clist_set_column_widget (GTK_CLIST (clist_selected), 0, label18);
|
||||
|
||||
table2 = gtk_table_new (3, 2, FALSE);
|
||||
gtk_widget_ref (table2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "table2", table2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (table2);
|
||||
gtk_paned_pack2 (GTK_PANED (hpaned_key), table2, TRUE, TRUE);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table2), 3);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table2), 3);
|
||||
|
||||
label19 = gtk_label_new (_("Bibliography keys: "));
|
||||
gtk_widget_ref (label19);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "label19", label19,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label19);
|
||||
gtk_table_attach (GTK_TABLE (table2), label19, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
vbuttonbox2 = gtk_vbutton_box_new ();
|
||||
gtk_widget_ref (vbuttonbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "vbuttonbox2", vbuttonbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbuttonbox2);
|
||||
gtk_table_attach (GTK_TABLE (table2), vbuttonbox2, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_FILL), 0, 0);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (vbuttonbox2), GTK_BUTTONBOX_START);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (vbuttonbox2), 0);
|
||||
gtk_button_box_set_child_size (GTK_BUTTON_BOX (vbuttonbox2), 0, 27);
|
||||
|
||||
button_select = gtk_button_new ();
|
||||
gtk_widget_ref (button_select);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_select", button_select,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_select);
|
||||
gtk_container_add (GTK_CONTAINER (vbuttonbox2), button_select);
|
||||
GTK_WIDGET_SET_FLAGS (button_select, GTK_CAN_DEFAULT);
|
||||
gtk_tooltips_set_tip (tooltips, button_select, _("Select"), NULL);
|
||||
|
||||
button_unselect = gtk_button_new ();
|
||||
gtk_widget_ref (button_unselect);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_unselect", button_unselect,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_unselect);
|
||||
gtk_container_add (GTK_CONTAINER (vbuttonbox2), button_unselect);
|
||||
GTK_WIDGET_SET_FLAGS (button_unselect, GTK_CAN_DEFAULT);
|
||||
gtk_tooltips_set_tip (tooltips, button_unselect, _("Remove"), NULL);
|
||||
|
||||
button_up = gtk_button_new ();
|
||||
gtk_widget_ref (button_up);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_up", button_up,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_up);
|
||||
gtk_container_add (GTK_CONTAINER (vbuttonbox2), button_up);
|
||||
GTK_WIDGET_SET_FLAGS (button_up, GTK_CAN_DEFAULT);
|
||||
gtk_tooltips_set_tip (tooltips, button_up, _("Up"), NULL);
|
||||
|
||||
button_down = gtk_button_new ();
|
||||
gtk_widget_ref (button_down);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_down", button_down,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_down);
|
||||
gtk_container_add (GTK_CONTAINER (vbuttonbox2), button_down);
|
||||
GTK_WIDGET_SET_FLAGS (button_down, GTK_CAN_DEFAULT);
|
||||
gtk_tooltips_set_tip (tooltips, button_down, _("Down"), NULL);
|
||||
|
||||
scrolledwindow_bib = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow_bib);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "scrolledwindow_bib", scrolledwindow_bib,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (scrolledwindow_bib);
|
||||
gtk_table_attach (GTK_TABLE (table2), scrolledwindow_bib, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow_bib), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
||||
hbox3 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_ref (hbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "hbox3", hbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox3);
|
||||
gtk_table_attach (GTK_TABLE (table2), hbox3, 1, 2, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (hbox3), 3);
|
||||
|
||||
search_text = gnome_entry_new ("diainsertcitation_search");
|
||||
gtk_widget_ref (search_text);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "search_text", search_text,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (search_text);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), search_text, TRUE, TRUE, 0);
|
||||
|
||||
combo_entry1 = gnome_entry_gtk_entry (GNOME_ENTRY (search_text));
|
||||
gtk_widget_ref (combo_entry1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "combo_entry1", combo_entry1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry1);
|
||||
|
||||
button_search = gtk_button_new_with_label (_("Search"));
|
||||
gtk_widget_ref (button_search);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_search", button_search,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_search);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_search, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (button_search), 2);
|
||||
|
||||
button_regexp = gtk_check_button_new_with_label (_("Use Regular Expression"));
|
||||
gtk_widget_ref (button_regexp);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_regexp", button_regexp,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_regexp);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), button_regexp, FALSE, FALSE, 0);
|
||||
|
||||
vbox5 = gtk_vbox_new (FALSE, 1);
|
||||
gtk_widget_ref (vbox5);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "vbox5", vbox5,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox5);
|
||||
gtk_paned_pack2 (GTK_PANED (vpaned_info), vbox5, TRUE, TRUE);
|
||||
|
||||
alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
|
||||
gtk_widget_ref (alignment2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "alignment2", alignment2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (alignment2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), alignment2, FALSE, TRUE, 0);
|
||||
|
||||
label16 = gtk_label_new (_("Info:"));
|
||||
gtk_widget_ref (label16);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "label16", label16,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label16);
|
||||
gtk_container_add (GTK_CONTAINER (alignment2), label16);
|
||||
gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label16), 1.08033e-07, 1);
|
||||
|
||||
info = gnome_less_new ();
|
||||
gtk_widget_ref (info);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "info", info,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (info);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), info, TRUE, TRUE, 0);
|
||||
gtk_widget_set_usize (info, -2, 120);
|
||||
|
||||
hbox2 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_ref (hbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "hbox2", hbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), hbox2, FALSE, FALSE, 0);
|
||||
|
||||
label15 = gtk_label_new (_("Text after: "));
|
||||
gtk_widget_ref (label15);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "label15", label15,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label15);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), label15, FALSE, FALSE, 0);
|
||||
|
||||
text_after = gnome_entry_new ("diainsertcitation_textafter");
|
||||
gtk_widget_ref (text_after);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "text_after", text_after,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (text_after);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), text_after, TRUE, TRUE, 0);
|
||||
|
||||
entry3 = gnome_entry_gtk_entry (GNOME_ENTRY (text_after));
|
||||
gtk_widget_ref (entry3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "entry3", entry3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (entry3);
|
||||
|
||||
dialog_action_area2 = GNOME_DIALOG (DiaInsertCitation)->action_area;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertCitation), "dialog_action_area2", dialog_action_area2);
|
||||
gtk_widget_show (dialog_action_area2);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area2), 8);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertCitation), GNOME_STOCK_BUTTON_OK);
|
||||
button_ok = g_list_last (GNOME_DIALOG (DiaInsertCitation)->buttons)->data;
|
||||
gtk_widget_ref (button_ok);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_ok", button_ok,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_ok);
|
||||
GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertCitation), GNOME_STOCK_BUTTON_CANCEL);
|
||||
button_cancel = g_list_last (GNOME_DIALOG (DiaInsertCitation)->buttons)->data;
|
||||
gtk_widget_ref (button_cancel);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertCitation), "button_cancel", button_cancel,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_cancel);
|
||||
GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT);
|
||||
|
||||
gtk_widget_grab_focus (button_ok);
|
||||
gtk_widget_grab_default (button_ok);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertCitation), "tooltips", tooltips);
|
||||
|
||||
return DiaInsertCitation;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
GtkWidget* create_DiaInsertCitation (void);
|
@ -1,19 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainsertindex_callbacks.h"
|
||||
#include "diainsertindex_interface.h"
|
||||
#include "support.h"
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#include <gnome.h>
|
||||
|
@ -1,100 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainsertindex_callbacks.h"
|
||||
#include "diainsertindex_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
GtkWidget*
|
||||
create_DiaInsertIndex (void)
|
||||
{
|
||||
GtkWidget *DiaInsertIndex;
|
||||
GtkWidget *dialog_vbox1;
|
||||
GtkWidget *hbox1;
|
||||
GtkWidget *label;
|
||||
GtkWidget *keyword;
|
||||
GtkWidget *combo_entry1;
|
||||
GtkWidget *dialog_action_area1;
|
||||
GtkWidget *button_ok;
|
||||
GtkWidget *button_cancel;
|
||||
|
||||
DiaInsertIndex = gnome_dialog_new (_("Insert Index"), NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "DiaInsertIndex", DiaInsertIndex);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (DiaInsertIndex), 2);
|
||||
GTK_WINDOW (DiaInsertIndex)->type = GTK_WINDOW_DIALOG;
|
||||
gtk_window_set_policy (GTK_WINDOW (DiaInsertIndex), TRUE, TRUE, FALSE);
|
||||
|
||||
dialog_vbox1 = GNOME_DIALOG (DiaInsertIndex)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "dialog_vbox1", dialog_vbox1);
|
||||
gtk_widget_show (dialog_vbox1);
|
||||
|
||||
hbox1 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_ref (hbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "hbox1", hbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox1);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (hbox1), 2);
|
||||
|
||||
label = gtk_label_new (_("Keyword"));
|
||||
gtk_widget_ref (label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "label", label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
|
||||
|
||||
keyword = gnome_entry_new ("diainsertindex_keyword");
|
||||
gtk_widget_ref (keyword);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "keyword", keyword,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (keyword);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), keyword, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (keyword), 2);
|
||||
|
||||
combo_entry1 = gnome_entry_gtk_entry (GNOME_ENTRY (keyword));
|
||||
gtk_widget_ref (combo_entry1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "combo_entry1", combo_entry1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry1);
|
||||
GTK_WIDGET_SET_FLAGS (combo_entry1, GTK_CAN_DEFAULT);
|
||||
|
||||
dialog_action_area1 = GNOME_DIALOG (DiaInsertIndex)->action_area;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "dialog_action_area1", dialog_action_area1);
|
||||
gtk_widget_show (dialog_action_area1);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area1), 8);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertIndex), GNOME_STOCK_BUTTON_OK);
|
||||
button_ok = g_list_last (GNOME_DIALOG (DiaInsertIndex)->buttons)->data;
|
||||
gtk_widget_ref (button_ok);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "button_ok", button_ok,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_ok);
|
||||
GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertIndex), GNOME_STOCK_BUTTON_CANCEL);
|
||||
button_cancel = g_list_last (GNOME_DIALOG (DiaInsertIndex)->buttons)->data;
|
||||
gtk_widget_ref (button_cancel);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "button_cancel", button_cancel,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_cancel);
|
||||
GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT);
|
||||
|
||||
gtk_widget_grab_focus (combo_entry1);
|
||||
gtk_widget_grab_default (combo_entry1);
|
||||
return DiaInsertIndex;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
GtkWidget* create_DiaInsertIndex (void);
|
@ -1,19 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainserturl_callbacks.h"
|
||||
#include "diainserturl_interface.h"
|
||||
#include "support.h"
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#include <gnome.h>
|
||||
|
@ -1,161 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diainserturl_callbacks.h"
|
||||
#include "diainserturl_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
GtkWidget*
|
||||
create_DiaInsertUrl (void)
|
||||
{
|
||||
GtkWidget *DiaInsertUrl;
|
||||
GtkWidget *dialog_vbox1;
|
||||
GtkWidget *vbox1;
|
||||
GtkWidget *table1;
|
||||
GtkWidget *label2;
|
||||
GtkWidget *label1;
|
||||
GtkWidget *url;
|
||||
GtkWidget *combo_entry1;
|
||||
GtkWidget *name;
|
||||
GtkWidget *combo_entry2;
|
||||
guint html_type_key;
|
||||
GtkWidget *html_type;
|
||||
GtkWidget *dialog_action_area1;
|
||||
GtkWidget *button_ok;
|
||||
GtkWidget *button_cancel;
|
||||
GtkAccelGroup *accel_group;
|
||||
|
||||
accel_group = gtk_accel_group_new ();
|
||||
|
||||
DiaInsertUrl = gnome_dialog_new (_("Insert URL"), NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertUrl), "DiaInsertUrl", DiaInsertUrl);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (DiaInsertUrl), 2);
|
||||
GTK_WINDOW (DiaInsertUrl)->type = GTK_WINDOW_DIALOG;
|
||||
gtk_window_set_policy (GTK_WINDOW (DiaInsertUrl), TRUE, TRUE, FALSE);
|
||||
|
||||
dialog_vbox1 = GNOME_DIALOG (DiaInsertUrl)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertUrl), "dialog_vbox1", dialog_vbox1);
|
||||
gtk_widget_show (dialog_vbox1);
|
||||
|
||||
vbox1 = gtk_vbox_new (FALSE, 2);
|
||||
gtk_widget_ref (vbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "vbox1", vbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox1);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
|
||||
|
||||
table1 = gtk_table_new (2, 2, FALSE);
|
||||
gtk_widget_ref (table1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "table1", table1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (table1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), table1, TRUE, TRUE, 0);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table1), 2);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table1), 2);
|
||||
|
||||
label2 = gtk_label_new (_("Name"));
|
||||
gtk_widget_ref (label2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "label2", label2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label2);
|
||||
gtk_table_attach (GTK_TABLE (table1), label2, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
|
||||
|
||||
label1 = gtk_label_new (_("URL"));
|
||||
gtk_widget_ref (label1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "label1", label1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label1);
|
||||
gtk_table_attach (GTK_TABLE (table1), label1, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
|
||||
|
||||
url = gnome_entry_new ("diainserturl_url");
|
||||
gtk_widget_ref (url);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "url", url,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (url);
|
||||
gtk_table_attach (GTK_TABLE (table1), url, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (url), 1);
|
||||
|
||||
combo_entry1 = gnome_entry_gtk_entry (GNOME_ENTRY (url));
|
||||
gtk_widget_ref (combo_entry1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "combo_entry1", combo_entry1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry1);
|
||||
GTK_WIDGET_SET_FLAGS (combo_entry1, GTK_CAN_DEFAULT);
|
||||
|
||||
name = gnome_entry_new ("diainserturl_name");
|
||||
gtk_widget_ref (name);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "name", name,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (name);
|
||||
gtk_table_attach (GTK_TABLE (table1), name, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (name), 1);
|
||||
|
||||
combo_entry2 = gnome_entry_gtk_entry (GNOME_ENTRY (name));
|
||||
gtk_widget_ref (combo_entry2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "combo_entry2", combo_entry2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry2);
|
||||
|
||||
html_type = gtk_check_button_new_with_label ("");
|
||||
html_type_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (html_type)->child),
|
||||
_("_HTML type"));
|
||||
gtk_widget_add_accelerator (html_type, "clicked", accel_group,
|
||||
html_type_key, GDK_MOD1_MASK, 0);
|
||||
gtk_widget_ref (html_type);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "html_type", html_type,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (html_type);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), html_type, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (html_type), 2);
|
||||
|
||||
dialog_action_area1 = GNOME_DIALOG (DiaInsertUrl)->action_area;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaInsertUrl), "dialog_action_area1", dialog_action_area1);
|
||||
gtk_widget_show (dialog_action_area1);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area1), 8);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertUrl), GNOME_STOCK_BUTTON_OK);
|
||||
button_ok = g_list_last (GNOME_DIALOG (DiaInsertUrl)->buttons)->data;
|
||||
gtk_widget_ref (button_ok);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "button_ok", button_ok,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_ok);
|
||||
GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaInsertUrl), GNOME_STOCK_BUTTON_CANCEL);
|
||||
button_cancel = g_list_last (GNOME_DIALOG (DiaInsertUrl)->buttons)->data;
|
||||
gtk_widget_ref (button_cancel);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaInsertUrl), "button_cancel", button_cancel,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_cancel);
|
||||
GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT);
|
||||
|
||||
gtk_widget_grab_focus (combo_entry1);
|
||||
gtk_widget_grab_default (combo_entry1);
|
||||
gtk_window_add_accel_group (GTK_WINDOW (DiaInsertUrl), accel_group);
|
||||
|
||||
return DiaInsertUrl;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
GtkWidget* create_DiaInsertUrl (void);
|
@ -1,100 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
/* Print dialog callbacks
|
||||
* Controls the state of the widgets
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diaprint_callbacks.h"
|
||||
#include "diaprint_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
|
||||
void
|
||||
diaprint_set_printdest_state( GtkWidget *wid, gboolean active_is_printer )
|
||||
{
|
||||
if (active_is_printer)
|
||||
{
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "printto_printcommand"), TRUE);
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "printto_fileentry"), FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "printto_printcommand"), FALSE);
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "printto_fileentry"), TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
diaprint_set_pages_state( GtkWidget *wid, gboolean active_pages )
|
||||
{
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "print_from"), active_pages);
|
||||
gtk_widget_set_sensitive(lookup_widget(wid, "print_to"), active_pages);
|
||||
}
|
||||
|
||||
void
|
||||
diaprint_on_diaprint_show (GtkWidget *widget,
|
||||
gpointer user_data)
|
||||
{
|
||||
diaprint_set_printdest_state(widget,
|
||||
gtk_toggle_button_get_active
|
||||
(GTK_TOGGLE_BUTTON(lookup_widget(widget, "printto_printer")))
|
||||
);
|
||||
diaprint_set_pages_state(widget,
|
||||
gtk_toggle_button_get_active
|
||||
(GTK_TOGGLE_BUTTON(lookup_widget(widget, "print_pages")))
|
||||
);
|
||||
}
|
||||
|
||||
void
|
||||
diaprint_on_printto_file_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data)
|
||||
{
|
||||
diaprint_set_printdest_state(GTK_WIDGET(togglebutton), FALSE);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
diaprint_on_printto_printer_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data)
|
||||
{
|
||||
diaprint_set_printdest_state(GTK_WIDGET(togglebutton), TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
diaprint_on_print_pages_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data)
|
||||
{
|
||||
diaprint_set_pages_state(GTK_WIDGET(togglebutton),
|
||||
gtk_toggle_button_get_active(togglebutton));
|
||||
}
|
||||
|
||||
void
|
||||
diaprint_on_print_from_changed (GtkEditable *editable,
|
||||
gpointer user_data)
|
||||
{
|
||||
int nmin = gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON(editable) );
|
||||
GtkSpinButton * to = GTK_SPIN_BUTTON(lookup_widget(GTK_WIDGET(editable), "print_to"));
|
||||
GtkAdjustment * a = gtk_spin_button_get_adjustment(to);
|
||||
int v = gtk_spin_button_get_value_as_int(to);
|
||||
|
||||
a->lower = nmin;
|
||||
if (v < nmin)
|
||||
gtk_spin_button_set_value(to, nmin);
|
||||
else
|
||||
gtk_spin_button_set_value(to, v);
|
||||
}
|
||||
|
||||
|
@ -1,36 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
|
||||
void
|
||||
diaprint_on_diaprint_show (GtkWidget *widget,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
diaprint_on_print_all_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
diaprint_on_print_pages_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
diaprint_on_printto_file_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
diaprint_on_printto_printer_toggled (GtkToggleButton *togglebutton,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
diaprint_on_print_from_changed (GtkEditable *editable,
|
||||
gpointer user_data);
|
||||
|
@ -1,424 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diaprint_callbacks.h"
|
||||
#include "diaprint_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
GtkWidget*
|
||||
create_DiaPrint (void)
|
||||
{
|
||||
GtkWidget *DiaPrint;
|
||||
GtkWidget *dialog_vbox1;
|
||||
GtkWidget *vbox1;
|
||||
GtkWidget *hbox1;
|
||||
GtkWidget *frame2;
|
||||
GtkWidget *vbox2;
|
||||
GSList *print_group = NULL;
|
||||
guint print_all_key;
|
||||
GtkWidget *print_all;
|
||||
guint print_odd_key;
|
||||
GtkWidget *print_odd;
|
||||
guint print_even_key;
|
||||
GtkWidget *print_even;
|
||||
GtkWidget *hbox2;
|
||||
guint print_pages_key;
|
||||
GtkWidget *print_pages;
|
||||
GtkWidget *label1;
|
||||
GtkObject *print_from_adj;
|
||||
GtkWidget *print_from;
|
||||
GtkWidget *label2;
|
||||
GtkObject *print_to_adj;
|
||||
GtkWidget *print_to;
|
||||
GtkWidget *vbox3;
|
||||
GtkWidget *frame3;
|
||||
GtkWidget *vbox4;
|
||||
GSList *order_group = NULL;
|
||||
guint order_normal_key;
|
||||
GtkWidget *order_normal;
|
||||
guint order_reverse_key;
|
||||
GtkWidget *order_reverse;
|
||||
GtkWidget *frame4;
|
||||
GtkWidget *vbox5;
|
||||
guint copies_unsorted_key;
|
||||
GtkWidget *copies_unsorted;
|
||||
GtkWidget *hbox3;
|
||||
GtkWidget *label3;
|
||||
GtkObject *copies_count_adj;
|
||||
GtkWidget *copies_count;
|
||||
GtkWidget *frame1;
|
||||
GtkWidget *table1;
|
||||
GSList *printto_group = NULL;
|
||||
guint printto_file_key;
|
||||
GtkWidget *printto_file;
|
||||
guint printto_printer_key;
|
||||
GtkWidget *printto_printer;
|
||||
GtkWidget *printto_fileentry;
|
||||
GtkWidget *combo_entry1;
|
||||
GtkWidget *printto_printcommand;
|
||||
GtkWidget *combo_entry2;
|
||||
GtkWidget *dialog_action_area1;
|
||||
GtkWidget *button_print;
|
||||
GtkWidget *button_cancel;
|
||||
GtkAccelGroup *accel_group;
|
||||
|
||||
accel_group = gtk_accel_group_new ();
|
||||
|
||||
DiaPrint = gnome_dialog_new (_("Print"), NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaPrint), "DiaPrint", DiaPrint);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (DiaPrint), 2);
|
||||
GTK_WINDOW (DiaPrint)->type = GTK_WINDOW_DIALOG;
|
||||
gtk_window_set_policy (GTK_WINDOW (DiaPrint), FALSE, FALSE, FALSE);
|
||||
|
||||
dialog_vbox1 = GNOME_DIALOG (DiaPrint)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaPrint), "dialog_vbox1", dialog_vbox1);
|
||||
gtk_widget_show (dialog_vbox1);
|
||||
|
||||
vbox1 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "vbox1", vbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox1);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
|
||||
|
||||
hbox1 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "hbox1", hbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0);
|
||||
|
||||
frame2 = gtk_frame_new (_("Print"));
|
||||
gtk_widget_ref (frame2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "frame2", frame2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), frame2, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (frame2), 2);
|
||||
|
||||
vbox2 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "vbox2", vbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox2);
|
||||
gtk_container_add (GTK_CONTAINER (frame2), vbox2);
|
||||
|
||||
print_all = gtk_radio_button_new_with_label (print_group, "");
|
||||
print_all_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (print_all)->child),
|
||||
_("All Pa_ges"));
|
||||
gtk_widget_add_accelerator (print_all, "clicked", accel_group,
|
||||
print_all_key, GDK_MOD1_MASK, 0);
|
||||
print_group = gtk_radio_button_group (GTK_RADIO_BUTTON (print_all));
|
||||
gtk_widget_ref (print_all);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_all", print_all,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_all);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), print_all, FALSE, FALSE, 0);
|
||||
|
||||
print_odd = gtk_radio_button_new_with_label (print_group, "");
|
||||
print_odd_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (print_odd)->child),
|
||||
_("_Only Odd Pages"));
|
||||
gtk_widget_add_accelerator (print_odd, "clicked", accel_group,
|
||||
print_odd_key, GDK_MOD1_MASK, 0);
|
||||
print_group = gtk_radio_button_group (GTK_RADIO_BUTTON (print_odd));
|
||||
gtk_widget_ref (print_odd);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_odd", print_odd,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_odd);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), print_odd, FALSE, FALSE, 0);
|
||||
|
||||
print_even = gtk_radio_button_new_with_label (print_group, "");
|
||||
print_even_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (print_even)->child),
|
||||
_("Only _Even Pages"));
|
||||
gtk_widget_add_accelerator (print_even, "clicked", accel_group,
|
||||
print_even_key, GDK_MOD1_MASK, 0);
|
||||
print_group = gtk_radio_button_group (GTK_RADIO_BUTTON (print_even));
|
||||
gtk_widget_ref (print_even);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_even", print_even,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_even);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), print_even, FALSE, FALSE, 0);
|
||||
|
||||
hbox2 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "hbox2", hbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, TRUE, 0);
|
||||
|
||||
print_pages = gtk_check_button_new_with_label ("");
|
||||
print_pages_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (print_pages)->child),
|
||||
_("Page_s"));
|
||||
gtk_widget_add_accelerator (print_pages, "clicked", accel_group,
|
||||
print_pages_key, GDK_MOD1_MASK, 0);
|
||||
gtk_widget_ref (print_pages);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_pages", print_pages,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_pages);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), print_pages, FALSE, FALSE, 0);
|
||||
|
||||
label1 = gtk_label_new (_("from"));
|
||||
gtk_widget_ref (label1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "label1", label1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), label1, FALSE, FALSE, 0);
|
||||
gtk_misc_set_padding (GTK_MISC (label1), 1, 0);
|
||||
|
||||
print_from_adj = gtk_adjustment_new (1, 1, 100000, 1, 10, 10);
|
||||
print_from = gtk_spin_button_new (GTK_ADJUSTMENT (print_from_adj), 1, 0);
|
||||
gtk_widget_ref (print_from);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_from", print_from,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_from);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), print_from, FALSE, FALSE, 0);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (print_from), TRUE);
|
||||
|
||||
label2 = gtk_label_new (_("to"));
|
||||
gtk_widget_ref (label2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "label2", label2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), label2, FALSE, FALSE, 0);
|
||||
gtk_misc_set_padding (GTK_MISC (label2), 1, 0);
|
||||
|
||||
print_to_adj = gtk_adjustment_new (1, 1, 100000, 1, 10, 10);
|
||||
print_to = gtk_spin_button_new (GTK_ADJUSTMENT (print_to_adj), 1, 0);
|
||||
gtk_widget_ref (print_to);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "print_to", print_to,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (print_to);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), print_to, FALSE, FALSE, 0);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (print_to), TRUE);
|
||||
|
||||
vbox3 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "vbox3", vbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), vbox3, TRUE, TRUE, 0);
|
||||
|
||||
frame3 = gtk_frame_new (_("Order"));
|
||||
gtk_widget_ref (frame3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "frame3", frame3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), frame3, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (frame3), 2);
|
||||
|
||||
vbox4 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "vbox4", vbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox4);
|
||||
gtk_container_add (GTK_CONTAINER (frame3), vbox4);
|
||||
|
||||
order_normal = gtk_radio_button_new_with_label (order_group, "");
|
||||
order_normal_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (order_normal)->child),
|
||||
_("_Normal Order"));
|
||||
gtk_widget_add_accelerator (order_normal, "clicked", accel_group,
|
||||
order_normal_key, GDK_MOD1_MASK, 0);
|
||||
order_group = gtk_radio_button_group (GTK_RADIO_BUTTON (order_normal));
|
||||
gtk_widget_ref (order_normal);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "order_normal", order_normal,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (order_normal);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), order_normal, FALSE, FALSE, 0);
|
||||
|
||||
order_reverse = gtk_radio_button_new_with_label (order_group, "");
|
||||
order_reverse_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (order_reverse)->child),
|
||||
_("_Reverse Order"));
|
||||
gtk_widget_add_accelerator (order_reverse, "clicked", accel_group,
|
||||
order_reverse_key, GDK_MOD1_MASK, 0);
|
||||
order_group = gtk_radio_button_group (GTK_RADIO_BUTTON (order_reverse));
|
||||
gtk_widget_ref (order_reverse);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "order_reverse", order_reverse,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (order_reverse);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), order_reverse, FALSE, FALSE, 0);
|
||||
|
||||
frame4 = gtk_frame_new (_("Copies"));
|
||||
gtk_widget_ref (frame4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "frame4", frame4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), frame4, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (frame4), 2);
|
||||
|
||||
vbox5 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox5);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "vbox5", vbox5,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox5);
|
||||
gtk_container_add (GTK_CONTAINER (frame4), vbox5);
|
||||
|
||||
copies_unsorted = gtk_check_button_new_with_label ("");
|
||||
copies_unsorted_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (copies_unsorted)->child),
|
||||
_("_Unsorted"));
|
||||
gtk_widget_add_accelerator (copies_unsorted, "clicked", accel_group,
|
||||
copies_unsorted_key, GDK_MOD1_MASK, 0);
|
||||
gtk_widget_ref (copies_unsorted);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "copies_unsorted", copies_unsorted,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (copies_unsorted);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), copies_unsorted, FALSE, FALSE, 0);
|
||||
|
||||
hbox3 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "hbox3", hbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), hbox3, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (hbox3), 2);
|
||||
|
||||
label3 = gtk_label_new (_("Count"));
|
||||
gtk_widget_ref (label3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "label3", label3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), label3, FALSE, FALSE, 0);
|
||||
gtk_misc_set_padding (GTK_MISC (label3), 3, 0);
|
||||
|
||||
copies_count_adj = gtk_adjustment_new (1, 1, 100000, 1, 10, 10);
|
||||
copies_count = gtk_spin_button_new (GTK_ADJUSTMENT (copies_count_adj), 1, 0);
|
||||
gtk_widget_ref (copies_count);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "copies_count", copies_count,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (copies_count);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), copies_count, TRUE, TRUE, 2);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (copies_count), TRUE);
|
||||
|
||||
frame1 = gtk_frame_new (_("Print to"));
|
||||
gtk_widget_ref (frame1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "frame1", frame1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), frame1, TRUE, TRUE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (frame1), 2);
|
||||
|
||||
table1 = gtk_table_new (2, 2, FALSE);
|
||||
gtk_widget_ref (table1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "table1", table1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (table1);
|
||||
gtk_container_add (GTK_CONTAINER (frame1), table1);
|
||||
|
||||
printto_file = gtk_radio_button_new_with_label (printto_group, "");
|
||||
printto_file_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (printto_file)->child),
|
||||
_("_File"));
|
||||
gtk_widget_add_accelerator (printto_file, "clicked", accel_group,
|
||||
printto_file_key, GDK_MOD1_MASK, 0);
|
||||
printto_group = gtk_radio_button_group (GTK_RADIO_BUTTON (printto_file));
|
||||
gtk_widget_ref (printto_file);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "printto_file", printto_file,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (printto_file);
|
||||
gtk_table_attach (GTK_TABLE (table1), printto_file, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
printto_printer = gtk_radio_button_new_with_label (printto_group, "");
|
||||
printto_printer_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (printto_printer)->child),
|
||||
_("_Printer"));
|
||||
gtk_widget_add_accelerator (printto_printer, "clicked", accel_group,
|
||||
printto_printer_key, GDK_MOD1_MASK, 0);
|
||||
printto_group = gtk_radio_button_group (GTK_RADIO_BUTTON (printto_printer));
|
||||
gtk_widget_ref (printto_printer);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "printto_printer", printto_printer,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (printto_printer);
|
||||
gtk_table_attach (GTK_TABLE (table1), printto_printer, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (printto_printer), TRUE);
|
||||
|
||||
printto_fileentry = gnome_file_entry_new ("diaprint_printto_fileentry", NULL);
|
||||
gtk_widget_ref (printto_fileentry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "printto_fileentry", printto_fileentry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (printto_fileentry);
|
||||
gtk_table_attach (GTK_TABLE (table1), printto_fileentry, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (printto_fileentry), 3);
|
||||
|
||||
combo_entry1 = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (printto_fileentry));
|
||||
gtk_widget_ref (combo_entry1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "combo_entry1", combo_entry1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry1);
|
||||
|
||||
printto_printcommand = gnome_entry_new ("diaprint_printto_printcommand");
|
||||
gtk_widget_ref (printto_printcommand);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "printto_printcommand", printto_printcommand,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (printto_printcommand);
|
||||
gtk_table_attach (GTK_TABLE (table1), printto_printcommand, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (printto_printcommand), 3);
|
||||
|
||||
combo_entry2 = gnome_entry_gtk_entry (GNOME_ENTRY (printto_printcommand));
|
||||
gtk_widget_ref (combo_entry2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "combo_entry2", combo_entry2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (combo_entry2);
|
||||
|
||||
dialog_action_area1 = GNOME_DIALOG (DiaPrint)->action_area;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaPrint), "dialog_action_area1", dialog_action_area1);
|
||||
gtk_widget_show (dialog_action_area1);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area1), 8);
|
||||
|
||||
gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (DiaPrint),
|
||||
_("Print"), GNOME_STOCK_PIXMAP_PRINT);
|
||||
button_print = g_list_last (GNOME_DIALOG (DiaPrint)->buttons)->data;
|
||||
gtk_widget_ref (button_print);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "button_print", button_print,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_print);
|
||||
GTK_WIDGET_SET_FLAGS (button_print, GTK_CAN_DEFAULT);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaPrint), GNOME_STOCK_BUTTON_CANCEL);
|
||||
button_cancel = g_list_last (GNOME_DIALOG (DiaPrint)->buttons)->data;
|
||||
gtk_widget_ref (button_cancel);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaPrint), "button_cancel", button_cancel,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_cancel);
|
||||
GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (DiaPrint), "show",
|
||||
GTK_SIGNAL_FUNC (diaprint_on_diaprint_show),
|
||||
NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (print_pages), "toggled",
|
||||
GTK_SIGNAL_FUNC (diaprint_on_print_pages_toggled),
|
||||
NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (print_from), "changed",
|
||||
GTK_SIGNAL_FUNC (diaprint_on_print_from_changed),
|
||||
NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (printto_file), "toggled",
|
||||
GTK_SIGNAL_FUNC (diaprint_on_printto_file_toggled),
|
||||
NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (printto_printer), "toggled",
|
||||
GTK_SIGNAL_FUNC (diaprint_on_printto_printer_toggled),
|
||||
NULL);
|
||||
|
||||
gtk_widget_grab_focus (button_print);
|
||||
gtk_widget_grab_default (button_print);
|
||||
gtk_window_add_accel_group (GTK_WINDOW (DiaPrint), accel_group);
|
||||
|
||||
return DiaPrint;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
GtkWidget* create_DiaPrint (void);
|
@ -1,19 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diatoc_callbacks.h"
|
||||
#include "diatoc_interface.h"
|
||||
#include "support.h"
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* This file is part of
|
||||
* ======================================================
|
||||
*
|
||||
* LyX, The Document Processor
|
||||
*
|
||||
* Copyright 2000 The LyX Team.
|
||||
*
|
||||
* ====================================================== */
|
||||
|
||||
#include <gnome.h>
|
||||
|
@ -1,105 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gnome.h>
|
||||
|
||||
#include "diatoc_callbacks.h"
|
||||
#include "diatoc_interface.h"
|
||||
#include "support.h"
|
||||
|
||||
GtkWidget*
|
||||
create_DiaToc (void)
|
||||
{
|
||||
GtkWidget *DiaToc;
|
||||
GtkWidget *dialog_vbox2;
|
||||
GtkWidget *vbox1;
|
||||
GtkWidget *scrolledwindow;
|
||||
GtkWidget *viewport1;
|
||||
GtkWidget *choice;
|
||||
GtkWidget *choice_menu;
|
||||
GtkWidget *glade_menuitem;
|
||||
GtkWidget *dialog_action_area1;
|
||||
GtkWidget *button_refresh;
|
||||
GtkWidget *button_close;
|
||||
|
||||
DiaToc = gnome_dialog_new (_("Table of Contents"), NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (DiaToc), "DiaToc", DiaToc);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (DiaToc), 2);
|
||||
gtk_window_set_policy (GTK_WINDOW (DiaToc), TRUE, TRUE, FALSE);
|
||||
|
||||
dialog_vbox2 = GNOME_DIALOG (DiaToc)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaToc), "dialog_vbox2", dialog_vbox2);
|
||||
gtk_widget_show (dialog_vbox2);
|
||||
|
||||
vbox1 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "vbox1", vbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox1);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox1, TRUE, TRUE, 0);
|
||||
|
||||
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "scrolledwindow", scrolledwindow,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (scrolledwindow);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow, TRUE, TRUE, 0);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
||||
viewport1 = gtk_viewport_new (NULL, NULL);
|
||||
gtk_widget_ref (viewport1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "viewport1", viewport1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (viewport1);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow), viewport1);
|
||||
gtk_widget_set_usize (viewport1, 522, 289);
|
||||
|
||||
choice = gtk_option_menu_new ();
|
||||
gtk_widget_ref (choice);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "choice", choice,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (choice);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), choice, FALSE, FALSE, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (choice), 2);
|
||||
choice_menu = gtk_menu_new ();
|
||||
glade_menuitem = gtk_menu_item_new_with_label (_("DUMMY"));
|
||||
gtk_widget_show (glade_menuitem);
|
||||
gtk_menu_append (GTK_MENU (choice_menu), glade_menuitem);
|
||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (choice), choice_menu);
|
||||
|
||||
dialog_action_area1 = GNOME_DIALOG (DiaToc)->action_area;
|
||||
gtk_object_set_data (GTK_OBJECT (DiaToc), "dialog_action_area1", dialog_action_area1);
|
||||
gtk_widget_show (dialog_action_area1);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
|
||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area1), 8);
|
||||
|
||||
gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (DiaToc),
|
||||
_("Refresh"), GNOME_STOCK_PIXMAP_REFRESH);
|
||||
button_refresh = g_list_last (GNOME_DIALOG (DiaToc)->buttons)->data;
|
||||
gtk_widget_ref (button_refresh);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "button_refresh", button_refresh,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_refresh);
|
||||
GTK_WIDGET_SET_FLAGS (button_refresh, GTK_CAN_DEFAULT);
|
||||
|
||||
gnome_dialog_append_button (GNOME_DIALOG (DiaToc), GNOME_STOCK_BUTTON_CLOSE);
|
||||
button_close = g_list_last (GNOME_DIALOG (DiaToc)->buttons)->data;
|
||||
gtk_widget_ref (button_close);
|
||||
gtk_object_set_data_full (GTK_OBJECT (DiaToc), "button_close", button_close,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (button_close);
|
||||
GTK_WIDGET_SET_FLAGS (button_close, GTK_CAN_DEFAULT);
|
||||
|
||||
return DiaToc;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||||
*/
|
||||
|
||||
GtkWidget* create_DiaToc (void);
|
Loading…
Reference in New Issue
Block a user