Search
lxdream.org :: lxdream/src/gui/interface.c :: diff
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 (15 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
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gui/interface.c Sat Mar 13 00:03:32 2004 +0000
1.3 @@ -0,0 +1,605 @@
1.4 +/*
1.5 + * DO NOT EDIT THIS FILE - it is generated by Glade.
1.6 + */
1.7 +
1.8 +#ifdef HAVE_CONFIG_H
1.9 +# include <config.h>
1.10 +#endif
1.11 +
1.12 +#include <sys/types.h>
1.13 +#include <sys/stat.h>
1.14 +#include <unistd.h>
1.15 +#include <string.h>
1.16 +#include <stdio.h>
1.17 +
1.18 +#include <bonobo.h>
1.19 +#include <gnome.h>
1.20 +
1.21 +#include "callbacks.h"
1.22 +#include "interface.h"
1.23 +#include "support.h"
1.24 +
1.25 +#define GLADE_HOOKUP_OBJECT(component,widget,name) \
1.26 + g_object_set_data_full (G_OBJECT (component), name, \
1.27 + gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
1.28 +
1.29 +#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
1.30 + g_object_set_data (G_OBJECT (component), name, widget)
1.31 +
1.32 +static GnomeUIInfo file1_menu_uiinfo[] =
1.33 +{
1.34 + {
1.35 + GNOME_APP_UI_ITEM, N_("gtk-new"),
1.36 + NULL,
1.37 + (gpointer) on_new_file1_activate, NULL, NULL,
1.38 + GNOME_APP_PIXMAP_NONE, NULL,
1.39 + 0, (GdkModifierType) 0, NULL
1.40 + },
1.41 + {
1.42 + GNOME_APP_UI_ITEM, N_("gtk-open"),
1.43 + NULL,
1.44 + (gpointer) on_open1_activate, NULL, NULL,
1.45 + GNOME_APP_PIXMAP_NONE, NULL,
1.46 + 0, (GdkModifierType) 0, NULL
1.47 + },
1.48 + {
1.49 + GNOME_APP_UI_ITEM, N_("gtk-save"),
1.50 + NULL,
1.51 + (gpointer) on_save1_activate, NULL, NULL,
1.52 + GNOME_APP_PIXMAP_NONE, NULL,
1.53 + 0, (GdkModifierType) 0, NULL
1.54 + },
1.55 + {
1.56 + GNOME_APP_UI_ITEM, N_("gtk-save-as"),
1.57 + NULL,
1.58 + (gpointer) on_save_as1_activate, NULL, NULL,
1.59 + GNOME_APP_PIXMAP_NONE, NULL,
1.60 + 0, (GdkModifierType) 0, NULL
1.61 + },
1.62 + GNOMEUIINFO_SEPARATOR,
1.63 + {
1.64 + GNOME_APP_UI_ITEM, N_("gtk-quit"),
1.65 + NULL,
1.66 + (gpointer) on_exit1_activate, NULL, NULL,
1.67 + GNOME_APP_PIXMAP_NONE, NULL,
1.68 + 0, (GdkModifierType) 0, NULL
1.69 + },
1.70 + GNOMEUIINFO_END
1.71 +};
1.72 +
1.73 +static GnomeUIInfo view1_menu_uiinfo[] =
1.74 +{
1.75 + {
1.76 + GNOME_APP_UI_ITEM, N_("Mem mapped Regs"),
1.77 + NULL,
1.78 + (gpointer) on_mem_mapped_regs1_activate, NULL, NULL,
1.79 + GNOME_APP_PIXMAP_NONE, NULL,
1.80 + 0, (GdkModifierType) 0, NULL
1.81 + },
1.82 + GNOMEUIINFO_END
1.83 +};
1.84 +
1.85 +static GnomeUIInfo settings1_menu_uiinfo[] =
1.86 +{
1.87 + {
1.88 + GNOME_APP_UI_ITEM, N_("gtk-preferences"),
1.89 + NULL,
1.90 + (gpointer) on_preferences1_activate, NULL, NULL,
1.91 + GNOME_APP_PIXMAP_NONE, NULL,
1.92 + 0, (GdkModifierType) 0, NULL
1.93 + },
1.94 + GNOMEUIINFO_END
1.95 +};
1.96 +
1.97 +static GnomeUIInfo help1_menu_uiinfo[] =
1.98 +{
1.99 + {
1.100 + GNOME_APP_UI_ITEM, N_("gnome-stock-about"),
1.101 + NULL,
1.102 + (gpointer) on_about1_activate, NULL, NULL,
1.103 + GNOME_APP_PIXMAP_NONE, NULL,
1.104 + 0, (GdkModifierType) 0, NULL
1.105 + },
1.106 + GNOMEUIINFO_END
1.107 +};
1.108 +
1.109 +static GnomeUIInfo menubar1_uiinfo[] =
1.110 +{
1.111 + {
1.112 + GNOME_APP_UI_SUBTREE, N_("_File"),
1.113 + NULL,
1.114 + file1_menu_uiinfo, NULL, NULL,
1.115 + GNOME_APP_PIXMAP_NONE, NULL,
1.116 + 0, (GdkModifierType) 0, NULL
1.117 + },
1.118 + {
1.119 + GNOME_APP_UI_SUBTREE, N_("_View"),
1.120 + NULL,
1.121 + view1_menu_uiinfo, NULL, NULL,
1.122 + GNOME_APP_PIXMAP_NONE, NULL,
1.123 + 0, (GdkModifierType) 0, NULL
1.124 + },
1.125 + {
1.126 + GNOME_APP_UI_SUBTREE, N_("_Settings"),
1.127 + NULL,
1.128 + settings1_menu_uiinfo, NULL, NULL,
1.129 + GNOME_APP_PIXMAP_NONE, NULL,
1.130 + 0, (GdkModifierType) 0, NULL
1.131 + },
1.132 + {
1.133 + GNOME_APP_UI_SUBTREE, N_("_Help"),
1.134 + NULL,
1.135 + help1_menu_uiinfo, NULL, NULL,
1.136 + GNOME_APP_PIXMAP_NONE, NULL,
1.137 + 0, (GdkModifierType) 0, NULL
1.138 + },
1.139 + GNOMEUIINFO_END
1.140 +};
1.141 +
1.142 +GtkWidget*
1.143 +create_debug_win (void)
1.144 +{
1.145 + GtkWidget *debug_win;
1.146 + GtkWidget *dock1;
1.147 + GtkWidget *toolbar1;
1.148 + GtkWidget *tmp_toolbar_icon;
1.149 + GtkWidget *load_btn;
1.150 + GtkWidget *reset_btn;
1.151 + GtkWidget *stop_btn;
1.152 + GtkWidget *step_btn;
1.153 + GtkWidget *run_btn;
1.154 + GtkWidget *runto_btn;
1.155 + GtkWidget *break_btn;
1.156 + GtkWidget *vpaned1;
1.157 + GtkWidget *hpaned1;
1.158 + GtkWidget *vbox2;
1.159 + GtkWidget *hbox1;
1.160 + GtkWidget *label21;
1.161 + GtkWidget *page_field;
1.162 + GtkWidget *page_locked_btn;
1.163 + GtkWidget *jump_pc_btn;
1.164 + GtkWidget *label22;
1.165 + GtkWidget *mode_box;
1.166 + GList *mode_box_items = NULL;
1.167 + GtkWidget *mode_field;
1.168 + GtkWidget *label23;
1.169 + GtkWidget *scrolledwindow7;
1.170 + GtkWidget *disasm_list;
1.171 + GtkWidget *label24;
1.172 + GtkWidget *label27;
1.173 + GtkWidget *label28;
1.174 + GtkWidget *label29;
1.175 + GtkWidget *scrolledwindow4;
1.176 + GtkWidget *reg_list;
1.177 + GtkWidget *label25;
1.178 + GtkWidget *label30;
1.179 + GtkWidget *scrolledwindow8;
1.180 + GtkWidget *output_list;
1.181 + GtkWidget *label26;
1.182 + GtkWidget *label31;
1.183 + GtkWidget *label32;
1.184 + GtkWidget *debug_appbar;
1.185 +
1.186 + debug_win = gnome_app_new ("Dream2", _("DreamOn! Debugger"));
1.187 + gtk_window_set_default_size (GTK_WINDOW (debug_win), 1000, 700);
1.188 +
1.189 + dock1 = GNOME_APP (debug_win)->dock;
1.190 + gtk_widget_show (dock1);
1.191 +
1.192 + gnome_app_create_menus (GNOME_APP (debug_win), menubar1_uiinfo);
1.193 +
1.194 + toolbar1 = gtk_toolbar_new ();
1.195 + gtk_widget_show (toolbar1);
1.196 + gnome_app_add_toolbar (GNOME_APP (debug_win), GTK_TOOLBAR (toolbar1), "toolbar1",
1.197 + BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
1.198 + BONOBO_DOCK_TOP, 1, 0, 0);
1.199 + gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1);
1.200 + gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
1.201 +
1.202 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-open", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.203 + load_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.204 + GTK_TOOLBAR_CHILD_BUTTON,
1.205 + NULL,
1.206 + _("Load"),
1.207 + _("New File"), NULL,
1.208 + tmp_toolbar_icon, NULL, NULL);
1.209 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.210 + gtk_widget_show (load_btn);
1.211 +
1.212 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-refresh", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.213 + reset_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.214 + GTK_TOOLBAR_CHILD_BUTTON,
1.215 + NULL,
1.216 + _("Reset"),
1.217 + _("Open File"), NULL,
1.218 + tmp_toolbar_icon, NULL, NULL);
1.219 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.220 + gtk_widget_show (reset_btn);
1.221 +
1.222 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-stop", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.223 + stop_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.224 + GTK_TOOLBAR_CHILD_BUTTON,
1.225 + NULL,
1.226 + _("Stop"),
1.227 + _("Save File"), NULL,
1.228 + tmp_toolbar_icon, NULL, NULL);
1.229 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.230 + gtk_widget_show (stop_btn);
1.231 +
1.232 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-redo", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.233 + step_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.234 + GTK_TOOLBAR_CHILD_BUTTON,
1.235 + NULL,
1.236 + _("Step"),
1.237 + NULL, NULL,
1.238 + tmp_toolbar_icon, NULL, NULL);
1.239 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.240 + gtk_widget_show (step_btn);
1.241 +
1.242 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-go-forward", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.243 + run_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.244 + GTK_TOOLBAR_CHILD_BUTTON,
1.245 + NULL,
1.246 + _("Run"),
1.247 + NULL, NULL,
1.248 + tmp_toolbar_icon, NULL, NULL);
1.249 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.250 + gtk_widget_show (run_btn);
1.251 +
1.252 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-goto-last", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.253 + runto_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.254 + GTK_TOOLBAR_CHILD_BUTTON,
1.255 + NULL,
1.256 + _("Run to"),
1.257 + NULL, NULL,
1.258 + tmp_toolbar_icon, NULL, NULL);
1.259 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.260 + gtk_widget_show (runto_btn);
1.261 +
1.262 + tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-close", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
1.263 + break_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
1.264 + GTK_TOOLBAR_CHILD_BUTTON,
1.265 + NULL,
1.266 + _("Break"),
1.267 + NULL, NULL,
1.268 + tmp_toolbar_icon, NULL, NULL);
1.269 + gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
1.270 + gtk_widget_show (break_btn);
1.271 +
1.272 + vpaned1 = gtk_vpaned_new ();
1.273 + gtk_widget_show (vpaned1);
1.274 + gnome_app_set_contents (GNOME_APP (debug_win), vpaned1);
1.275 + gtk_paned_set_position (GTK_PANED (vpaned1), 430);
1.276 +
1.277 + hpaned1 = gtk_hpaned_new ();
1.278 + gtk_widget_show (hpaned1);
1.279 + gtk_paned_pack1 (GTK_PANED (vpaned1), hpaned1, TRUE, TRUE);
1.280 + gtk_paned_set_position (GTK_PANED (hpaned1), 800);
1.281 +
1.282 + vbox2 = gtk_vbox_new (FALSE, 0);
1.283 + gtk_widget_show (vbox2);
1.284 + gtk_paned_pack1 (GTK_PANED (hpaned1), vbox2, FALSE, TRUE);
1.285 +
1.286 + hbox1 = gtk_hbox_new (FALSE, 0);
1.287 + gtk_widget_show (hbox1);
1.288 + gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 3);
1.289 +
1.290 + label21 = gtk_label_new (_("Page"));
1.291 + gtk_widget_show (label21);
1.292 + gtk_box_pack_start (GTK_BOX (hbox1), label21, FALSE, FALSE, 4);
1.293 + gtk_label_set_justify (GTK_LABEL (label21), GTK_JUSTIFY_CENTER);
1.294 +
1.295 + page_field = gtk_entry_new ();
1.296 + gtk_widget_show (page_field);
1.297 + gtk_box_pack_start (GTK_BOX (hbox1), page_field, FALSE, TRUE, 0);
1.298 +
1.299 + page_locked_btn = gtk_check_button_new_with_mnemonic (_("Locked"));
1.300 + gtk_widget_show (page_locked_btn);
1.301 + gtk_box_pack_start (GTK_BOX (hbox1), page_locked_btn, FALSE, FALSE, 5);
1.302 +
1.303 + jump_pc_btn = gtk_button_new_with_mnemonic (_(" Jump to PC "));
1.304 + gtk_widget_show (jump_pc_btn);
1.305 + gtk_box_pack_start (GTK_BOX (hbox1), jump_pc_btn, FALSE, FALSE, 4);
1.306 +
1.307 + label22 = gtk_label_new (_("Mode"));
1.308 + gtk_widget_show (label22);
1.309 + gtk_box_pack_start (GTK_BOX (hbox1), label22, FALSE, FALSE, 5);
1.310 + gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_RIGHT);
1.311 + gtk_misc_set_alignment (GTK_MISC (label22), 1, 0.5);
1.312 +
1.313 + mode_box = gtk_combo_new ();
1.314 + g_object_set_data (G_OBJECT (GTK_COMBO (mode_box)->popwin),
1.315 + "GladeParentKey", mode_box);
1.316 + gtk_widget_show (mode_box);
1.317 + gtk_box_pack_start (GTK_BOX (hbox1), mode_box, FALSE, FALSE, 0);
1.318 + mode_box_items = g_list_append (mode_box_items, (gpointer) "");
1.319 + gtk_combo_set_popdown_strings (GTK_COMBO (mode_box), mode_box_items);
1.320 + g_list_free (mode_box_items);
1.321 +
1.322 + mode_field = GTK_COMBO (mode_box)->entry;
1.323 + gtk_widget_show (mode_field);
1.324 +
1.325 + label23 = gtk_label_new ("");
1.326 + gtk_widget_show (label23);
1.327 + gtk_box_pack_start (GTK_BOX (hbox1), label23, TRUE, TRUE, 4);
1.328 + gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_CENTER);
1.329 +
1.330 + scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
1.331 + gtk_widget_show (scrolledwindow7);
1.332 + gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow7, TRUE, TRUE, 0);
1.333 + GTK_WIDGET_UNSET_FLAGS (scrolledwindow7, GTK_CAN_FOCUS);
1.334 + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
1.335 +
1.336 + disasm_list = gtk_clist_new (4);
1.337 + gtk_widget_show (disasm_list);
1.338 + gtk_container_add (GTK_CONTAINER (scrolledwindow7), disasm_list);
1.339 + gtk_clist_set_column_width (GTK_CLIST (disasm_list), 0, 80);
1.340 + gtk_clist_set_column_width (GTK_CLIST (disasm_list), 1, 80);
1.341 + gtk_clist_set_column_width (GTK_CLIST (disasm_list), 2, 80);
1.342 + gtk_clist_set_column_width (GTK_CLIST (disasm_list), 3, 80);
1.343 + gtk_clist_column_titles_hide (GTK_CLIST (disasm_list));
1.344 +
1.345 + label24 = gtk_label_new ("");
1.346 + gtk_widget_show (label24);
1.347 + gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 0, label24);
1.348 +
1.349 + label27 = gtk_label_new ("");
1.350 + gtk_widget_show (label27);
1.351 + gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 1, label27);
1.352 +
1.353 + label28 = gtk_label_new ("");
1.354 + gtk_widget_show (label28);
1.355 + gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 2, label28);
1.356 +
1.357 + label29 = gtk_label_new ("");
1.358 + gtk_widget_show (label29);
1.359 + gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 3, label29);
1.360 +
1.361 + scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
1.362 + gtk_widget_show (scrolledwindow4);
1.363 + gtk_paned_pack2 (GTK_PANED (hpaned1), scrolledwindow4, FALSE, TRUE);
1.364 + GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
1.365 + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1.366 + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
1.367 +
1.368 + reg_list = gtk_clist_new (2);
1.369 + gtk_widget_show (reg_list);
1.370 + gtk_container_add (GTK_CONTAINER (scrolledwindow4), reg_list);
1.371 + gtk_clist_set_column_width (GTK_CLIST (reg_list), 0, 80);
1.372 + gtk_clist_set_column_width (GTK_CLIST (reg_list), 1, 80);
1.373 + gtk_clist_column_titles_hide (GTK_CLIST (reg_list));
1.374 +
1.375 + label25 = gtk_label_new ("");
1.376 + gtk_widget_show (label25);
1.377 + gtk_clist_set_column_widget (GTK_CLIST (reg_list), 0, label25);
1.378 +
1.379 + label30 = gtk_label_new ("");
1.380 + gtk_widget_show (label30);
1.381 + gtk_clist_set_column_widget (GTK_CLIST (reg_list), 1, label30);
1.382 +
1.383 + scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
1.384 + gtk_widget_show (scrolledwindow8);
1.385 + gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow8, FALSE, TRUE);
1.386 + GTK_WIDGET_UNSET_FLAGS (scrolledwindow8, GTK_CAN_FOCUS);
1.387 + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
1.388 + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
1.389 +
1.390 + output_list = gtk_clist_new (3);
1.391 + gtk_widget_show (output_list);
1.392 + gtk_container_add (GTK_CONTAINER (scrolledwindow8), output_list);
1.393 + gtk_clist_set_column_width (GTK_CLIST (output_list), 0, 80);
1.394 + gtk_clist_set_column_width (GTK_CLIST (output_list), 1, 80);
1.395 + gtk_clist_set_column_width (GTK_CLIST (output_list), 2, 80);
1.396 + gtk_clist_column_titles_hide (GTK_CLIST (output_list));
1.397 +
1.398 + label26 = gtk_label_new ("");
1.399 + gtk_widget_show (label26);
1.400 + gtk_clist_set_column_widget (GTK_CLIST (output_list), 0, label26);
1.401 +
1.402 + label31 = gtk_label_new ("");
1.403 + gtk_widget_show (label31);
1.404 + gtk_clist_set_column_widget (GTK_CLIST (output_list), 1, label31);
1.405 +
1.406 + label32 = gtk_label_new ("");
1.407 + gtk_widget_show (label32);
1.408 + gtk_clist_set_column_widget (GTK_CLIST (output_list), 2, label32);
1.409 +
1.410 + debug_appbar = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER);
1.411 + gtk_widget_show (debug_appbar);
1.412 + gnome_app_set_statusbar (GNOME_APP (debug_win), debug_appbar);
1.413 +
1.414 + g_signal_connect ((gpointer) debug_win, "delete_event",
1.415 + G_CALLBACK (on_debug_win_delete_event),
1.416 + NULL);
1.417 + gnome_app_install_menu_hints (GNOME_APP (debug_win), menubar1_uiinfo);
1.418 + g_signal_connect ((gpointer) load_btn, "clicked",
1.419 + G_CALLBACK (on_load_btn_clicked),
1.420 + NULL);
1.421 + g_signal_connect ((gpointer) reset_btn, "clicked",
1.422 + G_CALLBACK (on_reset_btn_clicked),
1.423 + NULL);
1.424 + g_signal_connect ((gpointer) stop_btn, "clicked",
1.425 + G_CALLBACK (on_stop_btn_clicked),
1.426 + NULL);
1.427 + g_signal_connect ((gpointer) step_btn, "clicked",
1.428 + G_CALLBACK (on_step_btn_clicked),
1.429 + NULL);
1.430 + g_signal_connect ((gpointer) run_btn, "clicked",
1.431 + G_CALLBACK (on_run_btn_clicked),
1.432 + NULL);
1.433 + g_signal_connect ((gpointer) runto_btn, "clicked",
1.434 + G_CALLBACK (on_runto_btn_clicked),
1.435 + NULL);
1.436 + g_signal_connect ((gpointer) break_btn, "clicked",
1.437 + G_CALLBACK (on_break_btn_clicked),
1.438 + NULL);
1.439 + g_signal_connect ((gpointer) page_field, "key_press_event",
1.440 + G_CALLBACK (on_page_field_key_press_event),
1.441 + NULL);
1.442 + g_signal_connect ((gpointer) page_locked_btn, "toggled",
1.443 + G_CALLBACK (on_page_locked_btn_toggled),
1.444 + NULL);
1.445 + g_signal_connect ((gpointer) jump_pc_btn, "clicked",
1.446 + G_CALLBACK (on_jump_pc_btn_clicked),
1.447 + NULL);
1.448 + g_signal_connect ((gpointer) mode_field, "changed",
1.449 + G_CALLBACK (on_mode_field_changed),
1.450 + NULL);
1.451 + g_signal_connect ((gpointer) disasm_list, "select_row",
1.452 + G_CALLBACK (on_disasm_list_select_row),
1.453 + NULL);
1.454 + g_signal_connect ((gpointer) disasm_list, "unselect_row",
1.455 + G_CALLBACK (on_disasm_list_unselect_row),
1.456 + NULL);
1.457 + g_signal_connect ((gpointer) output_list, "select_row",
1.458 + G_CALLBACK (on_output_list_select_row),
1.459 + NULL);
1.460 +
1.461 + /* Store pointers to all widgets, for use by lookup_widget(). */
1.462 + GLADE_HOOKUP_OBJECT_NO_REF (debug_win, debug_win, "debug_win");
1.463 + GLADE_HOOKUP_OBJECT (debug_win, dock1, "dock1");
1.464 + GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[0].widget, "file1");
1.465 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[0].widget, "new_file1");
1.466 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[1].widget, "open1");
1.467 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[2].widget, "save1");
1.468 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[3].widget, "save_as1");
1.469 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[4].widget, "separator1");
1.470 + GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[5].widget, "exit1");
1.471 + GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[1].widget, "view1");
1.472 + GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[0].widget, "mem_mapped_regs1");
1.473 + GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[2].widget, "settings1");
1.474 + GLADE_HOOKUP_OBJECT (debug_win, settings1_menu_uiinfo[0].widget, "preferences1");
1.475 + GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[3].widget, "help1");
1.476 + GLADE_HOOKUP_OBJECT (debug_win, help1_menu_uiinfo[0].widget, "about1");
1.477 + GLADE_HOOKUP_OBJECT (debug_win, toolbar1, "toolbar1");
1.478 + GLADE_HOOKUP_OBJECT (debug_win, load_btn, "load_btn");
1.479 + GLADE_HOOKUP_OBJECT (debug_win, reset_btn, "reset_btn");
1.480 + GLADE_HOOKUP_OBJECT (debug_win, stop_btn, "stop_btn");
1.481 + GLADE_HOOKUP_OBJECT (debug_win, step_btn, "step_btn");
1.482 + GLADE_HOOKUP_OBJECT (debug_win, run_btn, "run_btn");
1.483 + GLADE_HOOKUP_OBJECT (debug_win, runto_btn, "runto_btn");
1.484 + GLADE_HOOKUP_OBJECT (debug_win, break_btn, "break_btn");
1.485 + GLADE_HOOKUP_OBJECT (debug_win, vpaned1, "vpaned1");
1.486 + GLADE_HOOKUP_OBJECT (debug_win, hpaned1, "hpaned1");
1.487 + GLADE_HOOKUP_OBJECT (debug_win, vbox2, "vbox2");
1.488 + GLADE_HOOKUP_OBJECT (debug_win, hbox1, "hbox1");
1.489 + GLADE_HOOKUP_OBJECT (debug_win, label21, "label21");
1.490 + GLADE_HOOKUP_OBJECT (debug_win, page_field, "page_field");
1.491 + GLADE_HOOKUP_OBJECT (debug_win, page_locked_btn, "page_locked_btn");
1.492 + GLADE_HOOKUP_OBJECT (debug_win, jump_pc_btn, "jump_pc_btn");
1.493 + GLADE_HOOKUP_OBJECT (debug_win, label22, "label22");
1.494 + GLADE_HOOKUP_OBJECT (debug_win, mode_box, "mode_box");
1.495 + GLADE_HOOKUP_OBJECT (debug_win, mode_field, "mode_field");
1.496 + GLADE_HOOKUP_OBJECT (debug_win, label23, "label23");
1.497 + GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow7, "scrolledwindow7");
1.498 + GLADE_HOOKUP_OBJECT (debug_win, disasm_list, "disasm_list");
1.499 + GLADE_HOOKUP_OBJECT (debug_win, label24, "label24");
1.500 + GLADE_HOOKUP_OBJECT (debug_win, label27, "label27");
1.501 + GLADE_HOOKUP_OBJECT (debug_win, label28, "label28");
1.502 + GLADE_HOOKUP_OBJECT (debug_win, label29, "label29");
1.503 + GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow4, "scrolledwindow4");
1.504 + GLADE_HOOKUP_OBJECT (debug_win, reg_list, "reg_list");
1.505 + GLADE_HOOKUP_OBJECT (debug_win, label25, "label25");
1.506 + GLADE_HOOKUP_OBJECT (debug_win, label30, "label30");
1.507 + GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow8, "scrolledwindow8");
1.508 + GLADE_HOOKUP_OBJECT (debug_win, output_list, "output_list");
1.509 + GLADE_HOOKUP_OBJECT (debug_win, label26, "label26");
1.510 + GLADE_HOOKUP_OBJECT (debug_win, label31, "label31");
1.511 + GLADE_HOOKUP_OBJECT (debug_win, label32, "label32");
1.512 + GLADE_HOOKUP_OBJECT (debug_win, debug_appbar, "debug_appbar");
1.513 +
1.514 + return debug_win;
1.515 +}
1.516 +
1.517 +GtkWidget*
1.518 +create_mmr_win (void)
1.519 +{
1.520 + GtkWidget *mmr_win;
1.521 + GtkWidget *vbox1;
1.522 + GtkWidget *mmr_notebook;
1.523 + GtkWidget *empty_notebook_page;
1.524 + GtkWidget *label16;
1.525 + GtkWidget *hbuttonbox1;
1.526 + GtkWidget *mmr_close;
1.527 +
1.528 + mmr_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1.529 + gtk_window_set_title (GTK_WINDOW (mmr_win), _("DreamOn! - Memory-Mapped Registers"));
1.530 + gtk_window_set_default_size (GTK_WINDOW (mmr_win), 600, 600);
1.531 +
1.532 + vbox1 = gtk_vbox_new (FALSE, 0);
1.533 + gtk_widget_show (vbox1);
1.534 + gtk_container_add (GTK_CONTAINER (mmr_win), vbox1);
1.535 +
1.536 + mmr_notebook = gtk_notebook_new ();
1.537 + gtk_widget_show (mmr_notebook);
1.538 + gtk_box_pack_start (GTK_BOX (vbox1), mmr_notebook, TRUE, TRUE, 0);
1.539 + gtk_notebook_set_tab_pos (GTK_NOTEBOOK (mmr_notebook), GTK_POS_LEFT);
1.540 +
1.541 + empty_notebook_page = gtk_vbox_new (FALSE, 0);
1.542 + gtk_widget_show (empty_notebook_page);
1.543 + gtk_container_add (GTK_CONTAINER (mmr_notebook), empty_notebook_page);
1.544 +
1.545 + label16 = gtk_label_new (_("label16"));
1.546 + gtk_widget_show (label16);
1.547 + gtk_notebook_set_tab_label (GTK_NOTEBOOK (mmr_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (mmr_notebook), 0), label16);
1.548 + gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_CENTER);
1.549 +
1.550 + hbuttonbox1 = gtk_hbutton_box_new ();
1.551 + gtk_widget_show (hbuttonbox1);
1.552 + gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, TRUE, 0);
1.553 + gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);
1.554 +
1.555 + mmr_close = gtk_button_new_with_mnemonic (_("Close"));
1.556 + gtk_widget_show (mmr_close);
1.557 + gtk_container_add (GTK_CONTAINER (hbuttonbox1), mmr_close);
1.558 + GTK_WIDGET_SET_FLAGS (mmr_close, GTK_CAN_DEFAULT);
1.559 +
1.560 + g_signal_connect ((gpointer) mmr_win, "delete_event",
1.561 + G_CALLBACK (on_mmr_win_delete_event),
1.562 + NULL);
1.563 + g_signal_connect ((gpointer) mmr_close, "clicked",
1.564 + G_CALLBACK (on_mmr_close_clicked),
1.565 + NULL);
1.566 +
1.567 + /* Store pointers to all widgets, for use by lookup_widget(). */
1.568 + GLADE_HOOKUP_OBJECT_NO_REF (mmr_win, mmr_win, "mmr_win");
1.569 + GLADE_HOOKUP_OBJECT (mmr_win, vbox1, "vbox1");
1.570 + GLADE_HOOKUP_OBJECT (mmr_win, mmr_notebook, "mmr_notebook");
1.571 + GLADE_HOOKUP_OBJECT (mmr_win, label16, "label16");
1.572 + GLADE_HOOKUP_OBJECT (mmr_win, hbuttonbox1, "hbuttonbox1");
1.573 + GLADE_HOOKUP_OBJECT (mmr_win, mmr_close, "mmr_close");
1.574 +
1.575 + return mmr_win;
1.576 +}
1.577 +
1.578 +GtkWidget*
1.579 +create_about_win (void)
1.580 +{
1.581 + const gchar *authors[] = {
1.582 + "Nathan Keynes",
1.583 + NULL
1.584 + };
1.585 + const gchar *documenters[] = { NULL };
1.586 + /* TRANSLATORS: Replace this string with your names, one name per line. */
1.587 + gchar *translators = _("translator_credits");
1.588 + GdkPixbuf *about_win_logo_pixbuf;
1.589 + GtkWidget *about_win;
1.590 +
1.591 + if (!strcmp (translators, "translator_credits"))
1.592 + translators = NULL;
1.593 + about_win_logo_pixbuf = create_pixbuf ("dream/dcemu.gif");
1.594 + about_win = gnome_about_new ("Dream2", VERSION,
1.595 + _("Copyright(c) 2002 Nathan Keynes"),
1.596 + "",
1.597 + authors,
1.598 + documenters,
1.599 + translators,
1.600 + about_win_logo_pixbuf);
1.601 + gtk_container_set_border_width (GTK_CONTAINER (about_win), 1);
1.602 +
1.603 + /* Store pointers to all widgets, for use by lookup_widget(). */
1.604 + GLADE_HOOKUP_OBJECT_NO_REF (about_win, about_win, "about_win");
1.605 +
1.606 + return about_win;
1.607 +}
1.608 +
.