Updated Spanish translation
[anjuta-git-plugin.git] / plugins / cvs-plugin / plugin.h
blobd3de75f212df8672137ea3dba5490f5be63b0015
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 plugin.h
4 Copyright (C) 2004 Naba Kumar, Johannes Schmid
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 PLUGIN_H
22 #define PLUGIN_H
24 #include <config.h>
25 #include <libanjuta/anjuta-plugin.h>
26 #include <libanjuta/anjuta-launcher.h>
27 #include <libanjuta/interfaces/ianjuta-message-manager.h>
28 #include <libanjuta/interfaces/ianjuta-editor.h>
30 #define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-cvs-plugin.glade"
32 extern GType cvs_plugin_get_type (GTypeModule *module);
33 #define ANJUTA_TYPE_PLUGIN_CVS (cvs_plugin_get_type (NULL))
34 #define ANJUTA_PLUGIN_CVS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_CVS, CVSPlugin))
35 #define ANJUTA_PLUGIN_CVS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_CVS, CVSPluginClass))
36 #define ANJUTA_IS_PLUGIN_CVS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_CVS))
37 #define ANJUTA_IS_PLUGIN_CVS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_CVS))
38 #define ANJUTA_PLUGIN_CVS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_CVS, CVSPluginClass))
40 typedef struct _CVSPlugin CVSPlugin;
41 typedef struct _CVSPluginClass CVSPluginClass;
43 struct _CVSPlugin{
44 AnjutaPlugin parent;
46 IAnjutaMessageView* mesg_view;
47 IAnjutaEditor* diff_editor;
48 AnjutaLauncher* launcher;
49 gboolean executing_command;
51 /* UI merge id */
52 gint uiid;
54 /* Action groups */
55 GtkActionGroup *cvs_action_group;
56 GtkActionGroup *cvs_popup_action_group;
58 /* Watch IDs */
59 gint fm_watch_id;
60 gint project_watch_id;
61 gint editor_watch_id;
63 /* Watched values */
64 gchar *fm_current_filename;
65 gchar *project_root_dir;
66 gchar *current_editor_filename;
69 struct _CVSPluginClass{
70 AnjutaPluginClass parent_class;
73 #endif