1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
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 __PROJECT_WIZARD_PLUGIN__
22 #define __PROJECT_WIZARD_PLUGIN__
24 #include <libanjuta/anjuta-plugin.h>
25 #include <libanjuta/interfaces/ianjuta-message-manager.h>
26 #include <libanjuta/anjuta-preferences.h>
28 extern GType
npw_plugin_get_type (GTypeModule
*module
);
29 #define ANJUTA_TYPE_PLUGIN_NPW (npw_plugin_get_type (NULL))
30 #define ANJUTA_PLUGIN_NPW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_NPW, NPWPlugin))
31 #define ANJUTA_PLUGIN_NPW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_NPW, NPWPluginClass))
32 #define ANJUTA_IS_PLUGIN_NPW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_NPW))
33 #define ANJUTA_IS_PLUGIN_NPW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_NPW))
34 #define ANJUTA_PLUGIN_NPW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_NPW, NPWPluginClass))
36 typedef struct _NPWPlugin NPWPlugin
;
37 typedef struct _NPWPluginClass NPWPluginClass
;
42 struct _NPWDruid
* druid
;
43 struct _NPWInstall
* install
;
44 IAnjutaMessageView
* view
;
47 struct _NPWPluginClass
{
48 AnjutaPluginClass parent_class
;
51 IAnjutaMessageView
* npw_plugin_create_view (NPWPlugin
* plugin
);
52 void npw_plugin_append_view (NPWPlugin
* plugin
, const gchar
* text
);
53 void npw_plugin_print_view (NPWPlugin
* plugin
, IAnjutaMessageViewType type
, const gchar
* summary
, const gchar
* details
);
55 gboolean
npw_plugin_show_wizard (NPWPlugin
*plugin
, const gchar
*template_dir
);