Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 28:81c206f59dc7
prev27:1ef09a52cd1e
next30:89b30313d757
author nkeynes
date Sun Dec 25 03:35:08 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Enable/disable run+stop buttons depending on state
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"
    10 #include "modules.h"
    11 #include "gui/interface.h"
    12 #include "sh4/sh4dasm.h"
    13 #include "aica/armdasm.h"
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #if 0
    18 }
    19 #endif
    20 #endif
    22 void gtk_gui_init(void);
    23 void gtk_gui_update(void);
    24 extern struct dreamcast_module gtk_gui_module;
    26 typedef struct debug_info_struct *debug_info_t;
    27 extern debug_info_t main_debug;
    29 typedef int (*file_callback_t)( const gchar *filename );
    30 void open_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
    31 void save_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
    33 debug_info_t init_debug_win(GtkWidget *, cpu_desc_t *cpu );
    34 debug_info_t get_debug_info(GtkWidget *widget);
    35 void update_mmr_win( void );
    36 void init_mmr_win( void );
    37 void update_registers( debug_info_t debug );
    38 void update_icount( debug_info_t debug );
    39 void dump_win_update_all();
    40 void set_disassembly_region( debug_info_t debug, unsigned int page );
    41 void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
    42 void set_disassembly_cpu( debug_info_t debug, const gchar *cpu_name );
    43 void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
    44 void jump_to_pc( debug_info_t debug, gboolean select );
    45 void debug_win_set_running( debug_info_t debug, gboolean isRunning );
    46 uint32_t row_to_address( debug_info_t debug, int row );
    47 int address_to_row( debug_info_t debug, uint32_t address );
    49 extern PangoFontDescription *fixed_list_font;
    50 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
    51     clrPC, clrDebug, clrTrace;
    53 void mmr_open_win( void );
    54 void mmr_close_win( void );
    55 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
    56 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
    58 #ifdef __cplusplus
    59 }
    60 #endif
    61 #endif
.