2006-08-20 12:33:09 +00:00
|
|
|
/*
|
|
|
|
* main.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2010-01-01 22:55:18 +00:00
|
|
|
* Copyright 2006-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2006-08-20 12:33:09 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_MAIN_H
|
|
|
|
#define GEANY_MAIN_H
|
|
|
|
|
2006-09-04 11:16:07 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2008-10-20 12:13:27 +00:00
|
|
|
gboolean new_instance;
|
2009-11-23 21:03:24 +00:00
|
|
|
gchar *socket_filename;
|
2007-08-23 11:34:06 +00:00
|
|
|
gboolean load_session;
|
|
|
|
gint goto_line;
|
|
|
|
gint goto_column;
|
|
|
|
gboolean ignore_global_tags;
|
2010-04-11 21:56:50 +00:00
|
|
|
gboolean list_documents;
|
2008-10-20 12:13:27 +00:00
|
|
|
}
|
|
|
|
CommandLineOptions;
|
2006-09-04 11:16:07 +00:00
|
|
|
|
|
|
|
extern CommandLineOptions cl_options;
|
|
|
|
|
|
|
|
|
2007-08-23 11:34:06 +00:00
|
|
|
typedef struct GeanyStatus
|
2007-08-16 15:20:38 +00:00
|
|
|
{
|
2008-02-27 13:17:29 +00:00
|
|
|
gboolean opening_session_files; /* state at startup while opening session files */
|
2008-04-02 13:48:39 +00:00
|
|
|
gboolean closing_all; /* the state while closing all tabs
|
|
|
|
* (used to prevent notebook switch page signals) */
|
2008-02-27 13:17:29 +00:00
|
|
|
gboolean quitting; /* state when Geany is quitting completely */
|
2007-08-23 11:34:06 +00:00
|
|
|
gboolean main_window_realized;
|
|
|
|
}
|
|
|
|
GeanyStatus;
|
2007-08-16 15:20:38 +00:00
|
|
|
|
2007-08-23 11:34:06 +00:00
|
|
|
extern GeanyStatus main_status;
|
2007-08-16 15:20:38 +00:00
|
|
|
|
|
|
|
|
2008-09-24 12:07:22 +00:00
|
|
|
const gchar *main_get_version_string(void);
|
|
|
|
|
|
|
|
gchar *main_get_argv_filename(const gchar *filename);
|
2006-09-07 15:51:24 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void main_quit(void);
|
2006-10-21 11:34:18 +00:00
|
|
|
|
2009-01-09 18:21:12 +00:00
|
|
|
gboolean main_handle_filename(const gchar *locale_filename);
|
2008-07-21 14:12:15 +00:00
|
|
|
|
2008-07-23 11:46:02 +00:00
|
|
|
void main_reload_configuration(void);
|
|
|
|
|
2008-10-25 18:56:27 +00:00
|
|
|
void main_locale_init(const gchar *locale_dir, const gchar *gettext_package);
|
|
|
|
|
2009-11-29 13:36:26 +00:00
|
|
|
gboolean main_is_realized(void);
|
|
|
|
|
2009-11-29 19:59:13 +00:00
|
|
|
void main_load_project_from_command_line(const gchar *locale_filename, gboolean use_session);
|
|
|
|
|
2006-08-20 12:33:09 +00:00
|
|
|
#endif
|