Search
lxdream.org :: lxdream/src/gui/interface.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/interface.c
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (18 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
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@1
    31
  {
nkeynes@1
    32
    GNOME_APP_UI_ITEM, N_("gtk-new"),
nkeynes@1
    33
    NULL,
nkeynes@1
    34
    (gpointer) on_new_file1_activate, NULL, NULL,
nkeynes@1
    35
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    36
    0, (GdkModifierType) 0, NULL
nkeynes@1
    37
  },
nkeynes@1
    38
  {
nkeynes@1
    39
    GNOME_APP_UI_ITEM, N_("gtk-open"),
nkeynes@1
    40
    NULL,
nkeynes@1
    41
    (gpointer) on_open1_activate, NULL, NULL,
nkeynes@1
    42
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    43
    0, (GdkModifierType) 0, NULL
nkeynes@1
    44
  },
nkeynes@1
    45
  {
nkeynes@1
    46
    GNOME_APP_UI_ITEM, N_("gtk-save"),
nkeynes@1
    47
    NULL,
nkeynes@1
    48
    (gpointer) on_save1_activate, NULL, NULL,
nkeynes@1
    49
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    50
    0, (GdkModifierType) 0, NULL
nkeynes@1
    51
  },
nkeynes@1
    52
  {
nkeynes@1
    53
    GNOME_APP_UI_ITEM, N_("gtk-save-as"),
nkeynes@1
    54
    NULL,
nkeynes@1
    55
    (gpointer) on_save_as1_activate, NULL, NULL,
nkeynes@1
    56
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    57
    0, (GdkModifierType) 0, NULL
nkeynes@1
    58
  },
nkeynes@1
    59
  GNOMEUIINFO_SEPARATOR,
nkeynes@1
    60
  {
nkeynes@1
    61
    GNOME_APP_UI_ITEM, N_("gtk-quit"),
nkeynes@1
    62
    NULL,
nkeynes@1
    63
    (gpointer) on_exit1_activate, NULL, NULL,
nkeynes@1
    64
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    65
    0, (GdkModifierType) 0, NULL
nkeynes@1
    66
  },
nkeynes@1
    67
  GNOMEUIINFO_END
nkeynes@1
    68
};
nkeynes@1
    69
nkeynes@1
    70
static GnomeUIInfo view1_menu_uiinfo[] =
nkeynes@1
    71
{
nkeynes@1
    72
  {
nkeynes@1
    73
    GNOME_APP_UI_ITEM, N_("Mem mapped Regs"),
nkeynes@1
    74
    NULL,
nkeynes@1
    75
    (gpointer) on_mem_mapped_regs1_activate, NULL, NULL,
nkeynes@1
    76
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    77
    0, (GdkModifierType) 0, NULL
nkeynes@1
    78
  },
nkeynes@1
    79
  GNOMEUIINFO_END
nkeynes@1
    80
};
nkeynes@1
    81
nkeynes@1
    82
static GnomeUIInfo settings1_menu_uiinfo[] =
nkeynes@1
    83
{
nkeynes@1
    84
  {
nkeynes@1
    85
    GNOME_APP_UI_ITEM, N_("gtk-preferences"),
nkeynes@1
    86
    NULL,
nkeynes@1
    87
    (gpointer) on_preferences1_activate, NULL, NULL,
nkeynes@1
    88
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
    89
    0, (GdkModifierType) 0, NULL
nkeynes@1
    90
  },
nkeynes@1
    91
  GNOMEUIINFO_END
nkeynes@1
    92
};
nkeynes@1
    93
nkeynes@1
    94
static GnomeUIInfo help1_menu_uiinfo[] =
nkeynes@1
    95
{
nkeynes@1
    96
  {
nkeynes@1
    97
    GNOME_APP_UI_ITEM, N_("gnome-stock-about"),
nkeynes@1
    98
    NULL,
nkeynes@1
    99
    (gpointer) on_about1_activate, NULL, NULL,
nkeynes@1
   100
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
   101
    0, (GdkModifierType) 0, NULL
nkeynes@1
   102
  },
nkeynes@1
   103
  GNOMEUIINFO_END
nkeynes@1
   104
};
nkeynes@1
   105
nkeynes@1
   106
static GnomeUIInfo menubar1_uiinfo[] =
nkeynes@1
   107
{
nkeynes@1
   108
  {
nkeynes@1
   109
    GNOME_APP_UI_SUBTREE, N_("_File"),
nkeynes@1
   110
    NULL,
nkeynes@1
   111
    file1_menu_uiinfo, NULL, NULL,
nkeynes@1
   112
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
   113
    0, (GdkModifierType) 0, NULL
nkeynes@1
   114
  },
nkeynes@1
   115
  {
nkeynes@1
   116
    GNOME_APP_UI_SUBTREE, N_("_View"),
nkeynes@1
   117
    NULL,
nkeynes@1
   118
    view1_menu_uiinfo, NULL, NULL,
nkeynes@1
   119
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
   120
    0, (GdkModifierType) 0, NULL
nkeynes@1
   121
  },
nkeynes@1
   122
  {
nkeynes@1
   123
    GNOME_APP_UI_SUBTREE, N_("_Settings"),
nkeynes@1
   124
    NULL,
nkeynes@1
   125
    settings1_menu_uiinfo, NULL, NULL,
nkeynes@1
   126
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
   127
    0, (GdkModifierType) 0, NULL
nkeynes@1
   128
  },
nkeynes@1
   129
  {
nkeynes@1
   130
    GNOME_APP_UI_SUBTREE, N_("_Help"),
nkeynes@1
   131
    NULL,
nkeynes@1
   132
    help1_menu_uiinfo, NULL, NULL,
nkeynes@1
   133
    GNOME_APP_PIXMAP_NONE, NULL,
nkeynes@1
   134
    0, (GdkModifierType) 0, NULL
nkeynes@1
   135
  },
nkeynes@1
   136
  GNOMEUIINFO_END
nkeynes@1
   137
};
nkeynes@1
   138
nkeynes@1
   139
GtkWidget*
nkeynes@1
   140
create_debug_win (void)
nkeynes@1
   141
{
nkeynes@1
   142
  GtkWidget *debug_win;
nkeynes@1
   143
  GtkWidget *dock1;
nkeynes@1
   144
  GtkWidget *toolbar1;
nkeynes@1
   145
  GtkWidget *tmp_toolbar_icon;
nkeynes@1
   146
  GtkWidget *load_btn;
nkeynes@1
   147
  GtkWidget *reset_btn;
nkeynes@1
   148
  GtkWidget *stop_btn;
nkeynes@1
   149
  GtkWidget *step_btn;
nkeynes@1
   150
  GtkWidget *run_btn;
nkeynes@1
   151
  GtkWidget *runto_btn;
nkeynes@1
   152
  GtkWidget *break_btn;
nkeynes@1
   153
  GtkWidget *vpaned1;
nkeynes@1
   154
  GtkWidget *hpaned1;
nkeynes@1
   155
  GtkWidget *vbox2;
nkeynes@1
   156
  GtkWidget *hbox1;
nkeynes@1
   157
  GtkWidget *label21;
nkeynes@1
   158
  GtkWidget *page_field;
nkeynes@1
   159
  GtkWidget *page_locked_btn;
nkeynes@1
   160
  GtkWidget *jump_pc_btn;
nkeynes@1
   161
  GtkWidget *label22;
nkeynes@1
   162
  GtkWidget *mode_box;
nkeynes@1
   163
  GList *mode_box_items = NULL;
nkeynes@1
   164
  GtkWidget *mode_field;
nkeynes@1
   165
  GtkWidget *label23;
nkeynes@1
   166
  GtkWidget *scrolledwindow7;
nkeynes@1
   167
  GtkWidget *disasm_list;
nkeynes@1
   168
  GtkWidget *label24;
nkeynes@1
   169
  GtkWidget *label27;
nkeynes@1
   170
  GtkWidget *label28;
nkeynes@1
   171
  GtkWidget *label29;
nkeynes@1
   172
  GtkWidget *scrolledwindow4;
nkeynes@1
   173
  GtkWidget *reg_list;
nkeynes@1
   174
  GtkWidget *label25;
nkeynes@1
   175
  GtkWidget *label30;
nkeynes@1
   176
  GtkWidget *scrolledwindow8;
nkeynes@1
   177
  GtkWidget *output_list;
nkeynes@1
   178
  GtkWidget *label26;
nkeynes@1
   179
  GtkWidget *label31;
nkeynes@1
   180
  GtkWidget *label32;
nkeynes@1
   181
  GtkWidget *debug_appbar;
nkeynes@1
   182
nkeynes@1
   183
  debug_win = gnome_app_new ("Dream2", _("DreamOn! Debugger"));
nkeynes@1
   184
  gtk_window_set_default_size (GTK_WINDOW (debug_win), 1000, 700);
nkeynes@1
   185
nkeynes@1
   186
  dock1 = GNOME_APP (debug_win)->dock;
nkeynes@1
   187
  gtk_widget_show (dock1);
nkeynes@1
   188
nkeynes@1
   189
  gnome_app_create_menus (GNOME_APP (debug_win), menubar1_uiinfo);
nkeynes@1
   190
nkeynes@1
   191
  toolbar1 = gtk_toolbar_new ();
nkeynes@1
   192
  gtk_widget_show (toolbar1);
nkeynes@1
   193
  gnome_app_add_toolbar (GNOME_APP (debug_win), GTK_TOOLBAR (toolbar1), "toolbar1",
nkeynes@1
   194
                                BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
nkeynes@1
   195
                                BONOBO_DOCK_TOP, 1, 0, 0);
nkeynes@1
   196
  gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1);
nkeynes@1
   197
  gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
nkeynes@1
   198
nkeynes@1
   199
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-open", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   200
  load_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   201
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   202
                                NULL,
nkeynes@1
   203
                                _("Load"),
nkeynes@1
   204
                                _("New File"), NULL,
nkeynes@1
   205
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   206
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   207
  gtk_widget_show (load_btn);
nkeynes@1
   208
nkeynes@1
   209
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-refresh", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   210
  reset_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   211
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   212
                                NULL,
nkeynes@1
   213
                                _("Reset"),
nkeynes@1
   214
                                _("Open File"), NULL,
nkeynes@1
   215
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   216
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   217
  gtk_widget_show (reset_btn);
nkeynes@1
   218
nkeynes@1
   219
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-stop", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   220
  stop_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   221
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   222
                                NULL,
nkeynes@1
   223
                                _("Stop"),
nkeynes@1
   224
                                _("Save File"), NULL,
nkeynes@1
   225
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   226
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   227
  gtk_widget_show (stop_btn);
nkeynes@1
   228
nkeynes@1
   229
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-redo", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   230
  step_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   231
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   232
                                NULL,
nkeynes@1
   233
                                _("Step"),
nkeynes@1
   234
                                NULL, NULL,
nkeynes@1
   235
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   236
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   237
  gtk_widget_show (step_btn);
nkeynes@1
   238
nkeynes@1
   239
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-go-forward", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   240
  run_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   241
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   242
                                NULL,
nkeynes@1
   243
                                _("Run"),
nkeynes@1
   244
                                NULL, NULL,
nkeynes@1
   245
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   246
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   247
  gtk_widget_show (run_btn);
nkeynes@1
   248
nkeynes@1
   249
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-goto-last", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   250
  runto_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   251
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   252
                                NULL,
nkeynes@1
   253
                                _("Run to"),
nkeynes@1
   254
                                NULL, NULL,
nkeynes@1
   255
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   256
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   257
  gtk_widget_show (runto_btn);
nkeynes@1
   258
nkeynes@1
   259
  tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-close", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
nkeynes@1
   260
  break_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
nkeynes@1
   261
                                GTK_TOOLBAR_CHILD_BUTTON,
nkeynes@1
   262
                                NULL,
nkeynes@1
   263
                                _("Break"),
nkeynes@1
   264
                                NULL, NULL,
nkeynes@1
   265
                                tmp_toolbar_icon, NULL, NULL);
nkeynes@1
   266
  gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
nkeynes@1
   267
  gtk_widget_show (break_btn);
nkeynes@1
   268
nkeynes@1
   269
  vpaned1 = gtk_vpaned_new ();
nkeynes@1
   270
  gtk_widget_show (vpaned1);
nkeynes@1
   271
  gnome_app_set_contents (GNOME_APP (debug_win), vpaned1);
nkeynes@1
   272
  gtk_paned_set_position (GTK_PANED (vpaned1), 430);
nkeynes@1
   273
nkeynes@1
   274
  hpaned1 = gtk_hpaned_new ();
nkeynes@1
   275
  gtk_widget_show (hpaned1);
nkeynes@1
   276
  gtk_paned_pack1 (GTK_PANED (vpaned1), hpaned1, TRUE, TRUE);
nkeynes@1
   277
  gtk_paned_set_position (GTK_PANED (hpaned1), 800);
nkeynes@1
   278
nkeynes@1
   279
  vbox2 = gtk_vbox_new (FALSE, 0);
nkeynes@1
   280
  gtk_widget_show (vbox2);
nkeynes@1
   281
  gtk_paned_pack1 (GTK_PANED (hpaned1), vbox2, FALSE, TRUE);
nkeynes@1
   282
nkeynes@1
   283
  hbox1 = gtk_hbox_new (FALSE, 0);
nkeynes@1
   284
  gtk_widget_show (hbox1);
nkeynes@1
   285
  gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 3);
nkeynes@1
   286
nkeynes@1
   287
  label21 = gtk_label_new (_("Page"));
nkeynes@1
   288
  gtk_widget_show (label21);
nkeynes@1
   289
  gtk_box_pack_start (GTK_BOX (hbox1), label21, FALSE, FALSE, 4);
nkeynes@1
   290
  gtk_label_set_justify (GTK_LABEL (label21), GTK_JUSTIFY_CENTER);
nkeynes@1
   291
nkeynes@1
   292
  page_field = gtk_entry_new ();
nkeynes@1
   293
  gtk_widget_show (page_field);
nkeynes@1
   294
  gtk_box_pack_start (GTK_BOX (hbox1), page_field, FALSE, TRUE, 0);
nkeynes@1
   295
nkeynes@1
   296
  page_locked_btn = gtk_check_button_new_with_mnemonic (_("Locked"));
nkeynes@1
   297
  gtk_widget_show (page_locked_btn);
nkeynes@1
   298
  gtk_box_pack_start (GTK_BOX (hbox1), page_locked_btn, FALSE, FALSE, 5);
nkeynes@1
   299
nkeynes@1
   300
  jump_pc_btn = gtk_button_new_with_mnemonic (_(" Jump to PC "));
nkeynes@1
   301
  gtk_widget_show (jump_pc_btn);
nkeynes@1
   302
  gtk_box_pack_start (GTK_BOX (hbox1), jump_pc_btn, FALSE, FALSE, 4);
nkeynes@1
   303
nkeynes@1
   304
  label22 = gtk_label_new (_("Mode"));
nkeynes@1
   305
  gtk_widget_show (label22);
nkeynes@1
   306
  gtk_box_pack_start (GTK_BOX (hbox1), label22, FALSE, FALSE, 5);
nkeynes@1
   307
  gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_RIGHT);
nkeynes@1
   308
  gtk_misc_set_alignment (GTK_MISC (label22), 1, 0.5);
nkeynes@1
   309
nkeynes@1
   310
  mode_box = gtk_combo_new ();
nkeynes@1
   311
  g_object_set_data (G_OBJECT (GTK_COMBO (mode_box)->popwin),
nkeynes@1
   312
                     "GladeParentKey", mode_box);
nkeynes@1
   313
  gtk_widget_show (mode_box);
nkeynes@1
   314
  gtk_box_pack_start (GTK_BOX (hbox1), mode_box, FALSE, FALSE, 0);
nkeynes@1
   315
  mode_box_items = g_list_append (mode_box_items, (gpointer) "");
nkeynes@1
   316
  gtk_combo_set_popdown_strings (GTK_COMBO (mode_box), mode_box_items);
nkeynes@1
   317
  g_list_free (mode_box_items);
nkeynes@1
   318
nkeynes@1
   319
  mode_field = GTK_COMBO (mode_box)->entry;
nkeynes@1
   320
  gtk_widget_show (mode_field);
nkeynes@1
   321
nkeynes@1
   322
  label23 = gtk_label_new ("");
nkeynes@1
   323
  gtk_widget_show (label23);
nkeynes@1
   324
  gtk_box_pack_start (GTK_BOX (hbox1), label23, TRUE, TRUE, 4);
nkeynes@1
   325
  gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_CENTER);
nkeynes@1
   326
nkeynes@1
   327
  scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   328
  gtk_widget_show (scrolledwindow7);
nkeynes@1
   329
  gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow7, TRUE, TRUE, 0);
nkeynes@1
   330
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow7, GTK_CAN_FOCUS);
nkeynes@1
   331
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
nkeynes@1
   332
nkeynes@1
   333
  disasm_list = gtk_clist_new (4);
nkeynes@1
   334
  gtk_widget_show (disasm_list);
nkeynes@1
   335
  gtk_container_add (GTK_CONTAINER (scrolledwindow7), disasm_list);
nkeynes@1
   336
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 0, 80);
nkeynes@1
   337
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 1, 80);
nkeynes@1
   338
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 2, 80);
nkeynes@1
   339
  gtk_clist_set_column_width (GTK_CLIST (disasm_list), 3, 80);
nkeynes@1
   340
  gtk_clist_column_titles_hide (GTK_CLIST (disasm_list));
nkeynes@1
   341
nkeynes@1
   342
  label24 = gtk_label_new ("");
nkeynes@1
   343
  gtk_widget_show (label24);
nkeynes@1
   344
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 0, label24);
nkeynes@1
   345
nkeynes@1
   346
  label27 = gtk_label_new ("");
nkeynes@1
   347
  gtk_widget_show (label27);
nkeynes@1
   348
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 1, label27);
nkeynes@1
   349
nkeynes@1
   350
  label28 = gtk_label_new ("");
nkeynes@1
   351
  gtk_widget_show (label28);
nkeynes@1
   352
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 2, label28);
nkeynes@1
   353
nkeynes@1
   354
  label29 = gtk_label_new ("");
nkeynes@1
   355
  gtk_widget_show (label29);
nkeynes@1
   356
  gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 3, label29);
nkeynes@1
   357
nkeynes@1
   358
  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   359
  gtk_widget_show (scrolledwindow4);
nkeynes@1
   360
  gtk_paned_pack2 (GTK_PANED (hpaned1), scrolledwindow4, FALSE, TRUE);
nkeynes@1
   361
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
nkeynes@1
   362
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
nkeynes@1
   363
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
nkeynes@1
   364
nkeynes@1
   365
  reg_list = gtk_clist_new (2);
nkeynes@1
   366
  gtk_widget_show (reg_list);
nkeynes@1
   367
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), reg_list);
nkeynes@1
   368
  gtk_clist_set_column_width (GTK_CLIST (reg_list), 0, 80);
nkeynes@1
   369
  gtk_clist_set_column_width (GTK_CLIST (reg_list), 1, 80);
nkeynes@1
   370
  gtk_clist_column_titles_hide (GTK_CLIST (reg_list));
nkeynes@1
   371
nkeynes@1
   372
  label25 = gtk_label_new ("");
nkeynes@1
   373
  gtk_widget_show (label25);
nkeynes@1
   374
  gtk_clist_set_column_widget (GTK_CLIST (reg_list), 0, label25);
nkeynes@1
   375
nkeynes@1
   376
  label30 = gtk_label_new ("");
nkeynes@1
   377
  gtk_widget_show (label30);
nkeynes@1
   378
  gtk_clist_set_column_widget (GTK_CLIST (reg_list), 1, label30);
nkeynes@1
   379
nkeynes@1
   380
  scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
nkeynes@1
   381
  gtk_widget_show (scrolledwindow8);
nkeynes@1
   382
  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow8, FALSE, TRUE);
nkeynes@1
   383
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow8, GTK_CAN_FOCUS);
nkeynes@1
   384
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
nkeynes@1
   385
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
nkeynes@1
   386
nkeynes@1
   387
  output_list = gtk_clist_new (3);
nkeynes@1
   388
  gtk_widget_show (output_list);
nkeynes@1
   389
  gtk_container_add (GTK_CONTAINER (scrolledwindow8), output_list);
nkeynes@1
   390
  gtk_clist_set_column_width (GTK_CLIST (output_list), 0, 80);
nkeynes@1
   391
  gtk_clist_set_column_width (GTK_CLIST (output_list), 1, 80);
nkeynes@1
   392
  gtk_clist_set_column_width (GTK_CLIST (output_list), 2, 80);
nkeynes@1
   393
  gtk_clist_column_titles_hide (GTK_CLIST (output_list));
nkeynes@1
   394
nkeynes@1
   395
  label26 = gtk_label_new ("");
nkeynes@1
   396
  gtk_widget_show (label26);
nkeynes@1
   397
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 0, label26);
nkeynes@1
   398
nkeynes@1
   399
  label31 = gtk_label_new ("");
nkeynes@1
   400
  gtk_widget_show (label31);
nkeynes@1
   401
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 1, label31);
nkeynes@1
   402
nkeynes@1
   403
  label32 = gtk_label_new ("");
nkeynes@1
   404
  gtk_widget_show (label32);
nkeynes@1
   405
  gtk_clist_set_column_widget (GTK_CLIST (output_list), 2, label32);
nkeynes@1
   406
nkeynes@1
   407
  debug_appbar = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER);
nkeynes@1
   408
  gtk_widget_show (debug_appbar);
nkeynes@1
   409
  gnome_app_set_statusbar (GNOME_APP (debug_win), debug_appbar);
nkeynes@1
   410
nkeynes@1
   411
  g_signal_connect ((gpointer) debug_win, "delete_event",
nkeynes@1
   412
                    G_CALLBACK (on_debug_win_delete_event),
nkeynes@1
   413
                    NULL);
nkeynes@1
   414
  gnome_app_install_menu_hints (GNOME_APP (debug_win), menubar1_uiinfo);
nkeynes@1
   415
  g_signal_connect ((gpointer) load_btn, "clicked",
nkeynes@1
   416
                    G_CALLBACK (on_load_btn_clicked),
nkeynes@1
   417
                    NULL);
nkeynes@1
   418
  g_signal_connect ((gpointer) reset_btn, "clicked",
nkeynes@1
   419
                    G_CALLBACK (on_reset_btn_clicked),
nkeynes@1
   420
                    NULL);
nkeynes@1
   421
  g_signal_connect ((gpointer) stop_btn, "clicked",
nkeynes@1
   422
                    G_CALLBACK (on_stop_btn_clicked),
nkeynes@1
   423
                    NULL);
nkeynes@1
   424
  g_signal_connect ((gpointer) step_btn, "clicked",
nkeynes@1
   425
                    G_CALLBACK (on_step_btn_clicked),
nkeynes@1
   426
                    NULL);
nkeynes@1
   427
  g_signal_connect ((gpointer) run_btn, "clicked",
nkeynes@1
   428
                    G_CALLBACK (on_run_btn_clicked),
nkeynes@1
   429
                    NULL);
nkeynes@1
   430
  g_signal_connect ((gpointer) runto_btn, "clicked",
nkeynes@1
   431
                    G_CALLBACK (on_runto_btn_clicked),
nkeynes@1
   432
                    NULL);
nkeynes@1
   433
  g_signal_connect ((gpointer) break_btn, "clicked",
nkeynes@1
   434
                    G_CALLBACK (on_break_btn_clicked),
nkeynes@1
   435
                    NULL);
nkeynes@1
   436
  g_signal_connect ((gpointer) page_field, "key_press_event",
nkeynes@1
   437
                    G_CALLBACK (on_page_field_key_press_event),
nkeynes@1
   438
                    NULL);
nkeynes@1
   439
  g_signal_connect ((gpointer) page_locked_btn, "toggled",
nkeynes@1
   440
                    G_CALLBACK (on_page_locked_btn_toggled),
nkeynes@1
   441
                    NULL);
nkeynes@1
   442
  g_signal_connect ((gpointer) jump_pc_btn, "clicked",
nkeynes@1
   443
                    G_CALLBACK (on_jump_pc_btn_clicked),
nkeynes@1
   444
                    NULL);
nkeynes@1
   445
  g_signal_connect ((gpointer) mode_field, "changed",
nkeynes@1
   446
                    G_CALLBACK (on_mode_field_changed),
nkeynes@1
   447
                    NULL);
nkeynes@1
   448
  g_signal_connect ((gpointer) disasm_list, "select_row",
nkeynes@1
   449
                    G_CALLBACK (on_disasm_list_select_row),
nkeynes@1
   450
                    NULL);
nkeynes@1
   451
  g_signal_connect ((gpointer) disasm_list, "unselect_row",
nkeynes@1
   452
                    G_CALLBACK (on_disasm_list_unselect_row),
nkeynes@1
   453
                    NULL);
nkeynes@1
   454
  g_signal_connect ((gpointer) output_list, "select_row",
nkeynes@1
   455
                    G_CALLBACK (on_output_list_select_row),
nkeynes@1
   456
                    NULL);
nkeynes@1
   457
nkeynes@1
   458
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   459
  GLADE_HOOKUP_OBJECT_NO_REF (debug_win, debug_win, "debug_win");
nkeynes@1
   460
  GLADE_HOOKUP_OBJECT (debug_win, dock1, "dock1");
nkeynes@1
   461
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[0].widget, "file1");
nkeynes@1
   462
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[0].widget, "new_file1");
nkeynes@1
   463
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[1].widget, "open1");
nkeynes@1
   464
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[2].widget, "save1");
nkeynes@1
   465
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[3].widget, "save_as1");
nkeynes@1
   466
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[4].widget, "separator1");
nkeynes@1
   467
  GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[5].widget, "exit1");
nkeynes@1
   468
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[1].widget, "view1");
nkeynes@1
   469
  GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[0].widget, "mem_mapped_regs1");
nkeynes@1
   470
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[2].widget, "settings1");
nkeynes@1
   471
  GLADE_HOOKUP_OBJECT (debug_win, settings1_menu_uiinfo[0].widget, "preferences1");
nkeynes@1
   472
  GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[3].widget, "help1");
nkeynes@1
   473
  GLADE_HOOKUP_OBJECT (debug_win, help1_menu_uiinfo[0].widget, "about1");
nkeynes@1
   474
  GLADE_HOOKUP_OBJECT (debug_win, toolbar1, "toolbar1");
nkeynes@1
   475
  GLADE_HOOKUP_OBJECT (debug_win, load_btn, "load_btn");
nkeynes@1
   476
  GLADE_HOOKUP_OBJECT (debug_win, reset_btn, "reset_btn");
nkeynes@1
   477
  GLADE_HOOKUP_OBJECT (debug_win, stop_btn, "stop_btn");
nkeynes@1
   478
  GLADE_HOOKUP_OBJECT (debug_win, step_btn, "step_btn");
nkeynes@1
   479
  GLADE_HOOKUP_OBJECT (debug_win, run_btn, "run_btn");
nkeynes@1
   480
  GLADE_HOOKUP_OBJECT (debug_win, runto_btn, "runto_btn");
nkeynes@1
   481
  GLADE_HOOKUP_OBJECT (debug_win, break_btn, "break_btn");
nkeynes@1
   482
  GLADE_HOOKUP_OBJECT (debug_win, vpaned1, "vpaned1");
nkeynes@1
   483
  GLADE_HOOKUP_OBJECT (debug_win, hpaned1, "hpaned1");
nkeynes@1
   484
  GLADE_HOOKUP_OBJECT (debug_win, vbox2, "vbox2");
nkeynes@1
   485
  GLADE_HOOKUP_OBJECT (debug_win, hbox1, "hbox1");
nkeynes@1
   486
  GLADE_HOOKUP_OBJECT (debug_win, label21, "label21");
nkeynes@1
   487
  GLADE_HOOKUP_OBJECT (debug_win, page_field, "page_field");
nkeynes@1
   488
  GLADE_HOOKUP_OBJECT (debug_win, page_locked_btn, "page_locked_btn");
nkeynes@1
   489
  GLADE_HOOKUP_OBJECT (debug_win, jump_pc_btn, "jump_pc_btn");
nkeynes@1
   490
  GLADE_HOOKUP_OBJECT (debug_win, label22, "label22");
nkeynes@1
   491
  GLADE_HOOKUP_OBJECT (debug_win, mode_box, "mode_box");
nkeynes@1
   492
  GLADE_HOOKUP_OBJECT (debug_win, mode_field, "mode_field");
nkeynes@1
   493
  GLADE_HOOKUP_OBJECT (debug_win, label23, "label23");
nkeynes@1
   494
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow7, "scrolledwindow7");
nkeynes@1
   495
  GLADE_HOOKUP_OBJECT (debug_win, disasm_list, "disasm_list");
nkeynes@1
   496
  GLADE_HOOKUP_OBJECT (debug_win, label24, "label24");
nkeynes@1
   497
  GLADE_HOOKUP_OBJECT (debug_win, label27, "label27");
nkeynes@1
   498
  GLADE_HOOKUP_OBJECT (debug_win, label28, "label28");
nkeynes@1
   499
  GLADE_HOOKUP_OBJECT (debug_win, label29, "label29");
nkeynes@1
   500
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow4, "scrolledwindow4");
nkeynes@1
   501
  GLADE_HOOKUP_OBJECT (debug_win, reg_list, "reg_list");
nkeynes@1
   502
  GLADE_HOOKUP_OBJECT (debug_win, label25, "label25");
nkeynes@1
   503
  GLADE_HOOKUP_OBJECT (debug_win, label30, "label30");
nkeynes@1
   504
  GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow8, "scrolledwindow8");
nkeynes@1
   505
  GLADE_HOOKUP_OBJECT (debug_win, output_list, "output_list");
nkeynes@1
   506
  GLADE_HOOKUP_OBJECT (debug_win, label26, "label26");
nkeynes@1
   507
  GLADE_HOOKUP_OBJECT (debug_win, label31, "label31");
nkeynes@1
   508
  GLADE_HOOKUP_OBJECT (debug_win, label32, "label32");
nkeynes@1
   509
  GLADE_HOOKUP_OBJECT (debug_win, debug_appbar, "debug_appbar");
nkeynes@1
   510
nkeynes@1
   511
  return debug_win;
nkeynes@1
   512
}
nkeynes@1
   513
nkeynes@1
   514
GtkWidget*
nkeynes@1
   515
create_mmr_win (void)
nkeynes@1
   516
{
nkeynes@1
   517
  GtkWidget *mmr_win;
nkeynes@1
   518
  GtkWidget *vbox1;
nkeynes@1
   519
  GtkWidget *mmr_notebook;
nkeynes@1
   520
  GtkWidget *empty_notebook_page;
nkeynes@1
   521
  GtkWidget *label16;
nkeynes@1
   522
  GtkWidget *hbuttonbox1;
nkeynes@1
   523
  GtkWidget *mmr_close;
nkeynes@1
   524
nkeynes@1
   525
  mmr_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
nkeynes@1
   526
  gtk_window_set_title (GTK_WINDOW (mmr_win), _("DreamOn! - Memory-Mapped Registers"));
nkeynes@1
   527
  gtk_window_set_default_size (GTK_WINDOW (mmr_win), 600, 600);
nkeynes@1
   528
nkeynes@1
   529
  vbox1 = gtk_vbox_new (FALSE, 0);
nkeynes@1
   530
  gtk_widget_show (vbox1);
nkeynes@1
   531
  gtk_container_add (GTK_CONTAINER (mmr_win), vbox1);
nkeynes@1
   532
nkeynes@1
   533
  mmr_notebook = gtk_notebook_new ();
nkeynes@1
   534
  gtk_widget_show (mmr_notebook);
nkeynes@1
   535
  gtk_box_pack_start (GTK_BOX (vbox1), mmr_notebook, TRUE, TRUE, 0);
nkeynes@1
   536
  gtk_notebook_set_tab_pos (GTK_NOTEBOOK (mmr_notebook), GTK_POS_LEFT);
nkeynes@1
   537
nkeynes@1
   538
  empty_notebook_page = gtk_vbox_new (FALSE, 0);
nkeynes@1
   539
  gtk_widget_show (empty_notebook_page);
nkeynes@1
   540
  gtk_container_add (GTK_CONTAINER (mmr_notebook), empty_notebook_page);
nkeynes@1
   541
nkeynes@1
   542
  label16 = gtk_label_new (_("label16"));
nkeynes@1
   543
  gtk_widget_show (label16);
nkeynes@1
   544
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (mmr_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mmr_notebook), 0), label16);
nkeynes@1
   545
  gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_CENTER);
nkeynes@1
   546
nkeynes@1
   547
  hbuttonbox1 = gtk_hbutton_box_new ();
nkeynes@1
   548
  gtk_widget_show (hbuttonbox1);
nkeynes@1
   549
  gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, TRUE, 0);
nkeynes@1
   550
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);
nkeynes@1
   551
nkeynes@1
   552
  mmr_close = gtk_button_new_with_mnemonic (_("Close"));
nkeynes@1
   553
  gtk_widget_show (mmr_close);
nkeynes@1
   554
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), mmr_close);
nkeynes@1
   555
  GTK_WIDGET_SET_FLAGS (mmr_close, GTK_CAN_DEFAULT);
nkeynes@1
   556
nkeynes@1
   557
  g_signal_connect ((gpointer) mmr_win, "delete_event",
nkeynes@1
   558
                    G_CALLBACK (on_mmr_win_delete_event),
nkeynes@1
   559
                    NULL);
nkeynes@1
   560
  g_signal_connect ((gpointer) mmr_close, "clicked",
nkeynes@1
   561
                    G_CALLBACK (on_mmr_close_clicked),
nkeynes@1
   562
                    NULL);
nkeynes@1
   563
nkeynes@1
   564
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   565
  GLADE_HOOKUP_OBJECT_NO_REF (mmr_win, mmr_win, "mmr_win");
nkeynes@1
   566
  GLADE_HOOKUP_OBJECT (mmr_win, vbox1, "vbox1");
nkeynes@1
   567
  GLADE_HOOKUP_OBJECT (mmr_win, mmr_notebook, "mmr_notebook");
nkeynes@1
   568
  GLADE_HOOKUP_OBJECT (mmr_win, label16, "label16");
nkeynes@1
   569
  GLADE_HOOKUP_OBJECT (mmr_win, hbuttonbox1, "hbuttonbox1");
nkeynes@1
   570
  GLADE_HOOKUP_OBJECT (mmr_win, mmr_close, "mmr_close");
nkeynes@1
   571
nkeynes@1
   572
  return mmr_win;
nkeynes@1
   573
}
nkeynes@1
   574
nkeynes@1
   575
GtkWidget*
nkeynes@1
   576
create_about_win (void)
nkeynes@1
   577
{
nkeynes@1
   578
  const gchar *authors[] = {
nkeynes@1
   579
    "Nathan Keynes",
nkeynes@1
   580
    NULL
nkeynes@1
   581
  };
nkeynes@1
   582
  const gchar *documenters[] = { NULL };
nkeynes@1
   583
  /* TRANSLATORS: Replace this string with your names, one name per line. */
nkeynes@1
   584
  gchar *translators = _("translator_credits");
nkeynes@1
   585
  GdkPixbuf *about_win_logo_pixbuf;
nkeynes@1
   586
  GtkWidget *about_win;
nkeynes@1
   587
nkeynes@1
   588
  if (!strcmp (translators, "translator_credits"))
nkeynes@1
   589
    translators = NULL;
nkeynes@1
   590
  about_win_logo_pixbuf = create_pixbuf ("dream/dcemu.gif");
nkeynes@1
   591
  about_win = gnome_about_new ("Dream2", VERSION,
nkeynes@1
   592
                        _("Copyright(c) 2002 Nathan Keynes"),
nkeynes@1
   593
                        "",
nkeynes@1
   594
                        authors,
nkeynes@1
   595
                        documenters,
nkeynes@1
   596
                        translators,
nkeynes@1
   597
                        about_win_logo_pixbuf);
nkeynes@1
   598
  gtk_container_set_border_width (GTK_CONTAINER (about_win), 1);
nkeynes@1
   599
nkeynes@1
   600
  /* Store pointers to all widgets, for use by lookup_widget(). */
nkeynes@1
   601
  GLADE_HOOKUP_OBJECT_NO_REF (about_win, about_win, "about_win");
nkeynes@1
   602
nkeynes@1
   603
  return about_win;
nkeynes@1
   604
}
nkeynes@1
   605
.