2009-06-14 19:18:27 +04:00
|
|
|
/* edit.h - editor public API
|
2001-08-24 18:23:17 +00:00
|
|
|
|
2009-06-16 13:23:01 +04:00
|
|
|
Copyright (C) 1996, 1997, 2009 Free Software Foundation, Inc.
|
2001-08-24 18:23:17 +00:00
|
|
|
|
2009-06-15 23:39:27 +04:00
|
|
|
Authors: 1996, 1997 Paul Sheer
|
|
|
|
2009 Andrew Borodin
|
2001-08-24 18:23:17 +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
|
2005-05-27 03:35:10 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
02110-1301, USA.
|
2001-08-24 18:23:17 +00:00
|
|
|
*/
|
|
|
|
|
2009-06-14 19:18:27 +04:00
|
|
|
/** \file edit.h
|
|
|
|
* \brief Header: editor public API
|
2009-06-15 23:39:27 +04:00
|
|
|
* \author Paul Sheer
|
|
|
|
* \date 1996, 1997
|
2009-06-14 19:18:27 +04:00
|
|
|
* \author Andrew Borodin
|
|
|
|
* \date 2009
|
2009-02-06 23:09:50 +02:00
|
|
|
*/
|
|
|
|
|
2004-12-03 17:09:27 +00:00
|
|
|
#ifndef MC_EDIT_H
|
|
|
|
#define MC_EDIT_H
|
2001-08-24 18:23:17 +00:00
|
|
|
|
2009-06-14 19:18:27 +04:00
|
|
|
#include "../src/global.h" /* PATH_SEP_STR */
|
2009-10-05 17:32:46 +03:00
|
|
|
#include "../src/fileloc.h"
|
2005-07-06 21:26:26 +00:00
|
|
|
|
2009-06-14 19:18:27 +04:00
|
|
|
/* Editor widget */
|
|
|
|
struct WEdit;
|
|
|
|
typedef struct WEdit WEdit;
|
2001-08-24 18:23:17 +00:00
|
|
|
|
|
|
|
extern int option_word_wrap_line_length;
|
|
|
|
extern int option_typewriter_wrap;
|
|
|
|
extern int option_auto_para_formatting;
|
|
|
|
extern int option_fill_tabs_with_spaces;
|
|
|
|
extern int option_return_does_auto_indent;
|
|
|
|
extern int option_backspace_through_tabs;
|
|
|
|
extern int option_fake_half_tabs;
|
2009-03-27 22:48:31 +02:00
|
|
|
extern int option_persistent_selections;
|
2009-08-17 15:52:43 +00:00
|
|
|
extern int option_cursor_beyond_eol;
|
2009-05-11 21:15:55 +00:00
|
|
|
extern int option_line_state;
|
2001-08-24 18:23:17 +00:00
|
|
|
extern int option_save_mode;
|
2002-11-30 00:35:07 +00:00
|
|
|
extern int option_save_position;
|
2002-08-19 01:23:24 +00:00
|
|
|
extern int option_syntax_highlighting;
|
2001-08-24 18:23:17 +00:00
|
|
|
extern char *option_backup_ext;
|
|
|
|
|
|
|
|
extern int edit_confirm_save;
|
|
|
|
|
2009-01-19 22:09:54 +01:00
|
|
|
extern int visible_tabs;
|
|
|
|
extern int visible_tws;
|
|
|
|
|
2009-06-16 13:23:01 +04:00
|
|
|
extern int simple_statusbar;
|
2009-10-26 16:32:56 +00:00
|
|
|
extern int option_check_nl_at_eof;
|
2010-01-02 22:50:29 +00:00
|
|
|
extern int show_right_margin;
|
2009-06-16 13:23:01 +04:00
|
|
|
|
2009-06-14 19:18:27 +04:00
|
|
|
/* used in main() */
|
|
|
|
void edit_stack_init (void);
|
|
|
|
void edit_stack_free (void);
|
|
|
|
|
|
|
|
int edit_file (const char *_file, int line);
|
|
|
|
|
|
|
|
const char *edit_get_file_name (const WEdit *edit);
|
|
|
|
int edit_get_curs_col (const WEdit *edit);
|
|
|
|
const char *edit_get_syntax_type (const WEdit *edit);
|
2009-05-28 10:40:54 +03:00
|
|
|
|
2009-06-14 19:18:27 +04:00
|
|
|
#endif /* MC_EDIT_H */
|