/*
 * 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_MainWindow (void)
{
  GtkWidget *MainWindow;
  GtkWidget *vbox1;
  GtkWidget *GtkMenuBar_Menu;
  GtkWidget *GtkMenuItem_File;
  GtkWidget *GtkMenuItem_File_menu;
  GtkWidget *run_cd1;
  GtkWidget *GtkMenuItem_LoadElf;
  GtkWidget *separator2;
  GtkWidget *states1;
  GtkWidget *states1_menu;
  GtkWidget *load1;
  GtkWidget *load1_menu;
  GtkWidget *slot_1;
  GtkWidget *slot_3;
  GtkWidget *slot_4;
  GtkWidget *slot_5;
  GtkWidget *slot_2;
  GtkWidget *other1;
  GtkWidget *save1;
  GtkWidget *save1_menu;
  GtkWidget *slot_6;
  GtkWidget *slot_7;
  GtkWidget *slot_8;
  GtkWidget *slot_9;
  GtkWidget *slot_10;
  GtkWidget *other2;
  GtkWidget *GtkMenuItem_Exit;
  GtkWidget *GtkMenuItem_Emulator;
  GtkWidget *GtkMenuItem_Emulator_menu;
  GtkWidget *GtkMenuItem_Run;
  GtkWidget *GtkMenuItem_Reset;
  GtkWidget *GtkMenuItem_Arguments;
  GtkWidget *GtkMenuItem_Configuration;
  GtkWidget *GtkMenuItem_Configuration_menu;
  GtkWidget *GtkMenuItem_PluginsBios;
  GtkWidget *separator3;
  GtkWidget *GtkMenuItem_Graphics;
  GtkWidget *GtkMenuItem_Controllers;
  GtkWidget *GtkMenuItem_Sound;
  GtkWidget *GtkMenuItem_Cdvdrom;
  GtkWidget *GtkMenuItem_Dev9;
  GtkWidget *GtkMenuItem_USB;
  GtkWidget *GtkMenuItem_FW;
  GtkWidget *separator4;
  GtkWidget *GtkMenuItem_Cpu;
  GtkWidget *GtkMenuItem_Language;
  GtkWidget *misc1;
  GtkWidget *misc1_menu;
  GtkWidget *patch_browser1;
  GtkWidget *patch_finder2;
  GtkWidget *separator7;
  GtkWidget *enable_console1;
  GtkWidget *enable_patches1;
  GtkWidget *GtkMenuItem_Debug;
  GtkWidget *GtkMenuItem_Debug_menu;
  GtkWidget *GtkMenuItem_EnterDebugger;
  GtkWidget *GtkMenuItem_Logging;
  GtkWidget *GtkMenuItem_Help;
  GtkWidget *GtkMenuItem_Help_menu;
  GtkWidget *GtkMenuItem_About;
  GtkWidget *image1;
  GtkWidget *status_box;

  MainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (MainWindow), _("PCSX"));
  gtk_window_set_position (GTK_WINDOW (MainWindow), GTK_WIN_POS_CENTER);

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

  GtkMenuBar_Menu = gtk_menu_bar_new ();
  gtk_widget_show (GtkMenuBar_Menu);
  gtk_box_pack_start (GTK_BOX (vbox1), GtkMenuBar_Menu, FALSE, FALSE, 0);

  GtkMenuItem_File = gtk_menu_item_new_with_mnemonic (_("_File"));
  gtk_widget_show (GtkMenuItem_File);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_File);

  GtkMenuItem_File_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_File), GtkMenuItem_File_menu);

  run_cd1 = gtk_menu_item_new_with_mnemonic (_("_Run CD"));
  gtk_widget_show (run_cd1);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_cd1);

  GtkMenuItem_LoadElf = gtk_menu_item_new_with_mnemonic (_("_Load Elf"));
  gtk_widget_show (GtkMenuItem_LoadElf);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), GtkMenuItem_LoadElf);

  separator2 = gtk_separator_menu_item_new ();
  gtk_widget_show (separator2);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), separator2);
  gtk_widget_set_sensitive (separator2, FALSE);

  states1 = gtk_menu_item_new_with_mnemonic (_("States"));
  gtk_widget_show (states1);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), states1);

  states1_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (states1), states1_menu);

  load1 = gtk_menu_item_new_with_mnemonic (_("Load"));
  gtk_widget_show (load1);
  gtk_container_add (GTK_CONTAINER (states1_menu), load1);

  load1_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (load1), load1_menu);

  slot_1 = gtk_menu_item_new_with_mnemonic (_("Slot 1"));
  gtk_widget_show (slot_1);
  gtk_container_add (GTK_CONTAINER (load1_menu), slot_1);

  slot_3 = gtk_menu_item_new_with_mnemonic (_("Slot 2"));
  gtk_widget_show (slot_3);
  gtk_container_add (GTK_CONTAINER (load1_menu), slot_3);

  slot_4 = gtk_menu_item_new_with_mnemonic (_("Slot 3"));
  gtk_widget_show (slot_4);
  gtk_container_add (GTK_CONTAINER (load1_menu), slot_4);

  slot_5 = gtk_menu_item_new_with_mnemonic (_("Slot 4"));
  gtk_widget_show (slot_5);
  gtk_container_add (GTK_CONTAINER (load1_menu), slot_5);

  slot_2 = gtk_menu_item_new_with_mnemonic (_("Slot 5"));
  gtk_widget_show (slot_2);
  gtk_container_add (GTK_CONTAINER (load1_menu), slot_2);

  other1 = gtk_menu_item_new_with_mnemonic (_("Other..."));
  gtk_widget_show (other1);
  gtk_container_add (GTK_CONTAINER (load1_menu), other1);

  save1 = gtk_menu_item_new_with_mnemonic (_("Save"));
  gtk_widget_show (save1);
  gtk_container_add (GTK_CONTAINER (states1_menu), save1);

  save1_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (save1), save1_menu);

  slot_6 = gtk_menu_item_new_with_mnemonic (_("Slot 1"));
  gtk_widget_show (slot_6);
  gtk_container_add (GTK_CONTAINER (save1_menu), slot_6);

  slot_7 = gtk_menu_item_new_with_mnemonic (_("Slot 2"));
  gtk_widget_show (slot_7);
  gtk_container_add (GTK_CONTAINER (save1_menu), slot_7);

  slot_8 = gtk_menu_item_new_with_mnemonic (_("Slot 3"));
  gtk_widget_show (slot_8);
  gtk_container_add (GTK_CONTAINER (save1_menu), slot_8);

  slot_9 = gtk_menu_item_new_with_mnemonic (_("Slot 4"));
  gtk_widget_show (slot_9);
  gtk_container_add (GTK_CONTAINER (save1_menu), slot_9);

  slot_10 = gtk_menu_item_new_with_mnemonic (_("Slot 5"));
  gtk_widget_show (slot_10);
  gtk_container_add (GTK_CONTAINER (save1_menu), slot_10);

  other2 = gtk_menu_item_new_with_mnemonic (_("Other..."));
  gtk_widget_show (other2);
  gtk_container_add (GTK_CONTAINER (save1_menu), other2);

  GtkMenuItem_Exit = gtk_menu_item_new_with_mnemonic (_("E_xit"));
  gtk_widget_show (GtkMenuItem_Exit);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), GtkMenuItem_Exit);

  GtkMenuItem_Emulator = gtk_menu_item_new_with_mnemonic (_("_Run"));
  gtk_widget_show (GtkMenuItem_Emulator);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_Emulator);

  GtkMenuItem_Emulator_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_Emulator), GtkMenuItem_Emulator_menu);

  GtkMenuItem_Run = gtk_menu_item_new_with_mnemonic (_("E_xecute"));
  gtk_widget_show (GtkMenuItem_Run);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Emulator_menu), GtkMenuItem_Run);

  GtkMenuItem_Reset = gtk_menu_item_new_with_mnemonic (_("Re_set"));
  gtk_widget_show (GtkMenuItem_Reset);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Emulator_menu), GtkMenuItem_Reset);

  GtkMenuItem_Arguments = gtk_menu_item_new_with_mnemonic (_("_Arguments"));
  gtk_widget_show (GtkMenuItem_Arguments);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Emulator_menu), GtkMenuItem_Arguments);

  GtkMenuItem_Configuration = gtk_menu_item_new_with_mnemonic (_("_Config"));
  gtk_widget_show (GtkMenuItem_Configuration);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_Configuration);

  GtkMenuItem_Configuration_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_Configuration), GtkMenuItem_Configuration_menu);

  GtkMenuItem_PluginsBios = gtk_menu_item_new_with_mnemonic (_("_Configure"));
  gtk_widget_show (GtkMenuItem_PluginsBios);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_PluginsBios);

  separator3 = gtk_separator_menu_item_new ();
  gtk_widget_show (separator3);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), separator3);
  gtk_widget_set_sensitive (separator3, FALSE);

  GtkMenuItem_Graphics = gtk_menu_item_new_with_mnemonic (_("_Graphics"));
  gtk_widget_show (GtkMenuItem_Graphics);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Graphics);

  GtkMenuItem_Controllers = gtk_menu_item_new_with_mnemonic (_("C_ontrollers"));
  gtk_widget_show (GtkMenuItem_Controllers);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Controllers);

  GtkMenuItem_Sound = gtk_menu_item_new_with_mnemonic (_("_Sound"));
  gtk_widget_show (GtkMenuItem_Sound);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Sound);

  GtkMenuItem_Cdvdrom = gtk_menu_item_new_with_mnemonic (_("_Cdvdrom"));
  gtk_widget_show (GtkMenuItem_Cdvdrom);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Cdvdrom);

  GtkMenuItem_Dev9 = gtk_menu_item_new_with_mnemonic (_("D_ev9"));
  gtk_widget_show (GtkMenuItem_Dev9);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Dev9);

  GtkMenuItem_USB = gtk_menu_item_new_with_mnemonic (_("U_SB"));
  gtk_widget_show (GtkMenuItem_USB);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_USB);

  GtkMenuItem_FW = gtk_menu_item_new_with_mnemonic (_("Fire_Wire"));
  gtk_widget_show (GtkMenuItem_FW);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_FW);

  separator4 = gtk_separator_menu_item_new ();
  gtk_widget_show (separator4);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), separator4);
  gtk_widget_set_sensitive (separator4, FALSE);

  GtkMenuItem_Cpu = gtk_menu_item_new_with_mnemonic (_("C_pu"));
  gtk_widget_show (GtkMenuItem_Cpu);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Configuration_menu), GtkMenuItem_Cpu);

  GtkMenuItem_Language = gtk_menu_item_new_with_mnemonic (_("_Language"));
  gtk_widget_show (GtkMenuItem_Language);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_Language);

  misc1 = gtk_menu_item_new_with_mnemonic (_("_Misc"));
  gtk_widget_show (misc1);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), misc1);

  misc1_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (misc1), misc1_menu);

  patch_browser1 = gtk_menu_item_new_with_mnemonic (_("Patch _Browser"));
  gtk_widget_show (patch_browser1);
  gtk_container_add (GTK_CONTAINER (misc1_menu), patch_browser1);

  patch_finder2 = gtk_menu_item_new_with_mnemonic (_("Patch _Finder"));
  gtk_widget_show (patch_finder2);
  gtk_container_add (GTK_CONTAINER (misc1_menu), patch_finder2);

  separator7 = gtk_separator_menu_item_new ();
  gtk_widget_show (separator7);
  gtk_container_add (GTK_CONTAINER (misc1_menu), separator7);
  gtk_widget_set_sensitive (separator7, FALSE);

  enable_console1 = gtk_check_menu_item_new_with_mnemonic (_("Enable _Console"));
  gtk_widget_show (enable_console1);
  gtk_container_add (GTK_CONTAINER (misc1_menu), enable_console1);

  enable_patches1 = gtk_check_menu_item_new_with_mnemonic (_("Enable _Patches"));
  gtk_widget_show (enable_patches1);
  gtk_container_add (GTK_CONTAINER (misc1_menu), enable_patches1);

  GtkMenuItem_Debug = gtk_menu_item_new_with_mnemonic (_("_Debug"));
  gtk_widget_show (GtkMenuItem_Debug);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_Debug);

  GtkMenuItem_Debug_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_Debug), GtkMenuItem_Debug_menu);

  GtkMenuItem_EnterDebugger = gtk_menu_item_new_with_mnemonic (_("Enter Debugger ..."));
  gtk_widget_show (GtkMenuItem_EnterDebugger);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Debug_menu), GtkMenuItem_EnterDebugger);

  GtkMenuItem_Logging = gtk_menu_item_new_with_mnemonic (_("Logging"));
  gtk_widget_show (GtkMenuItem_Logging);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Debug_menu), GtkMenuItem_Logging);

  GtkMenuItem_Help = gtk_menu_item_new_with_mnemonic (_("_Help"));
  gtk_widget_show (GtkMenuItem_Help);
  gtk_container_add (GTK_CONTAINER (GtkMenuBar_Menu), GtkMenuItem_Help);

  GtkMenuItem_Help_menu = gtk_menu_new ();
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_Help), GtkMenuItem_Help_menu);

  GtkMenuItem_About = gtk_menu_item_new_with_mnemonic (_("&About..."));
  gtk_widget_show (GtkMenuItem_About);
  gtk_container_add (GTK_CONTAINER (GtkMenuItem_Help_menu), GtkMenuItem_About);

  image1 = create_pixmap (MainWindow, "pcsxAbout.bmp");
  gtk_widget_show (image1);
  gtk_box_pack_start (GTK_BOX (vbox1), image1, TRUE, TRUE, 1);

  status_box = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (status_box);
  gtk_box_pack_start (GTK_BOX (vbox1), status_box, TRUE, TRUE, 0);

  g_signal_connect ((gpointer) MainWindow, "destroy",
                    G_CALLBACK (OnDestroy),
                    NULL);
  g_signal_connect ((gpointer) run_cd1, "activate",
                    G_CALLBACK (OnFile_RunCD),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_LoadElf, "activate",
                    G_CALLBACK (OnFile_LoadElf),
                    NULL);
  g_signal_connect ((gpointer) slot_1, "activate",
                    G_CALLBACK (OnStates_Load1),
                    NULL);
  g_signal_connect ((gpointer) slot_3, "activate",
                    G_CALLBACK (OnStates_Load2),
                    NULL);
  g_signal_connect ((gpointer) slot_4, "activate",
                    G_CALLBACK (OnStates_Load3),
                    NULL);
  g_signal_connect ((gpointer) slot_5, "activate",
                    G_CALLBACK (OnStates_Load4),
                    NULL);
  g_signal_connect ((gpointer) slot_2, "activate",
                    G_CALLBACK (OnStates_Load5),
                    NULL);
  g_signal_connect ((gpointer) other1, "activate",
                    G_CALLBACK (OnStates_LoadOther),
                    NULL);
  g_signal_connect ((gpointer) slot_6, "activate",
                    G_CALLBACK (OnStates_Save1),
                    NULL);
  g_signal_connect ((gpointer) slot_7, "activate",
                    G_CALLBACK (OnStates_Save2),
                    NULL);
  g_signal_connect ((gpointer) slot_8, "activate",
                    G_CALLBACK (OnStates_Save3),
                    NULL);
  g_signal_connect ((gpointer) slot_9, "activate",
                    G_CALLBACK (OnStates_Save4),
                    NULL);
  g_signal_connect ((gpointer) slot_10, "activate",
                    G_CALLBACK (OnStates_Save5),
                    NULL);
  g_signal_connect ((gpointer) other2, "activate",
                    G_CALLBACK (OnStates_SaveOther),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Exit, "activate",
                    G_CALLBACK (OnFile_Exit),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Run, "activate",
                    G_CALLBACK (OnEmu_Run),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Reset, "activate",
                    G_CALLBACK (OnEmu_Reset),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Arguments, "activate",
                    G_CALLBACK (OnEmu_Arguments),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_PluginsBios, "activate",
                    G_CALLBACK (OnConf_Conf),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Graphics, "activate",
                    G_CALLBACK (OnConf_Gs),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Controllers, "activate",
                    G_CALLBACK (OnConf_Pads),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Sound, "activate",
                    G_CALLBACK (OnConf_Spu2),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Cdvdrom, "activate",
                    G_CALLBACK (OnConf_Cdvd),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Dev9, "activate",
                    G_CALLBACK (OnConf_Dev9),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_USB, "activate",
                    G_CALLBACK (OnConf_Usb),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_FW, "activate",
                    G_CALLBACK (OnConf_Fw),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Cpu, "activate",
                    G_CALLBACK (OnConf_Cpu),
                    NULL);
  g_signal_connect ((gpointer) patch_browser1, "activate",
                    G_CALLBACK (on_patch_browser1_activate),
                    NULL);
  g_signal_connect ((gpointer) patch_finder2, "activate",
                    G_CALLBACK (on_patch_finder2_activate),
                    NULL);
  g_signal_connect ((gpointer) enable_console1, "activate",
                    G_CALLBACK (on_enable_console1_activate),
                    NULL);
  g_signal_connect ((gpointer) enable_patches1, "activate",
                    G_CALLBACK (on_enable_patches1_activate),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_EnterDebugger, "activate",
                    G_CALLBACK (OnDebug_Debugger),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_Logging, "activate",
                    G_CALLBACK (OnDebug_Logging),
                    NULL);
  g_signal_connect ((gpointer) GtkMenuItem_About, "activate",
                    G_CALLBACK (OnHelp_About),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (MainWindow, MainWindow, "MainWindow");
  GLADE_HOOKUP_OBJECT (MainWindow, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuBar_Menu, "GtkMenuBar_Menu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_File, "GtkMenuItem_File");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_File_menu, "GtkMenuItem_File_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, run_cd1, "run_cd1");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_LoadElf, "GtkMenuItem_LoadElf");
  GLADE_HOOKUP_OBJECT (MainWindow, separator2, "separator2");
  GLADE_HOOKUP_OBJECT (MainWindow, states1, "states1");
  GLADE_HOOKUP_OBJECT (MainWindow, states1_menu, "states1_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, load1, "load1");
  GLADE_HOOKUP_OBJECT (MainWindow, load1_menu, "load1_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_1, "slot_1");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_3, "slot_3");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_4, "slot_4");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_5, "slot_5");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_2, "slot_2");
  GLADE_HOOKUP_OBJECT (MainWindow, other1, "other1");
  GLADE_HOOKUP_OBJECT (MainWindow, save1, "save1");
  GLADE_HOOKUP_OBJECT (MainWindow, save1_menu, "save1_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_6, "slot_6");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_7, "slot_7");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_8, "slot_8");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_9, "slot_9");
  GLADE_HOOKUP_OBJECT (MainWindow, slot_10, "slot_10");
  GLADE_HOOKUP_OBJECT (MainWindow, other2, "other2");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Exit, "GtkMenuItem_Exit");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Emulator, "GtkMenuItem_Emulator");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Emulator_menu, "GtkMenuItem_Emulator_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Run, "GtkMenuItem_Run");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Reset, "GtkMenuItem_Reset");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Arguments, "GtkMenuItem_Arguments");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Configuration, "GtkMenuItem_Configuration");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Configuration_menu, "GtkMenuItem_Configuration_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_PluginsBios, "GtkMenuItem_PluginsBios");
  GLADE_HOOKUP_OBJECT (MainWindow, separator3, "separator3");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Graphics, "GtkMenuItem_Graphics");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Controllers, "GtkMenuItem_Controllers");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Sound, "GtkMenuItem_Sound");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Cdvdrom, "GtkMenuItem_Cdvdrom");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Dev9, "GtkMenuItem_Dev9");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_USB, "GtkMenuItem_USB");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_FW, "GtkMenuItem_FW");
  GLADE_HOOKUP_OBJECT (MainWindow, separator4, "separator4");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Cpu, "GtkMenuItem_Cpu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Language, "GtkMenuItem_Language");
  GLADE_HOOKUP_OBJECT (MainWindow, misc1, "misc1");
  GLADE_HOOKUP_OBJECT (MainWindow, misc1_menu, "misc1_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, patch_browser1, "patch_browser1");
  GLADE_HOOKUP_OBJECT (MainWindow, patch_finder2, "patch_finder2");
  GLADE_HOOKUP_OBJECT (MainWindow, separator7, "separator7");
  GLADE_HOOKUP_OBJECT (MainWindow, enable_console1, "enable_console1");
  GLADE_HOOKUP_OBJECT (MainWindow, enable_patches1, "enable_patches1");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Debug, "GtkMenuItem_Debug");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Debug_menu, "GtkMenuItem_Debug_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_EnterDebugger, "GtkMenuItem_EnterDebugger");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Logging, "GtkMenuItem_Logging");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Help, "GtkMenuItem_Help");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Help_menu, "GtkMenuItem_Help_menu");
  GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_About, "GtkMenuItem_About");
  GLADE_HOOKUP_OBJECT (MainWindow, image1, "image1");
  GLADE_HOOKUP_OBJECT (MainWindow, status_box, "status_box");

  return MainWindow;
}

GtkWidget*
create_AboutDlg (void)
{
  GtkWidget *AboutDlg;
  GtkWidget *vbox2;
  GtkWidget *hbox1;
  GtkWidget *vbox4;
  GtkWidget *GtkAbout_LabelVersion;
  GtkWidget *frame1;
  GtkWidget *vbox6;
  GtkWidget *GtkAbout_LabelAuthors;
  GtkWidget *pixmap1;
  GtkWidget *frame2;
  GtkWidget *vbox5;
  GtkWidget *GtkAbout_LabelGreets;
  GtkWidget *hbuttonbox1;
  GtkWidget *GtkButton_Ok;

  AboutDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (AboutDlg), 10);
  gtk_window_set_title (GTK_WINDOW (AboutDlg), _("Pcsx About"));

  vbox2 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox2);
  gtk_container_add (GTK_CONTAINER (AboutDlg), vbox2);

  hbox1 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox1);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox1, TRUE, TRUE, 0);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox4);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox4, TRUE, TRUE, 0);

  GtkAbout_LabelVersion = gtk_label_new (_("PCSX2\n\nVersion x.x"));
  gtk_widget_show (GtkAbout_LabelVersion);
  gtk_box_pack_start (GTK_BOX (vbox4), GtkAbout_LabelVersion, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (GtkAbout_LabelVersion), GTK_JUSTIFY_CENTER);

  frame1 = gtk_frame_new (NULL);
  gtk_widget_show (frame1);
  gtk_box_pack_start (GTK_BOX (vbox4), frame1, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame1), 5);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox6);
  gtk_container_add (GTK_CONTAINER (frame1), vbox6);
  gtk_container_set_border_width (GTK_CONTAINER (vbox6), 5);

  GtkAbout_LabelAuthors = gtk_label_new (_("written by..."));
  gtk_widget_show (GtkAbout_LabelAuthors);
  gtk_box_pack_start (GTK_BOX (vbox6), GtkAbout_LabelAuthors, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (GtkAbout_LabelAuthors), GTK_JUSTIFY_CENTER);

  pixmap1 = create_pixmap (AboutDlg, "pcsxAbout.xpm");
  gtk_widget_show (pixmap1);
  gtk_box_pack_start (GTK_BOX (hbox1), pixmap1, TRUE, TRUE, 0);

  frame2 = gtk_frame_new (NULL);
  gtk_widget_show (frame2);
  gtk_box_pack_start (GTK_BOX (vbox2), frame2, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame2), 5);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox5);
  gtk_container_add (GTK_CONTAINER (frame2), vbox5);
  gtk_container_set_border_width (GTK_CONTAINER (vbox5), 5);

  GtkAbout_LabelGreets = gtk_label_new (_("greets to..."));
  gtk_widget_show (GtkAbout_LabelGreets);
  gtk_box_pack_start (GTK_BOX (vbox5), GtkAbout_LabelGreets, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (GtkAbout_LabelGreets), GTK_JUSTIFY_CENTER);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox1);
  gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox1, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);

  GtkButton_Ok = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (GtkButton_Ok);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), GtkButton_Ok);
  GTK_WIDGET_SET_FLAGS (GtkButton_Ok, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) GtkButton_Ok, "clicked",
                    G_CALLBACK (OnHelpAbout_Ok),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (AboutDlg, AboutDlg, "AboutDlg");
  GLADE_HOOKUP_OBJECT (AboutDlg, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (AboutDlg, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (AboutDlg, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelVersion, "GtkAbout_LabelVersion");
  GLADE_HOOKUP_OBJECT (AboutDlg, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (AboutDlg, vbox6, "vbox6");
  GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelAuthors, "GtkAbout_LabelAuthors");
  GLADE_HOOKUP_OBJECT (AboutDlg, pixmap1, "pixmap1");
  GLADE_HOOKUP_OBJECT (AboutDlg, frame2, "frame2");
  GLADE_HOOKUP_OBJECT (AboutDlg, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelGreets, "GtkAbout_LabelGreets");
  GLADE_HOOKUP_OBJECT (AboutDlg, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (AboutDlg, GtkButton_Ok, "GtkButton_Ok");

  return AboutDlg;
}

GtkWidget*
create_ConfDlg (void)
{
  GtkWidget *ConfDlg;
  GtkWidget *vbox12;
  GtkWidget *table2;
  GtkWidget *GtkCombo_Pad1;
  GList *GtkCombo_Pad1_items = NULL;
  GtkWidget *combo_entry4;
  GtkWidget *GtkCombo_Pad2;
  GList *GtkCombo_Pad2_items = NULL;
  GtkWidget *combo_entry5;
  GtkWidget *hbuttonbox6;
  GtkWidget *GtkButton_PAD2configure;
  GtkWidget *GtkButton_PAD2test;
  GtkWidget *GtkButton_PAD2about;
  GtkWidget *hbuttonbox7;
  GtkWidget *GtkButton_PAD1configure;
  GtkWidget *GtkButton_PAD1test;
  GtkWidget *GtkButton_PAD1about;
  GtkWidget *hbuttonbox8;
  GtkWidget *GtkButton_GSconfigure;
  GtkWidget *GtkButton_GStest;
  GtkWidget *GtkButton_GSabout;
  GtkWidget *GtkLabel_Graphics;
  GtkWidget *GtkLabel_FirstController;
  GtkWidget *GtkLabel_SecondController;
  GtkWidget *GtkCombo_Gs;
  GList *GtkCombo_Gs_items = NULL;
  GtkWidget *combo_entry2;
  GtkWidget *GtkLabel_Sound;
  GtkWidget *GtkCombo_Spu2;
  GList *GtkCombo_Spu2_items = NULL;
  GtkWidget *entry1;
  GtkWidget *hbuttonbox12;
  GtkWidget *GtkButton_SPU2configure;
  GtkWidget *GtkButton_SPU2test;
  GtkWidget *GtkButton_SPU2about;
  GtkWidget *GtkCombo_Dev9;
  GList *GtkCombo_Dev9_items = NULL;
  GtkWidget *entry3;
  GtkWidget *hbuttonbox21;
  GtkWidget *GtkButton_DEV9configure;
  GtkWidget *GtkButton_DEV9test;
  GtkWidget *GtkButton_DEV9about;
  GtkWidget *label23;
  GtkWidget *GtkLabel_Cdvdrom;
  GtkWidget *GtkCombo_Cdvd;
  GList *GtkCombo_Cdvd_items = NULL;
  GtkWidget *entry2;
  GtkWidget *hbuttonbox13;
  GtkWidget *GtkButton_CDVDconfigure;
  GtkWidget *GtkButton_CDVDtest;
  GtkWidget *GtkButton_CDVDabout;
  GtkWidget *label29;
  GtkWidget *GtkCombo_Usb;
  GList *GtkCombo_Usb_items = NULL;
  GtkWidget *entry4;
  GtkWidget *hbuttonbox23;
  GtkWidget *GtkButton_USBconfigure;
  GtkWidget *GtkButton_USBtest;
  GtkWidget *GtkButton_USBabout;
  GtkWidget *GtkCombo_Bios;
  GList *GtkCombo_Bios_items = NULL;
  GtkWidget *combo_entry7;
  GtkWidget *GtkCombo_FW;
  GList *GtkCombo_FW_items = NULL;
  GtkWidget *entry5;
  GtkWidget *hbuttonbox24;
  GtkWidget *GtkButton_FWconfigure;
  GtkWidget *GtkButton_FWtest;
  GtkWidget *GtkButton_FireWireabout;
  GtkWidget *label30;
  GtkWidget *GtkLabel_Bios;
  GtkWidget *hbox5;
  GtkWidget *hbuttonbox11;
  GtkWidget *GtkButton_SelectPluginsDir;
  GtkWidget *GtkButton_SelectBiosDir;
  GtkWidget *hbuttonbox10;
  GtkWidget *GtkButton_Ok;
  GtkWidget *GtkButton_Cancel;

  ConfDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (ConfDlg), 10);
  gtk_window_set_title (GTK_WINDOW (ConfDlg), _("Conf"));

  vbox12 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox12);
  gtk_container_add (GTK_CONTAINER (ConfDlg), vbox12);

  table2 = gtk_table_new (14, 2, FALSE);
  gtk_widget_show (table2);
  gtk_box_pack_start (GTK_BOX (vbox12), table2, TRUE, TRUE, 0);
  gtk_table_set_col_spacings (GTK_TABLE (table2), 15);

  GtkCombo_Pad1 = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Pad1)->popwin),
                     "GladeParentKey", GtkCombo_Pad1);
  gtk_widget_show (GtkCombo_Pad1);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Pad1, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Pad1_items = g_list_append (GtkCombo_Pad1_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Pad1), GtkCombo_Pad1_items);
  g_list_free (GtkCombo_Pad1_items);

  combo_entry4 = GTK_COMBO (GtkCombo_Pad1)->entry;
  gtk_widget_show (combo_entry4);
  gtk_entry_set_invisible_char (GTK_ENTRY (combo_entry4), 8226);

  GtkCombo_Pad2 = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Pad2)->popwin),
                     "GladeParentKey", GtkCombo_Pad2);
  gtk_widget_show (GtkCombo_Pad2);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Pad2, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Pad2_items = g_list_append (GtkCombo_Pad2_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Pad2), GtkCombo_Pad2_items);
  g_list_free (GtkCombo_Pad2_items);

  combo_entry5 = GTK_COMBO (GtkCombo_Pad2)->entry;
  gtk_widget_show (combo_entry5);
  gtk_entry_set_invisible_char (GTK_ENTRY (combo_entry5), 8226);

  hbuttonbox6 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox6);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox6, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  GtkButton_PAD2configure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_PAD2configure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), GtkButton_PAD2configure);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD2configure, GTK_CAN_DEFAULT);

  GtkButton_PAD2test = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_PAD2test);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), GtkButton_PAD2test);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD2test, GTK_CAN_DEFAULT);

  GtkButton_PAD2about = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_PAD2about);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), GtkButton_PAD2about);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD2about, GTK_CAN_DEFAULT);

  hbuttonbox7 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox7);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox7, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  GtkButton_PAD1configure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_PAD1configure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox7), GtkButton_PAD1configure);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD1configure, GTK_CAN_DEFAULT);

  GtkButton_PAD1test = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_PAD1test);
  gtk_container_add (GTK_CONTAINER (hbuttonbox7), GtkButton_PAD1test);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD1test, GTK_CAN_DEFAULT);

  GtkButton_PAD1about = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_PAD1about);
  gtk_container_add (GTK_CONTAINER (hbuttonbox7), GtkButton_PAD1about);
  GTK_WIDGET_SET_FLAGS (GtkButton_PAD1about, GTK_CAN_DEFAULT);

  hbuttonbox8 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox8);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox8, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  GtkButton_GSconfigure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_GSconfigure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox8), GtkButton_GSconfigure);
  GTK_WIDGET_SET_FLAGS (GtkButton_GSconfigure, GTK_CAN_DEFAULT);

  GtkButton_GStest = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_GStest);
  gtk_container_add (GTK_CONTAINER (hbuttonbox8), GtkButton_GStest);
  GTK_WIDGET_SET_FLAGS (GtkButton_GStest, GTK_CAN_DEFAULT);

  GtkButton_GSabout = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_GSabout);
  gtk_container_add (GTK_CONTAINER (hbuttonbox8), GtkButton_GSabout);
  GTK_WIDGET_SET_FLAGS (GtkButton_GSabout, GTK_CAN_DEFAULT);

  GtkLabel_Graphics = gtk_label_new (_("Graphics"));
  gtk_widget_show (GtkLabel_Graphics);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_Graphics, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Graphics), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_Graphics), 0, 0.5);

  GtkLabel_FirstController = gtk_label_new (_("First Controller"));
  gtk_widget_show (GtkLabel_FirstController);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_FirstController, 0, 1, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_FirstController), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_FirstController), 0, 0.5);

  GtkLabel_SecondController = gtk_label_new (_("Second Controller"));
  gtk_widget_show (GtkLabel_SecondController);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_SecondController, 1, 2, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_SecondController), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_SecondController), 0, 0.5);

  GtkCombo_Gs = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Gs)->popwin),
                     "GladeParentKey", GtkCombo_Gs);
  gtk_widget_show (GtkCombo_Gs);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Gs, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Gs_items = g_list_append (GtkCombo_Gs_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Gs), GtkCombo_Gs_items);
  g_list_free (GtkCombo_Gs_items);

  combo_entry2 = GTK_COMBO (GtkCombo_Gs)->entry;
  gtk_widget_show (combo_entry2);
  gtk_entry_set_invisible_char (GTK_ENTRY (combo_entry2), 8226);

  GtkLabel_Sound = gtk_label_new (_("Sound"));
  gtk_widget_show (GtkLabel_Sound);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_Sound, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Sound), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_Sound), 0, 0.5);

  GtkCombo_Spu2 = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Spu2)->popwin),
                     "GladeParentKey", GtkCombo_Spu2);
  gtk_widget_show (GtkCombo_Spu2);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Spu2, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Spu2_items = g_list_append (GtkCombo_Spu2_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Spu2), GtkCombo_Spu2_items);
  g_list_free (GtkCombo_Spu2_items);

  entry1 = GTK_COMBO (GtkCombo_Spu2)->entry;
  gtk_widget_show (entry1);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry1), 8226);

  hbuttonbox12 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox12);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox12, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  GtkButton_SPU2configure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_SPU2configure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox12), GtkButton_SPU2configure);
  GTK_WIDGET_SET_FLAGS (GtkButton_SPU2configure, GTK_CAN_DEFAULT);

  GtkButton_SPU2test = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_SPU2test);
  gtk_container_add (GTK_CONTAINER (hbuttonbox12), GtkButton_SPU2test);
  GTK_WIDGET_SET_FLAGS (GtkButton_SPU2test, GTK_CAN_DEFAULT);

  GtkButton_SPU2about = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_SPU2about);
  gtk_container_add (GTK_CONTAINER (hbuttonbox12), GtkButton_SPU2about);
  GTK_WIDGET_SET_FLAGS (GtkButton_SPU2about, GTK_CAN_DEFAULT);

  GtkCombo_Dev9 = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Dev9)->popwin),
                     "GladeParentKey", GtkCombo_Dev9);
  gtk_widget_show (GtkCombo_Dev9);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Dev9, 0, 1, 7, 8,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Dev9_items = g_list_append (GtkCombo_Dev9_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Dev9), GtkCombo_Dev9_items);
  g_list_free (GtkCombo_Dev9_items);

  entry3 = GTK_COMBO (GtkCombo_Dev9)->entry;
  gtk_widget_show (entry3);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry3), 8226);

  hbuttonbox21 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox21);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox21, 0, 1, 8, 9,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  GtkButton_DEV9configure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_DEV9configure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox21), GtkButton_DEV9configure);
  GTK_WIDGET_SET_FLAGS (GtkButton_DEV9configure, GTK_CAN_DEFAULT);

  GtkButton_DEV9test = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_DEV9test);
  gtk_container_add (GTK_CONTAINER (hbuttonbox21), GtkButton_DEV9test);
  GTK_WIDGET_SET_FLAGS (GtkButton_DEV9test, GTK_CAN_DEFAULT);

  GtkButton_DEV9about = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_DEV9about);
  gtk_container_add (GTK_CONTAINER (hbuttonbox21), GtkButton_DEV9about);
  GTK_WIDGET_SET_FLAGS (GtkButton_DEV9about, GTK_CAN_DEFAULT);

  label23 = gtk_label_new (_("Dev9"));
  gtk_widget_show (label23);
  gtk_table_attach (GTK_TABLE (table2), label23, 0, 1, 6, 7,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label23), 0, 0.5);

  GtkLabel_Cdvdrom = gtk_label_new (_("Cdvdrom"));
  gtk_widget_show (GtkLabel_Cdvdrom);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_Cdvdrom, 1, 2, 6, 7,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Cdvdrom), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_Cdvdrom), 0, 0.5);

  GtkCombo_Cdvd = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Cdvd)->popwin),
                     "GladeParentKey", GtkCombo_Cdvd);
  gtk_widget_show (GtkCombo_Cdvd);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Cdvd, 1, 2, 7, 8,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Cdvd_items = g_list_append (GtkCombo_Cdvd_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Cdvd), GtkCombo_Cdvd_items);
  g_list_free (GtkCombo_Cdvd_items);

  entry2 = GTK_COMBO (GtkCombo_Cdvd)->entry;
  gtk_widget_show (entry2);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry2), 8226);

  hbuttonbox13 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox13);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox13, 1, 2, 8, 9,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  GtkButton_CDVDconfigure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_CDVDconfigure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox13), GtkButton_CDVDconfigure);
  GTK_WIDGET_SET_FLAGS (GtkButton_CDVDconfigure, GTK_CAN_DEFAULT);

  GtkButton_CDVDtest = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_CDVDtest);
  gtk_container_add (GTK_CONTAINER (hbuttonbox13), GtkButton_CDVDtest);
  GTK_WIDGET_SET_FLAGS (GtkButton_CDVDtest, GTK_CAN_DEFAULT);

  GtkButton_CDVDabout = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_CDVDabout);
  gtk_container_add (GTK_CONTAINER (hbuttonbox13), GtkButton_CDVDabout);
  GTK_WIDGET_SET_FLAGS (GtkButton_CDVDabout, GTK_CAN_DEFAULT);

  label29 = gtk_label_new (_("Usb"));
  gtk_widget_show (label29);
  gtk_table_attach (GTK_TABLE (table2), label29, 0, 1, 9, 10,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label29), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label29), 0, 0.5);

  GtkCombo_Usb = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Usb)->popwin),
                     "GladeParentKey", GtkCombo_Usb);
  gtk_widget_show (GtkCombo_Usb);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Usb, 0, 1, 10, 11,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Usb_items = g_list_append (GtkCombo_Usb_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Usb), GtkCombo_Usb_items);
  g_list_free (GtkCombo_Usb_items);

  entry4 = GTK_COMBO (GtkCombo_Usb)->entry;
  gtk_widget_show (entry4);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry4), 8226);

  hbuttonbox23 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox23);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox23, 0, 1, 11, 12,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  GtkButton_USBconfigure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_USBconfigure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox23), GtkButton_USBconfigure);
  GTK_WIDGET_SET_FLAGS (GtkButton_USBconfigure, GTK_CAN_DEFAULT);

  GtkButton_USBtest = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_USBtest);
  gtk_container_add (GTK_CONTAINER (hbuttonbox23), GtkButton_USBtest);
  GTK_WIDGET_SET_FLAGS (GtkButton_USBtest, GTK_CAN_DEFAULT);

  GtkButton_USBabout = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_USBabout);
  gtk_container_add (GTK_CONTAINER (hbuttonbox23), GtkButton_USBabout);
  GTK_WIDGET_SET_FLAGS (GtkButton_USBabout, GTK_CAN_DEFAULT);

  GtkCombo_Bios = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Bios)->popwin),
                     "GladeParentKey", GtkCombo_Bios);
  gtk_widget_show (GtkCombo_Bios);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_Bios, 1, 2, 13, 14,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_Bios_items = g_list_append (GtkCombo_Bios_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Bios), GtkCombo_Bios_items);
  g_list_free (GtkCombo_Bios_items);

  combo_entry7 = GTK_COMBO (GtkCombo_Bios)->entry;
  gtk_widget_show (combo_entry7);
  gtk_entry_set_invisible_char (GTK_ENTRY (combo_entry7), 8226);

  GtkCombo_FW = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_FW)->popwin),
                     "GladeParentKey", GtkCombo_FW);
  gtk_widget_show (GtkCombo_FW);
  gtk_table_attach (GTK_TABLE (table2), GtkCombo_FW, 1, 2, 10, 11,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GtkCombo_FW_items = g_list_append (GtkCombo_FW_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_FW), GtkCombo_FW_items);
  g_list_free (GtkCombo_FW_items);

  entry5 = GTK_COMBO (GtkCombo_FW)->entry;
  gtk_widget_show (entry5);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry5), 8226);

  hbuttonbox24 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox24);
  gtk_table_attach (GTK_TABLE (table2), hbuttonbox24, 1, 2, 11, 12,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  GtkButton_FWconfigure = gtk_button_new_with_mnemonic (_("Configure"));
  gtk_widget_show (GtkButton_FWconfigure);
  gtk_container_add (GTK_CONTAINER (hbuttonbox24), GtkButton_FWconfigure);
  GTK_WIDGET_SET_FLAGS (GtkButton_FWconfigure, GTK_CAN_DEFAULT);

  GtkButton_FWtest = gtk_button_new_with_mnemonic (_("Test"));
  gtk_widget_show (GtkButton_FWtest);
  gtk_container_add (GTK_CONTAINER (hbuttonbox24), GtkButton_FWtest);
  GTK_WIDGET_SET_FLAGS (GtkButton_FWtest, GTK_CAN_DEFAULT);

  GtkButton_FireWireabout = gtk_button_new_with_mnemonic (_("About"));
  gtk_widget_show (GtkButton_FireWireabout);
  gtk_container_add (GTK_CONTAINER (hbuttonbox24), GtkButton_FireWireabout);
  GTK_WIDGET_SET_FLAGS (GtkButton_FireWireabout, GTK_CAN_DEFAULT);

  label30 = gtk_label_new (_("FireWire"));
  gtk_widget_show (label30);
  gtk_table_attach (GTK_TABLE (table2), label30, 1, 2, 9, 10,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label30), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5);

  GtkLabel_Bios = gtk_label_new (_("Bios"));
  gtk_widget_show (GtkLabel_Bios);
  gtk_table_attach (GTK_TABLE (table2), GtkLabel_Bios, 1, 2, 12, 13,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Bios), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_Bios), 0, 0.5);

  hbox5 = gtk_hbox_new (FALSE, 14);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (vbox12), hbox5, TRUE, TRUE, 0);

  hbuttonbox11 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox11);
  gtk_box_pack_start (GTK_BOX (hbox5), hbuttonbox11, FALSE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox11), GTK_BUTTONBOX_START);

  GtkButton_SelectPluginsDir = gtk_button_new_with_mnemonic (_("Select Plugins Dir"));
  gtk_widget_show (GtkButton_SelectPluginsDir);
  gtk_container_add (GTK_CONTAINER (hbuttonbox11), GtkButton_SelectPluginsDir);
  GTK_WIDGET_SET_FLAGS (GtkButton_SelectPluginsDir, GTK_CAN_DEFAULT);

  GtkButton_SelectBiosDir = gtk_button_new_with_mnemonic (_("Select Bios Dir"));
  gtk_widget_show (GtkButton_SelectBiosDir);
  gtk_container_add (GTK_CONTAINER (hbuttonbox11), GtkButton_SelectBiosDir);
  GTK_WIDGET_SET_FLAGS (GtkButton_SelectBiosDir, GTK_CAN_DEFAULT);

  hbuttonbox10 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox10);
  gtk_box_pack_start (GTK_BOX (hbox5), hbuttonbox10, TRUE, TRUE, 0);

  GtkButton_Ok = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (GtkButton_Ok);
  gtk_container_add (GTK_CONTAINER (hbuttonbox10), GtkButton_Ok);
  GTK_WIDGET_SET_FLAGS (GtkButton_Ok, GTK_CAN_DEFAULT);

  GtkButton_Cancel = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (GtkButton_Cancel);
  gtk_container_add (GTK_CONTAINER (hbuttonbox10), GtkButton_Cancel);
  GTK_WIDGET_SET_FLAGS (GtkButton_Cancel, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) GtkButton_PAD2configure, "clicked",
                    G_CALLBACK (OnConfConf_Pad2Conf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_PAD2test, "clicked",
                    G_CALLBACK (OnConfConf_Pad2Test),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_PAD2about, "clicked",
                    G_CALLBACK (OnConfConf_Pad2About),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_PAD1configure, "clicked",
                    G_CALLBACK (OnConfConf_Pad1Conf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_PAD1test, "clicked",
                    G_CALLBACK (OnConfConf_Pad1Test),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_PAD1about, "clicked",
                    G_CALLBACK (OnConfConf_Pad1About),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_GSconfigure, "clicked",
                    G_CALLBACK (OnConfConf_GsConf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_GStest, "clicked",
                    G_CALLBACK (OnConfConf_GsTest),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_GSabout, "clicked",
                    G_CALLBACK (OnConfConf_GsAbout),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_SPU2configure, "clicked",
                    G_CALLBACK (OnConfConf_Spu2Conf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_SPU2test, "clicked",
                    G_CALLBACK (OnConfConf_Spu2Test),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_SPU2about, "clicked",
                    G_CALLBACK (OnConfConf_Spu2About),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_DEV9configure, "clicked",
                    G_CALLBACK (OnConfConf_Dev9Conf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_DEV9test, "clicked",
                    G_CALLBACK (OnConfConf_Dev9Test),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_DEV9about, "clicked",
                    G_CALLBACK (OnConfConf_Dev9About),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_CDVDconfigure, "clicked",
                    G_CALLBACK (OnConfConf_CdvdConf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_CDVDtest, "clicked",
                    G_CALLBACK (OnConfConf_CdvdTest),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_CDVDabout, "clicked",
                    G_CALLBACK (OnConfConf_CdvdAbout),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_USBconfigure, "clicked",
                    G_CALLBACK (OnConfConf_UsbConf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_USBtest, "clicked",
                    G_CALLBACK (OnConfConf_UsbTest),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_USBabout, "clicked",
                    G_CALLBACK (OnConfConf_UsbAbout),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_FWconfigure, "clicked",
                    G_CALLBACK (OnConfConf_FWConf),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_FWtest, "clicked",
                    G_CALLBACK (OnConfConf_FWTest),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_FireWireabout, "clicked",
                    G_CALLBACK (OnConfConf_FWAbout),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_SelectPluginsDir, "clicked",
                    G_CALLBACK (OnConfConf_PluginsPath),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_SelectBiosDir, "clicked",
                    G_CALLBACK (OnConfConf_BiosPath),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_Ok, "clicked",
                    G_CALLBACK (OnConfConf_Ok),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_Cancel, "clicked",
                    G_CALLBACK (OnConfConf_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (ConfDlg, ConfDlg, "ConfDlg");
  GLADE_HOOKUP_OBJECT (ConfDlg, vbox12, "vbox12");
  GLADE_HOOKUP_OBJECT (ConfDlg, table2, "table2");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Pad1, "GtkCombo_Pad1");
  GLADE_HOOKUP_OBJECT (ConfDlg, combo_entry4, "combo_entry4");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Pad2, "GtkCombo_Pad2");
  GLADE_HOOKUP_OBJECT (ConfDlg, combo_entry5, "combo_entry5");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox6, "hbuttonbox6");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD2configure, "GtkButton_PAD2configure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD2test, "GtkButton_PAD2test");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD2about, "GtkButton_PAD2about");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox7, "hbuttonbox7");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD1configure, "GtkButton_PAD1configure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD1test, "GtkButton_PAD1test");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_PAD1about, "GtkButton_PAD1about");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox8, "hbuttonbox8");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_GSconfigure, "GtkButton_GSconfigure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_GStest, "GtkButton_GStest");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_GSabout, "GtkButton_GSabout");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_Graphics, "GtkLabel_Graphics");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_FirstController, "GtkLabel_FirstController");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_SecondController, "GtkLabel_SecondController");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Gs, "GtkCombo_Gs");
  GLADE_HOOKUP_OBJECT (ConfDlg, combo_entry2, "combo_entry2");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_Sound, "GtkLabel_Sound");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Spu2, "GtkCombo_Spu2");
  GLADE_HOOKUP_OBJECT (ConfDlg, entry1, "entry1");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox12, "hbuttonbox12");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_SPU2configure, "GtkButton_SPU2configure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_SPU2test, "GtkButton_SPU2test");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_SPU2about, "GtkButton_SPU2about");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Dev9, "GtkCombo_Dev9");
  GLADE_HOOKUP_OBJECT (ConfDlg, entry3, "entry3");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox21, "hbuttonbox21");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_DEV9configure, "GtkButton_DEV9configure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_DEV9test, "GtkButton_DEV9test");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_DEV9about, "GtkButton_DEV9about");
  GLADE_HOOKUP_OBJECT (ConfDlg, label23, "label23");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_Cdvdrom, "GtkLabel_Cdvdrom");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Cdvd, "GtkCombo_Cdvd");
  GLADE_HOOKUP_OBJECT (ConfDlg, entry2, "entry2");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox13, "hbuttonbox13");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_CDVDconfigure, "GtkButton_CDVDconfigure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_CDVDtest, "GtkButton_CDVDtest");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_CDVDabout, "GtkButton_CDVDabout");
  GLADE_HOOKUP_OBJECT (ConfDlg, label29, "label29");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Usb, "GtkCombo_Usb");
  GLADE_HOOKUP_OBJECT (ConfDlg, entry4, "entry4");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox23, "hbuttonbox23");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_USBconfigure, "GtkButton_USBconfigure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_USBtest, "GtkButton_USBtest");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_USBabout, "GtkButton_USBabout");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_Bios, "GtkCombo_Bios");
  GLADE_HOOKUP_OBJECT (ConfDlg, combo_entry7, "combo_entry7");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkCombo_FW, "GtkCombo_FW");
  GLADE_HOOKUP_OBJECT (ConfDlg, entry5, "entry5");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox24, "hbuttonbox24");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_FWconfigure, "GtkButton_FWconfigure");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_FWtest, "GtkButton_FWtest");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_FireWireabout, "GtkButton_FireWireabout");
  GLADE_HOOKUP_OBJECT (ConfDlg, label30, "label30");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkLabel_Bios, "GtkLabel_Bios");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbox5, "hbox5");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox11, "hbuttonbox11");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_SelectPluginsDir, "GtkButton_SelectPluginsDir");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_SelectBiosDir, "GtkButton_SelectBiosDir");
  GLADE_HOOKUP_OBJECT (ConfDlg, hbuttonbox10, "hbuttonbox10");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_Ok, "GtkButton_Ok");
  GLADE_HOOKUP_OBJECT (ConfDlg, GtkButton_Cancel, "GtkButton_Cancel");

  return ConfDlg;
}

GtkWidget*
create_CpuDlg (void)
{
  GtkWidget *CpuDlg;
  GtkWidget *vbox8;
  GtkWidget *hbox20;
  GtkWidget *alignment1;
  GtkWidget *vbox27;
  GtkWidget *alignment3;
  GtkWidget *frame8;
  GtkWidget *alignment2;
  GtkWidget *vbox28;
  GtkWidget *GtkLabel_CpuVendor;
  GtkWidget *GtkLabel_Family;
  GtkWidget *GtkLabel_CpuSpeed;
  GtkWidget *GtkLabel_Features;
  GtkWidget *label35;
  GtkWidget *GtkCheckButton_EERec;
  GtkWidget *frame6;
  GtkWidget *vbox26;
  GtkWidget *GtkCheckButton_VU0rec;
  GtkWidget *GtkCheckButton_VU1rec;
  GtkWidget *label32;
  GtkWidget *GtkCheckButton_MTGS;
  GtkWidget *GtkCheckButton_CpuDC;
  GtkWidget *frame9;
  GtkWidget *alignment4;
  GtkWidget *vbox29;
  GtkWidget *GtkRadioButton_LimitNormal;
  GSList *GtkRadioButton_LimitNormal_group = NULL;
  GtkWidget *GtkRadioButton_LimitLimit;
  GtkWidget *GtkRadioButton_LimitFS;
  GtkWidget *GtkRadioButton_VUSkip;
  GtkWidget *label41;
  GtkWidget *hbuttonbox3;
  GtkWidget *GtkButton_Ok;
  GtkWidget *GtkButton_Cancel;

  CpuDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (CpuDlg), 5);
  gtk_window_set_title (GTK_WINDOW (CpuDlg), _("Cpu"));

  vbox8 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox8);
  gtk_container_add (GTK_CONTAINER (CpuDlg), vbox8);

  hbox20 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox20);
  gtk_box_pack_start (GTK_BOX (vbox8), hbox20, TRUE, TRUE, 0);

  alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment1);
  gtk_box_pack_start (GTK_BOX (hbox20), alignment1, TRUE, TRUE, 0);

  vbox27 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox27);
  gtk_container_add (GTK_CONTAINER (alignment1), vbox27);

  alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment3);
  gtk_box_pack_start (GTK_BOX (vbox27), alignment3, TRUE, TRUE, 0);

  frame8 = gtk_frame_new (NULL);
  gtk_widget_show (frame8);
  gtk_container_add (GTK_CONTAINER (alignment3), frame8);

  alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (frame8), alignment2);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0);

  vbox28 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox28);
  gtk_container_add (GTK_CONTAINER (alignment2), vbox28);

  GtkLabel_CpuVendor = gtk_label_new (_("CPU vendor"));
  gtk_widget_show (GtkLabel_CpuVendor);
  gtk_box_pack_start (GTK_BOX (vbox28), GtkLabel_CpuVendor, FALSE, FALSE, 0);

  GtkLabel_Family = gtk_label_new (_("Family"));
  gtk_widget_show (GtkLabel_Family);
  gtk_box_pack_start (GTK_BOX (vbox28), GtkLabel_Family, FALSE, FALSE, 0);

  GtkLabel_CpuSpeed = gtk_label_new (_("Cpu Speed"));
  gtk_widget_show (GtkLabel_CpuSpeed);
  gtk_box_pack_start (GTK_BOX (vbox28), GtkLabel_CpuSpeed, FALSE, FALSE, 0);

  GtkLabel_Features = gtk_label_new (_("Features"));
  gtk_widget_show (GtkLabel_Features);
  gtk_box_pack_start (GTK_BOX (vbox28), GtkLabel_Features, FALSE, FALSE, 0);

  label35 = gtk_label_new ("");
  gtk_widget_show (label35);
  gtk_frame_set_label_widget (GTK_FRAME (frame8), label35);
  gtk_label_set_use_markup (GTK_LABEL (label35), TRUE);

  GtkCheckButton_EERec = gtk_check_button_new_with_mnemonic (_("EERec - EE/IOP recompiler"));
  gtk_widget_show (GtkCheckButton_EERec);
  gtk_box_pack_start (GTK_BOX (vbox8), GtkCheckButton_EERec, FALSE, FALSE, 0);

  frame6 = gtk_frame_new (NULL);
  gtk_widget_show (frame6);
  gtk_box_pack_start (GTK_BOX (vbox8), frame6, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame6), 5);

  vbox26 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox26);
  gtk_container_add (GTK_CONTAINER (frame6), vbox26);
  gtk_container_set_border_width (GTK_CONTAINER (vbox26), 5);

  GtkCheckButton_VU0rec = gtk_check_button_new_with_mnemonic (_("VU0rec - enable recompiler for VU0 unit"));
  gtk_widget_show (GtkCheckButton_VU0rec);
  gtk_box_pack_start (GTK_BOX (vbox26), GtkCheckButton_VU0rec, FALSE, FALSE, 0);

  GtkCheckButton_VU1rec = gtk_check_button_new_with_mnemonic (_("VU1rec - enable recompiler for VU1 unit"));
  gtk_widget_show (GtkCheckButton_VU1rec);
  gtk_box_pack_start (GTK_BOX (vbox26), GtkCheckButton_VU1rec, FALSE, FALSE, 0);

  label32 = gtk_label_new (_("VU Recompilers - All options are set by default"));
  gtk_widget_show (label32);
  gtk_frame_set_label_widget (GTK_FRAME (frame6), label32);

  GtkCheckButton_MTGS = gtk_check_button_new_with_mnemonic (_("Multi threaded GS mode (MTGS)\n (faster on dual core/HT CPUs, requires pcsx2 restart)"));
  gtk_widget_show (GtkCheckButton_MTGS);
  gtk_box_pack_start (GTK_BOX (vbox8), GtkCheckButton_MTGS, FALSE, FALSE, 0);

  GtkCheckButton_CpuDC = gtk_check_button_new_with_mnemonic (_("Dual Core Mode (DC) - Much faster, but only valid with MTGS"));
  gtk_widget_show (GtkCheckButton_CpuDC);
  gtk_box_pack_start (GTK_BOX (vbox8), GtkCheckButton_CpuDC, FALSE, FALSE, 0);

  frame9 = gtk_frame_new (NULL);
  gtk_widget_show (frame9);
  gtk_box_pack_start (GTK_BOX (vbox8), frame9, TRUE, TRUE, 0);

  alignment4 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment4);
  gtk_container_add (GTK_CONTAINER (frame9), alignment4);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment4), 0, 0, 12, 0);

  vbox29 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox29);
  gtk_container_add (GTK_CONTAINER (alignment4), vbox29);

  GtkRadioButton_LimitNormal = gtk_radio_button_new_with_mnemonic (NULL, _("Normal - All frames are rendered as fast as possible"));
  gtk_widget_show (GtkRadioButton_LimitNormal);
  gtk_box_pack_start (GTK_BOX (vbox29), GtkRadioButton_LimitNormal, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitNormal), GtkRadioButton_LimitNormal_group);
  GtkRadioButton_LimitNormal_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitNormal));

  GtkRadioButton_LimitLimit = gtk_radio_button_new_with_mnemonic (NULL, _("Limit - Force frames to normal speeds if too fast"));
  gtk_widget_show (GtkRadioButton_LimitLimit);
  gtk_box_pack_start (GTK_BOX (vbox29), GtkRadioButton_LimitLimit, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitLimit), GtkRadioButton_LimitNormal_group);
  GtkRadioButton_LimitNormal_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitLimit));

  GtkRadioButton_LimitFS = gtk_radio_button_new_with_mnemonic (NULL, _("Frame Skip - In order to achieve normal speeds, \n                   some frames are skipped (faster).\n                   Fps displayed counts skipped frames too"));
  gtk_widget_show (GtkRadioButton_LimitFS);
  gtk_box_pack_start (GTK_BOX (vbox29), GtkRadioButton_LimitFS, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitFS), GtkRadioButton_LimitNormal_group);
  GtkRadioButton_LimitNormal_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_LimitFS));

  GtkRadioButton_VUSkip = gtk_radio_button_new_with_mnemonic (NULL, _("VU Skip - Same as Frame Skip, but tried to skip more. \n               Artifacts might be present, but will be faster"));
  gtk_widget_show (GtkRadioButton_VUSkip);
  gtk_box_pack_start (GTK_BOX (vbox29), GtkRadioButton_VUSkip, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_VUSkip), GtkRadioButton_LimitNormal_group);
  GtkRadioButton_LimitNormal_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_VUSkip));

  label41 = gtk_label_new (_("Frame Limiting"));
  gtk_widget_show (label41);
  gtk_frame_set_label_widget (GTK_FRAME (frame9), label41);
  gtk_label_set_use_markup (GTK_LABEL (label41), TRUE);

  hbuttonbox3 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox3);
  gtk_box_pack_start (GTK_BOX (vbox8), hbuttonbox3, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox3), 30);

  GtkButton_Ok = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (GtkButton_Ok);
  gtk_container_add (GTK_CONTAINER (hbuttonbox3), GtkButton_Ok);
  GTK_WIDGET_SET_FLAGS (GtkButton_Ok, GTK_CAN_DEFAULT);

  GtkButton_Cancel = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (GtkButton_Cancel);
  gtk_container_add (GTK_CONTAINER (hbuttonbox3), GtkButton_Cancel);
  GTK_WIDGET_SET_FLAGS (GtkButton_Cancel, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) GtkButton_Ok, "clicked",
                    G_CALLBACK (OnCpu_Ok),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_Cancel, "clicked",
                    G_CALLBACK (OnCpu_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (CpuDlg, CpuDlg, "CpuDlg");
  GLADE_HOOKUP_OBJECT (CpuDlg, vbox8, "vbox8");
  GLADE_HOOKUP_OBJECT (CpuDlg, hbox20, "hbox20");
  GLADE_HOOKUP_OBJECT (CpuDlg, alignment1, "alignment1");
  GLADE_HOOKUP_OBJECT (CpuDlg, vbox27, "vbox27");
  GLADE_HOOKUP_OBJECT (CpuDlg, alignment3, "alignment3");
  GLADE_HOOKUP_OBJECT (CpuDlg, frame8, "frame8");
  GLADE_HOOKUP_OBJECT (CpuDlg, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (CpuDlg, vbox28, "vbox28");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkLabel_CpuVendor, "GtkLabel_CpuVendor");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkLabel_Family, "GtkLabel_Family");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkLabel_CpuSpeed, "GtkLabel_CpuSpeed");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkLabel_Features, "GtkLabel_Features");
  GLADE_HOOKUP_OBJECT (CpuDlg, label35, "label35");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkCheckButton_EERec, "GtkCheckButton_EERec");
  GLADE_HOOKUP_OBJECT (CpuDlg, frame6, "frame6");
  GLADE_HOOKUP_OBJECT (CpuDlg, vbox26, "vbox26");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkCheckButton_VU0rec, "GtkCheckButton_VU0rec");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkCheckButton_VU1rec, "GtkCheckButton_VU1rec");
  GLADE_HOOKUP_OBJECT (CpuDlg, label32, "label32");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkCheckButton_MTGS, "GtkCheckButton_MTGS");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkCheckButton_CpuDC, "GtkCheckButton_CpuDC");
  GLADE_HOOKUP_OBJECT (CpuDlg, frame9, "frame9");
  GLADE_HOOKUP_OBJECT (CpuDlg, alignment4, "alignment4");
  GLADE_HOOKUP_OBJECT (CpuDlg, vbox29, "vbox29");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkRadioButton_LimitNormal, "GtkRadioButton_LimitNormal");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkRadioButton_LimitLimit, "GtkRadioButton_LimitLimit");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkRadioButton_LimitFS, "GtkRadioButton_LimitFS");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkRadioButton_VUSkip, "GtkRadioButton_VUSkip");
  GLADE_HOOKUP_OBJECT (CpuDlg, label41, "label41");
  GLADE_HOOKUP_OBJECT (CpuDlg, hbuttonbox3, "hbuttonbox3");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkButton_Ok, "GtkButton_Ok");
  GLADE_HOOKUP_OBJECT (CpuDlg, GtkButton_Cancel, "GtkButton_Cancel");

  return CpuDlg;
}

GtkWidget*
create_DebugWnd (void)
{
  GtkWidget *DebugWnd;
  GtkWidget *vbox16;
  GtkWidget *hbox16;
  GtkWidget *GtkRadioButton_EE;
  GSList *GtkRadioButton_EE_group = NULL;
  GtkWidget *GtkRadioButton_IOP;
  GtkWidget *hbox6;
  GtkWidget *hbox7;
  GtkWidget *scrolledwindow1;
  GtkWidget *viewport1;
  GtkWidget *GtkList_DisView;
  GtkWidget *GtkVScrollbar_VList;
  GtkWidget *vbox22;
  GtkWidget *vbuttonbox2;
  GtkWidget *button52;
  GtkWidget *button53;
  GtkWidget *button65;
  GtkWidget *button64;
  GtkWidget *vbuttonbox3;
  GtkWidget *button58;
  GtkWidget *button59;
  GtkWidget *button60;
  GtkWidget *button61;
  GtkWidget *vbuttonbox1;
  GtkWidget *button39;
  GtkWidget *button40;
  GtkWidget *button41;
  GtkWidget *vbuttonbox4;
  GtkWidget *button68;
  GtkWidget *button69;
  GtkWidget *button70;

  DebugWnd = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (DebugWnd), 5);
  gtk_window_set_title (GTK_WINDOW (DebugWnd), _("PCSX2 Debugger"));

  vbox16 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox16);
  gtk_container_add (GTK_CONTAINER (DebugWnd), vbox16);
  gtk_container_set_border_width (GTK_CONTAINER (vbox16), 5);

  hbox16 = gtk_hbox_new (FALSE, 5);
  gtk_widget_show (hbox16);
  gtk_box_pack_start (GTK_BOX (vbox16), hbox16, TRUE, TRUE, 0);

  GtkRadioButton_EE = gtk_radio_button_new_with_mnemonic (NULL, _("EE Debug Mode"));
  gtk_widget_show (GtkRadioButton_EE);
  gtk_box_pack_start (GTK_BOX (hbox16), GtkRadioButton_EE, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_EE), GtkRadioButton_EE_group);
  GtkRadioButton_EE_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_EE));

  GtkRadioButton_IOP = gtk_radio_button_new_with_mnemonic (NULL, _("IOP Debug Mode"));
  gtk_widget_show (GtkRadioButton_IOP);
  gtk_box_pack_start (GTK_BOX (hbox16), GtkRadioButton_IOP, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (GtkRadioButton_IOP), GtkRadioButton_EE_group);
  GtkRadioButton_EE_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (GtkRadioButton_IOP));

  hbox6 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox6);
  gtk_box_pack_start (GTK_BOX (vbox16), hbox6, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox6), 5);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox7);
  gtk_box_pack_start (GTK_BOX (hbox6), hbox7, TRUE, TRUE, 0);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (hbox7), scrolledwindow1, TRUE, TRUE, 0);
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow1, GTK_CAN_FOCUS);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_ALWAYS, GTK_POLICY_NEVER);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), viewport1);

  GtkList_DisView = gtk_tree_view_new ();
  gtk_widget_show (GtkList_DisView);
  gtk_container_add (GTK_CONTAINER (viewport1), GtkList_DisView);
  GTK_WIDGET_UNSET_FLAGS (GtkList_DisView, GTK_CAN_FOCUS);

  GtkVScrollbar_VList = gtk_vscrollbar_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 412, 1, 20, 2)));
  gtk_widget_show (GtkVScrollbar_VList);
  gtk_box_pack_start (GTK_BOX (hbox7), GtkVScrollbar_VList, TRUE, TRUE, 0);

  vbox22 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox22);
  gtk_box_pack_start (GTK_BOX (hbox6), vbox22, TRUE, TRUE, 0);

  vbuttonbox2 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox2);
  gtk_box_pack_start (GTK_BOX (vbox22), vbuttonbox2, TRUE, TRUE, 0);

  button52 = gtk_button_new_with_mnemonic (_("Step"));
  gtk_widget_show (button52);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), button52);
  GTK_WIDGET_SET_FLAGS (button52, GTK_CAN_DEFAULT);

  button53 = gtk_button_new_with_mnemonic (_("Skip"));
  gtk_widget_show (button53);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), button53);
  GTK_WIDGET_SET_FLAGS (button53, GTK_CAN_DEFAULT);

  button65 = gtk_button_new_with_mnemonic (_("Go"));
  gtk_widget_show (button65);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), button65);
  GTK_WIDGET_SET_FLAGS (button65, GTK_CAN_DEFAULT);

  button64 = gtk_button_new_with_mnemonic (_("Log On/Off"));
  gtk_widget_show (button64);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), button64);
  GTK_WIDGET_SET_FLAGS (button64, GTK_CAN_DEFAULT);

  vbuttonbox3 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox3);
  gtk_box_pack_start (GTK_BOX (vbox22), vbuttonbox3, TRUE, TRUE, 0);

  button58 = gtk_button_new_with_mnemonic (_("Set PC"));
  gtk_widget_show (button58);
  gtk_container_add (GTK_CONTAINER (vbuttonbox3), button58);
  GTK_WIDGET_SET_FLAGS (button58, GTK_CAN_DEFAULT);

  button59 = gtk_button_new_with_mnemonic (_("Set BP Addr"));
  gtk_widget_show (button59);
  gtk_container_add (GTK_CONTAINER (vbuttonbox3), button59);
  GTK_WIDGET_SET_FLAGS (button59, GTK_CAN_DEFAULT);

  button60 = gtk_button_new_with_mnemonic (_("Set BP Count"));
  gtk_widget_show (button60);
  gtk_container_add (GTK_CONTAINER (vbuttonbox3), button60);
  GTK_WIDGET_SET_FLAGS (button60, GTK_CAN_DEFAULT);

  button61 = gtk_button_new_with_mnemonic (_("Clear BPs"));
  gtk_widget_show (button61);
  gtk_container_add (GTK_CONTAINER (vbuttonbox3), button61);
  GTK_WIDGET_SET_FLAGS (button61, GTK_CAN_DEFAULT);

  vbuttonbox1 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox1);
  gtk_box_pack_start (GTK_BOX (vbox22), vbuttonbox1, TRUE, TRUE, 0);

  button39 = gtk_button_new_with_mnemonic (_("Dump code"));
  gtk_widget_show (button39);
  gtk_container_add (GTK_CONTAINER (vbuttonbox1), button39);
  GTK_WIDGET_SET_FLAGS (button39, GTK_CAN_DEFAULT);

  button40 = gtk_button_new_with_mnemonic (_("Raw Dump"));
  gtk_widget_show (button40);
  gtk_container_add (GTK_CONTAINER (vbuttonbox1), button40);
  GTK_WIDGET_SET_FLAGS (button40, GTK_CAN_DEFAULT);

  button41 = gtk_button_new_with_mnemonic (_("Close"));
  gtk_widget_show (button41);
  gtk_container_add (GTK_CONTAINER (vbuttonbox1), button41);
  GTK_WIDGET_SET_FLAGS (button41, GTK_CAN_DEFAULT);

  vbuttonbox4 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox4);
  gtk_box_pack_start (GTK_BOX (hbox6), vbuttonbox4, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (vbuttonbox4), 10);

  button68 = gtk_button_new_with_mnemonic (_("memWrite32"));
  gtk_widget_show (button68);
  gtk_container_add (GTK_CONTAINER (vbuttonbox4), button68);
  GTK_WIDGET_SET_FLAGS (button68, GTK_CAN_DEFAULT);

  button69 = gtk_button_new_with_mnemonic (_("button69"));
  gtk_widget_show (button69);
  gtk_container_add (GTK_CONTAINER (vbuttonbox4), button69);
  GTK_WIDGET_SET_FLAGS (button69, GTK_CAN_DEFAULT);

  button70 = gtk_button_new_with_mnemonic (_("button70"));
  gtk_widget_show (button70);
  gtk_container_add (GTK_CONTAINER (vbuttonbox4), button70);
  GTK_WIDGET_SET_FLAGS (button70, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) GtkRadioButton_EE, "toggled",
                    G_CALLBACK (OnDebug_EEMode),
                    NULL);
  g_signal_connect ((gpointer) GtkRadioButton_IOP, "toggled",
                    G_CALLBACK (OnDebug_IOPMode),
                    NULL);
  g_signal_connect ((gpointer) button52, "clicked",
                    G_CALLBACK (OnDebug_Step),
                    NULL);
  g_signal_connect ((gpointer) button53, "clicked",
                    G_CALLBACK (OnDebug_Skip),
                    NULL);
  g_signal_connect ((gpointer) button65, "clicked",
                    G_CALLBACK (OnDebug_Go),
                    NULL);
  g_signal_connect ((gpointer) button64, "clicked",
                    G_CALLBACK (OnDebug_Log),
                    NULL);
  g_signal_connect ((gpointer) button58, "clicked",
                    G_CALLBACK (OnDebug_SetPC),
                    NULL);
  g_signal_connect ((gpointer) button59, "clicked",
                    G_CALLBACK (OnDebug_SetBPA),
                    NULL);
  g_signal_connect ((gpointer) button60, "clicked",
                    G_CALLBACK (OnDebug_SetBPC),
                    NULL);
  g_signal_connect ((gpointer) button61, "clicked",
                    G_CALLBACK (OnDebug_ClearBPs),
                    NULL);
  g_signal_connect ((gpointer) button39, "clicked",
                    G_CALLBACK (OnDebug_DumpCode),
                    NULL);
  g_signal_connect ((gpointer) button40, "clicked",
                    G_CALLBACK (OnDebug_RawDump),
                    NULL);
  g_signal_connect ((gpointer) button41, "clicked",
                    G_CALLBACK (OnDebug_Close),
                    NULL);
  g_signal_connect ((gpointer) button68, "clicked",
                    G_CALLBACK (OnDebug_memWrite32),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (DebugWnd, DebugWnd, "DebugWnd");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbox16, "vbox16");
  GLADE_HOOKUP_OBJECT (DebugWnd, hbox16, "hbox16");
  GLADE_HOOKUP_OBJECT (DebugWnd, GtkRadioButton_EE, "GtkRadioButton_EE");
  GLADE_HOOKUP_OBJECT (DebugWnd, GtkRadioButton_IOP, "GtkRadioButton_IOP");
  GLADE_HOOKUP_OBJECT (DebugWnd, hbox6, "hbox6");
  GLADE_HOOKUP_OBJECT (DebugWnd, hbox7, "hbox7");
  GLADE_HOOKUP_OBJECT (DebugWnd, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (DebugWnd, viewport1, "viewport1");
  GLADE_HOOKUP_OBJECT (DebugWnd, GtkList_DisView, "GtkList_DisView");
  GLADE_HOOKUP_OBJECT (DebugWnd, GtkVScrollbar_VList, "GtkVScrollbar_VList");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbox22, "vbox22");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbuttonbox2, "vbuttonbox2");
  GLADE_HOOKUP_OBJECT (DebugWnd, button52, "button52");
  GLADE_HOOKUP_OBJECT (DebugWnd, button53, "button53");
  GLADE_HOOKUP_OBJECT (DebugWnd, button65, "button65");
  GLADE_HOOKUP_OBJECT (DebugWnd, button64, "button64");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbuttonbox3, "vbuttonbox3");
  GLADE_HOOKUP_OBJECT (DebugWnd, button58, "button58");
  GLADE_HOOKUP_OBJECT (DebugWnd, button59, "button59");
  GLADE_HOOKUP_OBJECT (DebugWnd, button60, "button60");
  GLADE_HOOKUP_OBJECT (DebugWnd, button61, "button61");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbuttonbox1, "vbuttonbox1");
  GLADE_HOOKUP_OBJECT (DebugWnd, button39, "button39");
  GLADE_HOOKUP_OBJECT (DebugWnd, button40, "button40");
  GLADE_HOOKUP_OBJECT (DebugWnd, button41, "button41");
  GLADE_HOOKUP_OBJECT (DebugWnd, vbuttonbox4, "vbuttonbox4");
  GLADE_HOOKUP_OBJECT (DebugWnd, button68, "button68");
  GLADE_HOOKUP_OBJECT (DebugWnd, button69, "button69");
  GLADE_HOOKUP_OBJECT (DebugWnd, button70, "button70");

  return DebugWnd;
}

GtkWidget*
create_SetPCDlg (void)
{
  GtkWidget *SetPCDlg;
  GtkWidget *vbox17;
  GtkWidget *label9;
  GtkWidget *hbox8;
  GtkWidget *label10;
  GtkWidget *GtkEntry_dPC;
  GtkWidget *hbuttonbox14;
  GtkWidget *button42;
  GtkWidget *button43;

  SetPCDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (SetPCDlg), 5);
  gtk_window_set_title (GTK_WINDOW (SetPCDlg), _("SetPCDlg"));

  vbox17 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox17);
  gtk_container_add (GTK_CONTAINER (SetPCDlg), vbox17);
  gtk_container_set_border_width (GTK_CONTAINER (vbox17), 5);

  label9 = gtk_label_new (_("Set New PC Address (in Hex):"));
  gtk_widget_show (label9);
  gtk_box_pack_start (GTK_BOX (vbox17), label9, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label9), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label9), 0.1, 0.5);

  hbox8 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox8);
  gtk_box_pack_start (GTK_BOX (vbox17), hbox8, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox8), 5);

  label10 = gtk_label_new (_("0x"));
  gtk_widget_show (label10);
  gtk_box_pack_start (GTK_BOX (hbox8), label10, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label10), GTK_JUSTIFY_CENTER);

  GtkEntry_dPC = gtk_entry_new ();
  gtk_widget_show (GtkEntry_dPC);
  gtk_box_pack_start (GTK_BOX (hbox8), GtkEntry_dPC, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_dPC), 8226);

  hbuttonbox14 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox14);
  gtk_box_pack_start (GTK_BOX (vbox17), hbuttonbox14, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox14), 30);

  button42 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button42);
  gtk_container_add (GTK_CONTAINER (hbuttonbox14), button42);
  GTK_WIDGET_SET_FLAGS (button42, GTK_CAN_DEFAULT);

  button43 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button43);
  gtk_container_add (GTK_CONTAINER (hbuttonbox14), button43);
  GTK_WIDGET_SET_FLAGS (button43, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button42, "clicked",
                    G_CALLBACK (OnSetPC_Ok),
                    NULL);
  g_signal_connect ((gpointer) button43, "clicked",
                    G_CALLBACK (OnSetPC_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (SetPCDlg, SetPCDlg, "SetPCDlg");
  GLADE_HOOKUP_OBJECT (SetPCDlg, vbox17, "vbox17");
  GLADE_HOOKUP_OBJECT (SetPCDlg, label9, "label9");
  GLADE_HOOKUP_OBJECT (SetPCDlg, hbox8, "hbox8");
  GLADE_HOOKUP_OBJECT (SetPCDlg, label10, "label10");
  GLADE_HOOKUP_OBJECT (SetPCDlg, GtkEntry_dPC, "GtkEntry_dPC");
  GLADE_HOOKUP_OBJECT (SetPCDlg, hbuttonbox14, "hbuttonbox14");
  GLADE_HOOKUP_OBJECT (SetPCDlg, button42, "button42");
  GLADE_HOOKUP_OBJECT (SetPCDlg, button43, "button43");

  return SetPCDlg;
}

GtkWidget*
create_SetBPADlg (void)
{
  GtkWidget *SetBPADlg;
  GtkWidget *vbox18;
  GtkWidget *label11;
  GtkWidget *hbox9;
  GtkWidget *label12;
  GtkWidget *GtkEntry_BPA;
  GtkWidget *hbuttonbox15;
  GtkWidget *button44;
  GtkWidget *button45;

  SetBPADlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (SetBPADlg), 5);
  gtk_window_set_title (GTK_WINDOW (SetBPADlg), _("SetBreakPoint Addr"));

  vbox18 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox18);
  gtk_container_add (GTK_CONTAINER (SetBPADlg), vbox18);
  gtk_container_set_border_width (GTK_CONTAINER (vbox18), 5);

  label11 = gtk_label_new (_("Set New BP Address (in Hex):"));
  gtk_widget_show (label11);
  gtk_box_pack_start (GTK_BOX (vbox18), label11, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label11), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label11), 0.1, 0.5);

  hbox9 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox9);
  gtk_box_pack_start (GTK_BOX (vbox18), hbox9, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox9), 5);

  label12 = gtk_label_new (_("0x"));
  gtk_widget_show (label12);
  gtk_box_pack_start (GTK_BOX (hbox9), label12, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label12), GTK_JUSTIFY_CENTER);

  GtkEntry_BPA = gtk_entry_new ();
  gtk_widget_show (GtkEntry_BPA);
  gtk_box_pack_start (GTK_BOX (hbox9), GtkEntry_BPA, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_BPA), 8226);

  hbuttonbox15 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox15);
  gtk_box_pack_start (GTK_BOX (vbox18), hbuttonbox15, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox15), 30);

  button44 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button44);
  gtk_container_add (GTK_CONTAINER (hbuttonbox15), button44);
  GTK_WIDGET_SET_FLAGS (button44, GTK_CAN_DEFAULT);

  button45 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button45);
  gtk_container_add (GTK_CONTAINER (hbuttonbox15), button45);
  GTK_WIDGET_SET_FLAGS (button45, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button44, "clicked",
                    G_CALLBACK (OnSetBPA_Ok),
                    NULL);
  g_signal_connect ((gpointer) button45, "clicked",
                    G_CALLBACK (OnSetBPA_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (SetBPADlg, SetBPADlg, "SetBPADlg");
  GLADE_HOOKUP_OBJECT (SetBPADlg, vbox18, "vbox18");
  GLADE_HOOKUP_OBJECT (SetBPADlg, label11, "label11");
  GLADE_HOOKUP_OBJECT (SetBPADlg, hbox9, "hbox9");
  GLADE_HOOKUP_OBJECT (SetBPADlg, label12, "label12");
  GLADE_HOOKUP_OBJECT (SetBPADlg, GtkEntry_BPA, "GtkEntry_BPA");
  GLADE_HOOKUP_OBJECT (SetBPADlg, hbuttonbox15, "hbuttonbox15");
  GLADE_HOOKUP_OBJECT (SetBPADlg, button44, "button44");
  GLADE_HOOKUP_OBJECT (SetBPADlg, button45, "button45");

  return SetBPADlg;
}

GtkWidget*
create_SetBPCDlg (void)
{
  GtkWidget *SetBPCDlg;
  GtkWidget *vbox19;
  GtkWidget *label13;
  GtkWidget *hbox10;
  GtkWidget *label14;
  GtkWidget *GtkEntry_BPC;
  GtkWidget *hbuttonbox16;
  GtkWidget *button46;
  GtkWidget *button47;

  SetBPCDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (SetBPCDlg), 5);
  gtk_window_set_title (GTK_WINDOW (SetBPCDlg), _("SetBreakPoint Addr"));

  vbox19 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox19);
  gtk_container_add (GTK_CONTAINER (SetBPCDlg), vbox19);
  gtk_container_set_border_width (GTK_CONTAINER (vbox19), 5);

  label13 = gtk_label_new (_("Set New BP Count (in Hex):"));
  gtk_widget_show (label13);
  gtk_box_pack_start (GTK_BOX (vbox19), label13, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label13), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label13), 0.1, 0.5);

  hbox10 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox10);
  gtk_box_pack_start (GTK_BOX (vbox19), hbox10, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox10), 5);

  label14 = gtk_label_new (_("0x"));
  gtk_widget_show (label14);
  gtk_box_pack_start (GTK_BOX (hbox10), label14, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label14), GTK_JUSTIFY_CENTER);

  GtkEntry_BPC = gtk_entry_new ();
  gtk_widget_show (GtkEntry_BPC);
  gtk_box_pack_start (GTK_BOX (hbox10), GtkEntry_BPC, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_BPC), 8226);

  hbuttonbox16 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox16);
  gtk_box_pack_start (GTK_BOX (vbox19), hbuttonbox16, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox16), 30);

  button46 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button46);
  gtk_container_add (GTK_CONTAINER (hbuttonbox16), button46);
  GTK_WIDGET_SET_FLAGS (button46, GTK_CAN_DEFAULT);

  button47 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button47);
  gtk_container_add (GTK_CONTAINER (hbuttonbox16), button47);
  GTK_WIDGET_SET_FLAGS (button47, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button46, "clicked",
                    G_CALLBACK (OnSetBPC_Ok),
                    NULL);
  g_signal_connect ((gpointer) button47, "clicked",
                    G_CALLBACK (OnSetBPC_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (SetBPCDlg, SetBPCDlg, "SetBPCDlg");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, vbox19, "vbox19");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, label13, "label13");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, hbox10, "hbox10");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, label14, "label14");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, GtkEntry_BPC, "GtkEntry_BPC");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, hbuttonbox16, "hbuttonbox16");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, button46, "button46");
  GLADE_HOOKUP_OBJECT (SetBPCDlg, button47, "button47");

  return SetBPCDlg;
}

GtkWidget*
create_DumpCDlg (void)
{
  GtkWidget *DumpCDlg;
  GtkWidget *vbox20;
  GtkWidget *label15;
  GtkWidget *hbox11;
  GtkWidget *label16;
  GtkWidget *GtkEntry_DumpCF;
  GtkWidget *hbox12;
  GtkWidget *label17;
  GtkWidget *GtkEntry_DumpCT;
  GtkWidget *label21;
  GtkWidget *hbuttonbox17;
  GtkWidget *button48;
  GtkWidget *button49;

  DumpCDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (DumpCDlg), 5);
  gtk_window_set_title (GTK_WINDOW (DumpCDlg), _("Dump code"));

  vbox20 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox20);
  gtk_container_add (GTK_CONTAINER (DumpCDlg), vbox20);
  gtk_container_set_border_width (GTK_CONTAINER (vbox20), 5);

  label15 = gtk_label_new (_("Set Dump Addr (in Hex):"));
  gtk_widget_show (label15);
  gtk_box_pack_start (GTK_BOX (vbox20), label15, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label15), 0.1, 0.5);

  hbox11 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox11);
  gtk_box_pack_start (GTK_BOX (vbox20), hbox11, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox11), 5);

  label16 = gtk_label_new (_("From 0x"));
  gtk_widget_show (label16);
  gtk_box_pack_start (GTK_BOX (hbox11), label16, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label16), TRUE);

  GtkEntry_DumpCF = gtk_entry_new ();
  gtk_widget_show (GtkEntry_DumpCF);
  gtk_box_pack_start (GTK_BOX (hbox11), GtkEntry_DumpCF, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_DumpCF), 8226);

  hbox12 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox12);
  gtk_box_pack_start (GTK_BOX (vbox20), hbox12, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox12), 5);

  label17 = gtk_label_new (_("To    0x"));
  gtk_widget_show (label17);
  gtk_box_pack_start (GTK_BOX (hbox12), label17, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label17), GTK_JUSTIFY_CENTER);

  GtkEntry_DumpCT = gtk_entry_new ();
  gtk_widget_show (GtkEntry_DumpCT);
  gtk_box_pack_start (GTK_BOX (hbox12), GtkEntry_DumpCT, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_DumpCT), 8226);

  label21 = gtk_label_new (_("Dump File = \"dump.txt\""));
  gtk_widget_show (label21);
  gtk_box_pack_start (GTK_BOX (vbox20), label21, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label21), 0.1, 0.5);

  hbuttonbox17 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox17);
  gtk_box_pack_start (GTK_BOX (vbox20), hbuttonbox17, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox17), 30);

  button48 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button48);
  gtk_container_add (GTK_CONTAINER (hbuttonbox17), button48);
  GTK_WIDGET_SET_FLAGS (button48, GTK_CAN_DEFAULT);

  button49 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button49);
  gtk_container_add (GTK_CONTAINER (hbuttonbox17), button49);
  GTK_WIDGET_SET_FLAGS (button49, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button48, "clicked",
                    G_CALLBACK (OnDumpC_Ok),
                    NULL);
  g_signal_connect ((gpointer) button49, "clicked",
                    G_CALLBACK (OnDumpC_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (DumpCDlg, DumpCDlg, "DumpCDlg");
  GLADE_HOOKUP_OBJECT (DumpCDlg, vbox20, "vbox20");
  GLADE_HOOKUP_OBJECT (DumpCDlg, label15, "label15");
  GLADE_HOOKUP_OBJECT (DumpCDlg, hbox11, "hbox11");
  GLADE_HOOKUP_OBJECT (DumpCDlg, label16, "label16");
  GLADE_HOOKUP_OBJECT (DumpCDlg, GtkEntry_DumpCF, "GtkEntry_DumpCF");
  GLADE_HOOKUP_OBJECT (DumpCDlg, hbox12, "hbox12");
  GLADE_HOOKUP_OBJECT (DumpCDlg, label17, "label17");
  GLADE_HOOKUP_OBJECT (DumpCDlg, GtkEntry_DumpCT, "GtkEntry_DumpCT");
  GLADE_HOOKUP_OBJECT (DumpCDlg, label21, "label21");
  GLADE_HOOKUP_OBJECT (DumpCDlg, hbuttonbox17, "hbuttonbox17");
  GLADE_HOOKUP_OBJECT (DumpCDlg, button48, "button48");
  GLADE_HOOKUP_OBJECT (DumpCDlg, button49, "button49");

  return DumpCDlg;
}

GtkWidget*
create_DumpRDlg (void)
{
  GtkWidget *DumpRDlg;
  GtkWidget *vbox21;
  GtkWidget *label18;
  GtkWidget *hbox13;
  GtkWidget *label19;
  GtkWidget *GtkEntry_DumpRF;
  GtkWidget *hbox14;
  GtkWidget *label20;
  GtkWidget *GtkEntry_DumpRT;
  GtkWidget *label22;
  GtkWidget *hbuttonbox18;
  GtkWidget *button50;
  GtkWidget *button51;

  DumpRDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (DumpRDlg), 5);
  gtk_window_set_title (GTK_WINDOW (DumpRDlg), _("Raw Dump"));

  vbox21 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox21);
  gtk_container_add (GTK_CONTAINER (DumpRDlg), vbox21);
  gtk_container_set_border_width (GTK_CONTAINER (vbox21), 5);

  label18 = gtk_label_new (_("Set Dump Addr (in Hex):"));
  gtk_widget_show (label18);
  gtk_box_pack_start (GTK_BOX (vbox21), label18, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label18), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label18), 0.1, 0.5);

  hbox13 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox13);
  gtk_box_pack_start (GTK_BOX (vbox21), hbox13, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox13), 5);

  label19 = gtk_label_new (_("From 0x"));
  gtk_widget_show (label19);
  gtk_box_pack_start (GTK_BOX (hbox13), label19, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label19), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label19), TRUE);

  GtkEntry_DumpRF = gtk_entry_new ();
  gtk_widget_show (GtkEntry_DumpRF);
  gtk_box_pack_start (GTK_BOX (hbox13), GtkEntry_DumpRF, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_DumpRF), 8226);

  hbox14 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox14);
  gtk_box_pack_start (GTK_BOX (vbox21), hbox14, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox14), 5);

  label20 = gtk_label_new (_("To    0x"));
  gtk_widget_show (label20);
  gtk_box_pack_start (GTK_BOX (hbox14), label20, FALSE, FALSE, 0);

  GtkEntry_DumpRT = gtk_entry_new ();
  gtk_widget_show (GtkEntry_DumpRT);
  gtk_box_pack_start (GTK_BOX (hbox14), GtkEntry_DumpRT, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_DumpRT), 8226);

  label22 = gtk_label_new (_("Dump File = \"dump.txt\""));
  gtk_widget_show (label22);
  gtk_box_pack_start (GTK_BOX (vbox21), label22, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label22), 0.1, 0.5);

  hbuttonbox18 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox18);
  gtk_box_pack_start (GTK_BOX (vbox21), hbuttonbox18, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox18), 30);

  button50 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button50);
  gtk_container_add (GTK_CONTAINER (hbuttonbox18), button50);
  GTK_WIDGET_SET_FLAGS (button50, GTK_CAN_DEFAULT);

  button51 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button51);
  gtk_container_add (GTK_CONTAINER (hbuttonbox18), button51);
  GTK_WIDGET_SET_FLAGS (button51, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button50, "clicked",
                    G_CALLBACK (OnDumpR_Ok),
                    NULL);
  g_signal_connect ((gpointer) button51, "clicked",
                    G_CALLBACK (OnDumpR_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (DumpRDlg, DumpRDlg, "DumpRDlg");
  GLADE_HOOKUP_OBJECT (DumpRDlg, vbox21, "vbox21");
  GLADE_HOOKUP_OBJECT (DumpRDlg, label18, "label18");
  GLADE_HOOKUP_OBJECT (DumpRDlg, hbox13, "hbox13");
  GLADE_HOOKUP_OBJECT (DumpRDlg, label19, "label19");
  GLADE_HOOKUP_OBJECT (DumpRDlg, GtkEntry_DumpRF, "GtkEntry_DumpRF");
  GLADE_HOOKUP_OBJECT (DumpRDlg, hbox14, "hbox14");
  GLADE_HOOKUP_OBJECT (DumpRDlg, label20, "label20");
  GLADE_HOOKUP_OBJECT (DumpRDlg, GtkEntry_DumpRT, "GtkEntry_DumpRT");
  GLADE_HOOKUP_OBJECT (DumpRDlg, label22, "label22");
  GLADE_HOOKUP_OBJECT (DumpRDlg, hbuttonbox18, "hbuttonbox18");
  GLADE_HOOKUP_OBJECT (DumpRDlg, button50, "button50");
  GLADE_HOOKUP_OBJECT (DumpRDlg, button51, "button51");

  return DumpRDlg;
}

GtkWidget*
create_Logging (void)
{
  GtkWidget *Logging;
  GtkWidget *vbox23;
  GtkWidget *hbox15;
  GtkWidget *frame4;
  GtkWidget *table3;
  GtkWidget *Log0;
  GtkWidget *Log1;
  GtkWidget *Log2;
  GtkWidget *Log3;
  GtkWidget *Log4;
  GtkWidget *Log5;
  GtkWidget *Log6;
  GtkWidget *Log7;
  GtkWidget *Log8;
  GtkWidget *Log9;
  GtkWidget *Log10;
  GtkWidget *Log11;
  GtkWidget *Log12;
  GtkWidget *Log13;
  GtkWidget *Log15;
  GtkWidget *Log14;
  GtkWidget *Log16;
  GtkWidget *Log31;
  GtkWidget *Log;
  GtkWidget *Log30;
  GtkWidget *label33;
  GtkWidget *frame5;
  GtkWidget *table4;
  GtkWidget *Log27;
  GtkWidget *Log26;
  GtkWidget *Log25;
  GtkWidget *Log24;
  GtkWidget *Log23;
  GtkWidget *Log22;
  GtkWidget *Log21;
  GtkWidget *Log20;
  GtkWidget *Log28;
  GtkWidget *label34;
  GtkWidget *hbuttonbox19;
  GtkWidget *button66;
  GtkWidget *button67;

  Logging = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (Logging), 5);
  gtk_window_set_title (GTK_WINDOW (Logging), _("Logging"));

  vbox23 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox23);
  gtk_container_add (GTK_CONTAINER (Logging), vbox23);
  gtk_container_set_border_width (GTK_CONTAINER (vbox23), 5);

  hbox15 = gtk_hbox_new (FALSE, 5);
  gtk_widget_show (hbox15);
  gtk_box_pack_start (GTK_BOX (vbox23), hbox15, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox15), 5);

  frame4 = gtk_frame_new (NULL);
  gtk_widget_show (frame4);
  gtk_box_pack_start (GTK_BOX (hbox15), frame4, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame4), 5);

  table3 = gtk_table_new (8, 3, FALSE);
  gtk_widget_show (table3);
  gtk_container_add (GTK_CONTAINER (frame4), table3);
  gtk_container_set_border_width (GTK_CONTAINER (table3), 5);
  gtk_table_set_row_spacings (GTK_TABLE (table3), 5);
  gtk_table_set_col_spacings (GTK_TABLE (table3), 5);

  Log0 = gtk_check_button_new_with_mnemonic (_("Cpu Log"));
  gtk_widget_show (Log0);
  gtk_table_attach (GTK_TABLE (table3), Log0, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log1 = gtk_check_button_new_with_mnemonic (_("Mem Log"));
  gtk_widget_show (Log1);
  gtk_table_attach (GTK_TABLE (table3), Log1, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log2 = gtk_check_button_new_with_mnemonic (_("Hw Log"));
  gtk_widget_show (Log2);
  gtk_table_attach (GTK_TABLE (table3), Log2, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log3 = gtk_check_button_new_with_mnemonic (_("Dma Log"));
  gtk_widget_show (Log3);
  gtk_table_attach (GTK_TABLE (table3), Log3, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log4 = gtk_check_button_new_with_mnemonic (_("Bios Log"));
  gtk_widget_show (Log4);
  gtk_table_attach (GTK_TABLE (table3), Log4, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log5 = gtk_check_button_new_with_mnemonic (_("Elf Log"));
  gtk_widget_show (Log5);
  gtk_table_attach (GTK_TABLE (table3), Log5, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log6 = gtk_check_button_new_with_mnemonic (_("Fpu Log"));
  gtk_widget_show (Log6);
  gtk_table_attach (GTK_TABLE (table3), Log6, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log7 = gtk_check_button_new_with_mnemonic (_("MMI Log"));
  gtk_widget_show (Log7);
  gtk_table_attach (GTK_TABLE (table3), Log7, 0, 1, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log8 = gtk_check_button_new_with_mnemonic (_("VU0 Log"));
  gtk_widget_show (Log8);
  gtk_table_attach (GTK_TABLE (table3), Log8, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log9 = gtk_check_button_new_with_mnemonic (_("Cop0 Log"));
  gtk_widget_show (Log9);
  gtk_table_attach (GTK_TABLE (table3), Log9, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log10 = gtk_check_button_new_with_mnemonic (_("Vif Log"));
  gtk_widget_show (Log10);
  gtk_table_attach (GTK_TABLE (table3), Log10, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log11 = gtk_check_button_new_with_mnemonic (_("SPR Log"));
  gtk_widget_show (Log11);
  gtk_table_attach (GTK_TABLE (table3), Log11, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log12 = gtk_check_button_new_with_mnemonic (_("GIF Log"));
  gtk_widget_show (Log12);
  gtk_table_attach (GTK_TABLE (table3), Log12, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log13 = gtk_check_button_new_with_mnemonic (_("Sif Log"));
  gtk_widget_show (Log13);
  gtk_table_attach (GTK_TABLE (table3), Log13, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log15 = gtk_check_button_new_with_mnemonic (_("VU Micro Log"));
  gtk_widget_show (Log15);
  gtk_table_attach (GTK_TABLE (table3), Log15, 1, 2, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log14 = gtk_check_button_new_with_mnemonic (_("IPU Log"));
  gtk_widget_show (Log14);
  gtk_table_attach (GTK_TABLE (table3), Log14, 1, 2, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log16 = gtk_check_button_new_with_mnemonic (_("RPC Log"));
  gtk_widget_show (Log16);
  gtk_table_attach (GTK_TABLE (table3), Log16, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log31 = gtk_check_button_new_with_mnemonic (_("Log to STDOUT"));
  gtk_widget_show (Log31);
  gtk_table_attach (GTK_TABLE (table3), Log31, 2, 3, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log = gtk_check_button_new_with_mnemonic (_("Log"));
  gtk_widget_show (Log);
  gtk_table_attach (GTK_TABLE (table3), Log, 2, 3, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log30 = gtk_check_button_new_with_mnemonic (_("SYMs Log"));
  gtk_widget_show (Log30);
  gtk_table_attach (GTK_TABLE (table3), Log30, 2, 3, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label33 = gtk_label_new (_("EE Logs"));
  gtk_widget_show (label33);
  gtk_frame_set_label_widget (GTK_FRAME (frame4), label33);

  frame5 = gtk_frame_new (NULL);
  gtk_widget_show (frame5);
  gtk_box_pack_start (GTK_BOX (hbox15), frame5, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame5), 5);

  table4 = gtk_table_new (8, 2, FALSE);
  gtk_widget_show (table4);
  gtk_container_add (GTK_CONTAINER (frame5), table4);
  gtk_container_set_border_width (GTK_CONTAINER (table4), 5);
  gtk_table_set_row_spacings (GTK_TABLE (table4), 5);
  gtk_table_set_col_spacings (GTK_TABLE (table4), 5);

  Log27 = gtk_check_button_new_with_mnemonic (_("Cdr Log"));
  gtk_widget_show (Log27);
  gtk_table_attach (GTK_TABLE (table4), Log27, 0, 1, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log26 = gtk_check_button_new_with_mnemonic (_("Gte Log"));
  gtk_widget_show (Log26);
  gtk_table_attach (GTK_TABLE (table4), Log26, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log25 = gtk_check_button_new_with_mnemonic (_("Pad Log"));
  gtk_widget_show (Log25);
  gtk_table_attach (GTK_TABLE (table4), Log25, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log24 = gtk_check_button_new_with_mnemonic (_("Dma Log"));
  gtk_widget_show (Log24);
  gtk_table_attach (GTK_TABLE (table4), Log24, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log23 = gtk_check_button_new_with_mnemonic (_("Bios Log"));
  gtk_widget_show (Log23);
  gtk_table_attach (GTK_TABLE (table4), Log23, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log22 = gtk_check_button_new_with_mnemonic (_("Hw Log"));
  gtk_widget_show (Log22);
  gtk_table_attach (GTK_TABLE (table4), Log22, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log21 = gtk_check_button_new_with_mnemonic (_("Mem Log"));
  gtk_widget_show (Log21);
  gtk_table_attach (GTK_TABLE (table4), Log21, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log20 = gtk_check_button_new_with_mnemonic (_("IOP Log"));
  gtk_widget_show (Log20);
  gtk_table_attach (GTK_TABLE (table4), Log20, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  Log28 = gtk_check_button_new_with_mnemonic (_("GPU Log"));
  gtk_widget_show (Log28);
  gtk_table_attach (GTK_TABLE (table4), Log28, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label34 = gtk_label_new (_("IOP Logs"));
  gtk_widget_show (label34);
  gtk_frame_set_label_widget (GTK_FRAME (frame5), label34);

  hbuttonbox19 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox19);
  gtk_box_pack_start (GTK_BOX (vbox23), hbuttonbox19, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox19), 30);

  button66 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button66);
  gtk_container_add (GTK_CONTAINER (hbuttonbox19), button66);
  GTK_WIDGET_SET_FLAGS (button66, GTK_CAN_DEFAULT);

  button67 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button67);
  gtk_container_add (GTK_CONTAINER (hbuttonbox19), button67);
  GTK_WIDGET_SET_FLAGS (button67, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button66, "clicked",
                    G_CALLBACK (OnLogging_Ok),
                    NULL);
  g_signal_connect ((gpointer) button67, "clicked",
                    G_CALLBACK (OnLogging_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (Logging, Logging, "Logging");
  GLADE_HOOKUP_OBJECT (Logging, vbox23, "vbox23");
  GLADE_HOOKUP_OBJECT (Logging, hbox15, "hbox15");
  GLADE_HOOKUP_OBJECT (Logging, frame4, "frame4");
  GLADE_HOOKUP_OBJECT (Logging, table3, "table3");
  GLADE_HOOKUP_OBJECT (Logging, Log0, "Log0");
  GLADE_HOOKUP_OBJECT (Logging, Log1, "Log1");
  GLADE_HOOKUP_OBJECT (Logging, Log2, "Log2");
  GLADE_HOOKUP_OBJECT (Logging, Log3, "Log3");
  GLADE_HOOKUP_OBJECT (Logging, Log4, "Log4");
  GLADE_HOOKUP_OBJECT (Logging, Log5, "Log5");
  GLADE_HOOKUP_OBJECT (Logging, Log6, "Log6");
  GLADE_HOOKUP_OBJECT (Logging, Log7, "Log7");
  GLADE_HOOKUP_OBJECT (Logging, Log8, "Log8");
  GLADE_HOOKUP_OBJECT (Logging, Log9, "Log9");
  GLADE_HOOKUP_OBJECT (Logging, Log10, "Log10");
  GLADE_HOOKUP_OBJECT (Logging, Log11, "Log11");
  GLADE_HOOKUP_OBJECT (Logging, Log12, "Log12");
  GLADE_HOOKUP_OBJECT (Logging, Log13, "Log13");
  GLADE_HOOKUP_OBJECT (Logging, Log15, "Log15");
  GLADE_HOOKUP_OBJECT (Logging, Log14, "Log14");
  GLADE_HOOKUP_OBJECT (Logging, Log16, "Log16");
  GLADE_HOOKUP_OBJECT (Logging, Log31, "Log31");
  GLADE_HOOKUP_OBJECT (Logging, Log, "Log");
  GLADE_HOOKUP_OBJECT (Logging, Log30, "Log30");
  GLADE_HOOKUP_OBJECT (Logging, label33, "label33");
  GLADE_HOOKUP_OBJECT (Logging, frame5, "frame5");
  GLADE_HOOKUP_OBJECT (Logging, table4, "table4");
  GLADE_HOOKUP_OBJECT (Logging, Log27, "Log27");
  GLADE_HOOKUP_OBJECT (Logging, Log26, "Log26");
  GLADE_HOOKUP_OBJECT (Logging, Log25, "Log25");
  GLADE_HOOKUP_OBJECT (Logging, Log24, "Log24");
  GLADE_HOOKUP_OBJECT (Logging, Log23, "Log23");
  GLADE_HOOKUP_OBJECT (Logging, Log22, "Log22");
  GLADE_HOOKUP_OBJECT (Logging, Log21, "Log21");
  GLADE_HOOKUP_OBJECT (Logging, Log20, "Log20");
  GLADE_HOOKUP_OBJECT (Logging, Log28, "Log28");
  GLADE_HOOKUP_OBJECT (Logging, label34, "label34");
  GLADE_HOOKUP_OBJECT (Logging, hbuttonbox19, "hbuttonbox19");
  GLADE_HOOKUP_OBJECT (Logging, button66, "button66");
  GLADE_HOOKUP_OBJECT (Logging, button67, "button67");

  return Logging;
}

GtkWidget*
create_CmdLine (void)
{
  GtkWidget *CmdLine;
  GtkWidget *vbox24;
  GtkWidget *GtkLabel_Text;
  GtkWidget *hbox17;
  GtkWidget *GtkEntry_dCMDLINE;
  GtkWidget *GtkLabel_Note;
  GtkWidget *hbuttonbox20;
  GtkWidget *GtkButton_Ok;
  GtkWidget *GtkButton_Cancel;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  CmdLine = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (CmdLine), 5);
  gtk_window_set_title (GTK_WINDOW (CmdLine), _("Program arguments"));
  gtk_window_set_modal (GTK_WINDOW (CmdLine), TRUE);

  vbox24 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox24);
  gtk_container_add (GTK_CONTAINER (CmdLine), vbox24);
  gtk_container_set_border_width (GTK_CONTAINER (vbox24), 5);

  GtkLabel_Text = gtk_label_new (_("Fill in the command line arguments for opened program:"));
  gtk_widget_show (GtkLabel_Text);
  gtk_box_pack_start (GTK_BOX (vbox24), GtkLabel_Text, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Text), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (GtkLabel_Text), 0.1, 0.5);

  hbox17 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox17);
  gtk_box_pack_start (GTK_BOX (vbox24), hbox17, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox17), 5);

  GtkEntry_dCMDLINE = gtk_entry_new ();
  gtk_widget_show (GtkEntry_dCMDLINE);
  gtk_box_pack_start (GTK_BOX (hbox17), GtkEntry_dCMDLINE, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, GtkEntry_dCMDLINE, _("If you don't know what to write leave it blank"), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_dCMDLINE), 8226);

  GtkLabel_Note = gtk_label_new (_("Note: this is intented for developers only."));
  gtk_widget_show (GtkLabel_Note);
  gtk_box_pack_start (GTK_BOX (vbox24), GtkLabel_Note, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (GtkLabel_Note), GTK_JUSTIFY_CENTER);

  hbuttonbox20 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox20);
  gtk_box_pack_start (GTK_BOX (vbox24), hbuttonbox20, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox20), 30);

  GtkButton_Ok = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (GtkButton_Ok);
  gtk_container_add (GTK_CONTAINER (hbuttonbox20), GtkButton_Ok);
  GTK_WIDGET_SET_FLAGS (GtkButton_Ok, GTK_CAN_DEFAULT);

  GtkButton_Cancel = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (GtkButton_Cancel);
  gtk_container_add (GTK_CONTAINER (hbuttonbox20), GtkButton_Cancel);
  GTK_WIDGET_SET_FLAGS (GtkButton_Cancel, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) GtkButton_Ok, "clicked",
                    G_CALLBACK (OnArguments_Ok),
                    NULL);
  g_signal_connect ((gpointer) GtkButton_Cancel, "clicked",
                    G_CALLBACK (OnArguments_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (CmdLine, CmdLine, "CmdLine");
  GLADE_HOOKUP_OBJECT (CmdLine, vbox24, "vbox24");
  GLADE_HOOKUP_OBJECT (CmdLine, GtkLabel_Text, "GtkLabel_Text");
  GLADE_HOOKUP_OBJECT (CmdLine, hbox17, "hbox17");
  GLADE_HOOKUP_OBJECT (CmdLine, GtkEntry_dCMDLINE, "GtkEntry_dCMDLINE");
  GLADE_HOOKUP_OBJECT (CmdLine, GtkLabel_Note, "GtkLabel_Note");
  GLADE_HOOKUP_OBJECT (CmdLine, hbuttonbox20, "hbuttonbox20");
  GLADE_HOOKUP_OBJECT (CmdLine, GtkButton_Ok, "GtkButton_Ok");
  GLADE_HOOKUP_OBJECT (CmdLine, GtkButton_Cancel, "GtkButton_Cancel");
  GLADE_HOOKUP_OBJECT_NO_REF (CmdLine, tooltips, "tooltips");

  return CmdLine;
}

GtkWidget*
create_MemWrite32 (void)
{
  GtkWidget *MemWrite32;
  GtkWidget *vbox25;
  GtkWidget *hbox18;
  GtkWidget *label27;
  GtkWidget *label25;
  GtkWidget *GtkEntry_Mem;
  GtkWidget *hbox19;
  GtkWidget *label28;
  GtkWidget *label26;
  GtkWidget *GtkEntry_Data;
  GtkWidget *hbuttonbox22;
  GtkWidget *button71;
  GtkWidget *button72;

  MemWrite32 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (MemWrite32), 5);
  gtk_window_set_title (GTK_WINDOW (MemWrite32), _("memWrite32"));

  vbox25 = gtk_vbox_new (FALSE, 5);
  gtk_widget_show (vbox25);
  gtk_container_add (GTK_CONTAINER (MemWrite32), vbox25);
  gtk_container_set_border_width (GTK_CONTAINER (vbox25), 5);

  hbox18 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox18);
  gtk_box_pack_start (GTK_BOX (vbox25), hbox18, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox18), 5);

  label27 = gtk_label_new (_("Address  "));
  gtk_widget_show (label27);
  gtk_box_pack_start (GTK_BOX (hbox18), label27, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label27), GTK_JUSTIFY_CENTER);

  label25 = gtk_label_new (_("0x"));
  gtk_widget_show (label25);
  gtk_box_pack_start (GTK_BOX (hbox18), label25, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label25), GTK_JUSTIFY_CENTER);

  GtkEntry_Mem = gtk_entry_new ();
  gtk_widget_show (GtkEntry_Mem);
  gtk_box_pack_start (GTK_BOX (hbox18), GtkEntry_Mem, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_Mem), 8226);

  hbox19 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox19);
  gtk_box_pack_start (GTK_BOX (vbox25), hbox19, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox19), 5);

  label28 = gtk_label_new (_("Data       "));
  gtk_widget_show (label28);
  gtk_box_pack_start (GTK_BOX (hbox19), label28, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label28), GTK_JUSTIFY_CENTER);

  label26 = gtk_label_new (_("0x"));
  gtk_widget_show (label26);
  gtk_box_pack_start (GTK_BOX (hbox19), label26, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label26), GTK_JUSTIFY_CENTER);

  GtkEntry_Data = gtk_entry_new ();
  gtk_widget_show (GtkEntry_Data);
  gtk_box_pack_start (GTK_BOX (hbox19), GtkEntry_Data, TRUE, TRUE, 0);
  gtk_entry_set_invisible_char (GTK_ENTRY (GtkEntry_Data), 8226);

  hbuttonbox22 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox22);
  gtk_box_pack_start (GTK_BOX (vbox25), hbuttonbox22, TRUE, TRUE, 0);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox22), 30);

  button71 = gtk_button_new_with_mnemonic (_("Ok"));
  gtk_widget_show (button71);
  gtk_container_add (GTK_CONTAINER (hbuttonbox22), button71);
  GTK_WIDGET_SET_FLAGS (button71, GTK_CAN_DEFAULT);

  button72 = gtk_button_new_with_mnemonic (_("Cancel"));
  gtk_widget_show (button72);
  gtk_container_add (GTK_CONTAINER (hbuttonbox22), button72);
  GTK_WIDGET_SET_FLAGS (button72, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) button71, "clicked",
                    G_CALLBACK (OnMemWrite32_Ok),
                    NULL);
  g_signal_connect ((gpointer) button72, "clicked",
                    G_CALLBACK (OnMemWrite32_Cancel),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (MemWrite32, MemWrite32, "MemWrite32");
  GLADE_HOOKUP_OBJECT (MemWrite32, vbox25, "vbox25");
  GLADE_HOOKUP_OBJECT (MemWrite32, hbox18, "hbox18");
  GLADE_HOOKUP_OBJECT (MemWrite32, label27, "label27");
  GLADE_HOOKUP_OBJECT (MemWrite32, label25, "label25");
  GLADE_HOOKUP_OBJECT (MemWrite32, GtkEntry_Mem, "GtkEntry_Mem");
  GLADE_HOOKUP_OBJECT (MemWrite32, hbox19, "hbox19");
  GLADE_HOOKUP_OBJECT (MemWrite32, label28, "label28");
  GLADE_HOOKUP_OBJECT (MemWrite32, label26, "label26");
  GLADE_HOOKUP_OBJECT (MemWrite32, GtkEntry_Data, "GtkEntry_Data");
  GLADE_HOOKUP_OBJECT (MemWrite32, hbuttonbox22, "hbuttonbox22");
  GLADE_HOOKUP_OBJECT (MemWrite32, button71, "button71");
  GLADE_HOOKUP_OBJECT (MemWrite32, button72, "button72");

  return MemWrite32;
}

