Optimization of ini files load.
[midnight-commander.git] / src / filemanager / cmd.h
blobdb953274bcc2510ab8064f83f61ba0e0b7d782e2
1 /** \file cmd.h
2 * \brief Header: routines invoked by a function key
4 * They normally operate on the current panel.
5 */
7 #ifndef MC__CMD_H
8 #define MC__CMD_H
10 #include "lib/global.h"
12 /*** typedefs(not structures) and defined constants **********************************************/
14 /*** enums ***************************************************************************************/
16 typedef enum
18 LINK_HARDLINK = 0,
19 LINK_SYMLINK_ABSOLUTE,
20 LINK_SYMLINK_RELATIVE
21 } link_type_t;
23 /* selection flags */
24 typedef enum
26 SELECT_FILES_ONLY = 1 << 0,
27 SELECT_MATCH_CASE = 1 << 1,
28 SELECT_SHELL_PATTERNS = 1 << 2
29 } select_flags_t;
31 /*** structures declarations (and typedefs of structures)*****************************************/
33 /*** global variables defined in .c file *********************************************************/
35 /*** declarations of public functions ************************************************************/
38 #ifdef ENABLE_VFS_FTP
39 void ftplink_cmd (void);
40 #endif
41 #ifdef ENABLE_VFS_FISH
42 void fishlink_cmd (void);
43 #endif
44 #ifdef ENABLE_VFS_SMB
45 void smblink_cmd (void);
46 #endif
47 void undelete_cmd (void);
48 void help_cmd (void);
49 void smart_dirsize_cmd (void);
50 void single_dirsize_cmd (void);
51 void dirsizes_cmd (void);
52 int view_file_at_line (const vfs_path_t * filename_vpath, int plain_view, int internal,
53 int start_line);
54 int view_file (const vfs_path_t * filename_vpath, int normal, int internal);
55 void view_cmd (void);
56 void view_file_cmd (void);
57 void view_raw_cmd (void);
58 void view_filtered_cmd (void);
59 void do_edit_at_line (const vfs_path_t * what_vpath, gboolean internal, int start_line);
60 void edit_cmd (void);
61 void edit_cmd_new (void);
62 #ifdef USE_INTERNAL_EDIT
63 void edit_cmd_force_internal (void);
64 #endif
65 void copy_cmd (void);
66 void copy_cmd_local (void);
67 void rename_cmd (void);
68 void rename_cmd_local (void);
69 void mkdir_cmd (void);
70 void delete_cmd (void);
71 void delete_cmd_local (void);
72 void find_cmd (void);
73 void filter_cmd (void);
74 void reread_cmd (void);
75 void vfs_list (void);
76 void ext_cmd (void);
77 void edit_mc_menu_cmd (void);
78 void edit_fhl_cmd (void);
79 void hotlist_cmd (void);
80 void compare_dirs_cmd (void);
81 void diff_view_cmd (void);
82 void panel_tree_cmd (void);
83 void link_cmd (link_type_t link_type);
84 void edit_symlink_cmd (void);
85 void select_invert_cmd (void);
86 void unselect_cmd (void);
87 void select_cmd (void);
88 void swap_cmd (void);
89 void view_other_cmd (void);
90 void quick_cd_cmd (void);
91 void save_setup_cmd (void);
92 char *get_random_hint (int force);
93 void user_file_menu_cmd (void);
94 void info_cmd (void);
95 void listing_cmd (void);
96 void change_listing_cmd (void);
97 void quick_cmd_no_menu (void);
98 void info_cmd_no_menu (void);
99 void quick_view_cmd (void);
100 void toggle_listing_cmd (void);
101 #ifdef HAVE_CHARSET
102 void encoding_cmd (void);
103 #endif
105 /*** inline functions ****************************************************************************/
106 #endif /* MC__CMD_H */