~ubuntu-branches/debian/squeeze/geany-plugins/squeeze

« back to all changes in this revision

Viewing changes to geanygdb/src/gdb-ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-07-10 22:56:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090710225641-xc1126t7pq0jmpos
Tags: upstream-0.17.1
ImportĀ upstreamĀ versionĀ 0.17.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gdb-ui.h - A GTK-based user interface for the GNU debugger.
 
3
 * Copyright 2008 Jeff Pohlmeyer <yetanothergeek(at)gmail(dot)com>
 
4
 *
 
5
 *
 
6
 * This program 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
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License along
 
18
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
19
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20
 *
 
21
 *
 
22
 */
 
23
 
 
24
 
 
25
#define gui_loop() while (gtk_events_pending()) {gtk_main_iteration();}
 
26
 
 
27
 
 
28
typedef struct
 
29
{
 
30
        gchar *mono_font;
 
31
        gchar *term_cmd;
 
32
        gboolean show_tooltips;
 
33
        gboolean show_icons;
 
34
#ifdef STANDALONE
 
35
        gboolean stay_on_top;
 
36
#endif
 
37
} GdbUiOpts;
 
38
 
 
39
 
 
40
typedef struct
 
41
{
 
42
        gchar *filename;
 
43
        gchar *line_num;
 
44
        gchar *symbol;
 
45
} LocationInfo;
 
46
 
 
47
 
 
48
 
 
49
 
 
50
typedef void (*GdbUiLineFunc) (const gchar * filename, const gchar * line, const gchar * reason);
 
51
typedef LocationInfo *(*GdbUiLocationFunc) ();
 
52
typedef void (*GdbUiOptsFunc) ();
 
53
 
 
54
 
 
55
 
 
56
typedef struct
 
57
{
 
58
        GtkWidget *main_window;
 
59
        GdbMsgFunc info_func;
 
60
        GdbMsgFunc warn_func;
 
61
        GdbUiOptsFunc opts_func;
 
62
        GdbUiLineFunc line_func;
 
63
        GdbUiLocationFunc location_query;
 
64
        GdbUiOpts options;
 
65
} GdbUiSetup;
 
66
 
 
67
extern GdbUiSetup gdbui_setup;
 
68
 
 
69
 
 
70
GtkWidget *gdbui_create_widgets(GtkWidget * parent);
 
71
void gdbui_set_tip(GtkWidget * w, gchar * tip);
 
72
void gdbui_set_tips(GtkTooltips * tips);
 
73
void gdbui_enable(gboolean enabled);
 
74
 
 
75
GtkWidget *gdbui_new_dialog(gchar * title);
 
76
 
 
77
void gdbui_opts_init();
 
78
void gdbui_opts_done();
 
79
 
 
80
void gdbui_opts_dlg();
 
81
 
 
82
void gdbui_stack_dlg(const GSList * frame_list);
 
83
void gdbui_break_dlg(gboolean is_watch);
 
84
void gdbui_env_dlg(const GdbEnvironInfo * env);
 
85
 
 
86
LocationInfo *gdbui_location_dlg(gchar * title, gboolean is_watch);
 
87
void gdbui_free_location_info(LocationInfo * li);