Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 10:c898b37506e0
prev9:2784c7660165
next11:0a82ef380c45
author nkeynes
date Sun Dec 11 05:15:36 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Add CPU disasembly options to mode dropdown
Split sh4/mem.c into core mem.c and sh4/mem.c
Start adding copyright comments to file headers
file annotate diff log raw
nkeynes@1
     1
/*
nkeynes@1
     2
 * Gui related code
nkeynes@1
     3
 */
nkeynes@1
     4
#ifndef dream_gui_H
nkeynes@1
     5
#define dream_gui_H 1
nkeynes@1
     6
nkeynes@1
     7
#include <gnome.h>
nkeynes@1
     8
#include "dream.h"
nkeynes@9
     9
#include "disasm.h"
nkeynes@1
    10
nkeynes@1
    11
#ifdef __cplusplus
nkeynes@1
    12
extern "C" {
nkeynes@1
    13
#if 0
nkeynes@1
    14
}
nkeynes@1
    15
#endif
nkeynes@1
    16
#endif
nkeynes@1
    17
nkeynes@2
    18
void init_gui(void);
nkeynes@2
    19
void update_gui(void);
nkeynes@2
    20
nkeynes@9
    21
typedef struct debug_info_struct *debug_info_t;
nkeynes@9
    22
extern debug_info_t main_debug;
nkeynes@9
    23
nkeynes@9
    24
debug_info_t init_debug_win(GtkWidget *, cpu_desc_t cpu );
nkeynes@9
    25
debug_info_t get_debug_info(GtkWidget *widget);
nkeynes@1
    26
void open_file_dialog( void );
nkeynes@1
    27
void update_mmr_win( void );
nkeynes@1
    28
void init_mmr_win( void );
nkeynes@9
    29
void update_registers( debug_info_t debug );
nkeynes@9
    30
void update_icount( debug_info_t debug );
nkeynes@9
    31
void dump_win_update_all();
nkeynes@9
    32
void set_disassembly_region( debug_info_t debug, unsigned int page );
nkeynes@9
    33
void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
nkeynes@10
    34
void set_disassembly_cpu( debug_info_t debug, char *cpu_name );
nkeynes@9
    35
void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
nkeynes@9
    36
void jump_to_pc( debug_info_t debug, gboolean select );
nkeynes@9
    37
uint32_t row_to_address( debug_info_t debug, int row );
nkeynes@9
    38
int address_to_row( debug_info_t debug, uint32_t address );
nkeynes@1
    39
nkeynes@2
    40
extern PangoFontDescription *fixed_list_font;
nkeynes@2
    41
extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
nkeynes@2
    42
    clrPC, clrDebug, clrTrace;
nkeynes@1
    43
nkeynes@1
    44
void mmr_open_win( void );
nkeynes@1
    45
void mmr_close_win( void );
nkeynes@2
    46
uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
nkeynes@2
    47
void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
nkeynes@1
    48
nkeynes@1
    49
#ifdef __cplusplus
nkeynes@1
    50
}
nkeynes@1
    51
#endif
nkeynes@1
    52
#endif
.