adding memory viewer

This commit is contained in:
damdoum 2007-01-12 16:27:45 +00:00
parent 69ae8304dc
commit a6e1c658cd
5 changed files with 43 additions and 17 deletions

View File

@ -2,7 +2,7 @@ bin_PROGRAMS = desmume-glade
desmume_glade_SOURCES = \ desmume_glade_SOURCES = \
callbacks.c callbacks.h callbacks_IO.c callbacks_IO.h desmume.c desmume.h \ callbacks.c callbacks.h callbacks_IO.c callbacks_IO.h desmume.c desmume.h \
globals.h keyval_names.c main.c printscreen.c \ globals.h keyval_names.c main.c printscreen.c \
dTools/callbacks_1_ioregs.c dTools/callbacks_dtools.h \ dTools/callbacks_1_ioregs.c dTools/callbacks_2_memview.c dTools/callbacks_dtools.h \
../sndsdl.h ../sndsdl.c ../ctrlssdl.h ../ctrlssdl.c ../sndsdl.h ../sndsdl.c ../ctrlssdl.h ../ctrlssdl.c
desmume_glade_LDADD = ../libdesmume.a $(SDL_LIBS) $(LIBGLADE_LIBS) desmume_glade_LDADD = ../libdesmume.a $(SDL_LIBS) $(LIBGLADE_LIBS)
desmume_glade_CFLAGS = $(SDL_CFLAGS) $(LIBGLADE_CFLAGS) desmume_glade_CFLAGS = $(SDL_CFLAGS) $(LIBGLADE_CFLAGS)

View File

@ -242,6 +242,14 @@ void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data)
gtk_widget_show(dlg); gtk_widget_show(dlg);
} }
void on_menu_memview_activate (GtkMenuItem *menuitem, gpointer user_data) {
GtkWidget * dlg = glade_xml_get_widget(xml_tools, "wtools_2_MemView");
gtk_widget_show(dlg);
}
/* MENU ? ***** ***** ***** ***** */ /* MENU ? ***** ***** ***** ***** */
void on_menu_apropos_activate (GtkMenuItem *menuitem, gpointer user_data) { void on_menu_apropos_activate (GtkMenuItem *menuitem, gpointer user_data) {

View File

@ -57,6 +57,8 @@ void on_menu_rightscreen_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data); void on_menu_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data);
/* MENU TOOLS */ /* MENU TOOLS */
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data); void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_memview_activate (GtkMenuItem *menuitem, gpointer user_data);
/* MENU ? */ /* MENU ? */
void on_menu_apropos_activate (GtkMenuItem *menuitem, gpointer user_data); void on_menu_apropos_activate (GtkMenuItem *menuitem, gpointer user_data);

View File

@ -117,7 +117,7 @@
<signal name="activate" handler="on_menu_reset_activate" last_modification_time="Mon, 01 Jan 2007 16:40:47 GMT"/> <signal name="activate" handler="on_menu_reset_activate" last_modification_time="Mon, 01 Jan 2007 16:40:47 GMT"/>
<child internal-child="image"> <child internal-child="image">
<widget class="GtkImage" id="image45"> <widget class="GtkImage" id="image47">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock">gtk-refresh</property> <property name="stock">gtk-refresh</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
@ -164,7 +164,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">1</property> <property name="label" translatable="yes">1</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs1_activate" last_modification_time="Mon, 01 Jan 2007 16:40:47 GMT"/> <signal name="activate" handler="on_fs1_activate" last_modification_time="Mon, 01 Jan 2007 16:40:47 GMT"/>
</widget> </widget>
@ -175,7 +175,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">2</property> <property name="label" translatable="yes">2</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs2_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs2_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -186,7 +186,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">3</property> <property name="label" translatable="yes">3</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs3_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs3_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -197,7 +197,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">4</property> <property name="label" translatable="yes">4</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs4_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs4_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -208,7 +208,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">5</property> <property name="label" translatable="yes">5</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs5_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs5_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -219,7 +219,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">6</property> <property name="label" translatable="yes">6</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs6_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs6_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -230,7 +230,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">7</property> <property name="label" translatable="yes">7</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs7_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs7_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -241,7 +241,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">8</property> <property name="label" translatable="yes">8</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs8_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs8_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -252,7 +252,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">9</property> <property name="label" translatable="yes">9</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">fs0</property> <property name="group">fs0</property>
<signal name="activate" handler="on_fs9_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/> <signal name="activate" handler="on_fs9_activate" last_modification_time="Mon, 01 Jan 2007 16:45:37 GMT"/>
</widget> </widget>
@ -286,7 +286,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">2x</property> <property name="label" translatable="yes">2x</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">size1x</property> <property name="group">size1x</property>
<signal name="activate" handler="on_size2x_activate" last_modification_time="Mon, 01 Jan 2007 20:14:20 GMT"/> <signal name="activate" handler="on_size2x_activate" last_modification_time="Mon, 01 Jan 2007 20:14:20 GMT"/>
</widget> </widget>
@ -297,7 +297,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">3x</property> <property name="label" translatable="yes">3x</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="active">False</property> <property name="active">True</property>
<property name="group">size1x</property> <property name="group">size1x</property>
<signal name="activate" handler="on_size3x_activate" last_modification_time="Mon, 01 Jan 2007 20:14:20 GMT"/> <signal name="activate" handler="on_size3x_activate" last_modification_time="Mon, 01 Jan 2007 20:14:20 GMT"/>
</widget> </widget>
@ -328,7 +328,7 @@
<signal name="activate" handler="on_menu_controls_activate" last_modification_time="Mon, 01 Jan 2007 16:53:11 GMT"/> <signal name="activate" handler="on_menu_controls_activate" last_modification_time="Mon, 01 Jan 2007 16:53:11 GMT"/>
<child internal-child="image"> <child internal-child="image">
<widget class="GtkImage" id="image46"> <widget class="GtkImage" id="image48">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock">gtk-preferences</property> <property name="stock">gtk-preferences</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
@ -402,7 +402,7 @@
<signal name="activate" handler="on_menu_IO_regs_activate" last_modification_time="Mon, 01 Jan 2007 16:53:11 GMT"/> <signal name="activate" handler="on_menu_IO_regs_activate" last_modification_time="Mon, 01 Jan 2007 16:53:11 GMT"/>
<child internal-child="image"> <child internal-child="image">
<widget class="GtkImage" id="image47"> <widget class="GtkImage" id="image49">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock">gtk-properties</property> <property name="stock">gtk-properties</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
@ -414,6 +414,15 @@
</child> </child>
</widget> </widget>
</child> </child>
<child>
<widget class="GtkMenuItem" id="menu_memview">
<property name="visible">True</property>
<property name="label" translatable="yes">View Memory</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_menu_memview_activate" last_modification_time="Fri, 12 Jan 2007 15:44:42 GMT"/>
</widget>
</child>
</widget> </widget>
</child> </child>
</widget> </widget>

View File

@ -798,9 +798,16 @@ cpu : ARM9</property>
<signal name="scroll_child" handler="on_wtools_2_scroll_scroll_child" last_modification_time="Fri, 12 Jan 2007 13:14:01 GMT"/> <signal name="scroll_child" handler="on_wtools_2_scroll_scroll_child" last_modification_time="Fri, 12 Jan 2007 13:14:01 GMT"/>
<child> <child>
<widget class="GtkDrawingArea" id="wtools_2_draw"> <widget class="GtkViewport" id="viewport1">
<property name="visible">True</property> <property name="visible">True</property>
<signal name="expose_event" handler="on_wtools_2_draw_expose_event" last_modification_time="Fri, 12 Jan 2007 13:14:44 GMT"/> <property name="shadow_type">GTK_SHADOW_IN</property>
<child>
<widget class="GtkDrawingArea" id="wtools_2_draw">
<property name="visible">True</property>
<signal name="expose_event" handler="on_wtools_2_draw_expose_event" last_modification_time="Fri, 12 Jan 2007 13:14:44 GMT"/>
</widget>
</child>
</widget> </widget>
</child> </child>
</widget> </widget>