Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 26:ad258e3daaa5
prev25:fa2d21d57942
next27:1ef09a52cd1e
author nkeynes
date Sat Dec 24 08:02:18 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change More structure reorgs/fixes
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 "gui/interface.h"
    12 #ifdef __cplusplus
    13 extern "C" {
    14 #if 0
    15 }
    16 #endif
    17 #endif
    19 void init_gui(void);
    20 void update_gui(void);
    22 typedef struct debug_info_struct *debug_info_t;
    23 extern debug_info_t main_debug;
    25 typedef int (*file_callback_t)( const gchar *filename );
    26 void open_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
    27 void save_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
    29 debug_info_t init_debug_win(GtkWidget *, cpu_desc_t *cpu );
    30 debug_info_t get_debug_info(GtkWidget *widget);
    31 void update_mmr_win( void );
    32 void init_mmr_win( void );
    33 void update_registers( debug_info_t debug );
    34 void update_icount( debug_info_t debug );
    35 void dump_win_update_all();
    36 void set_disassembly_region( debug_info_t debug, unsigned int page );
    37 void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
    38 void set_disassembly_cpu( debug_info_t debug, const gchar *cpu_name );
    39 void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
    40 void jump_to_pc( debug_info_t debug, gboolean select );
    41 uint32_t row_to_address( debug_info_t debug, int row );
    42 int address_to_row( debug_info_t debug, uint32_t address );
    44 extern PangoFontDescription *fixed_list_font;
    45 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
    46     clrPC, clrDebug, clrTrace;
    48 void mmr_open_win( void );
    49 void mmr_close_win( void );
    50 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
    51 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
    53 #ifdef __cplusplus
    54 }
    55 #endif
    56 #endif
.