Search
lxdream.org :: lxdream/src/gui/debugif.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/debugif.c
changeset 455:3080881d00d4
prev435:7a5d71e8560b
author nkeynes
date Sun Oct 21 05:21:35 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change More GUI WIP
file annotate diff log raw
1.1 --- a/src/gui/debugif.c Wed Oct 10 11:02:04 2007 +0000
1.2 +++ b/src/gui/debugif.c Sun Oct 21 05:21:35 2007 +0000
1.3 @@ -26,477 +26,6 @@
1.4 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
1.5 g_object_set_data (G_OBJECT (component), name, widget)
1.6
1.7 -static GnomeUIInfo file1_menu_uiinfo[] =
1.8 -{
1.9 - GNOMEUIINFO_MENU_NEW_ITEM (N_("_New"), NULL, on_new_file1_activate, NULL),
1.10 - GNOMEUIINFO_MENU_OPEN_ITEM (on_open1_activate, NULL),
1.11 - GNOMEUIINFO_MENU_SAVE_ITEM (on_save1_activate, NULL),
1.12 - GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as1_activate, NULL),
1.13 - {
1.14 - GNOME_APP_UI_ITEM, N_("Save next scene..."),
1.15 - NULL,
1.16 - (gpointer) on_save_next_scene_activate, NULL, NULL,
1.17 - GNOME_APP_PIXMAP_NONE, NULL,
1.18 - 0, (GdkModifierType) 0, NULL
1.19 - },
1.20 - GNOMEUIINFO_SEPARATOR,
1.21 - GNOMEUIINFO_MENU_EXIT_ITEM (on_exit1_activate, NULL),
1.22 - GNOMEUIINFO_END
1.23 -};
1.24 -
1.25 -static GnomeUIInfo view1_menu_uiinfo[] =
1.26 -{
1.27 - {
1.28 - GNOME_APP_UI_ITEM, N_("Memory..."),
1.29 - NULL,
1.30 - (gpointer) on_view_memory_activate, NULL, NULL,
1.31 - GNOME_APP_PIXMAP_NONE, NULL,
1.32 - 0, (GdkModifierType) 0, NULL
1.33 - },
1.34 - {
1.35 - GNOME_APP_UI_ITEM, N_("Mem mapped Regs..."),
1.36 - NULL,
1.37 - (gpointer) on_mem_mapped_regs1_activate, NULL, NULL,
1.38 - GNOME_APP_PIXMAP_NONE, NULL,
1.39 - 0, (GdkModifierType) 0, NULL
1.40 - },
1.41 - GNOMEUIINFO_END
1.42 -};
1.43 -
1.44 -static GnomeUIInfo settings1_menu_uiinfo[] =
1.45 -{
1.46 - GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),
1.47 - GNOMEUIINFO_END
1.48 -};
1.49 -
1.50 -static GnomeUIInfo help1_menu_uiinfo[] =
1.51 -{
1.52 - GNOMEUIINFO_MENU_ABOUT_ITEM (on_about1_activate, NULL),
1.53 - GNOMEUIINFO_END
1.54 -};
1.55 -
1.56 -static GnomeUIInfo menubar1_uiinfo[] =
1.57 -{
1.58 - {
1.59 - GNOME_APP_UI_SUBTREE, N_("_File"),
1.60 - NULL,
1.61 - file1_menu_uiinfo, NULL, NULL,
1.62 - GNOME_APP_PIXMAP_NONE, NULL,
1.63 - 0, (GdkModifierType) 0, NULL
1.64 - },
1.65 - {
1.66 - GNOME_APP_UI_SUBTREE, N_("_View"),
1.67 - NULL,
1.68 - view1_menu_uiinfo, NULL, NULL,
1.69 - GNOME_APP_PIXMAP_NONE, NULL,
1.70 - 0, (GdkModifierType) 0, NULL
1.71 - },
1.72 - {
1.73 - GNOME_APP_UI_SUBTREE, N_("_Settings"),
1.74 - NULL,
1.75 - settings1_menu_uiinfo, NULL, NULL,
1.76 - GNOME_APP_PIXMAP_NONE, NULL,
1.77 - 0, (GdkModifierType) 0, NULL
1.78 - },
1.79 - {
1.80 - GNOME_APP_UI_SUBTREE, N_("_Help"),
1.81 - NULL,
1.82 - help1_menu_uiinfo, NULL, NULL,
1.83 - GNOME_APP_PIXMAP_NONE, NULL,
1.84 - 0, (GdkModifierType) 0, NULL
1.85 - },
1.86 - GNOMEUIINFO_END
1.87 -};
1.88 -
1.89 -GtkWidget*
1.90 -create_debug_win (void)
1.91 -{
1.92 - GtkWidget *debug_win;
1.93 - GtkWidget *dock1;
1.94 - GtkWidget *toolbar1;
1.95 - GtkIconSize tmp_toolbar_icon_size;
1.96 - GtkWidget *tmp_image;
1.97 - GtkWidget *load_btn;
1.98 - GtkWidget *reset_btn;
1.99 - GtkWidget *stop_btn;
1.100 - GtkWidget *step_btn;
1.101 - GtkWidget *run_btn;
1.102 - GtkWidget *runto_btn;
1.103 - GtkWidget *break_btn;
1.104 - GtkWidget *loadstate_button;
1.105 - GtkWidget *savestate_button;
1.106 - GtkWidget *vpaned1;
1.107 - GtkWidget *hpaned1;
1.108 - GtkWidget *vbox2;
1.109 - GtkWidget *hbox1;
1.110 - GtkWidget *label21;
1.111 - GtkWidget *page_field;
1.112 - GtkWidget *page_locked_btn;
1.113 - GtkWidget *jump_pc_btn;
1.114 - GtkWidget *label22;
1.115 - GtkWidget *mode_box;
1.116 - GList *mode_box_items = NULL;
1.117 - GtkWidget *mode_field;
1.118 - GtkWidget *label23;
1.119 - GtkWidget *scrolledwindow7;
1.120 - GtkWidget *disasm_list;
1.121 - GtkWidget *label24;
1.122 - GtkWidget *label27;
1.123 - GtkWidget *label28;
1.124 - GtkWidget *label29;
1.125 - GtkWidget *scrolledwindow4;
1.126 - GtkWidget *reg_list;
1.127 - GtkWidget *label25;
1.128 - GtkWidget *label30;
1.129 - GtkWidget *scrolledwindow8;
1.130 - GtkWidget *output_list;
1.131 - GtkWidget *label26;
1.132 - GtkWidget *label31;
1.133 - GtkWidget *label32;
1.134 - GtkWidget *debug_appbar;
1.135 - GtkTooltips *tooltips;
1.136 -
1.137 - tooltips = gtk_tooltips_new ();
1.138 -
1.139 - debug_win = gnome_app_new ("Dream", _("lxDream! Debugger"));
1.140 - gtk_window_set_default_size (GTK_WINDOW (debug_win), 1000, 700);
1.141 -
1.142 - dock1 = GNOME_APP (debug_win)->dock;
1.143 - gtk_widget_show (dock1);
1.144 -
1.145 - gnome_app_create_menus (GNOME_APP (debug_win), menubar1_uiinfo);
1.146 -
1.147 - toolbar1 = gtk_toolbar_new ();
1.148 - gtk_widget_show (toolbar1);
1.149 - gnome_app_add_toolbar (GNOME_APP (debug_win), GTK_TOOLBAR (toolbar1), "toolbar1",
1.150 - BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
1.151 - BONOBO_DOCK_TOP, 1, 0, 0);
1.152 - gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1);
1.153 - gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
1.154 - tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
1.155 -
1.156 - tmp_image = gtk_image_new_from_stock ("gtk-cdrom", tmp_toolbar_icon_size);
1.157 - gtk_widget_show (tmp_image);
1.158 - load_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Mount"));
1.159 - gtk_widget_show (load_btn);
1.160 - gtk_container_add (GTK_CONTAINER (toolbar1), load_btn);
1.161 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (load_btn), tooltips, _("Mount CD-Rom"), NULL);
1.162 -
1.163 - tmp_image = gtk_image_new_from_stock ("gtk-refresh", tmp_toolbar_icon_size);
1.164 - gtk_widget_show (tmp_image);
1.165 - reset_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Reset"));
1.166 - gtk_widget_show (reset_btn);
1.167 - gtk_container_add (GTK_CONTAINER (toolbar1), reset_btn);
1.168 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (reset_btn), tooltips, _("Reset emulator"), NULL);
1.169 -
1.170 - tmp_image = gtk_image_new_from_stock ("gtk-stop", tmp_toolbar_icon_size);
1.171 - gtk_widget_show (tmp_image);
1.172 - stop_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Stop"));
1.173 - gtk_widget_show (stop_btn);
1.174 - gtk_container_add (GTK_CONTAINER (toolbar1), stop_btn);
1.175 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (stop_btn), tooltips, _("Stop"), NULL);
1.176 -
1.177 - tmp_image = gtk_image_new_from_stock ("gtk-redo", tmp_toolbar_icon_size);
1.178 - gtk_widget_show (tmp_image);
1.179 - step_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Step"));
1.180 - gtk_widget_show (step_btn);
1.181 - gtk_container_add (GTK_CONTAINER (toolbar1), step_btn);
1.182 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (step_btn), tooltips, _("Single step"), NULL);
1.183 -
1.184 - tmp_image = gtk_image_new_from_stock ("gtk-go-forward", tmp_toolbar_icon_size);
1.185 - gtk_widget_show (tmp_image);
1.186 - run_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Run"));
1.187 - gtk_widget_show (run_btn);
1.188 - gtk_container_add (GTK_CONTAINER (toolbar1), run_btn);
1.189 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (run_btn), tooltips, _("Run"), NULL);
1.190 -
1.191 - tmp_image = gtk_image_new_from_stock ("gtk-goto-last", tmp_toolbar_icon_size);
1.192 - gtk_widget_show (tmp_image);
1.193 - runto_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Run to"));
1.194 - gtk_widget_show (runto_btn);
1.195 - gtk_container_add (GTK_CONTAINER (toolbar1), runto_btn);
1.196 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (runto_btn), tooltips, _("Run to current selection"), NULL);
1.197 -
1.198 - tmp_image = gtk_image_new_from_stock ("gtk-close", tmp_toolbar_icon_size);
1.199 - gtk_widget_show (tmp_image);
1.200 - break_btn = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Break"));
1.201 - gtk_widget_show (break_btn);
1.202 - gtk_container_add (GTK_CONTAINER (toolbar1), break_btn);
1.203 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (break_btn), tooltips, _("Set breakpoint"), NULL);
1.204 -
1.205 - tmp_image = gtk_image_new_from_stock ("gtk-open", tmp_toolbar_icon_size);
1.206 - gtk_widget_show (tmp_image);
1.207 - loadstate_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Load"));
1.208 - gtk_widget_show (loadstate_button);
1.209 - gtk_container_add (GTK_CONTAINER (toolbar1), loadstate_button);
1.210 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (loadstate_button), tooltips, _("Load save-state file"), NULL);
1.211 -
1.212 - tmp_image = gtk_image_new_from_stock ("gtk-save", tmp_toolbar_icon_size);
1.213 - gtk_widget_show (tmp_image);
1.214 - savestate_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Save"));
1.215 - gtk_widget_show (savestate_button);
1.216 - gtk_container_add (GTK_CONTAINER (toolbar1), savestate_button);
1.217 - gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (savestate_button), tooltips, _("Save save-state file"), NULL);
1.218 -
1.219 - vpaned1 = gtk_vpaned_new ();
1.220 - gtk_widget_show (vpaned1);
1.221 - gnome_app_set_contents (GNOME_APP (debug_win), vpaned1);
1.222 - gtk_paned_set_position (GTK_PANED (vpaned1), 430);
1.223 -
1.224 - hpaned1 = gtk_hpaned_new ();
1.225 - gtk_widget_show (hpaned1);
1.226 - gtk_paned_pack1 (GTK_PANED (vpaned1), hpaned1, TRUE, TRUE);
1.227 - gtk_paned_set_position (GTK_PANED (hpaned1), 800);
1.228 -
1.229 - vbox2 = gtk_vbox_new (FALSE, 0);
1.230 - gtk_widget_show (vbox2);
1.231 - gtk_paned_pack1 (GTK_PANED (hpaned1), vbox2, FALSE, TRUE);
1.232 -
1.233 - hbox1 = gtk_hbox_new (FALSE, 0);
1.234 - gtk_widget_show (hbox1);
1.235 - gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 3);
1.236 -
1.237 - label21 = gtk_label_new (_("Page"));
1.238 - gtk_widget_show (label21);
1.239 - gtk_box_pack_start (GTK_BOX (hbox1), label21, FALSE, FALSE, 4);
1.240 - gtk_label_set_justify (GTK_LABEL (label21), GTK_JUSTIFY_CENTER);
1.241 -
1.242 - page_field = gtk_entry_new ();
1.243 - gtk_widget_show (page_field);
1.244 - gtk_box_pack_start (GTK_BOX (hbox1), page_field, FALSE, TRUE, 0);
1.245 -
1.246 - page_locked_btn = gtk_check_button_new_with_mnemonic (_("Locked"));
1.247 - gtk_widget_show (page_locked_btn);
1.248 - gtk_box_pack_start (GTK_BOX (hbox1), page_locked_btn, FALSE, FALSE, 5);
1.249 -
1.250 - jump_pc_btn = gtk_button_new_with_mnemonic (_(" Jump to PC "));
1.251 - gtk_widget_show (jump_pc_btn);
1.252 - gtk_box_pack_start (GTK_BOX (hbox1), jump_pc_btn, FALSE, FALSE, 4);
1.253 -
1.254 - label22 = gtk_label_new (_("Mode"));
1.255 - gtk_widget_show (label22);
1.256 - gtk_box_pack_start (GTK_BOX (hbox1), label22, FALSE, FALSE, 5);
1.257 - gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_RIGHT);
1.258 - gtk_misc_set_alignment (GTK_MISC (label22), 1, 0.5);
1.259 -
1.260 - mode_box = gtk_combo_new ();
1.261 - g_object_set_data (G_OBJECT (GTK_COMBO (mode_box)->popwin),
1.262 - "GladeParentKey", mode_box);
1.263 - gtk_widget_show (mode_box);
1.264 - gtk_box_pack_start (GTK_BOX (hbox1), mode_box, FALSE, FALSE, 0);
1.265 - mode_box_items = g_list_append (mode_box_items, (gpointer) _("SH4"));
1.266 - mode_box_items = g_list_append (mode_box_items, (gpointer) _("ARM7"));
1.267 - mode_box_items = g_list_append (mode_box_items, (gpointer) _("ARM7T"));
1.268 - gtk_combo_set_popdown_strings (GTK_COMBO (mode_box), mode_box_items);
1.269 - g_list_free (mode_box_items);
1.270 -
1.271 - mode_field = GTK_COMBO (mode_box)->entry;
1.272 - gtk_widget_show (mode_field);
1.273 - gtk_editable_set_editable (GTK_EDITABLE (mode_field), FALSE);
1.274 -
1.275 - label23 = gtk_label_new ("");
1.276 - gtk_widget_show (label23);
1.277 - gtk_box_pack_start (GTK_BOX (hbox1), label23, TRUE, TRUE, 4);
1.278 - gtk_label_set_justify (GTK_LABEL (label23), GTK_JUSTIFY_CENTER);
1.279 -
1.280 - scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
1.281 - gtk_widget_show (scrolledwindow7);
1.282 - gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow7, TRUE, TRUE, 0);
1.283 - GTK_WIDGET_UNSET_FLAGS (scrolledwindow7, GTK_CAN_FOCUS);
1.284 - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
1.285 -
1.286 - disasm_list = gtk_clist_new (4);
1.287 - gtk_widget_show (disasm_list);
1.288 - gtk_container_add (GTK_CONTAINER (scrolledwindow7), disasm_list);
1.289 - gtk_clist_set_column_width (GTK_CLIST (disasm_list), 0, 80);
1.290 - gtk_clist_set_column_width (GTK_CLIST (disasm_list), 1, 80);
1.291 - gtk_clist_set_column_width (GTK_CLIST (disasm_list), 2, 80);
1.292 - gtk_clist_set_column_width (GTK_CLIST (disasm_list), 3, 80);
1.293 - gtk_clist_column_titles_hide (GTK_CLIST (disasm_list));
1.294 -
1.295 - label24 = gtk_label_new ("");
1.296 - gtk_widget_show (label24);
1.297 - gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 0, label24);
1.298 -
1.299 - label27 = gtk_label_new ("");
1.300 - gtk_widget_show (label27);
1.301 - gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 1, label27);
1.302 -
1.303 - label28 = gtk_label_new ("");
1.304 - gtk_widget_show (label28);
1.305 - gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 2, label28);
1.306 -
1.307 - label29 = gtk_label_new ("");
1.308 - gtk_widget_show (label29);
1.309 - gtk_clist_set_column_widget (GTK_CLIST (disasm_list), 3, label29);
1.310 -
1.311 - scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
1.312 - gtk_widget_show (scrolledwindow4);
1.313 - gtk_paned_pack2 (GTK_PANED (hpaned1), scrolledwindow4, FALSE, TRUE);
1.314 - GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
1.315 - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1.316 - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
1.317 -
1.318 - reg_list = gtk_clist_new (2);
1.319 - gtk_widget_show (reg_list);
1.320 - gtk_container_add (GTK_CONTAINER (scrolledwindow4), reg_list);
1.321 - gtk_clist_set_column_width (GTK_CLIST (reg_list), 0, 80);
1.322 - gtk_clist_set_column_width (GTK_CLIST (reg_list), 1, 80);
1.323 - gtk_clist_column_titles_hide (GTK_CLIST (reg_list));
1.324 -
1.325 - label25 = gtk_label_new ("");
1.326 - gtk_widget_show (label25);
1.327 - gtk_clist_set_column_widget (GTK_CLIST (reg_list), 0, label25);
1.328 -
1.329 - label30 = gtk_label_new ("");
1.330 - gtk_widget_show (label30);
1.331 - gtk_clist_set_column_widget (GTK_CLIST (reg_list), 1, label30);
1.332 -
1.333 - scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
1.334 - gtk_widget_show (scrolledwindow8);
1.335 - gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow8, FALSE, TRUE);
1.336 - GTK_WIDGET_UNSET_FLAGS (scrolledwindow8, GTK_CAN_FOCUS);
1.337 - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
1.338 - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
1.339 -
1.340 - output_list = gtk_clist_new (4);
1.341 - gtk_widget_show (output_list);
1.342 - gtk_container_add (GTK_CONTAINER (scrolledwindow8), output_list);
1.343 - gtk_clist_set_column_width (GTK_CLIST (output_list), 0, 80);
1.344 - gtk_clist_set_column_width (GTK_CLIST (output_list), 1, 80);
1.345 - gtk_clist_set_column_width (GTK_CLIST (output_list), 2, 80);
1.346 - gtk_clist_set_column_width (GTK_CLIST (output_list), 3, 80);
1.347 - gtk_clist_column_titles_hide (GTK_CLIST (output_list));
1.348 -
1.349 - label26 = gtk_label_new ("");
1.350 - gtk_widget_show (label26);
1.351 - gtk_clist_set_column_widget (GTK_CLIST (output_list), 0, label26);
1.352 -
1.353 - label31 = gtk_label_new ("");
1.354 - gtk_widget_show (label31);
1.355 - gtk_clist_set_column_widget (GTK_CLIST (output_list), 1, label31);
1.356 -
1.357 - label32 = gtk_label_new ("");
1.358 - gtk_widget_show (label32);
1.359 - gtk_clist_set_column_widget (GTK_CLIST (output_list), 2, label32);
1.360 -
1.361 - debug_appbar = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER);
1.362 - gtk_widget_show (debug_appbar);
1.363 - gnome_app_set_statusbar (GNOME_APP (debug_win), debug_appbar);
1.364 -
1.365 - g_signal_connect ((gpointer) debug_win, "delete_event",
1.366 - G_CALLBACK (on_debug_win_delete_event),
1.367 - NULL);
1.368 - gnome_app_install_menu_hints (GNOME_APP (debug_win), menubar1_uiinfo);
1.369 - g_signal_connect ((gpointer) load_btn, "clicked",
1.370 - G_CALLBACK (on_load_btn_clicked),
1.371 - NULL);
1.372 - g_signal_connect ((gpointer) reset_btn, "clicked",
1.373 - G_CALLBACK (on_reset_btn_clicked),
1.374 - NULL);
1.375 - g_signal_connect ((gpointer) stop_btn, "clicked",
1.376 - G_CALLBACK (on_stop_btn_clicked),
1.377 - NULL);
1.378 - g_signal_connect ((gpointer) step_btn, "clicked",
1.379 - G_CALLBACK (on_step_btn_clicked),
1.380 - NULL);
1.381 - g_signal_connect ((gpointer) run_btn, "clicked",
1.382 - G_CALLBACK (on_run_btn_clicked),
1.383 - NULL);
1.384 - g_signal_connect ((gpointer) runto_btn, "clicked",
1.385 - G_CALLBACK (on_runto_btn_clicked),
1.386 - NULL);
1.387 - g_signal_connect ((gpointer) break_btn, "clicked",
1.388 - G_CALLBACK (on_break_btn_clicked),
1.389 - NULL);
1.390 - g_signal_connect ((gpointer) loadstate_button, "clicked",
1.391 - G_CALLBACK (on_loadstate_button_clicked),
1.392 - NULL);
1.393 - g_signal_connect ((gpointer) savestate_button, "clicked",
1.394 - G_CALLBACK (on_savestate_button_clicked),
1.395 - NULL);
1.396 - g_signal_connect ((gpointer) page_field, "key_press_event",
1.397 - G_CALLBACK (on_page_field_key_press_event),
1.398 - NULL);
1.399 - g_signal_connect ((gpointer) page_locked_btn, "toggled",
1.400 - G_CALLBACK (on_page_locked_btn_toggled),
1.401 - NULL);
1.402 - g_signal_connect ((gpointer) jump_pc_btn, "clicked",
1.403 - G_CALLBACK (on_jump_pc_btn_clicked),
1.404 - NULL);
1.405 - g_signal_connect ((gpointer) mode_field, "changed",
1.406 - G_CALLBACK (on_mode_field_changed),
1.407 - NULL);
1.408 - g_signal_connect ((gpointer) disasm_list, "select_row",
1.409 - G_CALLBACK (on_disasm_list_select_row),
1.410 - NULL);
1.411 - g_signal_connect ((gpointer) disasm_list, "unselect_row",
1.412 - G_CALLBACK (on_disasm_list_unselect_row),
1.413 - NULL);
1.414 - g_signal_connect ((gpointer) output_list, "select_row",
1.415 - G_CALLBACK (on_output_list_select_row),
1.416 - NULL);
1.417 -
1.418 - /* Store pointers to all widgets, for use by lookup_widget(). */
1.419 - GLADE_HOOKUP_OBJECT_NO_REF (debug_win, debug_win, "debug_win");
1.420 - GLADE_HOOKUP_OBJECT (debug_win, dock1, "dock1");
1.421 - GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[0].widget, "file1");
1.422 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[0].widget, "new_file1");
1.423 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[1].widget, "open1");
1.424 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[2].widget, "save1");
1.425 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[3].widget, "save_as1");
1.426 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[4].widget, "separator1");
1.427 - GLADE_HOOKUP_OBJECT (debug_win, file1_menu_uiinfo[5].widget, "exit1");
1.428 - GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[1].widget, "view1");
1.429 - GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[0].widget, "view_memory");
1.430 - GLADE_HOOKUP_OBJECT (debug_win, view1_menu_uiinfo[1].widget, "mem_mapped_regs1");
1.431 - GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[2].widget, "settings1");
1.432 - GLADE_HOOKUP_OBJECT (debug_win, settings1_menu_uiinfo[0].widget, "preferences1");
1.433 - GLADE_HOOKUP_OBJECT (debug_win, menubar1_uiinfo[3].widget, "help1");
1.434 - GLADE_HOOKUP_OBJECT (debug_win, help1_menu_uiinfo[0].widget, "about1");
1.435 - GLADE_HOOKUP_OBJECT (debug_win, toolbar1, "toolbar1");
1.436 - GLADE_HOOKUP_OBJECT (debug_win, load_btn, "load_btn");
1.437 - GLADE_HOOKUP_OBJECT (debug_win, reset_btn, "reset_btn");
1.438 - GLADE_HOOKUP_OBJECT (debug_win, stop_btn, "stop_btn");
1.439 - GLADE_HOOKUP_OBJECT (debug_win, step_btn, "step_btn");
1.440 - GLADE_HOOKUP_OBJECT (debug_win, run_btn, "run_btn");
1.441 - GLADE_HOOKUP_OBJECT (debug_win, runto_btn, "runto_btn");
1.442 - GLADE_HOOKUP_OBJECT (debug_win, break_btn, "break_btn");
1.443 - GLADE_HOOKUP_OBJECT (debug_win, loadstate_button, "loadstate_button");
1.444 - GLADE_HOOKUP_OBJECT (debug_win, savestate_button, "savestate_button");
1.445 - GLADE_HOOKUP_OBJECT (debug_win, vpaned1, "vpaned1");
1.446 - GLADE_HOOKUP_OBJECT (debug_win, hpaned1, "hpaned1");
1.447 - GLADE_HOOKUP_OBJECT (debug_win, vbox2, "vbox2");
1.448 - GLADE_HOOKUP_OBJECT (debug_win, hbox1, "hbox1");
1.449 - GLADE_HOOKUP_OBJECT (debug_win, label21, "label21");
1.450 - GLADE_HOOKUP_OBJECT (debug_win, page_field, "page_field");
1.451 - GLADE_HOOKUP_OBJECT (debug_win, page_locked_btn, "page_locked_btn");
1.452 - GLADE_HOOKUP_OBJECT (debug_win, jump_pc_btn, "jump_pc_btn");
1.453 - GLADE_HOOKUP_OBJECT (debug_win, label22, "label22");
1.454 - GLADE_HOOKUP_OBJECT (debug_win, mode_box, "mode_box");
1.455 - GLADE_HOOKUP_OBJECT (debug_win, mode_field, "mode_field");
1.456 - GLADE_HOOKUP_OBJECT (debug_win, label23, "label23");
1.457 - GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow7, "scrolledwindow7");
1.458 - GLADE_HOOKUP_OBJECT (debug_win, disasm_list, "disasm_list");
1.459 - GLADE_HOOKUP_OBJECT (debug_win, label24, "label24");
1.460 - GLADE_HOOKUP_OBJECT (debug_win, label27, "label27");
1.461 - GLADE_HOOKUP_OBJECT (debug_win, label28, "label28");
1.462 - GLADE_HOOKUP_OBJECT (debug_win, label29, "label29");
1.463 - GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow4, "scrolledwindow4");
1.464 - GLADE_HOOKUP_OBJECT (debug_win, reg_list, "reg_list");
1.465 - GLADE_HOOKUP_OBJECT (debug_win, label25, "label25");
1.466 - GLADE_HOOKUP_OBJECT (debug_win, label30, "label30");
1.467 - GLADE_HOOKUP_OBJECT (debug_win, scrolledwindow8, "scrolledwindow8");
1.468 - GLADE_HOOKUP_OBJECT (debug_win, output_list, "output_list");
1.469 - GLADE_HOOKUP_OBJECT (debug_win, label26, "label26");
1.470 - GLADE_HOOKUP_OBJECT (debug_win, label31, "label31");
1.471 - GLADE_HOOKUP_OBJECT (debug_win, label32, "label32");
1.472 - GLADE_HOOKUP_OBJECT (debug_win, debug_appbar, "debug_appbar");
1.473 - GLADE_HOOKUP_OBJECT_NO_REF (debug_win, tooltips, "tooltips");
1.474 -
1.475 - return debug_win;
1.476 -}
1.477 -
1.478 GtkWidget*
1.479 create_mmr_win (void)
1.480 {
1.481 @@ -559,38 +88,6 @@
1.482 }
1.483
1.484 GtkWidget*
1.485 -create_about_win (void)
1.486 -{
1.487 - const gchar *authors[] = {
1.488 - "Nathan Keynes",
1.489 - NULL
1.490 - };
1.491 - const gchar *documenters[] = { NULL };
1.492 - /* TRANSLATORS: Replace this string with your names, one name per line. */
1.493 - gchar *translators = _("translator_credits");
1.494 - GdkPixbuf *about_win_logo_pixbuf;
1.495 - GtkWidget *about_win;
1.496 -
1.497 - if (!strcmp (translators, "translator_credits"))
1.498 - translators = NULL;
1.499 - about_win_logo_pixbuf = create_pixbuf ("dream/dcemu.gif");
1.500 - about_win = gnome_about_new ("Dream", VERSION,
1.501 - _("Copyright(c) 2002 Nathan Keynes"),
1.502 - "",
1.503 - authors,
1.504 - documenters,
1.505 - translators,
1.506 - about_win_logo_pixbuf);
1.507 - gtk_container_set_border_width (GTK_CONTAINER (about_win), 1);
1.508 - gtk_window_set_type_hint (GTK_WINDOW (about_win), GDK_WINDOW_TYPE_HINT_DIALOG);
1.509 -
1.510 - /* Store pointers to all widgets, for use by lookup_widget(). */
1.511 - GLADE_HOOKUP_OBJECT_NO_REF (about_win, about_win, "about_win");
1.512 -
1.513 - return about_win;
1.514 -}
1.515 -
1.516 -GtkWidget*
1.517 create_dump_win (void)
1.518 {
1.519 GtkWidget *dump_win;
1.520 @@ -665,125 +162,3 @@
1.521 return dump_win;
1.522 }
1.523
1.524 -GtkWidget*
1.525 -create_watch_win (void)
1.526 -{
1.527 - GtkWidget *watch_win;
1.528 - GtkWidget *vbox4;
1.529 - GtkWidget *hbox4;
1.530 - GtkWidget *label37;
1.531 - GtkWidget *watch_start_addr;
1.532 - GtkWidget *label38;
1.533 - GtkWidget *watch_end_addr;
1.534 - GtkWidget *label39;
1.535 - GtkWidget *combo1;
1.536 - GtkWidget *watch_type;
1.537 - GtkWidget *button_add_watch;
1.538 - GtkWidget *scrolledwindow10;
1.539 - GtkWidget *treeview1;
1.540 - GtkWidget *hbox5;
1.541 - GtkWidget *label40;
1.542 - GtkWidget *button_clear_all;
1.543 - GtkWidget *button_close;
1.544 -
1.545 - watch_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1.546 - gtk_window_set_title (GTK_WINDOW (watch_win), _("Watchpoints"));
1.547 -
1.548 - vbox4 = gtk_vbox_new (FALSE, 0);
1.549 - gtk_widget_show (vbox4);
1.550 - gtk_container_add (GTK_CONTAINER (watch_win), vbox4);
1.551 -
1.552 - hbox4 = gtk_hbox_new (FALSE, 0);
1.553 - gtk_widget_show (hbox4);
1.554 - gtk_box_pack_start (GTK_BOX (vbox4), hbox4, FALSE, TRUE, 3);
1.555 -
1.556 - label37 = gtk_label_new (_("Start addr "));
1.557 - gtk_widget_show (label37);
1.558 - gtk_box_pack_start (GTK_BOX (hbox4), label37, FALSE, FALSE, 3);
1.559 -
1.560 - watch_start_addr = gtk_entry_new ();
1.561 - gtk_widget_show (watch_start_addr);
1.562 - gtk_box_pack_start (GTK_BOX (hbox4), watch_start_addr, FALSE, TRUE, 0);
1.563 -
1.564 - label38 = gtk_label_new (_("End addr"));
1.565 - gtk_widget_show (label38);
1.566 - gtk_box_pack_start (GTK_BOX (hbox4), label38, FALSE, FALSE, 3);
1.567 -
1.568 - watch_end_addr = gtk_entry_new ();
1.569 - gtk_widget_show (watch_end_addr);
1.570 - gtk_box_pack_start (GTK_BOX (hbox4), watch_end_addr, FALSE, TRUE, 0);
1.571 -
1.572 - label39 = gtk_label_new (_("Type"));
1.573 - gtk_widget_show (label39);
1.574 - gtk_box_pack_start (GTK_BOX (hbox4), label39, FALSE, FALSE, 3);
1.575 -
1.576 - combo1 = gtk_combo_new ();
1.577 - g_object_set_data (G_OBJECT (GTK_COMBO (combo1)->popwin),
1.578 - "GladeParentKey", combo1);
1.579 - gtk_widget_show (combo1);
1.580 - gtk_box_pack_start (GTK_BOX (hbox4), combo1, TRUE, TRUE, 0);
1.581 -
1.582 - watch_type = GTK_COMBO (combo1)->entry;
1.583 - gtk_widget_show (watch_type);
1.584 -
1.585 - button_add_watch = gtk_button_new_with_mnemonic (_("Add Watch"));
1.586 - gtk_widget_show (button_add_watch);
1.587 - gtk_box_pack_start (GTK_BOX (hbox4), button_add_watch, FALSE, FALSE, 3);
1.588 -
1.589 - scrolledwindow10 = gtk_scrolled_window_new (NULL, NULL);
1.590 - gtk_widget_show (scrolledwindow10);
1.591 - gtk_box_pack_start (GTK_BOX (vbox4), scrolledwindow10, TRUE, TRUE, 0);
1.592 -
1.593 - treeview1 = gtk_tree_view_new ();
1.594 - gtk_widget_show (treeview1);
1.595 - gtk_container_add (GTK_CONTAINER (scrolledwindow10), treeview1);
1.596 - gtk_tree_view_set_enable_search (GTK_TREE_VIEW (treeview1), FALSE);
1.597 -
1.598 - hbox5 = gtk_hbox_new (FALSE, 0);
1.599 - gtk_widget_show (hbox5);
1.600 - gtk_box_pack_start (GTK_BOX (vbox4), hbox5, FALSE, TRUE, 3);
1.601 -
1.602 - label40 = gtk_label_new ("");
1.603 - gtk_widget_show (label40);
1.604 - gtk_box_pack_start (GTK_BOX (hbox5), label40, TRUE, TRUE, 0);
1.605 -
1.606 - button_clear_all = gtk_button_new_with_mnemonic (_("Clear all"));
1.607 - gtk_widget_show (button_clear_all);
1.608 - gtk_box_pack_start (GTK_BOX (hbox5), button_clear_all, FALSE, FALSE, 3);
1.609 -
1.610 - button_close = gtk_button_new_with_mnemonic (_("Close"));
1.611 - gtk_widget_show (button_close);
1.612 - gtk_box_pack_start (GTK_BOX (hbox5), button_close, FALSE, FALSE, 5);
1.613 -
1.614 - g_signal_connect ((gpointer) button_add_watch, "clicked",
1.615 - G_CALLBACK (on_button_add_watch_clicked),
1.616 - NULL);
1.617 - g_signal_connect ((gpointer) button_clear_all, "clicked",
1.618 - G_CALLBACK (on_button_clear_all_clicked),
1.619 - NULL);
1.620 - g_signal_connect ((gpointer) button_close, "clicked",
1.621 - G_CALLBACK (on_button_close_clicked),
1.622 - NULL);
1.623 -
1.624 - /* Store pointers to all widgets, for use by lookup_widget(). */
1.625 - GLADE_HOOKUP_OBJECT_NO_REF (watch_win, watch_win, "watch_win");
1.626 - GLADE_HOOKUP_OBJECT (watch_win, vbox4, "vbox4");
1.627 - GLADE_HOOKUP_OBJECT (watch_win, hbox4, "hbox4");
1.628 - GLADE_HOOKUP_OBJECT (watch_win, label37, "label37");
1.629 - GLADE_HOOKUP_OBJECT (watch_win, watch_start_addr, "watch_start_addr");
1.630 - GLADE_HOOKUP_OBJECT (watch_win, label38, "label38");
1.631 - GLADE_HOOKUP_OBJECT (watch_win, watch_end_addr, "watch_end_addr");
1.632 - GLADE_HOOKUP_OBJECT (watch_win, label39, "label39");
1.633 - GLADE_HOOKUP_OBJECT (watch_win, combo1, "combo1");
1.634 - GLADE_HOOKUP_OBJECT (watch_win, watch_type, "watch_type");
1.635 - GLADE_HOOKUP_OBJECT (watch_win, button_add_watch, "button_add_watch");
1.636 - GLADE_HOOKUP_OBJECT (watch_win, scrolledwindow10, "scrolledwindow10");
1.637 - GLADE_HOOKUP_OBJECT (watch_win, treeview1, "treeview1");
1.638 - GLADE_HOOKUP_OBJECT (watch_win, hbox5, "hbox5");
1.639 - GLADE_HOOKUP_OBJECT (watch_win, label40, "label40");
1.640 - GLADE_HOOKUP_OBJECT (watch_win, button_clear_all, "button_clear_all");
1.641 - GLADE_HOOKUP_OBJECT (watch_win, button_close, "button_close");
1.642 -
1.643 - return watch_win;
1.644 -}
1.645 -
.