/* * project_import.h (c) 2005 Johannes Schmid * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef PROJECT_IMPORT_H #define PROJECT_IMPORT_H #include #include #include "plugin.h" #define PROJECT_IMPORT_TYPE (project_import_get_type ()) #define PROJECT_IMPORT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PROJECT_IMPORT_TYPE, ProjectImport)) #define PROJECT_IMPORT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PROJECT_IMPORT_TYPE, ProjectImportClass)) #define IS_PROJECT_IMPORT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PROJECT_IMPORT_TYPE)) #define IS_PROJECT_IMPORT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PROJECT_IMPORT_TYPE)) #define PROJECT_IMPORT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PROJECT_IMPORT_TYPE, ProjectImportClass)) typedef struct _ProjectImport ProjectImport; typedef struct _ProjectImportClass ProjectImportClass; struct _ProjectImport { GObject parent; GtkWidget* window; GtkWidget* druid; GtkWidget* import_name; GtkWidget* import_path; GtkWidget* import_finish; gchar* backend_id; AnjutaPlugin* plugin; }; struct _ProjectImportClass { GObjectClass parent_class; }; GType project_import_get_type(void); ProjectImport *project_import_new(AnjutaPlugin* plugin); void project_import_set_name (ProjectImport *pi, const gchar *name); void project_import_set_directory (ProjectImport *pi, const gchar *directory); gboolean project_import_generate_file(ProjectImport* pi, const gchar* prjfile); #endif /* PROJECT_IMPORT_H */