/*
 * 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 <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

GtkWidget*
create_endic (void)
{
  GtkWidget *endic;
  GtkWidget *vbox1;
  GtkWidget *fixed1;
  GtkWidget *edkeyword;
  GtkWidget *cmbdiclist;
  GtkWidget *btnsearch;
  GtkWidget *btnInfo;
  GtkWidget *scrolledwindow1;
  GtkWidget *dicview;
  GtkWidget *statusbar1;

  endic = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (endic), _("endic"));
  gtk_window_set_default_size (GTK_WINDOW (endic), 500, 400);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (endic), vbox1);

  fixed1 = gtk_fixed_new ();
  gtk_widget_show (fixed1);
  gtk_box_pack_start (GTK_BOX (vbox1), fixed1, FALSE, TRUE, 0);
  gtk_widget_set_size_request (fixed1, 365, 60);
  GTK_WIDGET_SET_FLAGS (fixed1, GTK_CAN_FOCUS);

  edkeyword = gtk_entry_new ();
  gtk_widget_show (edkeyword);
  gtk_fixed_put (GTK_FIXED (fixed1), edkeyword, 152, 16);
  gtk_widget_set_size_request (edkeyword, 208, 24);
  gtk_widget_set_events (edkeyword, GDK_KEY_PRESS_MASK);

  cmbdiclist = gtk_combo_box_entry_new_text ();
  gtk_widget_show (cmbdiclist);
  gtk_fixed_put (GTK_FIXED (fixed1), cmbdiclist, 8, 16);
  gtk_widget_set_size_request (cmbdiclist, 128, 24);

  btnsearch = gtk_button_new_with_mnemonic (_("\346\244\234\347\264\242"));
  gtk_widget_show (btnsearch);
  gtk_fixed_put (GTK_FIXED (fixed1), btnsearch, 384, 16);
  gtk_widget_set_size_request (btnsearch, 56, 30);

  btnInfo = gtk_button_new_with_mnemonic (_("\346\203\205\345\240\261"));
  gtk_widget_show (btnInfo);
  gtk_fixed_put (GTK_FIXED (fixed1), btnInfo, 440, 16);
  gtk_widget_set_size_request (btnInfo, 56, 30);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_IN);

  dicview = gtk_tree_view_new ();
  gtk_widget_show (dicview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), dicview);

  statusbar1 = gtk_statusbar_new ();
  gtk_widget_show (statusbar1);
  gtk_box_pack_start (GTK_BOX (vbox1), statusbar1, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) endic, "destroy",
                    G_CALLBACK (on_dickeyword_destroy),
                    NULL);
  g_signal_connect ((gpointer) edkeyword, "key_press_event",
                    G_CALLBACK (on_edkeyword_key_press_event),
                    NULL);
  g_signal_connect ((gpointer) cmbdiclist, "changed",
                    G_CALLBACK (on_cmbdiclist_changed),
                    NULL);
  g_signal_connect ((gpointer) btnsearch, "clicked",
                    G_CALLBACK (on_btnsearch_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnInfo, "clicked",
                    G_CALLBACK (on_btnInfo_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (endic, endic, "endic");
  GLADE_HOOKUP_OBJECT (endic, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (endic, fixed1, "fixed1");
  GLADE_HOOKUP_OBJECT (endic, edkeyword, "edkeyword");
  GLADE_HOOKUP_OBJECT (endic, cmbdiclist, "cmbdiclist");
  GLADE_HOOKUP_OBJECT (endic, btnsearch, "btnsearch");
  GLADE_HOOKUP_OBJECT (endic, btnInfo, "btnInfo");
  GLADE_HOOKUP_OBJECT (endic, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (endic, dicview, "dicview");
  GLADE_HOOKUP_OBJECT (endic, statusbar1, "statusbar1");

  gtk_widget_grab_focus (edkeyword);
  return endic;
}

GtkWidget*
create_dicinfodialog (void)
{
  GtkWidget *dicinfodialog;
  GtkWidget *notebook1;
  GtkWidget *fxDicInfoMain;
  GtkWidget *label1;
  GtkWidget *LbEntryDics;
  GtkWidget *label2;
  GtkWidget *label4;
  GtkWidget *LbNowDicVersion;
  GtkWidget *LbNowDicIndexCount;
  GtkWidget *label15;
  GtkWidget *label8;
  GtkWidget *LbWordCount;
  GtkWidget *label5;
  GtkWidget *label7;
  GtkWidget *label9;
  GtkWidget *label11;
  GtkWidget *label13;
  GtkWidget *LbExtheader;
  GtkWidget *LbDicOrder;
  GtkWidget *LbUpdateCount;
  GtkWidget *LbDicTypes;
  GtkWidget *btnClose;
  GtkWidget *LbShareEndicrc;
  GtkWidget *LbPersonalEndicrc;
  GtkWidget *label3;
  GtkWidget *label22;
  GtkWidget *label21;
  GtkWidget *dicinfolabel1;
  GtkWidget *fixed3;
  GtkWidget *dicinfolabel2;
  GtkWidget *fixed4;
  GtkWidget *label17;
  GtkWidget *label18;
  GtkWidget *label19;
  GtkWidget *label20;
  GtkWidget *label16;
  GtkWidget *dicinfolabel3;

  dicinfodialog = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (dicinfodialog), _("\350\276\236\346\233\270\346\203\205\345\240\261"));
  gtk_window_set_position (GTK_WINDOW (dicinfodialog), GTK_WIN_POS_CENTER);
  gtk_window_set_modal (GTK_WINDOW (dicinfodialog), TRUE);
  gtk_window_set_default_size (GTK_WINDOW (dicinfodialog), 300, 280);
  gtk_window_set_type_hint (GTK_WINDOW (dicinfodialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  notebook1 = gtk_notebook_new ();
  gtk_widget_show (notebook1);
  gtk_container_add (GTK_CONTAINER (dicinfodialog), notebook1);

  fxDicInfoMain = gtk_fixed_new ();
  gtk_widget_show (fxDicInfoMain);
  gtk_container_add (GTK_CONTAINER (notebook1), fxDicInfoMain);

  label1 = gtk_label_new (_("\347\231\273\351\214\262\350\276\236\346\233\270\346\225\260"));
  gtk_widget_show (label1);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label1, 8, 8);
  gtk_widget_set_size_request (label1, 64, 16);
  gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);

  LbEntryDics = gtk_label_new (_("0"));
  gtk_widget_show (LbEntryDics);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbEntryDics, 272, 8);
  gtk_widget_set_size_request (LbEntryDics, 41, 16);
  gtk_label_set_justify (GTK_LABEL (LbEntryDics), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (LbEntryDics), 1, 0.5);

  label2 = gtk_label_new (_("\347\217\276\345\234\250\343\201\256\350\276\236\346\233\270"));
  gtk_widget_show (label2);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label2, 8, 72);
  gtk_widget_set_size_request (label2, 88, 16);
  gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);

  label4 = gtk_label_new (_("\350\276\236\346\233\270\343\203\220\343\203\274\343\202\270\343\203\247\343\203\263"));
  gtk_widget_show (label4);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label4, 24, 88);
  gtk_widget_set_size_request (label4, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);

  LbNowDicVersion = gtk_label_new (_("0"));
  gtk_widget_show (LbNowDicVersion);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbNowDicVersion, 256, 88);
  gtk_widget_set_size_request (LbNowDicVersion, 56, 16);
  gtk_label_set_justify (GTK_LABEL (LbNowDicVersion), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (LbNowDicVersion), 1, 0.5);

  LbNowDicIndexCount = gtk_label_new (_("0"));
  gtk_widget_show (LbNowDicIndexCount);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbNowDicIndexCount, 256, 104);
  gtk_widget_set_size_request (LbNowDicIndexCount, 56, 16);
  gtk_label_set_justify (GTK_LABEL (LbNowDicIndexCount), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (LbNowDicIndexCount), 1, 0.5);

  label15 = gtk_label_new (_("\350\252\236"));
  gtk_widget_show (label15);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label15, 320, 104);
  gtk_widget_set_size_request (label15, 34, 16);
  gtk_misc_set_alignment (GTK_MISC (label15), 0, 0.5);

  label8 = gtk_label_new (_("\350\252\236"));
  gtk_widget_show (label8);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label8, 320, 120);
  gtk_widget_set_size_request (label8, 34, 16);
  gtk_misc_set_alignment (GTK_MISC (label8), 0, 0.5);

  LbWordCount = gtk_label_new (_("0"));
  gtk_widget_show (LbWordCount);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbWordCount, 256, 120);
  gtk_widget_set_size_request (LbWordCount, 57, 16);
  gtk_label_set_justify (GTK_LABEL (LbWordCount), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (LbWordCount), 1, 0.5);

  label5 = gtk_label_new (_("\350\252\236\345\275\231\346\225\260"));
  gtk_widget_show (label5);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label5, 24, 120);
  gtk_widget_set_size_request (label5, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5);

  label7 = gtk_label_new (_("\350\246\213\345\207\272\350\252\236\343\201\256\347\231\273\351\214\262\351\240\206"));
  gtk_widget_show (label7);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label7, 24, 136);
  gtk_widget_set_size_request (label7, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label7), 0, 0.5);

  label9 = gtk_label_new (_("\345\261\236\346\200\247"));
  gtk_widget_show (label9);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label9, 24, 152);
  gtk_widget_set_size_request (label9, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label9), 0, 0.5);

  label11 = gtk_label_new (_("\346\233\264\346\226\260\345\233\236\346\225\260"));
  gtk_widget_show (label11);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label11, 24, 168);
  gtk_widget_set_size_request (label11, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5);

  label13 = gtk_label_new (_("\346\213\241\345\274\265\343\203\230\343\203\203\343\203\200"));
  gtk_widget_show (label13);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label13, 24, 184);
  gtk_widget_set_size_request (label13, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label13), 0, 0.5);

  LbExtheader = gtk_label_new (_("-"));
  gtk_widget_show (LbExtheader);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbExtheader, 272, 184);
  gtk_widget_set_size_request (LbExtheader, 41, 16);
  gtk_misc_set_alignment (GTK_MISC (LbExtheader), 1, 0.5);

  LbDicOrder = gtk_label_new (_("-"));
  gtk_widget_show (LbDicOrder);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbDicOrder, 256, 136);
  gtk_widget_set_size_request (LbDicOrder, 57, 16);
  gtk_label_set_justify (GTK_LABEL (LbDicOrder), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (LbDicOrder), 1, 0.5);

  LbUpdateCount = gtk_label_new (_("0"));
  gtk_widget_show (LbUpdateCount);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbUpdateCount, 272, 168);
  gtk_widget_set_size_request (LbUpdateCount, 41, 16);
  gtk_misc_set_alignment (GTK_MISC (LbUpdateCount), 1, 0.5);

  LbDicTypes = gtk_label_new (_("-"));
  gtk_widget_show (LbDicTypes);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbDicTypes, 161, 152);
  gtk_widget_set_size_request (LbDicTypes, 152, 16);
  gtk_misc_set_alignment (GTK_MISC (LbDicTypes), 1, 0.5);

  btnClose = gtk_button_new_with_mnemonic (_("\351\226\211\343\201\230\343\202\213"));
  gtk_widget_show (btnClose);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), btnClose, 144, 208);
  gtk_widget_set_size_request (btnClose, 57, 30);

  LbShareEndicrc = gtk_label_new (_("-"));
  gtk_widget_show (LbShareEndicrc);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbShareEndicrc, 168, 24);
  gtk_widget_set_size_request (LbShareEndicrc, 168, 16);
  gtk_misc_set_alignment (GTK_MISC (LbShareEndicrc), 0, 0.5);

  LbPersonalEndicrc = gtk_label_new (_("-"));
  gtk_widget_show (LbPersonalEndicrc);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), LbPersonalEndicrc, 168, 40);
  gtk_widget_set_size_request (LbPersonalEndicrc, 168, 16);
  gtk_misc_set_alignment (GTK_MISC (LbPersonalEndicrc), 0, 0.5);

  label3 = gtk_label_new (_("\343\202\244\343\203\263\343\203\207\343\203\203\343\202\257\343\202\271\346\225\260"));
  gtk_widget_show (label3);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label3, 24, 104);
  gtk_widget_set_size_request (label3, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);

  label22 = gtk_label_new (_("\345\200\213\344\272\272\350\250\255\345\256\232\343\203\225\343\202\241\343\202\244\343\203\253"));
  gtk_widget_show (label22);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label22, 24, 40);
  gtk_widget_set_size_request (label22, 104, 16);

  label21 = gtk_label_new (_("\345\205\261\351\200\232\350\250\255\345\256\232\343\203\225\343\202\241\343\202\244\343\203\253"));
  gtk_widget_show (label21);
  gtk_fixed_put (GTK_FIXED (fxDicInfoMain), label21, 24, 24);
  gtk_widget_set_size_request (label21, 112, 16);
  gtk_misc_set_alignment (GTK_MISC (label21), 0, 0.5);

  dicinfolabel1 = gtk_label_new (_("\350\276\236\346\233\270\346\203\205\345\240\261"));
  gtk_widget_show (dicinfolabel1);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), dicinfolabel1);

  fixed3 = gtk_fixed_new ();
  gtk_widget_show (fixed3);
  gtk_container_add (GTK_CONTAINER (notebook1), fixed3);

  dicinfolabel2 = gtk_label_new (_("label4"));
  gtk_widget_show (dicinfolabel2);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), dicinfolabel2);

  fixed4 = gtk_fixed_new ();
  gtk_widget_show (fixed4);
  gtk_container_add (GTK_CONTAINER (notebook1), fixed4);

  label17 = gtk_label_new (_("build by NISHIKI Takeshi"));
  gtk_widget_show (label17);
  gtk_fixed_put (GTK_FIXED (fixed4), label17, 32, 128);
  gtk_widget_set_size_request (label17, 160, 16);
  gtk_misc_set_alignment (GTK_MISC (label17), 0, 0.5);

  label18 = gtk_label_new (_("http://endic.sourceforge.jp/"));
  gtk_widget_show (label18);
  gtk_fixed_put (GTK_FIXED (fixed4), label18, 32, 144);
  gtk_widget_set_size_request (label18, 184, 16);
  gtk_misc_set_alignment (GTK_MISC (label18), 0, 0.5);

  label19 = gtk_label_new (_("GPL License"));
  gtk_widget_show (label19);
  gtk_fixed_put (GTK_FIXED (fixed4), label19, 32, 88);
  gtk_widget_set_size_request (label19, 96, 16);
  gtk_misc_set_alignment (GTK_MISC (label19), 0, 0.5);

  label20 = gtk_label_new (_("Dictionary Viewer"));
  gtk_widget_show (label20);
  gtk_fixed_put (GTK_FIXED (fixed4), label20, 32, 72);
  gtk_widget_set_size_request (label20, 136, 16);
  gtk_misc_set_alignment (GTK_MISC (label20), 0, 0.5);

  label16 = gtk_label_new (_("endic"));
  gtk_widget_show (label16);
  gtk_fixed_put (GTK_FIXED (fixed4), label16, 32, 24);
  gtk_widget_set_size_request (label16, 41, 16);
  gtk_misc_set_alignment (GTK_MISC (label16), 0, 0.5);

  dicinfolabel3 = gtk_label_new (_("endic"));
  gtk_widget_show (dicinfolabel3);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), dicinfolabel3);

  g_signal_connect ((gpointer) btnClose, "clicked",
                    G_CALLBACK (on_btnClose_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (dicinfodialog, dicinfodialog, "dicinfodialog");
  GLADE_HOOKUP_OBJECT (dicinfodialog, notebook1, "notebook1");
  GLADE_HOOKUP_OBJECT (dicinfodialog, fxDicInfoMain, "fxDicInfoMain");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label1, "label1");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbEntryDics, "LbEntryDics");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label2, "label2");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label4, "label4");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbNowDicVersion, "LbNowDicVersion");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbNowDicIndexCount, "LbNowDicIndexCount");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label15, "label15");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label8, "label8");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbWordCount, "LbWordCount");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label5, "label5");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label7, "label7");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label9, "label9");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label11, "label11");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label13, "label13");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbExtheader, "LbExtheader");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbDicOrder, "LbDicOrder");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbUpdateCount, "LbUpdateCount");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbDicTypes, "LbDicTypes");
  GLADE_HOOKUP_OBJECT (dicinfodialog, btnClose, "btnClose");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbShareEndicrc, "LbShareEndicrc");
  GLADE_HOOKUP_OBJECT (dicinfodialog, LbPersonalEndicrc, "LbPersonalEndicrc");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label3, "label3");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label22, "label22");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label21, "label21");
  GLADE_HOOKUP_OBJECT (dicinfodialog, dicinfolabel1, "dicinfolabel1");
  GLADE_HOOKUP_OBJECT (dicinfodialog, fixed3, "fixed3");
  GLADE_HOOKUP_OBJECT (dicinfodialog, dicinfolabel2, "dicinfolabel2");
  GLADE_HOOKUP_OBJECT (dicinfodialog, fixed4, "fixed4");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label17, "label17");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label18, "label18");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label19, "label19");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label20, "label20");
  GLADE_HOOKUP_OBJECT (dicinfodialog, label16, "label16");
  GLADE_HOOKUP_OBJECT (dicinfodialog, dicinfolabel3, "dicinfolabel3");

  return dicinfodialog;
}

