3 * \brief Header: this is a main module header
11 /* Toggling functions */
12 void toggle_fast_reload (void);
13 void toggle_mix_all_files (void);
14 void toggle_show_backup (void);
15 void toggle_show_hidden (void);
16 void toggle_kilobyte_si (void);
19 extern volatile int quit
;
21 /* If true, after executing a command, wait for a keystroke */
22 enum { pause_never
, pause_on_dumb_terminals
, pause_always
};
24 void subshell_chdir (const char *command
);
26 /* See main.c for details on these variables */
27 extern int mark_moves_down
;
29 extern int pause_after_run
;
30 extern int auto_save_setup
;
31 extern int use_internal_view
;
32 extern int use_internal_edit
;
33 extern int fast_reload_w
;
34 extern int clear_before_exec
;
35 extern char *other_dir
;
36 extern int mouse_move_pages
;
38 extern int option_tab_spacing
;
41 extern int source_codepage
;
42 extern int display_codepage
;
44 extern int eight_bit_clean
;
45 extern int full_eight_bits
;
46 #endif /* !HAVE_CHARSET */
48 extern int utf8_display
;
50 extern int confirm_view_dir
;
51 extern int fast_refresh
;
52 extern int navigate_with_arrows
;
53 extern int drop_menus
;
54 extern int cd_symlinks
;
55 extern int show_all_if_ambiguous
;
56 extern int update_prompt
; /* To comunicate with subshell */
57 extern int safe_delete
;
58 extern int confirm_delete
;
59 extern int confirm_directory_hotlist_delete
;
60 extern int confirm_execute
;
61 extern int confirm_exit
;
62 extern int confirm_overwrite
;
63 extern int boot_current_is_left
;
64 extern int use_file_to_check_type
;
65 extern int vfs_use_limit
;
66 extern int only_leading_plus_minus
;
67 extern int output_starts_shell
;
68 extern int midnight_shutdown
;
70 extern int auto_fill_mkdir_name
;
71 extern int skip_check_codeset
;
72 /* Ugly hack in order to distinguish between left and right panel in menubar */
73 extern int is_right
; /* If the selected menu was the right */
74 #define MENU_PANEL (is_right ? right_panel : left_panel)
75 #define MENU_PANEL_IDX (is_right ? 1 : 0)
76 #define SELECTED_IS_PANEL (get_display_type (is_right ? 1 : 0) == view_listing)
78 #ifdef USE_INTERNAL_EDIT
79 extern GArray
*editor_keymap
;
80 extern GArray
*editor_x_keymap
;
82 extern GArray
*viewer_keymap
;
83 extern GArray
*viewer_hex_keymap
;
84 extern GArray
*main_keymap
;
85 extern GArray
*main_x_keymap
;
86 extern GArray
*panel_keymap
;
87 extern GArray
*input_keymap
;
89 extern const global_keymap_t
*panel_map
;
90 extern const global_keymap_t
*input_map
;
92 #ifdef HAVE_SUBSHELL_SUPPORT
93 void do_update_prompt (void);
101 int do_cd (const char *new_dir
, enum cd_enum cd_type
); /* For find.c */
102 void sort_cmd (void);
103 void change_panel (void);
104 int load_prompt (int, void *);
105 void save_cwds_stat (void);
106 void quiet_quit_cmd (void); /* For cmd.c and command.c */
108 void touch_bar (void);
109 void update_xterm_title_path (void);
110 void load_hint (int force
);
112 void print_vfs_message(const char *msg
, ...)
113 __attribute__ ((format (__printf__
, 1, 2)));
115 extern const char *prompt
;
116 extern const char *edit_one_file
;
117 extern char *mc_home
;
118 extern char *mc_home_alt
;
120 struct mc_fhl_struct
;
121 extern struct mc_fhl_struct
*mc_filehighlight
;
123 char *get_mc_lib_dir (void);
125 void done_menu (void);
126 void init_menu (void);
128 char *remove_encoding_from_path (const char *);
132 void directory_history_add (struct WPanel
*panel
, const char *dir
);
133 int do_panel_cd (struct WPanel
*panel
, const char *new_dir
, enum cd_enum cd_type
);