Updated Spanish translation
[anjuta-git-plugin.git] / plugins / symbol-db / plugin.h
blob69c52b9d42086dc1d0a0934400643ed9bb2cd5d8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * plugin.h
4 * Copyright (C) Massimo Cora' 2007 <maxcvs@email.it>
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 of the License, or (at your option)
11 * any later version.
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.
25 #ifndef _SYMBOL_DB_H_
26 #define _SYMBOL_DB_H_
28 #include <libanjuta/anjuta-plugin.h>
29 #include "symbol-db-engine.h"
30 #include "symbol-db-engine-iterator.h"
32 G_BEGIN_DECLS
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{
47 AnjutaPlugin parent;
48 AnjutaUI *ui;
49 GtkWidget *widget;
50 gint uiid;
51 gint merge_id;
52 GtkActionGroup *action_group_nav;
54 /* project monitor */
55 guint root_watch_id;
57 /* editor monitor */
58 guint editor_watch_id;
59 gchar *project_root_uri;
60 gchar *project_root_dir;
62 /* Symbol's engine connection to database. */
63 SymbolDBEngine *sdbe;
65 GtkWidget *dbv_notebook; /* symbol main window [gtk_notebook] */
66 GtkWidget *scrolled_global; /* symbol view scrolledwindow for global
67 symbols */
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;
82 /* current editor */
83 GObject *current_editor;
84 GHashTable *editor_connected;
87 struct _SymbolDBPluginClass{
88 AnjutaPluginClass parent_class;
92 G_END_DECLS
94 #endif