Support individual files and folders in log output.
[anjuta-git-plugin.git] / plugins / git / plugin.h
blobe128fec24fa7e89645e195dbd7f9dafe854a2255
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 plugin.h
4 Copyright (C) James Liggett 2008
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,
19 Boston, MA 02110-1301 USA
22 #ifndef _PLUGIN_H
23 #define _PLUGIN_H
25 #include <config.h>
26 #include <gio/gio.h>
27 #include <libanjuta/anjuta-plugin.h>
28 #include <libanjuta/interfaces/ianjuta-message-view.h>
29 #include <libanjuta/interfaces/ianjuta-file.h>
30 #include <libanjuta/interfaces/ianjuta-project-manager.h>
31 #include <libanjuta/interfaces/ianjuta-file-manager.h>
32 #include <libanjuta/anjuta-shell.h>
33 #include <libanjuta/anjuta-debug.h>
35 extern GType git_get_type (GTypeModule *module);
36 #define ANJUTA_TYPE_PLUGIN_GIT (git_get_type (NULL))
37 #define ANJUTA_PLUGIN_GIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_GIT, Git))
38 #define ANJUTA_PLUGIN_GIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_GIT, GitClass))
39 #define ANJUTA_IS_PLUGIN_GIT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_GIT))
40 #define ANJUTA_IS_PLUGIN_GIT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_GIT))
41 #define ANJUTA_PLUGIN_GIT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_GIT, GitClass))
43 typedef struct _Git Git;
44 typedef struct _GitClass GitClass;
46 #define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-git.glade"
47 #define ICON_FILE "anjuta-git-plugin-48.png"
49 struct _Git
51 AnjutaPlugin parent;
52 gint uiid;
53 gchar *project_root_directory;
54 gchar *current_editor_filename;
55 gchar *current_fm_filename;
56 IAnjutaMessageView *message_view;
58 /* Watches */
59 gint project_root_watch_id;
60 gint editor_watch_id;
61 gint fm_watch_id;
63 GtkWidget *log_viewer;
64 GtkWidget *log_popup_menu;
66 /* File monitors */
67 GFileMonitor *bisect_file_monitor;
70 struct _GitClass
72 AnjutaPluginClass parent_class;
75 #endif