Updated Spanish translation
[anjuta-git-plugin.git] / plugins / glade / plugin.h
blob59757e06c4140c8cc4be8204696f48e117b1a31e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 plugin.c
4 Copyright (C) 2000 Naba Kumar
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 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 GLADE_PLUGIN_H
22 #define GLADE_PLUGIN_H
24 #include <libanjuta/anjuta-plugin.h>
26 #include "config.h"
28 #if (GLADEUI_VERSION <= 303)
29 # include <glade.h>
30 #else
31 # if (GLADEUI_VERSION <= 314)
32 # include <glade.h>
33 # include <glade-design-view.h>
34 # else /* Since 3.1.5 */
35 # include <gladeui/glade.h>
36 # include <gladeui/glade-design-view.h>
37 # endif
38 #endif
40 extern GType glade_plugin_get_type (GTypeModule *module);
41 #define ANJUTA_TYPE_PLUGIN_GLADE (glade_plugin_get_type (NULL))
42 #define ANJUTA_PLUGIN_GLADE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_GLADE, GladePlugin))
43 #define ANJUTA_PLUGIN_GLADE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_GLADE, GladePluginClass))
44 #define ANJUTA_IS_PLUGIN_GLADE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_GLADE))
45 #define ANJUTA_IS_PLUGIN_GLADE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_GLADE))
46 #define ANJUTA_PLUGIN_GLADE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_GLADE, GladePluginClass))
48 typedef struct _GladePlugin GladePlugin;
49 typedef struct _GladePluginPriv GladePluginPriv;
50 typedef struct _GladePluginClass GladePluginClass;
52 struct _GladePlugin{
53 AnjutaPlugin parent;
54 GladePluginPriv *priv;
57 struct _GladePluginClass{
58 AnjutaPluginClass parent_class;
61 void on_copy_activated (GtkAction *action, GladePlugin *plugin);
62 void on_cut_activated (GtkAction *action, GladePlugin *plugin);
63 void on_paste_activated (GtkAction *action, GladePlugin *plugin);
64 void on_undo_activated (GtkAction *action, GladePlugin *plugin);
65 void on_redo_activated (GtkAction *action, GladePlugin *plugin);
66 void on_delete_activated (GtkAction *action, GladePlugin *plugin);
68 gboolean glade_can_undo(GladePlugin *plugin);
69 gboolean glade_can_redo(GladePlugin *plugin);
71 gchar* glade_get_filename(GladePlugin *plugin);
73 #endif