Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 27:1ef09a52cd1e
prev26:ad258e3daaa5
next28:81c206f59dc7
author nkeynes
date Sun Dec 25 01:28:39 2005 +0000 (17 years ago)
permissions -rw-r--r--
last change Refactor all the GUI bits out of the main directory (except for a couple
lingering temporarily in loader.c
Fix a few timeslice issues
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 uint32_t row_to_address( debug_info_t debug, int row );
    46 int address_to_row( debug_info_t debug, uint32_t address );
    48 extern PangoFontDescription *fixed_list_font;
    49 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
    50     clrPC, clrDebug, clrTrace;
    52 void mmr_open_win( void );
    53 void mmr_close_win( void );
    54 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
    55 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
    57 #ifdef __cplusplus
    58 }
    59 #endif
    60 #endif
.