1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) Massimo Cora' 2007 <maxcvs@email.it>
6 * plugin.h is free software.
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 of the License, or (at your option)
13 * plugin.h is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with plugin.h. If not, write to:
20 * The Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02110-1301, USA.
28 #include <libanjuta/anjuta-plugin.h>
29 #include "symbol-db-engine.h"
30 #include "symbol-db-engine-iterator.h"
34 extern GType
symbol_db_get_type (AnjutaGluePlugin
*plugin
);
35 #define ANJUTA_TYPE_PLUGIN_SYMBOL_DB (symbol_db_get_type (NULL))
36 #define ANJUTA_PLUGIN_SYMBOL_DB(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_DB, SymbolDBPlugin))
37 #define ANJUTA_PLUGIN_SYMBOL_DB_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_SYMBOL_DB, SymbolDBPluginClass))
38 #define ANJUTA_IS_PLUGIN_SYMBOL_DB(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_DB))
39 #define ANJUTA_IS_PLUGIN_SYMBOL_DB_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_SYMBOL_DB))
40 #define ANJUTA_PLUGIN_SYMBOL_DB_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_SYMBOL_DB, SymbolDBPluginClass))
43 typedef struct _SymbolDBPlugin SymbolDBPlugin
;
44 typedef struct _SymbolDBPluginClass SymbolDBPluginClass
;
46 struct _SymbolDBPlugin
{
52 GtkActionGroup
*action_group_nav
;
58 guint editor_watch_id
;
59 gchar
*project_root_uri
;
60 gchar
*project_root_dir
;
62 /* Symbol's engine connection to database. */
65 GtkWidget
*dbv_notebook
; /* symbol main window [gtk_notebook] */
66 GtkWidget
*scrolled_global
; /* symbol view scrolledwindow for global
68 GtkWidget
*scrolled_locals
;
69 GtkWidget
*scrolled_search
;
72 GtkWidget
*dbv_view_tree
; /* symbol_db_view */
73 GtkWidget
*dbv_view_tab_label
;
75 GtkWidget
*dbv_view_tree_locals
; /* local symbols */
76 GtkWidget
*dbv_view_locals_tab_label
;
78 GtkWidget
*dbv_view_tree_search
; /* search symbols */
79 GtkWidget
*dbv_view_search_tab_label
;
83 GObject
*current_editor
;
84 GHashTable
*editor_connected
;
87 struct _SymbolDBPluginClass
{
88 AnjutaPluginClass parent_class
;