c++: Remove non-keyword types from keywords list
[geany-mirror.git] / src / project.h
blob75a448ce308b3e632ee0b063730e354d73f0913d
1 /*
2 * project.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2007-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2007-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_PROJECT_H
24 #define GEANY_PROJECT_H 1
26 #include <glib.h>
28 G_BEGIN_DECLS
30 #define GEANY_PROJECT_EXT "geany"
33 /** Structure for representing a project. */
34 typedef struct GeanyProject
36 gchar *name; /**< The name of the project. */
37 gchar *description; /**< Short description of the project. */
38 gchar *file_name; /**< Where the project file is stored (in UTF-8). */
39 gchar *base_path; /**< Base path of the project directory (in UTF-8, maybe relative). */
40 /** Identifier whether it is a pure Geany project or modified/extended
41 * by a plugin. */
42 gint type;
43 gchar **file_patterns; /**< Array of filename extension patterns. */
45 struct GeanyProjectPrivate *priv; /* must be last, append fields before this item */
47 GeanyProject;
50 void project_write_config(void);
53 #ifdef GEANY_PRIVATE
55 typedef struct ProjectPrefs
57 gchar *session_file;
58 gboolean project_session;
59 gboolean project_file_in_basedir;
60 } ProjectPrefs;
62 extern ProjectPrefs project_prefs;
65 void project_init(void);
67 void project_finalize(void);
70 void project_new(void);
72 void project_open(void);
74 gboolean project_close(gboolean open_default);
76 void project_properties(void);
78 void project_build_properties(void);
80 gboolean project_ask_close(void);
83 gboolean project_load_file(const gchar *locale_file_name);
85 gboolean project_load_file_with_session(const gchar *locale_file_name);
87 gchar *project_get_base_path(void);
90 const struct GeanyFilePrefs *project_get_file_prefs(void);
92 void project_save_prefs(GKeyFile *config);
94 void project_load_prefs(GKeyFile *config);
96 void project_setup_prefs(void);
98 void project_apply_prefs(void);
100 #endif /* GEANY_PRIVATE */
102 G_END_DECLS
104 #endif /* GEANY_PROJECT_H */