Merge pull request #3757 from andy5995/iss-3752
[geany-mirror.git] / src / filetypesprivate.h
blob3bff969c96cec592bb09d53e51e7ddbef98ce24f
1 /*
2 * filetypesprivate.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2008 The Geany contributors
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 along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_FILETYPES_PRIVATE_H
23 #define GEANY_FILETYPES_PRIVATE_H 1
25 #include "build.h"
27 #include <gtk/gtk.h>
29 G_BEGIN_DECLS
31 /* Private GeanyFiletype fields */
32 typedef struct GeanyFiletypePrivate
34 GtkWidget *menu_item; /* holds a pointer to the menu item for this filetype */
35 gboolean keyfile_loaded;
36 GRegex *error_regex;
37 gchar *last_error_pattern;
38 gboolean custom;
39 gint symbol_list_sort_mode;
40 gboolean xml_indent_tags; /* XML tag autoindentation, for HTML and XML filetypes */
41 GSList *tag_files;
42 gboolean warn_color_scheme;
43 gboolean user_extensions; // true if extensions were read from user config file
45 /* TODO: move to structure in build.h and only put a pointer here */
46 GeanyBuildCommand *filecmds;
47 GeanyBuildCommand *ftdefcmds;
48 GeanyBuildCommand *execcmds;
49 GeanyBuildCommand *homefilecmds;
50 GeanyBuildCommand *homeexeccmds;
51 GeanyBuildCommand *projfilecmds;
52 GeanyBuildCommand *projexeccmds;
53 gint project_list_entry;
54 gchar *projerror_regex_string;
55 gchar *homeerror_regex_string;
57 GeanyFiletypePrivate;
59 G_END_DECLS
61 #endif /* GEANY_FILETYPES_PRIVATE_H */