root/src/editor/edit.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /*
   2    Editor public API
   3  */
   4 
   5 /** \file edit.h
   6  *  \brief Header: editor public API
   7  *  \author Paul Sheer
   8  *  \date 1996, 1997
   9  *  \author Andrew Borodin
  10  *  \date 2009, 2012
  11  */
  12 
  13 #ifndef MC__EDIT_H
  14 #define MC__EDIT_H
  15 
  16 #include "lib/global.h"         /* PATH_SEP_STR */
  17 #include "lib/vfs/vfs.h"        /* vfs_path_t */
  18 
  19 /*** typedefs(not structures) and defined constants **********************************************/
  20 
  21 #define DEFAULT_WRAP_LINE_LENGTH 72
  22 
  23 /*** enums ***************************************************************************************/
  24 
  25 /*** structures declarations (and typedefs of structures)*****************************************/
  26 
  27 /* Editor widget */
  28 struct WEdit;
  29 typedef struct WEdit WEdit;
  30 
  31 /*** global variables defined in .c file *********************************************************/
  32 
  33 extern int option_word_wrap_line_length;
  34 extern gboolean option_typewriter_wrap;
  35 extern gboolean option_auto_para_formatting;
  36 extern gboolean option_fill_tabs_with_spaces;
  37 extern gboolean option_return_does_auto_indent;
  38 extern gboolean option_backspace_through_tabs;
  39 extern gboolean option_fake_half_tabs;
  40 extern gboolean option_persistent_selections;
  41 extern gboolean option_drop_selection_on_copy;
  42 extern gboolean option_cursor_beyond_eol;
  43 extern gboolean option_cursor_after_inserted_block;
  44 extern gboolean option_state_full_filename;
  45 extern gboolean option_line_state;
  46 extern int option_save_mode;
  47 extern gboolean option_save_position;
  48 extern gboolean option_syntax_highlighting;
  49 extern gboolean option_group_undo;
  50 extern char *option_backup_ext;
  51 extern char *option_filesize_threshold;
  52 extern char *option_stop_format_chars;
  53 
  54 extern gboolean edit_confirm_save;
  55 
  56 extern gboolean visible_tabs;
  57 extern gboolean visible_tws;
  58 
  59 extern gboolean simple_statusbar;
  60 extern gboolean option_check_nl_at_eof;
  61 extern gboolean show_right_margin;
  62 
  63 /*** declarations of public functions ************************************************************/
  64 
  65 /* used in main() */
  66 void edit_stack_init (void);
  67 void edit_stack_free (void);
  68 
  69 gboolean edit_file (const vfs_path_t * file_vpath, long line);
  70 gboolean edit_files (const GList * files);
  71 
  72 const char *edit_get_file_name (const WEdit * edit);
  73 off_t edit_get_cursor_offset (const WEdit * edit);
  74 long edit_get_curs_col (const WEdit * edit);
  75 const char *edit_get_syntax_type (const WEdit * edit);
  76 
  77 /*** inline functions ****************************************************************************/
  78 #endif /* MC__EDIT_H */

/* [previous][next][first][last][top][bottom][index][help]  */