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
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@27
    10
#include "modules.h"
nkeynes@25
    11
#include "gui/interface.h"
nkeynes@27
    12
#include "sh4/sh4dasm.h"
nkeynes@27
    13
#include "aica/armdasm.h"
nkeynes@1
    14
nkeynes@1
    15
#ifdef __cplusplus
nkeynes@1
    16
extern "C" {
nkeynes@1
    17
#if 0
nkeynes@1
    18
}
nkeynes@1
    19
#endif
nkeynes@1
    20
#endif
nkeynes@1
    21
nkeynes@27
    22
void gtk_gui_init(void);
nkeynes@27
    23
void gtk_gui_update(void);
nkeynes@27
    24
extern struct dreamcast_module gtk_gui_module;
nkeynes@2
    25
nkeynes@9
    26
typedef struct debug_info_struct *debug_info_t;
nkeynes@9
    27
extern debug_info_t main_debug;
nkeynes@9
    28
nkeynes@18
    29
typedef int (*file_callback_t)( const gchar *filename );
nkeynes@18
    30
void open_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
nkeynes@18
    31
void save_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname );
nkeynes@18
    32
nkeynes@11
    33
debug_info_t init_debug_win(GtkWidget *, cpu_desc_t *cpu );
nkeynes@9
    34
debug_info_t get_debug_info(GtkWidget *widget);
nkeynes@1
    35
void update_mmr_win( void );
nkeynes@1
    36
void init_mmr_win( void );
nkeynes@9
    37
void update_registers( debug_info_t debug );
nkeynes@9
    38
void update_icount( debug_info_t debug );
nkeynes@9
    39
void dump_win_update_all();
nkeynes@9
    40
void set_disassembly_region( debug_info_t debug, unsigned int page );
nkeynes@9
    41
void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
nkeynes@26
    42
void set_disassembly_cpu( debug_info_t debug, const gchar *cpu_name );
nkeynes@9
    43
void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
nkeynes@9
    44
void jump_to_pc( debug_info_t debug, gboolean select );
nkeynes@28
    45
void debug_win_set_running( debug_info_t debug, gboolean isRunning );
nkeynes@9
    46
uint32_t row_to_address( debug_info_t debug, int row );
nkeynes@9
    47
int address_to_row( debug_info_t debug, uint32_t address );
nkeynes@1
    48
nkeynes@2
    49
extern PangoFontDescription *fixed_list_font;
nkeynes@2
    50
extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
nkeynes@2
    51
    clrPC, clrDebug, clrTrace;
nkeynes@1
    52
nkeynes@1
    53
void mmr_open_win( void );
nkeynes@1
    54
void mmr_close_win( void );
nkeynes@2
    55
uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
nkeynes@2
    56
void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
nkeynes@1
    57
nkeynes@1
    58
#ifdef __cplusplus
nkeynes@1
    59
}
nkeynes@1
    60
#endif
nkeynes@1
    61
#endif
.