Updated Spanish translation
[anjuta-git-plugin.git] / plugins / class-gen / plugin.h
blob0402f028124432978a71eedc6fc5b290e1ff408e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /* plugin.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef __CLASS_GEN_PLUGIN_H__
20 #define __CLASS_GEN_PLUGIN_H__
22 #include "window.h"
23 #include "generator.h"
25 #include <config.h>
26 #include <libanjuta/anjuta-plugin.h>
28 #define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-class-gen-plugin.glade"
29 #define CLASS_TEMPLATE PACKAGE_DATA_DIR"/class-templates/"
31 extern GType class_gen_plugin_get_type (GTypeModule *module);
32 #define ANJUTA_TYPE_PLUGIN_CLASS_GEN (class_gen_plugin_get_type (NULL))
33 #define ANJUTA_PLUGIN_CLASS_GEN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_CLASS_GEN, AnjutaClassGenPlugin))
34 #define ANJUTA_PLUGIN_CLASS_GEN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_CLASS_GEN, AnjutaClassGenPluginClass))
35 #define ANJUTA_IS_PLUGIN_CLASS_GEN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_CLASS_GEN))
36 #define ANJUTA_IS_PLUGIN_CLASS_GEN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_CLASS_GEN))
37 #define ANJUTA_PLUGIN_CLASS_GEN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_CLASS_GEN, AnjutaClassGenPluginClass))
39 typedef struct _AnjutaClassGenPlugin AnjutaClassGenPlugin;
40 typedef struct _AnjutaClassGenPluginClass AnjutaClassGenPluginClass;
43 struct _AnjutaClassGenPlugin
45 AnjutaPlugin parent;
47 AnjutaPreferences *prefs;
48 gchar *top_dir;
49 guint root_watch_id;
51 CgWindow* window;
52 CgGenerator* generator;
55 struct _AnjutaClassGenPluginClass
57 AnjutaPluginClass parent_class;
61 #endif /* __CLASS_GEN_PLUGIN_H__ */