Use uctags version of python
[geany-mirror.git] / src / main.h
blob1a5837c6252322f560f02e49c6a900084864f225
1 /*
2 * main.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2006 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_MAIN_H
23 #define GEANY_MAIN_H 1
25 #include <glib.h>
27 G_BEGIN_DECLS
29 void main_reload_configuration(void);
31 void main_locale_init(const gchar *locale_dir, const gchar *gettext_package);
33 gboolean main_is_realized(void);
36 #ifdef GEANY_PRIVATE
38 typedef struct
40 gboolean new_instance;
41 gchar *socket_filename;
42 gboolean load_session;
43 gint goto_line;
44 gint goto_column;
45 gboolean ignore_global_tags;
46 gboolean list_documents;
47 gboolean readonly;
49 CommandLineOptions;
51 extern CommandLineOptions cl_options;
54 typedef struct GeanyStatus
56 gint opening_session_files; /* >0 indicates batch-opening of session files */
57 gboolean closing_all; /* the state while closing all tabs
58 * (used to prevent notebook switch page signals) */
59 gboolean quitting; /* state when Geany is quitting completely */
60 gboolean main_window_realized;
62 GeanyStatus;
64 extern GeanyStatus main_status;
67 const gchar *main_get_version_string(void);
69 gchar *main_get_argv_filename(const gchar *filename);
71 gboolean main_quit(void);
73 gboolean main_handle_filename(const gchar *locale_filename);
75 void main_load_project_from_command_line(const gchar *locale_filename, gboolean use_session);
77 gint main_lib(gint argc, gchar **argv);
79 #endif /* GEANY_PRIVATE */
81 G_END_DECLS
83 #endif /* GEANY_MAIN_H */