Integrate adding files with the file manager
[anjuta-git-plugin.git] / plugins / valgrind / plugin.h
blobb994b068c63c699d2717f74610ee2428bb9d9924
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * plugin.h
4 * Copyright (C) Massimo Cora' 2005 <maxcvs@gmail.com>
5 *
6 * plugin.h is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2, or (at your option) any later version.
12 * plugin.h 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.
15 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with plugin.h. See the file "COPYING". If not,
19 * write to: The Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef _VALGRIND_PLUGIN_H_
25 #define _VALGRIND_PLUGIN_H_
27 #include <libanjuta/anjuta-plugin.h>
28 #include "preferences.h"
31 G_BEGIN_DECLS
33 extern GType anjuta_valgrind_plugin_get_type (GTypeModule *module);
34 #define ANJUTA_TYPE_PLUGIN_VALGRIND (anjuta_valgrind_plugin_get_type (NULL))
35 #define ANJUTA_PLUGIN_VALGRIND(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_VALGRIND, AnjutaValgrindPlugin))
36 #define ANJUTA_PLUGIN_VALGRIND_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_VALGRIND, AnjutaValgrindPluginClass))
37 #define ANJUTA_IS_PLUGIN_VALGRIND(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_VALGRIND))
38 #define ANJUTA_IS_PLUGIN_VALGRIND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_VALGRIND))
39 #define ANJUTA_PLUGIN_VALGRIND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_VALGRIND, AnjutaValgrindPluginClass))
41 typedef struct _AnjutaValgrindPlugin AnjutaValgrindPlugin;
42 typedef struct _AnjutaValgrindPluginClass AnjutaValgrindPluginClass;
44 #include "vgactions.h"
46 struct _AnjutaValgrindPlugin{
47 AnjutaPlugin parent;
49 gboolean is_busy;
51 gchar *project_root_uri;
52 gint root_watch_id;
54 GtkWidget *valgrind_widget; /* a VgToolView object */
55 gboolean valgrind_displayed;
56 GtkWidget *general_prefs;
57 VgActions *val_actions;
59 ValgrindPluginPrefs * val_prefs;
61 gint uiid;
62 GtkActionGroup *action_group;
65 struct _AnjutaValgrindPluginClass{
66 AnjutaPluginClass parent_class;
70 void valgrind_set_busy_status (AnjutaValgrindPlugin *plugin, gboolean status);
71 void valgrind_update_ui (AnjutaValgrindPlugin *plugin);
73 G_END_DECLS
75 #endif /* _VALGRIND_PLUGIN_H_ */