mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
467d833ac3
* added warning dialog (showed before save/save as) * added option "editor_check_new_line" * changed dialog 'Edit Save Mode' (added check box 'Check POSIX new line') Signed-off-by: Ilia Maslakov <il.smind@gmail.com> * Redesing of 'Edit Save Mode' dialog. * Added hotkeys in 'Edit Save Mode' dialog. * Modified warning message, minor optimization. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
76 lines
2.1 KiB
C
76 lines
2.1 KiB
C
/* edit.h - editor public API
|
|
|
|
Copyright (C) 1996, 1997, 2009 Free Software Foundation, Inc.
|
|
|
|
Authors: 1996, 1997 Paul Sheer
|
|
2009 Andrew Borodin
|
|
|
|
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.
|
|
*/
|
|
|
|
/** \file edit.h
|
|
* \brief Header: editor public API
|
|
* \author Paul Sheer
|
|
* \date 1996, 1997
|
|
* \author Andrew Borodin
|
|
* \date 2009
|
|
*/
|
|
|
|
#ifndef MC_EDIT_H
|
|
#define MC_EDIT_H
|
|
|
|
#include "../src/global.h" /* PATH_SEP_STR */
|
|
#include "../src/fileloc.h"
|
|
|
|
/* Editor widget */
|
|
struct WEdit;
|
|
typedef struct WEdit WEdit;
|
|
|
|
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;
|
|
extern int option_persistent_selections;
|
|
extern int option_cursor_beyond_eol;
|
|
extern int option_line_state;
|
|
extern int option_save_mode;
|
|
extern int option_save_position;
|
|
extern int option_syntax_highlighting;
|
|
extern char *option_backup_ext;
|
|
|
|
extern int edit_confirm_save;
|
|
|
|
extern int visible_tabs;
|
|
extern int visible_tws;
|
|
|
|
extern int simple_statusbar;
|
|
extern int option_check_nl_at_eof;
|
|
|
|
/* 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);
|
|
|
|
#endif /* MC_EDIT_H */
|