filename | src/gui/gui.h |
changeset | 18:9a1b5d75703f |
prev | 11:0a82ef380c45 |
next | 25:fa2d21d57942 |
author | nkeynes |
date | Thu Dec 22 07:38:12 2005 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Implement 95% of the SCIF serial interface Implement basic load_bin_file function to try to load demos directly Update TMU to run all 3 timers, start on general timing |
view | annotate | diff | log | raw |
1 /*
2 * Gui related code
3 */
4 #ifndef dream_gui_H
5 #define dream_gui_H 1
7 #include <gnome.h>
8 #include "dream.h"
9 #include "disasm.h"
11 #ifdef __cplusplus
12 extern "C" {
13 #if 0
14 }
15 #endif
16 #endif
18 void init_gui(void);
19 void update_gui(void);
21 typedef struct debug_info_struct *debug_info_t;
22 extern debug_info_t main_debug;
24 typedef int (*file_callback_t)( const gchar *filename );
25 void open_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
26 void save_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
28 debug_info_t init_debug_win(GtkWidget *, cpu_desc_t *cpu );
29 debug_info_t get_debug_info(GtkWidget *widget);
30 void update_mmr_win( void );
31 void init_mmr_win( void );
32 void update_registers( debug_info_t debug );
33 void update_icount( debug_info_t debug );
34 void dump_win_update_all();
35 void set_disassembly_region( debug_info_t debug, unsigned int page );
36 void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
37 void set_disassembly_cpu( debug_info_t debug, char *cpu_name );
38 void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
39 void jump_to_pc( debug_info_t debug, gboolean select );
40 uint32_t row_to_address( debug_info_t debug, int row );
41 int address_to_row( debug_info_t debug, uint32_t address );
43 extern PangoFontDescription *fixed_list_font;
44 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
45 clrPC, clrDebug, clrTrace;
47 void mmr_open_win( void );
48 void mmr_close_win( void );
49 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
50 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
52 #ifdef __cplusplus
53 }
54 #endif
55 #endif
.