2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* templates.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* Copyright 2005-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2008 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* 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 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
|
2006-05-10 19:54:44 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2005-12-20 17:50:11 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GEANY_TEMPLATES_H
|
|
|
|
#define GEANY_TEMPLATES_H 1
|
|
|
|
|
2007-07-04 11:32:33 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_TEMPLATE_GPL = 0,
|
|
|
|
GEANY_TEMPLATE_BSD,
|
|
|
|
GEANY_TEMPLATE_FILEHEADER,
|
|
|
|
GEANY_TEMPLATE_CHANGELOG,
|
|
|
|
GEANY_TEMPLATE_FUNCTION,
|
|
|
|
GEANY_MAX_TEMPLATES
|
|
|
|
};
|
2006-11-14 16:03:25 +00:00
|
|
|
|
2007-07-04 11:32:33 +00:00
|
|
|
struct filetype;
|
2007-06-14 13:10:51 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
void templates_init(void);
|
|
|
|
|
2007-07-04 11:32:33 +00:00
|
|
|
gchar *templates_get_template_fileheader(gint filetype_idx, const gchar *fname);
|
2006-11-14 16:03:25 +00:00
|
|
|
|
2007-07-04 11:32:33 +00:00
|
|
|
gchar *templates_get_template_new_file(struct filetype *ft);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
gchar *templates_get_template_changelog(void);
|
|
|
|
|
|
|
|
gchar *templates_get_template_generic(gint template);
|
|
|
|
|
2007-01-06 15:03:53 +00:00
|
|
|
gchar *templates_get_template_function(gint filetype_idx, const gchar *func_name);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-01-06 15:38:44 +00:00
|
|
|
gchar *templates_get_template_licence(gint filetype_idx, gint licence_type);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-06-14 13:10:51 +00:00
|
|
|
void templates_free_templates(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
#endif
|