Search
lxdream.org :: lxdream/src/gui/gui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.h
changeset 392:39e596b3b6dd
prev167:71c0cc416a64
next429:e581b90c3fb3
author nkeynes
date Wed Oct 03 09:32:09 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add global log-level, WARN by default
view annotate diff log raw
     1 /**
     2  * $Id: gui.h,v 1.16 2007-09-18 10:48:57 nkeynes Exp $
     3  * 
     4  * General GUI definitions
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #ifndef dream_gui_H
    20 #define dream_gui_H 1
    22 #include <gnome.h>
    23 #include "dream.h"
    24 #include "cpu.h"
    25 #include "gui/interface.h"
    27 #ifdef __cplusplus
    28 extern "C" {
    29 #if 0
    30 }
    31 #endif
    32 #endif
    34 void gtk_gui_init(void);
    35 void gtk_gui_show_debugger(void);
    36 void gtk_gui_update(void);
    37 extern struct dreamcast_module gtk_gui_module;
    39 typedef struct debug_info_struct *debug_info_t;
    40 extern debug_info_t main_debug;
    42 typedef int (*file_callback_t)( const gchar *filename );
    43 void open_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname, const gchar *initial_dir );
    44 void save_file_dialog( char *title, file_callback_t file_handler, char *pattern, char *patname, const gchar *initial_dir );
    46 void update_mmr_win( void );
    47 void init_mmr_win( void );
    49 debug_info_t init_debug_win(GtkWidget *, const cpu_desc_t *cpu );
    50 debug_info_t get_debug_info(GtkWidget *widget);
    51 void update_registers( debug_info_t debug );
    52 void update_icount( debug_info_t debug );
    53 void dump_win_update_all();
    54 void set_disassembly_region( debug_info_t debug, unsigned int page );
    55 void set_disassembly_pc( debug_info_t debug, unsigned int pc, gboolean select );
    56 void set_disassembly_cpu( debug_info_t debug, const gchar *cpu_name );
    57 void jump_to_disassembly( debug_info_t debug, unsigned int addr, gboolean select );
    58 void jump_to_pc( debug_info_t debug, gboolean select );
    59 void debug_win_set_running( debug_info_t debug, gboolean isRunning );
    60 void debug_win_single_step( debug_info_t debug );
    61 void debug_win_toggle_breakpoint( debug_info_t debug, int row );
    62 void debug_win_set_oneshot_breakpoint( debug_info_t debug, int row );
    63 uint32_t row_to_address( debug_info_t debug, int row );
    64 int address_to_row( debug_info_t debug, uint32_t address );
    66 extern PangoFontDescription *fixed_list_font;
    67 extern GdkColor clrNormal, clrChanged, clrError, clrWarn,
    68     clrPC, clrDebug, clrTrace, clrBreak, clrTempBreak, clrWhite;
    70 void mmr_open_win( void );
    71 void mmr_close_win( void );
    72 uint32_t gtk_entry_get_hex_value( GtkEntry *entry, uint32_t defaultValue );
    73 void gtk_entry_set_hex_value( GtkEntry *entry, uint32_t value );
    75 #ifdef __cplusplus
    76 }
    77 #endif
    78 #endif
.