2006-08-20 12:33:09 +00:00
|
|
|
/*
|
|
|
|
* main.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* Copyright 2006-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2008 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
|
|
|
|
{
|
2007-08-23 11:34:06 +00:00
|
|
|
gboolean load_session;
|
|
|
|
gint goto_line;
|
|
|
|
gint goto_column;
|
|
|
|
gboolean ignore_global_tags;
|
2006-09-04 11:16:07 +00:00
|
|
|
} CommandLineOptions;
|
|
|
|
|
|
|
|
extern CommandLineOptions cl_options;
|
|
|
|
|
|
|
|
|
2007-08-23 11:34:06 +00:00
|
|
|
typedef struct GeanyStatus
|
2007-08-16 15:20:38 +00:00
|
|
|
{
|
2007-08-23 11:34:06 +00:00
|
|
|
gboolean opening_session_files; // state at startup while opening session files
|
|
|
|
gboolean quitting; // state when Geany is quitting completely
|
|
|
|
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
|
|
|
|
|
|
|
|
2006-09-07 15:51:24 +00:00
|
|
|
gchar *get_argv_filename(const gchar *filename);
|
|
|
|
|
2006-10-21 11:34:18 +00:00
|
|
|
void main_quit();
|
|
|
|
|
2006-08-20 12:33:09 +00:00
|
|
|
#endif
|