2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* templates.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2006-02-01 16:05:40 +00:00
|
|
|
* Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
|
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
|
|
|
|
|
|
|
|
|
|
|
|
void templates_init(void);
|
|
|
|
|
|
|
|
gchar *templates_get_template_fileheader(gint template, const gchar *extension, gint idx);
|
|
|
|
|
|
|
|
gchar *templates_get_template_changelog(void);
|
|
|
|
|
|
|
|
gchar *templates_get_template_generic(gint template);
|
|
|
|
|
2006-06-16 17:11:09 +00:00
|
|
|
gchar *templates_get_template_function(gint template, const gchar *func_name);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
gchar *templates_get_template_gpl(gint template);
|
|
|
|
|
|
|
|
void templates_free_templates(void);
|
|
|
|
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GEANY_TEMPLATE_GPL_PASCAL = 0,
|
2006-05-10 19:54:44 +00:00
|
|
|
GEANY_TEMPLATE_GPL_ROUTE,
|
2005-11-22 12:26:26 +00:00
|
|
|
GEANY_TEMPLATE_GPL,
|
|
|
|
GEANY_TEMPLATE_FILEHEADER_PASCAL,
|
2006-05-10 19:54:44 +00:00
|
|
|
GEANY_TEMPLATE_FILEHEADER_ROUTE,
|
2005-11-22 12:26:26 +00:00
|
|
|
GEANY_TEMPLATE_FILEHEADER,
|
|
|
|
GEANY_TEMPLATE_CHANGELOG,
|
|
|
|
GEANY_TEMPLATE_FUNCTION,
|
|
|
|
GEANY_TEMPLATE_FUNCTION_PASCAL,
|
2006-05-10 19:54:44 +00:00
|
|
|
GEANY_TEMPLATE_FUNCTION_ROUTE,
|
2005-11-22 12:26:26 +00:00
|
|
|
GEANY_TEMPLATE_MULTILINE,
|
|
|
|
GEANY_TEMPLATE_MULTILINE_PASCAL,
|
2006-05-10 19:54:44 +00:00
|
|
|
GEANY_TEMPLATE_MULTILINE_ROUTE,
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
GEANY_TEMPLATE_FILETYPE_NONE,
|
|
|
|
GEANY_TEMPLATE_FILETYPE_C,
|
|
|
|
GEANY_TEMPLATE_FILETYPE_CPP,
|
|
|
|
GEANY_TEMPLATE_FILETYPE_JAVA,
|
|
|
|
GEANY_TEMPLATE_FILETYPE_PHP,
|
|
|
|
GEANY_TEMPLATE_FILETYPE_PASCAL,
|
2006-05-10 19:54:44 +00:00
|
|
|
GEANY_TEMPLATE_FILETYPE_RUBY,
|
2006-07-09 14:41:53 +00:00
|
|
|
GEANY_TEMPLATE_FILETYPE_D,
|
2006-09-05 16:55:40 +00:00
|
|
|
GEANY_TEMPLATE_FILETYPE_HTML,
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
GEANY_MAX_TEMPLATES
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|