Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuish.h
2 views
1
/* Copyright 2005-2006 Fabien Coulon
2
Copyright 2008 Guillaume Duhamel
3
4
This file is part of Yabause.
5
6
Yabause is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
11
Yabause is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Yabause; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef YUI_SH_H
22
#define YUI_SH_H
23
24
#include <glib.h>
25
#include <glib-object.h>
26
#include <gtk/gtktable.h>
27
28
#include "../sh2core.h"
29
#include "yuiwindow.h"
30
31
G_BEGIN_DECLS
32
33
#define YUI_SH_TYPE (yui_sh_get_type ())
34
#define YUI_SH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_SH_TYPE, YuiSh))
35
#define YUI_SH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_SH_TYPE, YuiShClass))
36
#define IS_YUI_SH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_SH_TYPE))
37
#define IS_YUI_SH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_SH_TYPE))
38
39
typedef struct _YuiSh YuiSh;
40
typedef struct _YuiShClass YuiShClass;
41
42
struct _YuiSh
43
{
44
GtkWindow dialog;
45
46
GtkWidget * view;
47
GtkWidget * toolbar;
48
GtkWidget *vbox;
49
GtkWidget *hboxmain;
50
GtkToolItem * buttonStep;
51
GtkWidget *bpList, *mbpList, *regList; //, *uLabel, *uFrame;
52
GtkListStore *bpListStore, *mbpListStore, *regListStore;
53
GtkCellRenderer *bpListRenderer, *mbpListRenderer, *regListRenderer1, *regListRenderer2;
54
GtkTreeViewColumn *bpListColumn, *mbpListColumn, *regListColumn1, *regListColumn2;
55
//u32 cbp[MAX_BREAKPOINTS]; /* the list of breakpoint positions, as they can be found in the list widget */
56
//u32 cmbp[MAX_BREAKPOINTS]; /* the list of memory breakpoint positions, as they can be found in the list widget */
57
//u32 mbpFlags[MAX_BREAKPOINTS];
58
u32 lastCode; /* offset of last unassembly. Try to reuse it to prevent sliding. */
59
SH2_struct *debugsh;
60
gboolean bMaster;
61
gboolean breakpointEnabled;
62
gulong paused_handler;
63
gulong running_handler;
64
65
GtkListStore * store;
66
67
GtkWidget * bp_menu;
68
GtkWidget * mbp_menu;
69
GtkWidget * mbp_menu_item[6];
70
71
GtkWidget * vboxBp;
72
};
73
74
struct _YuiShClass
75
{
76
GtkWindowClass parent_class;
77
78
void (* yui_sh) (YuiSh * yv);
79
};
80
81
GType yui_sh_get_type (void);
82
GtkWidget * yui_msh_new(YuiWindow * y);
83
GtkWidget * yui_ssh_new(YuiWindow * y);
84
void yui_sh_fill (YuiSh * sh);
85
void yui_sh_update (YuiSh * sh);
86
void yui_sh_destroy (YuiSh * sh);
87
88
G_END_DECLS
89
90
#endif
91
92