main.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /** \file main.h
  2. * \brief Header: this is a main module header
  3. */
  4. #ifndef MC_MAIN_H
  5. #define MC_MAIN_H
  6. #include "keybind.h"
  7. /* Toggling functions */
  8. void toggle_fast_reload (void);
  9. void toggle_mix_all_files (void);
  10. void toggle_show_backup (void);
  11. void toggle_show_hidden (void);
  12. void toggle_kilobyte_si (void);
  13. extern int quote;
  14. extern volatile int quit;
  15. /* If true, after executing a command, wait for a keystroke */
  16. enum { pause_never, pause_on_dumb_terminals, pause_always };
  17. /* See main.c for details on these variables */
  18. extern int mark_moves_down;
  19. extern int auto_menu;
  20. extern int pause_after_run;
  21. extern int auto_save_setup;
  22. extern int use_internal_view;
  23. extern int use_internal_edit;
  24. extern int fast_reload_w;
  25. extern int clear_before_exec;
  26. extern char *other_dir;
  27. extern int mouse_move_pages;
  28. #ifdef HAVE_CHARSET
  29. extern int source_codepage;
  30. extern int display_codepage;
  31. #else
  32. extern int eight_bit_clean;
  33. extern int full_eight_bits;
  34. #endif /* !HAVE_CHARSET */
  35. extern int utf8_display;
  36. extern int confirm_view_dir;
  37. extern int fast_refresh;
  38. extern int navigate_with_arrows;
  39. extern int drop_menus;
  40. extern int cd_symlinks;
  41. extern int show_all_if_ambiguous;
  42. extern int update_prompt; /* To comunicate with subshell */
  43. extern int safe_delete;
  44. extern int confirm_delete;
  45. extern int confirm_directory_hotlist_delete;
  46. extern int confirm_execute;
  47. extern int confirm_exit;
  48. extern int confirm_overwrite;
  49. extern int boot_current_is_left;
  50. extern int use_file_to_check_type;
  51. extern int vfs_use_limit;
  52. extern int only_leading_plus_minus;
  53. extern int output_starts_shell;
  54. extern int midnight_shutdown;
  55. extern char cmd_buf [512];
  56. extern char *shell;
  57. extern int auto_fill_mkdir_name;
  58. extern int skip_check_codeset;
  59. /* Ugly hack in order to distinguish between left and right panel in menubar */
  60. extern int is_right; /* If the selected menu was the right */
  61. #define MENU_PANEL (is_right ? right_panel : left_panel)
  62. #define MENU_PANEL_IDX (is_right ? 1 : 0)
  63. #define SELECTED_IS_PANEL (get_display_type (is_right ? 1 : 0) == view_listing)
  64. extern GArray *editor_keymap;
  65. extern GArray *viewer_keymap;
  66. extern GArray *viewer_hex_keymap;
  67. extern GArray *main_keymap;
  68. extern GArray *main_x_keymap;
  69. extern GArray *panel_keymap;
  70. extern GArray *input_keymap;
  71. extern const global_key_map_t *panel_map;
  72. extern const global_key_map_t *input_map;
  73. int load_prompt (int, void *);
  74. void quiet_quit_cmd (void); /* For cmd.c and command.c */
  75. void touch_bar (void);
  76. void update_xterm_title_path (void);
  77. void load_hint (int force);
  78. void print_vfs_message(const char *msg, ...)
  79. __attribute__ ((format (__printf__, 1, 2)));
  80. extern const char *prompt;
  81. extern const char *edit_one_file;
  82. extern char *mc_main_sysconf_dir;
  83. extern char *mc_main_sharedata_dir;
  84. struct mc_fhl_struct;
  85. extern struct mc_fhl_struct *mc_filehighlight;
  86. char *get_mc_lib_dir (void);
  87. void done_menu (void);
  88. void init_menu (void);
  89. char *remove_encoding_from_path (const char *);
  90. #define MC_BASE "/.mc/"
  91. #endif