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