Search
lxdream.org :: lxdream/src/gui/interface.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/interface.c
changeset 35:21a4be098304
prev18:9a1b5d75703f
next180:e6dcf9b65658
author nkeynes
date Mon Dec 26 03:54:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Remove modules.h - move definitions into dream.h
Add source string to output list (taken from module name)
ARM Work in progress
file annotate diff log raw
nkeynes@1
     1
/*
nkeynes@1
     2
 * DO NOT EDIT THIS FILE - it is generated by Glade.
nkeynes@1
     3
 */
nkeynes@1
     4
nkeynes@1
     5
#ifdef HAVE_CONFIG_H
nkeynes@1
     6
#  include <config.h>
nkeynes@1
     7
#endif
nkeynes@1
     8
nkeynes@1
     9
#include <sys/types.h>
nkeynes@1
    10
#include <sys/stat.h>
nkeynes@1
    11
#include <unistd.h>
nkeynes@1
    12
#include <string.h>
nkeynes@1
    13
#include <stdio.h>
nkeynes@1
    14
nkeynes@1
    15
#include <bonobo.h>
nkeynes@1
    16
#include <gnome.h>
nkeynes@1
    17
nkeynes@1
    18
#include "callbacks.h"
nkeynes@1
    19
#include "interface.h"
nkeynes@1
    20
#include "support.h"
nkeynes@1
    21
nkeynes@1
    22
#define GLADE_HOOKUP_OBJECT(component,widget,name) \
nkeynes@1
    23
  g_object_set_data_full (G_OBJECT (component), name, \
nkeynes@1
    24
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
nkeynes@1
    25
nkeynes@1
    26
#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
nkeynes@1
    27
  g_object_set_data (G_OBJECT (component), name, widget)
nkeynes@1
    28
nkeynes@1
    29
static GnomeUIInfo file1_menu_uiinfo[] =
nkeynes@1
    30
{
nkeynes@2
    31
  GNOMEUIINFO_MENU_NEW_ITEM (N_("_New"), NULL, on_new_file1_activate, NULL),
nkeynes@2
    32
  GNOMEUIINFO_MENU_OPEN_ITEM (on_open1_activate, NULL),
nkeynes@2
    33
  GNOMEUIINFO_MENU_SAVE_ITEM (on_save1_activate, NULL),
nkeynes@2
    34
  GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as1_activate, NULL),
nkeynes@1
    35
  GNOMEUIINFO_SEPARATOR,
nkeynes@2
    36
  GNOMEUIINFO_MENU_EXIT_ITEM (on_exit1_activate, NULL),
nkeynes@1
    37
  GNOMEUIINFO_END
nkeynes@1
    38
};
nkeynes@1
    39
nkeynes@1
    40
static GnomeUIInfo view1_menu_uiinfo[] =
nkeynes@1
    41
{
nkeynes@1
    42
  {
nkeynes@2
    43
    GNOME_APP_UI_ITEM, N_("Memory..."),
nkeynes@2
    44
    NULL,
nkeynes@2
    45
    (gpointer) on_view_memory_activate, NULL, NULL,
nkeynes@2
    46
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@2
    47
    0, (GdkModifierType) 0, NULL
nkeynes@2
    48
  },
nkeynes@2
    49
  {
nkeynes@2
    50
    GNOME_APP_UI_ITEM, N_("Mem mapped Regs..."),
nkeynes@1
    51
    NULL,
nkeynes@1
    52
    (gpointer) on_mem_mapped_regs1_activate, NULL, NULL,
nkeynes@1
    53
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    54
    0, (GdkModifierType) 0, NULL
nkeynes@1
    55
  },
nkeynes@1
    56
  GNOMEUIINFO_END
nkeynes@1
    57
};
nkeynes@1
    58
nkeynes@1
    59
static GnomeUIInfo settings1_menu_uiinfo[] =
nkeynes@1
    60
{
nkeynes@2
    61
  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),
nkeynes@1
    62
  GNOMEUIINFO_END
nkeynes@1
    63
};
nkeynes@1
    64
nkeynes@1
    65
static GnomeUIInfo help1_menu_uiinfo[] =
nkeynes@1
    66
{
nkeynes@2
    67
  GNOMEUIINFO_MENU_ABOUT_ITEM (on_about1_activate, NULL),
nkeynes@1
    68
  GNOMEUIINFO_END
nkeynes@1
    69
};
nkeynes@1
    70
nkeynes@1
    71
static GnomeUIInfo menubar1_uiinfo[] =
nkeynes@1
    72
{
nkeynes@1
    73
  {
nkeynes@1
    74
    GNOME_APP_UI_SUBTREE, N_("_File"),
nkeynes@1
    75
    NULL,
nkeynes@1
    76
    file1_menu_uiinfo, NULL, NULL,
nkeynes@1
    77
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    78
    0, (GdkModifierType) 0, NULL
nkeynes@1
    79
  },
nkeynes@1
    80
  {
nkeynes@1
    81
    GNOME_APP_UI_SUBTREE, N_("_View"),
nkeynes@1
    82
    NULL,
nkeynes@1
    83
    view1_menu_uiinfo, NULL, NULL,
nkeynes@1
    84
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    85
    0, (GdkModifierType) 0, NULL
nkeynes@1
    86
  },
nkeynes@1
    87
  {
nkeynes@1
    88
    GNOME_APP_UI_SUBTREE, N_("_Settings"),
nkeynes@1
    89
    NULL,
nkeynes@1
    90
    settings1_menu_uiinfo, NULL, NULL,
nkeynes@1
    91
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    92
    0, (GdkModifierType) 0, NULL
nkeynes@1
    93
  },
nkeynes@1
    94
  {
nkeynes@1
    95
    GNOME_APP_UI_SUBTREE, N_("_Help"),
nkeynes@1
    96
    NULL,
nkeynes@1
    97
    help1_menu_uiinfo, NULL, NULL,
nkeynes@1
    98
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    99
    0, (GdkModifierType) 0, NULL
nkeynes@1
   100
  },
nkeynes@1
   101
  GNOMEUIINFO_END
nkeynes@1
   102
};
nkeynes@1
   103
nkeynes@1
   104
GtkWidget*
nkeynes@1
   105
create_debug_win (void)
nkeynes@1
   106
{
nkeynes@1
   107
  GtkWidget *debug_win;
nkeynes@1
   108
  GtkWidget *dock1;
nkeynes@1
   109
  GtkWidget *toolbar1;
nkeynes@10
   110
  GtkIconSize tmp_toolbar_icon_size;
nkeynes@10
   111
  GtkWidget *tmp_image;
nkeynes@1
   112
  GtkWidget *load_btn;
nkeynes@1
   113
  GtkWidget *reset_btn;
nkeynes@1
   114
  GtkWidget *stop_btn;
nkeynes@1
   115
  GtkWidget *step_btn;
nkeynes@1
   116
  GtkWidget *run_btn;
nkeynes@1
   117
  GtkWidget *runto_btn;
nkeynes@1
   118
  GtkWidget *break_btn;
nkeynes@18
   119
  GtkWidget *loadstate_button;
nkeynes@18
   120
  GtkWidget *savestate_button;
nkeynes@1
   121
  GtkWidget *vpaned1;
nkeynes@1
   122
  GtkWidget *hpaned1;
nkeynes@1
   123
  GtkWidget *vbox2;
nkeynes@1
   124
  GtkWidget *hbox1;
nkeynes@1
   125
  GtkWidget *label21;
nkeynes@1
   126
  GtkWidget *page_field;
nkeynes@1
   127
  GtkWidget *page_locked_btn;
nkeynes@1
   128
  GtkWidget *jump_pc_btn;
nkeynes@1
   129
  GtkWidget *label22;
nkeynes@1
   130
  GtkWidget *mode_box;
nkeynes@1
   131
  GList *mode_box_items = NULL;
nkeynes@1
   132
  GtkWidget *mode_field;
nkeynes@1
   133
  GtkWidget *label23;
nkeynes@1
   134
  GtkWidget *scrolledwindow7;
nkeynes@1
   135
  GtkWidget *disasm_list;
nkeynes@1
   136
  GtkWidget *label24;
nkeynes@1
   137
  GtkWidget *label27;
nkeynes@1
   138
  GtkWidget *label28;
nkeynes@1
   139
  GtkWidget *label29;
nkeynes@1
   140
  GtkWidget *scrolledwindow4;
nkeynes@1
   141
  GtkWidget *reg_list;
nkeynes@1
   142
  GtkWidget *label25;
nkeynes@1
   143
  GtkWidget *label30;
nkeynes@1
   144
  GtkWidget *scrolledwindow8;
nkeynes@1
   145
  GtkWidget *output_list;
nkeynes@1
   146
  GtkWidget *label26;
nkeynes@1
   147
  GtkWidget *label31;
nkeynes@1
   148
  GtkWidget *label32;
nkeynes@1
   149
  GtkWidget *debug_appbar;
nkeynes@10
   150
  GtkTooltips *tooltips;
nkeynes@1
   151
nkeynes@10
   152
  tooltips = gtk_tooltips_new ();
nkeynes@10
   153
nkeynes@10
   154
  debug_win = gnome_app_new ("Dream", _("DreamOn! Debugger"));
nkeynes@1
   155
  gtk_window_set_default_size (GTK_WINDOW (debug_win), 1000, 700);
nkeynes@1
   156
nkeynes@1
   157
  dock1 = GNOME_APP (debug_win)->dock;
nkeynes@1
   158
  gtk_widget_show (dock1);
nkeynes@1
   159
nkeynes@1
   160
  gnome_app_create_menus (GNOME_APP (debug_win), menubar1_uiinfo);
nkeynes@1
   161
nkeynes@1
   162
  toolbar1 = gtk_toolbar_new ();
nkeynes@1
   163
  gtk_widget_show (toolbar1);
nkeynes@1
   164
  gnome_app_add_toolbar (GNOME_APP (debug_win), GTK_TOOLBAR (toolbar1), "toolbar1",
nkeynes@1
   165
                                BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
nkeynes@1
   166
                                BONOBO_DOCK_TOP, 1, 0, 0);
nkeynes@1
   167
  gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1);
nkeynes@1
   168
  gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
nkeynes@10
   169
  tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
nkeynes@1
   170
nkeynes@18
   171
  tmp_image = gtk_image_new_from_stock ("gtk-cdrom", tmp_toolbar_icon_size);
nkeynes@10
   172
  gtk_widget_show (tmp_image);
nkeynes@18
   173
  load_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Mount"));
nkeynes@1
   174
  gtk_widget_show (load_btn);
nkeynes@10
   175
  gtk_container_add (GTK_CONTAINER (toolbar1), load_btn);
nkeynes@18
   176
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (load_btn), tooltips, _("Mount CD-Rom"), NULL);
nkeynes@1
   177
nkeynes@10
   178
  tmp_image = gtk_image_new_from_stock ("gtk-refresh", tmp_toolbar_icon_size);
nkeynes@10
   179
  gtk_widget_show (tmp_image);
nkeynes@10
   180
  reset_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Reset"));
nkeynes@1
   181
  gtk_widget_show (reset_btn);
nkeynes@10
   182
  gtk_container_add (GTK_CONTAINER (toolbar1), reset_btn);
nkeynes@18
   183
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (reset_btn), tooltips, _("Reset emulator"), NULL);
nkeynes@1
   184
nkeynes@10
   185
  tmp_image = gtk_image_new_from_stock ("gtk-stop", tmp_toolbar_icon_size);
nkeynes@10
   186
  gtk_widget_show (tmp_image);
nkeynes@10
   187
  stop_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Stop"));
nkeynes@1
   188
  gtk_widget_show (stop_btn);
nkeynes@10
   189
  gtk_container_add (GTK_CONTAINER (toolbar1), stop_btn);
nkeynes@18
   190
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (stop_btn), tooltips, _("Stop"), NULL);
nkeynes@1
   191
nkeynes@10
   192
  tmp_image = gtk_image_new_from_stock ("gtk-redo", tmp_toolbar_icon_size);
nkeynes@10
   193
  gtk_widget_show (tmp_image);
nkeynes@10
   194
  step_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Step"));
nkeynes@1
   195
  gtk_widget_show (step_btn);
nkeynes@10
   196
  gtk_container_add (GTK_CONTAINER (toolbar1), step_btn);
nkeynes@18
   197
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (step_btn), tooltips, _("Single step"), NULL);
nkeynes@1
   198
nkeynes@10
   199
  tmp_image = gtk_image_new_from_stock ("gtk-go-forward", tmp_toolbar_icon_size);
nkeynes@10
   200
  gtk_widget_show (tmp_image);
nkeynes@10
   201
  run_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Run"));
nkeynes@1
   202
  gtk_widget_show (run_btn);
nkeynes@10
   203
  gtk_container_add (GTK_CONTAINER (toolbar1), run_btn);
nkeynes@18
   204
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (run_btn), tooltips, _("Run"), NULL);
nkeynes@1
   205
nkeynes@10
   206
  tmp_image = gtk_image_new_from_stock ("gtk-goto-last", tmp_toolbar_icon_size);
nkeynes@10
   207
  gtk_widget_show (tmp_image);
nkeynes@10
   208
  runto_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Run to"));
nkeynes@1
   209
  gtk_widget_show (runto_btn);
nkeynes@10
   210
  gtk_container_add (GTK_CONTAINER (toolbar1), runto_btn);
nkeynes@18
   211
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (runto_btn), tooltips, _("Run to current selection"), NULL);
nkeynes@1
   212
nkeynes@10
   213
  tmp_image = gtk_image_new_from_stock ("gtk-close", tmp_toolbar_icon_size);
nkeynes@10
   214
  gtk_widget_show (tmp_image);
nkeynes@10
   215
  break_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Break"));
nkeynes@1
   216
  gtk_widget_show (break_btn);
nkeynes@10
   217
  gtk_container_add (GTK_CONTAINER (toolbar1), break_btn);
nkeynes@18
   218
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (break_btn), tooltips, _("Set breakpoint"), NULL);
nkeynes@18
   219
nkeynes@18
   220
  tmp_image = gtk_image_new_from_stock ("gtk-open", tmp_toolbar_icon_size);
nkeynes@18
   221
  gtk_widget_show (tmp_image);
nkeynes@18
   222
  loadstate_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Load"));
nkeynes@18
   223
  gtk_widget_show (loadstate_button);
nkeynes@18
   224
  gtk_container_add (GTK_CONTAINER (toolbar1), loadstate_button);
nkeynes@18
   225
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (loadstate_button), tooltips, _("Load save-state file"), NULL);
nkeynes@18
   226
nkeynes@18
   227
  tmp_image = gtk_image_new_from_stock ("gtk-save", tmp_toolbar_icon_size);
nkeynes@18
   228
  gtk_widget_show (tmp_image);
nkeynes@18
   229
  savestate_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Save"));
nkeynes@18
   230
  gtk_widget_show (savestate_button);
nkeynes@18
   231
  gtk_container_add (GTK_CONTAINER (toolbar1), savestate_button);
nkeynes@18
   232
  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (savestate_button), tooltips, _("Save save-state file"), NULL);
nkeynes@1
   233
nkeynes@1
   234
  vpaned1 = gtk_vpaned_new ();
nkeynes@1
   235
  gtk_widget_show (vpaned1);
nkeynes@1
   236
  gnome_app_set_contents (GNOME_APP (debug_win), vpaned1);
nkeynes@1
   237
  gtk_paned_set_position (GTK_PANED (vpaned1), 430);
nkeynes@1
   238
nkeynes@1
   239
  hpaned1 = gtk_hpaned_new ();
nkeynes@1
   240
  gtk_widget_show (hpaned1);
nkeynes@1
   241
  gtk_paned_pack1 (GTK_PANED (vpaned1), hpaned1, TRUE, TRUE);
nkeynes@1
   242
  gtk_paned_set_position (GTK_PANED (hpaned1), 800);
nkeynes@1
   243
nkeynes@1
   244
  vbox2 = gtk_vbox_new (FALSE, 0);
nkeynes@1
   245
  gtk_widget_show (vbox2);
nkeynes@1
   246
  gtk_paned_pack1 (GTK_PANED (hpaned1), vbox2, FALSE, TRUE);
nkeynes@1
   247
nkeynes@1
   248
  hbox1 = gtk_hbox_new (FALSE, 0);
nkeynes@1
   249
  gtk_widget_show (hbox1);
nkeynes@1
   250
  gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 3);
nkeynes@1
   251
nkeynes@1
   252
  label21 = gtk_label_new (_("Page"));
nkeynes@1
   253
  gtk_widget_show (label21);
nkeynes@1
   254
  gtk_box_pack_start (GTK_BOX (hbox1), label21, FALSE, FALSE, 4);
nkeynes@1
   255
  gtk_label_set_justify (GTK_LABEL (label21), GTK_JUSTIFY_CENTER);
nkeynes@1
   256
nkeynes@1
   257
  page_field = gtk_entry_new ();
nkeynes@1
   258
  gtk_widget_show (page_field);
nkeynes@1
   259
  gtk_box_pack_start (GTK_BOX (hbox1), page_field, FALSE, TRUE, 0);
nkeynes@1
   260
nkeynes@1
   261
  page_locked_btn = gtk_check_button_new_with_mnemonic (_("Locked"));
nkeynes@1
   262
  gtk_widget_show (page_locked_btn);
nkeynes@1
   263
  gtk_box_pack_start (GTK_BOX (hbox1), page_locked_btn, FALSE, FALSE, 5);
nkeynes@1
   264
nkeynes@1
   265
  jump_pc_btn = gtk_button_new_with_mnemonic (_(" Jump to PC "));
nkeynes@1
   266
  gtk_widget_show (jump_pc_btn);
nkeynes@1
   267
  gtk_box_pack_start (GTK_BOX (hbox1), jump_pc_btn, FALSE, FALSE, 4);
nkeynes@1
   268
nkeynes@1
   269
  label22 = gtk_label_new (_("Mode"));
nkeynes@1
   270
  gtk_widget_show (label22);
nkeynes@1
   271
  gtk_box_pack_start (GTK_BOX (hbox1), label22, FALSE, FALSE, 5);
nkeynes@1
   272
  gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_RIGHT);
nkeynes@1
   273
  gtk_misc_set_alignment (GTK_MISC (label22), 1, 0.5);
nkeynes@1
   274
nkeynes@1
   275
  mode_box = gtk_combo_new ();
nkeynes@1
   276
  g_object_set_data (G_OBJECT (GTK_COMBO (mode_box)->popwin),
nkeynes@1
   277
                     "GladeParentKey", mode_box);
nkeynes@1
   278
  gtk_widget_show (mode_box);
nkeynes@1
   279
  gtk_box_pack_start (GTK_BOX (hbox1), mode_box, FALSE, FALSE, 0);
nkeynes@10
   280
  mode_box_items = g_list_append (mode_box_items, (gpointer) _("SH4"));
nkeynes@10
   281
  mode_box_items = g_list_append (mode_box_items, (gpointer) _("ARM7"));
nkeynes@10
   282
  mode_box_items = g_list_append (mode_box_items, (gpointer) _("ARM7T"));
nkeynes@1
   283
  gtk_combo_set_popdown_strings (GTK_COMBO (mode_box), mode_box_items);
nkeynes@1
   284
  g_list_free (mode_box_items);
nkeynes@1
   285
nkeynes@1
   286
  mode_field = GTK_COMBO (mode_box)->entry;
nkeynes@1
   287
  gtk_widget_show (mode_field);
nkeynes@10
   288
  gtk_editable_set_editable (GTK_EDITABLE (mode_field), FALSE);
nkeynes@1
   289
nkeynes@1
   290
  label23 = gtk_label_new ("");
nkeynes@1
   291
  gtk_widget_show (label23);
nkeynes@1
   292
  gtk_box_pack_start (GTK_BOX (hbox1), label23, TRUE, TRUE, 4);
nkeynes@1
   293
  gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_CENTER);
nkeynes@1
   294
nkeynes@1
   295
  scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   296
  gtk_widget_show (scrolledwindow7);
nkeynes@1
   297
  gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow7, TRUE, TRUE, 0);
nkeynes@1
   298
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow7, GTK_CAN_FOCUS);
nkeynes@1
   299
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
nkeynes@1
   300
nkeynes@1
   301
  disasm_list = gtk_clist_new (4);
nkeynes@1
   302
  gtk_widget_show (disasm_list);
nkeynes@1
   303
  gtk_container_add (GTK_CONTAINER (scrolledwindow7), disasm_list);
nkeynes@1
   304
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 0, 80);
nkeynes@1
   305
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 1, 80);
nkeynes@1
   306
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 2, 80);
nkeynes@1
   307
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 3, 80);
nkeynes@1
   308
  gtk_clist_column_titles_hide (GTK_CLIST (disasm_list));
nkeynes@1
   309
nkeynes@1
   310
  label24 = gtk_label_new ("");
nkeynes@1
   311
  gtk_widget_show (label24);
nkeynes@1
   312
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 0, label24);
nkeynes@1
   313
nkeynes@1
   314
  label27 = gtk_label_new ("");
nkeynes@1
   315
  gtk_widget_show (label27);
nkeynes@1
   316
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 1, label27);
nkeynes@1
   317
nkeynes@1
   318
  label28 = gtk_label_new ("");
nkeynes@1
   319
  gtk_widget_show (label28);
nkeynes@1
   320
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 2, label28);
nkeynes@1
   321
nkeynes@1
   322
  label29 = gtk_label_new ("");
nkeynes@1
   323
  gtk_widget_show (label29);
nkeynes@1
   324
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 3, label29);
nkeynes@1
   325
nkeynes@1
   326
  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   327
  gtk_widget_show (scrolledwindow4);
nkeynes@1
   328
  gtk_paned_pack2 (GTK_PANED (hpaned1), scrolledwindow4, FALSE, TRUE);
nkeynes@1
   329
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
nkeynes@1
   330
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
nkeynes@1
   331
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
nkeynes@1
   332
nkeynes@1
   333
  reg_list = gtk_clist_new (2);
nkeynes@1
   334
  gtk_widget_show (reg_list);
nkeynes@1
   335
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), reg_list);
nkeynes@1
   336
  gtk_clist_set_column_width (GTK_CLIST (reg_list), 0, 80);
nkeynes@1
   337
  gtk_clist_set_column_width (GTK_CLIST (reg_list), 1, 80);
nkeynes@1
   338
  gtk_clist_column_titles_hide (GTK_CLIST (reg_list));
nkeynes@1
   339
nkeynes@1
   340
  label25 = gtk_label_new ("");
nkeynes@1
   341
  gtk_widget_show (label25);
nkeynes@1
   342
  gtk_clist_set_column_widget (GTK_CLIST (reg_list), 0, label25);
nkeynes@1
   343
nkeynes@1
   344
  label30 = gtk_label_new ("");
nkeynes@1
   345
  gtk_widget_show (label30);
nkeynes@1
   346
  gtk_clist_set_column_widget (GTK_CLIST (reg_list), 1, label30);
nkeynes@1
   347
nkeynes@1
   348
  scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   349
  gtk_widget_show (scrolledwindow8);
nkeynes@1
   350
  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow8, FALSE, TRUE);
nkeynes@1
   351
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow8, GTK_CAN_FOCUS);
nkeynes@1
   352
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
nkeynes@1
   353
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
nkeynes@1
   354
nkeynes@35
   355
  output_list = gtk_clist_new (4);
nkeynes@1
   356
  gtk_widget_show (output_list);
nkeynes@1
   357
  gtk_container_add (GTK_CONTAINER (scrolledwindow8), output_list);
nkeynes@1
   358
  gtk_clist_set_column_width (GTK_CLIST (output_list), 0, 80);
nkeynes@1
   359
  gtk_clist_set_column_width (GTK_CLIST (output_list), 1, 80);
nkeynes@1
   360
  gtk_clist_set_column_width (GTK_CLIST (output_list), 2, 80);
nkeynes@35
   361
  gtk_clist_set_column_width (GTK_CLIST (output_list), 3, 80);
nkeynes@1
   362
  gtk_clist_column_titles_hide (GTK_CLIST (output_list));
nkeynes@1
   363
nkeynes@1
   364
  label26 = gtk_label_new ("");
nkeynes@1
   365
  gtk_widget_show (label26);
nkeynes@1
   366
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 0, label26);
nkeynes@1
   367
nkeynes@1
   368
  label31 = gtk_label_new ("");
nkeynes@1
   369
  gtk_widget_show (label31);
nkeynes@1
   370
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 1, label31);
nkeynes@1
   371
nkeynes@1
   372
  label32 = gtk_label_new ("");
nkeynes@1
   373
  gtk_widget_show (label32);
nkeynes@1
   374
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 2, label32);
nkeynes@1
   375
nkeynes@1
   376
  debug_appbar = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER);
nkeynes@1
   377
  gtk_widget_show (debug_appbar);
nkeynes@1
   378
  gnome_app_set_statusbar (GNOME_APP (debug_win), debug_appbar);
nkeynes@1
   379
nkeynes@1
   380
  g_signal_connect ((gpointer) debug_win, "delete_event",
nkeynes@1
   381
                    G_CALLBACK (on_debug_win_delete_event),
nkeynes@1
   382
                    NULL);
nkeynes@1
   383
  gnome_app_install_menu_hints (GNOME_APP (debug_win), menubar1_uiinfo);
nkeynes@1
   384
  g_signal_connect ((gpointer) load_btn, "clicked",
nkeynes@1
   385
                    G_CALLBACK (on_load_btn_clicked),
nkeynes@1
   386
                    NULL);
nkeynes@1
   387
  g_signal_connect ((gpointer) reset_btn, "clicked",
nkeynes@1
   388
                    G_CALLBACK (on_reset_btn_clicked),
nkeynes@1
   389
                    NULL);
nkeynes@1
   390
  g_signal_connect ((gpointer) stop_btn, "clicked",
nkeynes@1
   391
                    G_CALLBACK (on_stop_btn_clicked),
nkeynes@1
   392
                    NULL);
nkeynes@1
   393
  g_signal_connect ((gpointer) step_btn, "clicked",
nkeynes@1
   394
                    G_CALLBACK (on_step_btn_clicked),
nkeynes@1
   395
                    NULL);
nkeynes@1
   396
  g_signal_connect ((gpointer) run_btn, "clicked",
nkeynes@1
   397
                    G_CALLBACK (on_run_btn_clicked),
nkeynes@1
   398
                    NULL);
nkeynes@1
   399
  g_signal_connect ((gpointer) runto_btn, "clicked",
nkeynes@1
   400
                    G_CALLBACK (on_runto_btn_clicked),
nkeynes@1
   401
                    NULL);
nkeynes@1
   402
  g_signal_connect ((gpointer) break_btn, "clicked",
nkeynes@1
   403
                    G_CALLBACK (on_break_btn_clicked),
nkeynes@1
   404
                    NULL);
nkeynes@18
   405
  g_signal_connect ((gpointer) loadstate_button, "clicked",
nkeynes@18
   406
                    G_CALLBACK (on_loadstate_button_clicked),
nkeynes@18
   407
                    NULL);
nkeynes@18
   408
  g_signal_connect ((gpointer) savestate_button, "clicked",
nkeynes@18
   409
                    G_CALLBACK (on_savestate_button_clicked),
nkeynes@18
   410
                    NULL);
nkeynes@1
   411
  g_signal_connect ((gpointer) page_field, "key_press_event",
nkeynes@1
   412
                    G_CALLBACK (on_page_field_key_press_event),
nkeynes@1
   413
                    NULL);
nkeynes@1
   414
  g_signal_connect ((gpointer) page_locked_btn, "toggled",
nkeynes@1
   415
                    G_CALLBACK (on_page_locked_btn_toggled),
nkeynes@1
   416
                    NULL);
nkeynes@1
   417
  g_signal_connect ((gpointer) jump_pc_btn, "clicked",
nkeynes@1
   418
                    G_CALLBACK (on_jump_pc_btn_clicked),
nkeynes@1
   419
                    NULL);
nkeynes@1
   420
  g_signal_connect ((gpointer) mode_field, "changed",
nkeynes@1
   421
                    G_CALLBACK (on_mode_field_changed),
nkeynes@1
   422
                    NULL);
nkeynes@1
   423
  g_signal_connect ((gpointer) disasm_list, "select_row",
nkeynes@1
   424
                    G_CALLBACK (on_disasm_list_select_row),
nkeynes@1
   425
                    NULL);
nkeynes@1
   426
  g_signal_connect ((gpointer) disasm_list, "unselect_row",
nkeynes@1
   427
                    G_CALLBACK (on_disasm_list_unselect_row),
nkeynes@1
   428
                    NULL);
nkeynes@1
   429
  g_signal_connect ((gpointer) output_list, "select_row",
nkeynes@1
   430
                    G_CALLBACK (on_output_list_select_row),
nkeynes@1
   431
                    NULL);
nkeynes@1
   432
nkeynes@1
   433
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   434
  GLADE_HOOKUP_OBJECT_NO_REF (debug_win, debug_win, "debug_win");
nkeynes@1
   435
  GLADE_HOOKUP_OBJECT (debug_win, dock1, "dock1");
nkeynes@1
   436
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[0].widget, "file1");
nkeynes@1
   437
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[0].widget, "new_file1");
nkeynes@1
   438
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[1].widget, "open1");
nkeynes@1
   439
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[2].widget, "save1");
nkeynes@1
   440
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[3].widget, "save_as1");
nkeynes@1
   441
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[4].widget, "separator1");
nkeynes@1
   442
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[5].widget, "exit1");
nkeynes@1
   443
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[1].widget, "view1");
nkeynes@2
   444
  GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[0].widget, "view_memory");
nkeynes@2
   445
  GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[1].widget, "mem_mapped_regs1");
nkeynes@1
   446
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[2].widget, "settings1");
nkeynes@1
   447
  GLADE_HOOKUP_OBJECT (debug_win, settings1_menu_uiinfo[0].widget, "preferences1");
nkeynes@1
   448
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[3].widget, "help1");
nkeynes@1
   449
  GLADE_HOOKUP_OBJECT (debug_win, help1_menu_uiinfo[0].widget, "about1");
nkeynes@1
   450
  GLADE_HOOKUP_OBJECT (debug_win, toolbar1, "toolbar1");
nkeynes@1
   451
  GLADE_HOOKUP_OBJECT (debug_win, load_btn, "load_btn");
nkeynes@1
   452
  GLADE_HOOKUP_OBJECT (debug_win, reset_btn, "reset_btn");
nkeynes@1
   453
  GLADE_HOOKUP_OBJECT (debug_win, stop_btn, "stop_btn");
nkeynes@1
   454
  GLADE_HOOKUP_OBJECT (debug_win, step_btn, "step_btn");
nkeynes@1
   455
  GLADE_HOOKUP_OBJECT (debug_win, run_btn, "run_btn");
nkeynes@1
   456
  GLADE_HOOKUP_OBJECT (debug_win, runto_btn, "runto_btn");
nkeynes@1
   457
  GLADE_HOOKUP_OBJECT (debug_win, break_btn, "break_btn");
nkeynes@18
   458
  GLADE_HOOKUP_OBJECT (debug_win, loadstate_button, "loadstate_button");
nkeynes@18
   459
  GLADE_HOOKUP_OBJECT (debug_win, savestate_button, "savestate_button");
nkeynes@1
   460
  GLADE_HOOKUP_OBJECT (debug_win, vpaned1, "vpaned1");
nkeynes@1
   461
  GLADE_HOOKUP_OBJECT (debug_win, hpaned1, "hpaned1");
nkeynes@1
   462
  GLADE_HOOKUP_OBJECT (debug_win, vbox2, "vbox2");
nkeynes@1
   463
  GLADE_HOOKUP_OBJECT (debug_win, hbox1, "hbox1");
nkeynes@1
   464
  GLADE_HOOKUP_OBJECT (debug_win, label21, "label21");
nkeynes@1
   465
  GLADE_HOOKUP_OBJECT (debug_win, page_field, "page_field");
nkeynes@1
   466
  GLADE_HOOKUP_OBJECT (debug_win, page_locked_btn, "page_locked_btn");
nkeynes@1
   467
  GLADE_HOOKUP_OBJECT (debug_win, jump_pc_btn, "jump_pc_btn");
nkeynes@1
   468
  GLADE_HOOKUP_OBJECT (debug_win, label22, "label22");
nkeynes@1
   469
  GLADE_HOOKUP_OBJECT (debug_win, mode_box, "mode_box");
nkeynes@1
   470
  GLADE_HOOKUP_OBJECT (debug_win, mode_field, "mode_field");
nkeynes@1
   471
  GLADE_HOOKUP_OBJECT (debug_win, label23, "label23");
nkeynes@1
   472
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow7, "scrolledwindow7");
nkeynes@1
   473
  GLADE_HOOKUP_OBJECT (debug_win, disasm_list, "disasm_list");
nkeynes@1
   474
  GLADE_HOOKUP_OBJECT (debug_win, label24, "label24");
nkeynes@1
   475
  GLADE_HOOKUP_OBJECT (debug_win, label27, "label27");
nkeynes@1
   476
  GLADE_HOOKUP_OBJECT (debug_win, label28, "label28");
nkeynes@1
   477
  GLADE_HOOKUP_OBJECT (debug_win, label29, "label29");
nkeynes@1
   478
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow4, "scrolledwindow4");
nkeynes@1
   479
  GLADE_HOOKUP_OBJECT (debug_win, reg_list, "reg_list");
nkeynes@1
   480
  GLADE_HOOKUP_OBJECT (debug_win, label25, "label25");
nkeynes@1
   481
  GLADE_HOOKUP_OBJECT (debug_win, label30, "label30");
nkeynes@1
   482
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow8, "scrolledwindow8");
nkeynes@1
   483
  GLADE_HOOKUP_OBJECT (debug_win, output_list, "output_list");
nkeynes@1
   484
  GLADE_HOOKUP_OBJECT (debug_win, label26, "label26");
nkeynes@1
   485
  GLADE_HOOKUP_OBJECT (debug_win, label31, "label31");
nkeynes@1
   486
  GLADE_HOOKUP_OBJECT (debug_win, label32, "label32");
nkeynes@1
   487
  GLADE_HOOKUP_OBJECT (debug_win, debug_appbar, "debug_appbar");
nkeynes@10
   488
  GLADE_HOOKUP_OBJECT_NO_REF (debug_win, tooltips, "tooltips");
nkeynes@1
   489
nkeynes@1
   490
  return debug_win;
nkeynes@1
   491
}
nkeynes@1
   492
nkeynes@1
   493
GtkWidget*
nkeynes@1
   494
create_mmr_win (void)
nkeynes@1
   495
{
nkeynes@1
   496
  GtkWidget *mmr_win;
nkeynes@1
   497
  GtkWidget *vbox1;
nkeynes@1
   498
  GtkWidget *mmr_notebook;
nkeynes@1
   499
  GtkWidget *empty_notebook_page;
nkeynes@1
   500
  GtkWidget *label16;
nkeynes@1
   501
  GtkWidget *hbuttonbox1;
nkeynes@1
   502
  GtkWidget *mmr_close;
nkeynes@1
   503
nkeynes@1
   504
  mmr_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
nkeynes@1
   505
  gtk_window_set_title (GTK_WINDOW (mmr_win), _("DreamOn! - Memory-Mapped Registers"));
nkeynes@1
   506
  gtk_window_set_default_size (GTK_WINDOW (mmr_win), 600, 600);
nkeynes@1
   507
nkeynes@1
   508
  vbox1 = gtk_vbox_new (FALSE, 0);
nkeynes@1
   509
  gtk_widget_show (vbox1);
nkeynes@1
   510
  gtk_container_add (GTK_CONTAINER (mmr_win), vbox1);
nkeynes@1
   511
nkeynes@1
   512
  mmr_notebook = gtk_notebook_new ();
nkeynes@1
   513
  gtk_widget_show (mmr_notebook);
nkeynes@1
   514
  gtk_box_pack_start (GTK_BOX (vbox1), mmr_notebook, TRUE, TRUE, 0);
nkeynes@1
   515
  gtk_notebook_set_tab_pos (GTK_NOTEBOOK (mmr_notebook), GTK_POS_LEFT);
nkeynes@1
   516
nkeynes@1
   517
  empty_notebook_page = gtk_vbox_new (FALSE, 0);
nkeynes@1
   518
  gtk_widget_show (empty_notebook_page);
nkeynes@1
   519
  gtk_container_add (GTK_CONTAINER (mmr_notebook), empty_notebook_page);
nkeynes@1
   520
nkeynes@1
   521
  label16 = gtk_label_new (_("label16"));
nkeynes@1
   522
  gtk_widget_show (label16);
nkeynes@1
   523
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (mmr_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mmr_notebook), 0), label16);
nkeynes@1
   524
  gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_CENTER);
nkeynes@1
   525
nkeynes@1
   526
  hbuttonbox1 = gtk_hbutton_box_new ();
nkeynes@1
   527
  gtk_widget_show (hbuttonbox1);
nkeynes@1
   528
  gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, TRUE, 0);
nkeynes@1
   529
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);
nkeynes@1
   530
nkeynes@1
   531
  mmr_close = gtk_button_new_with_mnemonic (_("Close"));
nkeynes@1
   532
  gtk_widget_show (mmr_close);
nkeynes@1
   533
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), mmr_close);
nkeynes@1
   534
  GTK_WIDGET_SET_FLAGS (mmr_close, GTK_CAN_DEFAULT);
nkeynes@1
   535
nkeynes@1
   536
  g_signal_connect ((gpointer) mmr_win, "delete_event",
nkeynes@1
   537
                    G_CALLBACK (on_mmr_win_delete_event),
nkeynes@1
   538
                    NULL);
nkeynes@1
   539
  g_signal_connect ((gpointer) mmr_close, "clicked",
nkeynes@1
   540
                    G_CALLBACK (on_mmr_close_clicked),
nkeynes@1
   541
                    NULL);
nkeynes@1
   542
nkeynes@1
   543
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   544
  GLADE_HOOKUP_OBJECT_NO_REF (mmr_win, mmr_win, "mmr_win");
nkeynes@1
   545
  GLADE_HOOKUP_OBJECT (mmr_win, vbox1, "vbox1");
nkeynes@1
   546
  GLADE_HOOKUP_OBJECT (mmr_win, mmr_notebook, "mmr_notebook");
nkeynes@1
   547
  GLADE_HOOKUP_OBJECT (mmr_win, label16, "label16");
nkeynes@1
   548
  GLADE_HOOKUP_OBJECT (mmr_win, hbuttonbox1, "hbuttonbox1");
nkeynes@1
   549
  GLADE_HOOKUP_OBJECT (mmr_win, mmr_close, "mmr_close");
nkeynes@1
   550
nkeynes@1
   551
  return mmr_win;
nkeynes@1
   552
}
nkeynes@1
   553
nkeynes@1
   554
GtkWidget*
nkeynes@1
   555
create_about_win (void)
nkeynes@1
   556
{
nkeynes@1
   557
  const gchar *authors[] = {
nkeynes@1
   558
    "Nathan Keynes",
nkeynes@1
   559
    NULL
nkeynes@1
   560
  };
nkeynes@1
   561
  const gchar *documenters[] = { NULL };
nkeynes@1
   562
  /* TRANSLATORS: Replace this string with your names, one name per line. */
nkeynes@1
   563
  gchar *translators = _("translator_credits");
nkeynes@1
   564
  GdkPixbuf *about_win_logo_pixbuf;
nkeynes@1
   565
  GtkWidget *about_win;
nkeynes@1
   566
nkeynes@1
   567
  if (!strcmp (translators, "translator_credits"))
nkeynes@1
   568
    translators = NULL;
nkeynes@1
   569
  about_win_logo_pixbuf = create_pixbuf ("dream/dcemu.gif");
nkeynes@10
   570
  about_win = gnome_about_new ("Dream", VERSION,
nkeynes@1
   571
                        _("Copyright(c) 2002 Nathan Keynes"),
nkeynes@1
   572
                        "",
nkeynes@1
   573
                        authors,
nkeynes@1
   574
                        documenters,
nkeynes@1
   575
                        translators,
nkeynes@1
   576
                        about_win_logo_pixbuf);
nkeynes@1
   577
  gtk_container_set_border_width (GTK_CONTAINER (about_win), 1);
nkeynes@10
   578
  gtk_window_set_type_hint (GTK_WINDOW (about_win), GDK_WINDOW_TYPE_HINT_DIALOG);
nkeynes@1
   579
nkeynes@1
   580
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   581
  GLADE_HOOKUP_OBJECT_NO_REF (about_win, about_win, "about_win");
nkeynes@1
   582
nkeynes@1
   583
  return about_win;
nkeynes@1
   584
}
nkeynes@1
   585
nkeynes@2
   586
GtkWidget*
nkeynes@2
   587
create_dump_win (void)
nkeynes@2
   588
{
nkeynes@2
   589
  GtkWidget *dump_win;
nkeynes@2
   590
  GtkWidget *vbox3;
nkeynes@2
   591
  GtkWidget *hbox2;
nkeynes@2
   592
  GtkWidget *label34;
nkeynes@2
   593
  GtkWidget *dump_from;
nkeynes@2
   594
  GtkWidget *label35;
nkeynes@2
   595
  GtkWidget *dump_to;
nkeynes@2
   596
  GtkWidget *dump_view_button;
nkeynes@2
   597
  GtkWidget *label36;
nkeynes@2
   598
  GtkWidget *scrolledwindow9;
nkeynes@2
   599
  GtkWidget *dump_text;
nkeynes@2
   600
nkeynes@2
   601
  dump_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
nkeynes@2
   602
  gtk_window_set_title (GTK_WINDOW (dump_win), _("Memory dump"));
nkeynes@2
   603
nkeynes@2
   604
  vbox3 = gtk_vbox_new (FALSE, 0);
nkeynes@2
   605
  gtk_widget_show (vbox3);
nkeynes@2
   606
  gtk_container_add (GTK_CONTAINER (dump_win), vbox3);
nkeynes@2
   607
nkeynes@2
   608
  hbox2 = gtk_hbox_new (FALSE, 0);
nkeynes@2
   609
  gtk_widget_show (hbox2);
nkeynes@2
   610
  gtk_box_pack_start (GTK_BOX (vbox3), hbox2, FALSE, TRUE, 3);
nkeynes@2
   611
nkeynes@2
   612
  label34 = gtk_label_new (_(" From "));
nkeynes@2
   613
  gtk_widget_show (label34);
nkeynes@2
   614
  gtk_box_pack_start (GTK_BOX (hbox2), label34, FALSE, FALSE, 0);
nkeynes@2
   615
nkeynes@2
   616
  dump_from = gtk_entry_new ();
nkeynes@2
   617
  gtk_widget_show (dump_from);
nkeynes@2
   618
  gtk_box_pack_start (GTK_BOX (hbox2), dump_from, FALSE, TRUE, 0);
nkeynes@2
   619
nkeynes@2
   620
  label35 = gtk_label_new (_(" To "));
nkeynes@2
   621
  gtk_widget_show (label35);
nkeynes@2
   622
  gtk_box_pack_start (GTK_BOX (hbox2), label35, FALSE, FALSE, 0);
nkeynes@2
   623
nkeynes@2
   624
  dump_to = gtk_entry_new ();
nkeynes@2
   625
  gtk_widget_show (dump_to);
nkeynes@2
   626
  gtk_box_pack_start (GTK_BOX (hbox2), dump_to, FALSE, TRUE, 0);
nkeynes@2
   627
nkeynes@2
   628
  dump_view_button = gtk_button_new_with_mnemonic (_("View"));
nkeynes@2
   629
  gtk_widget_show (dump_view_button);
nkeynes@2
   630
  gtk_box_pack_start (GTK_BOX (hbox2), dump_view_button, FALSE, FALSE, 0);
nkeynes@2
   631
nkeynes@2
   632
  label36 = gtk_label_new (_("   "));
nkeynes@2
   633
  gtk_widget_show (label36);
nkeynes@2
   634
  gtk_box_pack_start (GTK_BOX (hbox2), label36, TRUE, TRUE, 0);
nkeynes@2
   635
nkeynes@2
   636
  scrolledwindow9 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@2
   637
  gtk_widget_show (scrolledwindow9);
nkeynes@2
   638
  gtk_box_pack_start (GTK_BOX (vbox3), scrolledwindow9, TRUE, TRUE, 0);
nkeynes@2
   639
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow9), GTK_SHADOW_IN);
nkeynes@2
   640
nkeynes@2
   641
  dump_text = gtk_text_view_new ();
nkeynes@2
   642
  gtk_widget_show (dump_text);
nkeynes@2
   643
  gtk_container_add (GTK_CONTAINER (scrolledwindow9), dump_text);
nkeynes@2
   644
nkeynes@2
   645
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@2
   646
  GLADE_HOOKUP_OBJECT_NO_REF (dump_win, dump_win, "dump_win");
nkeynes@2
   647
  GLADE_HOOKUP_OBJECT (dump_win, vbox3, "vbox3");
nkeynes@2
   648
  GLADE_HOOKUP_OBJECT (dump_win, hbox2, "hbox2");
nkeynes@2
   649
  GLADE_HOOKUP_OBJECT (dump_win, label34, "label34");
nkeynes@2
   650
  GLADE_HOOKUP_OBJECT (dump_win, dump_from, "dump_from");
nkeynes@2
   651
  GLADE_HOOKUP_OBJECT (dump_win, label35, "label35");
nkeynes@2
   652
  GLADE_HOOKUP_OBJECT (dump_win, dump_to, "dump_to");
nkeynes@2
   653
  GLADE_HOOKUP_OBJECT (dump_win, dump_view_button, "dump_view_button");
nkeynes@2
   654
  GLADE_HOOKUP_OBJECT (dump_win, label36, "label36");
nkeynes@2
   655
  GLADE_HOOKUP_OBJECT (dump_win, scrolledwindow9, "scrolledwindow9");
nkeynes@2
   656
  GLADE_HOOKUP_OBJECT (dump_win, dump_text, "dump_text");
nkeynes@2
   657
nkeynes@2
   658
  return dump_win;
nkeynes@2
   659
}
nkeynes@2
   660
nkeynes@2
   661
GtkWidget*
nkeynes@2
   662
create_watch_win (void)
nkeynes@2
   663
{
nkeynes@2
   664
  GtkWidget *watch_win;
nkeynes@2
   665
  GtkWidget *vbox4;
nkeynes@2
   666
  GtkWidget *hbox4;
nkeynes@2
   667
  GtkWidget *label37;
nkeynes@2
   668
  GtkWidget *watch_start_addr;
nkeynes@2
   669
  GtkWidget *label38;
nkeynes@2
   670
  GtkWidget *watch_end_addr;
nkeynes@2
   671
  GtkWidget *label39;
nkeynes@2
   672
  GtkWidget *combo1;
nkeynes@2
   673
  GtkWidget *watch_type;
nkeynes@2
   674
  GtkWidget *button_add_watch;
nkeynes@2
   675
  GtkWidget *scrolledwindow10;
nkeynes@2
   676
  GtkWidget *treeview1;
nkeynes@2
   677
  GtkWidget *hbox5;
nkeynes@2
   678
  GtkWidget *label40;
nkeynes@2
   679
  GtkWidget *button_clear_all;
nkeynes@2
   680
  GtkWidget *button_close;
nkeynes@2
   681
nkeynes@2
   682
  watch_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
nkeynes@2
   683
  gtk_window_set_title (GTK_WINDOW (watch_win), _("Watchpoints"));
nkeynes@2
   684
nkeynes@2
   685
  vbox4 = gtk_vbox_new (FALSE, 0);
nkeynes@2
   686
  gtk_widget_show (vbox4);
nkeynes@2
   687
  gtk_container_add (GTK_CONTAINER (watch_win), vbox4);
nkeynes@2
   688
nkeynes@2
   689
  hbox4 = gtk_hbox_new (FALSE, 0);
nkeynes@2
   690
  gtk_widget_show (hbox4);
nkeynes@2
   691
  gtk_box_pack_start (GTK_BOX (vbox4), hbox4, FALSE, TRUE, 3);
nkeynes@2
   692
nkeynes@2
   693
  label37 = gtk_label_new (_("Start addr "));
nkeynes@2
   694
  gtk_widget_show (label37);
nkeynes@2
   695
  gtk_box_pack_start (GTK_BOX (hbox4), label37, FALSE, FALSE, 3);
nkeynes@2
   696
nkeynes@2
   697
  watch_start_addr = gtk_entry_new ();
nkeynes@2
   698
  gtk_widget_show (watch_start_addr);
nkeynes@2
   699
  gtk_box_pack_start (GTK_BOX (hbox4), watch_start_addr, FALSE, TRUE, 0);
nkeynes@2
   700
nkeynes@2
   701
  label38 = gtk_label_new (_("End addr"));
nkeynes@2
   702
  gtk_widget_show (label38);
nkeynes@2
   703
  gtk_box_pack_start (GTK_BOX (hbox4), label38, FALSE, FALSE, 3);
nkeynes@2
   704
nkeynes@2
   705
  watch_end_addr = gtk_entry_new ();
nkeynes@2
   706
  gtk_widget_show (watch_end_addr);
nkeynes@2
   707
  gtk_box_pack_start (GTK_BOX (hbox4), watch_end_addr, FALSE, TRUE, 0);
nkeynes@2
   708
nkeynes@2
   709
  label39 = gtk_label_new (_("Type"));
nkeynes@2
   710
  gtk_widget_show (label39);
nkeynes@2
   711
  gtk_box_pack_start (GTK_BOX (hbox4), label39, FALSE, FALSE, 3);
nkeynes@2
   712
nkeynes@2
   713
  combo1 = gtk_combo_new ();
nkeynes@2
   714
  g_object_set_data (G_OBJECT (GTK_COMBO (combo1)->popwin),
nkeynes@2
   715
                     "GladeParentKey", combo1);
nkeynes@2
   716
  gtk_widget_show (combo1);
nkeynes@2
   717
  gtk_box_pack_start (GTK_BOX (hbox4), combo1, TRUE, TRUE, 0);
nkeynes@2
   718
nkeynes@2
   719
  watch_type = GTK_COMBO (combo1)->entry;
nkeynes@2
   720
  gtk_widget_show (watch_type);
nkeynes@2
   721
nkeynes@2
   722
  button_add_watch = gtk_button_new_with_mnemonic (_("Add Watch"));
nkeynes@2
   723
  gtk_widget_show (button_add_watch);
nkeynes@2
   724
  gtk_box_pack_start (GTK_BOX (hbox4), button_add_watch, FALSE, FALSE, 3);
nkeynes@2
   725
nkeynes@2
   726
  scrolledwindow10 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@2
   727
  gtk_widget_show (scrolledwindow10);
nkeynes@2
   728
  gtk_box_pack_start (GTK_BOX (vbox4), scrolledwindow10, TRUE, TRUE, 0);
nkeynes@2
   729
nkeynes@2
   730
  treeview1 = gtk_tree_view_new ();
nkeynes@2
   731
  gtk_widget_show (treeview1);
nkeynes@2
   732
  gtk_container_add (GTK_CONTAINER (scrolledwindow10), treeview1);
nkeynes@2
   733
  gtk_tree_view_set_enable_search (GTK_TREE_VIEW (treeview1), FALSE);
nkeynes@2
   734
nkeynes@2
   735
  hbox5 = gtk_hbox_new (FALSE, 0);
nkeynes@2
   736
  gtk_widget_show (hbox5);
nkeynes@2
   737
  gtk_box_pack_start (GTK_BOX (vbox4), hbox5, FALSE, TRUE, 3);
nkeynes@2
   738
nkeynes@2
   739
  label40 = gtk_label_new ("");
nkeynes@2
   740
  gtk_widget_show (label40);
nkeynes@2
   741
  gtk_box_pack_start (GTK_BOX (hbox5), label40, TRUE, TRUE, 0);
nkeynes@2
   742
nkeynes@2
   743
  button_clear_all = gtk_button_new_with_mnemonic (_("Clear all"));
nkeynes@2
   744
  gtk_widget_show (button_clear_all);
nkeynes@2
   745
  gtk_box_pack_start (GTK_BOX (hbox5), button_clear_all, FALSE, FALSE, 3);
nkeynes@2
   746
nkeynes@2
   747
  button_close = gtk_button_new_with_mnemonic (_("Close"));
nkeynes@2
   748
  gtk_widget_show (button_close);
nkeynes@2
   749
  gtk_box_pack_start (GTK_BOX (hbox5), button_close, FALSE, FALSE, 5);
nkeynes@2
   750
nkeynes@2
   751
  g_signal_connect ((gpointer) button_add_watch, "clicked",
nkeynes@2
   752
                    G_CALLBACK (on_button_add_watch_clicked),
nkeynes@2
   753
                    NULL);
nkeynes@2
   754
  g_signal_connect ((gpointer) button_clear_all, "clicked",
nkeynes@2
   755
                    G_CALLBACK (on_button_clear_all_clicked),
nkeynes@2
   756
                    NULL);
nkeynes@2
   757
  g_signal_connect ((gpointer) button_close, "clicked",
nkeynes@2
   758
                    G_CALLBACK (on_button_close_clicked),
nkeynes@2
   759
                    NULL);
nkeynes@2
   760
nkeynes@2
   761
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@2
   762
  GLADE_HOOKUP_OBJECT_NO_REF (watch_win, watch_win, "watch_win");
nkeynes@2
   763
  GLADE_HOOKUP_OBJECT (watch_win, vbox4, "vbox4");
nkeynes@2
   764
  GLADE_HOOKUP_OBJECT (watch_win, hbox4, "hbox4");
nkeynes@2
   765
  GLADE_HOOKUP_OBJECT (watch_win, label37, "label37");
nkeynes@2
   766
  GLADE_HOOKUP_OBJECT (watch_win, watch_start_addr, "watch_start_addr");
nkeynes@2
   767
  GLADE_HOOKUP_OBJECT (watch_win, label38, "label38");
nkeynes@2
   768
  GLADE_HOOKUP_OBJECT (watch_win, watch_end_addr, "watch_end_addr");
nkeynes@2
   769
  GLADE_HOOKUP_OBJECT (watch_win, label39, "label39");
nkeynes@2
   770
  GLADE_HOOKUP_OBJECT (watch_win, combo1, "combo1");
nkeynes@2
   771
  GLADE_HOOKUP_OBJECT (watch_win, watch_type, "watch_type");
nkeynes@2
   772
  GLADE_HOOKUP_OBJECT (watch_win, button_add_watch, "button_add_watch");
nkeynes@2
   773
  GLADE_HOOKUP_OBJECT (watch_win, scrolledwindow10, "scrolledwindow10");
nkeynes@2
   774
  GLADE_HOOKUP_OBJECT (watch_win, treeview1, "treeview1");
nkeynes@2
   775
  GLADE_HOOKUP_OBJECT (watch_win, hbox5, "hbox5");
nkeynes@2
   776
  GLADE_HOOKUP_OBJECT (watch_win, label40, "label40");
nkeynes@2
   777
  GLADE_HOOKUP_OBJECT (watch_win, button_clear_all, "button_clear_all");
nkeynes@2
   778
  GLADE_HOOKUP_OBJECT (watch_win, button_close, "button_close");
nkeynes@2
   779
nkeynes@2
   780
  return watch_win;
nkeynes@2
   781
}
nkeynes@2
   782
.