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.
23 #define GEANY_MAIN_H 1
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);
40 gboolean new_instance
;
41 gchar
*socket_filename
;
42 gboolean load_session
;
45 gboolean ignore_global_tags
;
46 gboolean list_documents
;
51 extern CommandLineOptions cl_options
;
54 typedef struct GeanyStatus
56 gboolean opening_session_files
; /* state at startup while opening 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
;
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 */
83 #endif /* GEANY_MAIN_H */