Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuiscudsp.h
2 views
1
/* Copyright 2005-2006 Fabien Coulon
2
3
This file is part of Yabause.
4
5
Yabause is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef YUI_SCUDSP_H
21
#define YUI_SCUDSP_H
22
23
#include <glib.h>
24
#include <glib-object.h>
25
#include <gtk/gtktable.h>
26
27
#include "../scu.h"
28
#include "yuiwindow.h"
29
30
G_BEGIN_DECLS
31
32
#define YUI_SCUDSP_TYPE (yui_scudsp_get_type ())
33
#define YUI_SCUDSP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_SCUDSP_TYPE, YuiScudsp))
34
#define YUI_SCUDSP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_SCUDSP_TYPE, YuiScudspClass))
35
#define IS_YUI_SCUDSP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_SCUDSP_TYPE))
36
#define IS_YUI_SCUDSP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_SCUDSP_TYPE))
37
38
typedef struct _YuiScudsp YuiScudsp;
39
typedef struct _YuiScudspClass YuiScudspClass;
40
41
struct _YuiScudsp
42
{
43
GtkWindow dialog;
44
45
GtkWidget *vbox, *vboxmain;
46
GtkWidget *hbox, *hboxmain;
47
GtkWidget * buttonStep, * buttonStepOver;
48
GtkWidget * bpList, *regList, *uLabel, *uFrame;
49
GtkListStore *bpListStore, *regListStore;
50
GtkCellRenderer *bpListRenderer, *regListRenderer1, *regListRenderer2;
51
GtkTreeViewColumn *bpListColumn, *regListColumn1, *regListColumn2;
52
u32 cbp[MAX_BREAKPOINTS]; /* the list of breakpoint positions, as they can be found in the list widget */
53
u32 lastCode; /* offset of last unassembly. Try to reuse it to prevent sliding. */
54
gulong paused_handler;
55
gulong running_handler;
56
};
57
58
struct _YuiScudspClass
59
{
60
GtkWindowClass parent_class;
61
62
void (* yui_scudsp) (YuiScudsp * yv);
63
};
64
65
GType yui_scudsp_get_type (void);
66
GtkWidget * yui_scudsp_new(YuiWindow * y);
67
void yui_scudsp_update(YuiScudsp * scudsp);
68
void yui_scudsp_destroy(YuiScudsp * scudsp);
69
70
G_END_DECLS
71
72
#endif
73
74