Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 11:0a82ef380c45
prev10:c898b37506e0
next18:9a1b5d75703f
author nkeynes
date Mon Dec 12 10:37:41 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Use cpu-specific is_valid_page function
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 debug_info_t init_debug_win(GtkWidget *, cpu_desc_t *cpu );
    25 debug_info_t get_debug_info(GtkWidget *widget);
    26 void open_file_dialog( void );
    27 void update_mmr_win( void );
    28 void init_mmr_win( void );
    29 void update_registers( debug_info_t debug );
    30 void update_icount( debug_info_t debug );
    31 void dump_win_update_all();
    32 void set_disassembly_region( debug_info_t debug, unsigned int page );
    33 void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
    34 void set_disassembly_cpu( debug_info_t debug, char *cpu_name );
    35 void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
    36 void jump_to_pc( debug_info_t debug, gboolean select );
    37 uint32_t row_to_address( debug_info_t debug, int row );
    38 int address_to_row( debug_info_t debug, uint32_t address );
    40 extern PangoFontDescription *fixed_list_font;
    41 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
    42     clrPC, clrDebug, clrTrace;
    44 void mmr_open_win( void );
    45 void mmr_close_win( void );
    46 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
    47 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
    49 #ifdef __cplusplus
    50 }
    51 #endif
    52 #endif
.