geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

main.h
Go to the documentation of this file.
1/*
2 * main.h - this file is part of Geany, a fast and lightweight IDE
3 *
4 * Copyright 2006 The Geany contributors
5 *
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.
10 *
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.
15 *
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.
19 */
20
21
22#ifndef GEANY_MAIN_H
23#define GEANY_MAIN_H 1
24
25#include <glib.h>
26
27G_BEGIN_DECLS
28
30
31void main_locale_init(const gchar *locale_dir, const gchar *gettext_package);
32
33gboolean main_is_realized(void);
34
35
36#ifdef GEANY_PRIVATE
37
38typedef struct
39{
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;
48}
49CommandLineOptions;
50
51extern CommandLineOptions cl_options;
52
53
54typedef struct GeanyStatus
55{
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;
61}
62GeanyStatus;
63
64extern GeanyStatus main_status;
65
66
67const gchar *main_get_version_string(void);
68
69gchar *main_get_argv_filename(const gchar *filename);
70
71gboolean main_quit(void);
72
73gboolean main_handle_filename(const gchar *locale_filename);
74
75void main_load_project_from_command_line(const gchar *locale_filename, gboolean use_session);
76
77gint main_lib(gint argc, gchar **argv);
78
79#endif /* GEANY_PRIVATE */
80
81G_END_DECLS
82
83#endif /* GEANY_MAIN_H */
void main_load_project_from_command_line(const gchar *locale_filename, gboolean use_session)
Definition: libmain.c:932
const gchar * main_get_version_string(void)
Definition: libmain.c:304
CommandLineOptions cl_options
Definition: libmain.c:90
gboolean main_quit(void)
Definition: libmain.c:1383
static gboolean ignore_global_tags
Definition: libmain.c:100
gboolean main_handle_filename(const gchar *locale_filename)
Definition: libmain.c:817
GEANY_EXPORT_SYMBOL gint main_lib(gint argc, gchar **argv)
Definition: libmain.c:1010
gchar * main_get_argv_filename(const gchar *filename)
Definition: libmain.c:317
GeanyStatus main_status
Definition: libmain.c:89
void main_reload_configuration(void)
Reloads most of Geany's configuration files without restarting.
Definition: libmain.c:1417
gboolean main_is_realized(void)
Checks whether the main window has been realized.
Definition: libmain.c:458
void main_locale_init(const gchar *locale_dir, const gchar *gettext_package)
Initialises the gettext translation system.
Definition: libmain.c:489
const gchar filename[]
Definition: stash-example.c:4