2006-11-14 Günther Brammer <GBrammer@gmx.de>
[anjuta-git-plugin.git] / plugins / patch / plugin.h
blob73931b26b7702a3f5e231c099a7a2774e77e55db
1 /* plugin.h (C) 2005 Massimo Cora'
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef _PATCH_PLUGIN_H_
19 #define _PATCH_PLUGIN_H_
21 #include <config.h>
22 #include <libanjuta/anjuta-plugin.h>
23 #include <libanjuta/anjuta-launcher.h>
24 #include <libanjuta/interfaces/ianjuta-message-manager.h>
26 #define ICON_FILE "anjuta-patch-plugin.png"
28 extern GType patch_plugin_type;
29 #define PATCH_PLUGIN_TYPE (patch_plugin_type)
30 #define PATCH_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PATCH_PLUGIN_TYPE, PatchPlugin))
32 typedef struct _PatchPlugin PatchPlugin;
33 typedef struct _PatchPluginClass PatchPluginClass;
36 struct _PatchPlugin {
37 AnjutaPlugin parent;
38 AnjutaLauncher *launcher;
40 IAnjutaMessageView* mesg_view;
41 GtkWidget* file_chooser;
42 GtkWidget* patch_chooser;
43 GtkWidget* dialog;
44 GtkWidget* output_label;
45 GtkWidget* patch_button;
46 GtkWidget* cancel_button;
47 GtkWidget* dry_run_check;
48 GladeXML* gxml;
51 gboolean executing;
52 gint uiid;
55 struct _PatchPluginClass {
56 AnjutaPluginClass parent_class;
60 #endif /* _PATCH_PLUGIN_H_ */