Updated Spanish translation
[anjuta-git-plugin.git] / plugins / macro / plugin.h
blob3f20da3f82582b4a23c4890b7f3ddbb96c16a741
1 /*
2 * plugin.h (c) 2004 Johannes Schmid
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef PLUGIN_H
19 #define PLUGIN_H
21 #include <config.h>
22 #include <libanjuta/anjuta-plugin.h>
23 #include <libanjuta/interfaces/ianjuta-editor.h>
25 //#include "macro-db.h"
27 #define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-macro.glade"
29 extern GType macro_plugin_get_type (GTypeModule *module);
30 #define ANJUTA_TYPE_PLUGIN_MACRO (macro_plugin_get_type (NULL))
31 #define ANJUTA_PLUGIN_MACRO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_MACRO, MacroPlugin))
32 #define ANJUTA_PLUGIN_MACRO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_MACRO, MacroPluginClass))
33 #define ANJUTA_IS_PLUGIN_MACRO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_MACRO))
34 #define ANJUTA_IS_PLUGIN_MACRO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_MACRO))
35 #define ANJUTA_PLUGIN_MACRO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_MACRO, MacroPluginClass))
37 typedef struct _MacroPlugin MacroPlugin;
38 typedef struct _MacroPluginClass MacroPluginClass;
39 #include "macro-db.h"
40 struct _MacroPlugin
42 AnjutaPlugin parent;
44 /* Merge id */
45 gint uiid;
47 /* Action group */
48 GtkActionGroup *action_group;
50 /* Watch IDs */
51 gint editor_watch_id;
53 /* Watched values */
54 GObject *current_editor;
56 GtkWidget *macro_dialog;
57 MacroDB *macro_db;
60 struct _MacroPluginClass
62 AnjutaPluginClass parent_class;
65 gboolean
66 macro_insert (MacroPlugin * plugin, const gchar *keyword);
68 #endif