2008-04-12 Johannes Schmid <jhs@gnome.org>
[anjuta-git-plugin.git] / plugins / symbol-browser / plugin.h
blobcbd3867105881ce8d4f293b517873fca2641381f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * plugin.h
4 * Copyright (C) Naba Kumar <naba@gnome.org>
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.
11 * This program 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 Library General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef _SYMBOL_BROWSER_PLUGIN_H_
22 #define _SYMBOL_BROWSER_PLUGIN_H_
24 #include <libanjuta/anjuta-plugin.h>
25 #include <libanjuta/anjuta-launcher.h>
27 G_BEGIN_DECLS
29 extern GType symbol_browser_plugin_get_type (GTypeModule *module);
30 #define ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER (symbol_browser_plugin_get_type (NULL))
31 #define ANJUTA_PLUGIN_SYMBOL_BROWSER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER, SymbolBrowserPlugin))
32 #define ANJUTA_PLUGIN_SYMBOL_BROWSER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER, SymbolBrowserPluginClass))
33 #define ANJUTA_IS_PLUGIN_SYMBOL_BROWSER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER))
34 #define ANJUTA_IS_PLUGIN_SYMBOL_BROWSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER))
35 #define ANJUTA_PLUGIN_SYMBOL_BROWSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_BROWSER, SymbolBrowserPluginClass))
37 typedef struct _SymbolBrowserPlugin SymbolBrowserPlugin;
38 typedef struct _SymbolBrowserPluginClass SymbolBrowserPluginClass;
40 struct _SymbolBrowserPlugin{
41 AnjutaPlugin parent;
43 AnjutaUI *ui;
44 AnjutaPreferences *prefs;
46 GtkWidget *sw; /* symbol main window [gtk_notebook] */
47 GtkWidget *sl; /* symbol locals scrolledwindow */
48 GtkWidget *sl_tree; /* anjuta_symbol_locals */
49 GtkWidget *sl_tab_label;
50 GtkWidget *sv; /* symbol view scrolledwindow */
51 GtkWidget *sv_tree; /* anjuta_symbol_view */
52 GtkWidget *sv_tab_label;
53 GtkWidget *ss; /* symbol search */
54 GtkWidget *ss_tab_label;
55 GtkWidget *pref_tree_view; /* Preferences treeview */
57 GtkActionGroup *action_group;
58 GtkActionGroup *popup_action_group;
59 GtkActionGroup *action_group_nav;
60 gint merge_id;
61 gchar *project_root_uri;
62 GObject *current_editor;
63 guint root_watch_id;
64 guint editor_watch_id;
65 GHashTable *editor_connected;
66 GList *gconf_notify_ids;
68 gint locals_line_number;
69 AnjutaLauncher *launcher;
72 struct _SymbolBrowserPluginClass{
73 AnjutaPluginClass parent_class;
76 G_END_DECLS
78 #endif