Manual pages: mcmcdiffmceditmcview

root/src/filemanager/cmd.h

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

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. copy_cmd
  2. copy_cmd_local
  3. rename_cmd
  4. rename_cmd_local
  5. delete_cmd
  6. delete_cmd_local

   1 /** \file cmd.h
   2  *  \brief Header: routines invoked by a function key
   3  *
   4  *  They normally operate on the current panel.
   5  */
   6 
   7 #ifndef MC__CMD_H
   8 #define MC__CMD_H
   9 
  10 #include "lib/global.h"
  11 
  12 #include "file.h"  // panel_operate()
  13 #include "panel.h"
  14 
  15 /*** typedefs(not structures) and defined constants **********************************************/
  16 
  17 /*** enums ***************************************************************************************/
  18 
  19 typedef enum
  20 {
  21     LINK_HARDLINK = 0,
  22     LINK_SYMLINK_ABSOLUTE,
  23     LINK_SYMLINK_RELATIVE
  24 } link_type_t;
  25 
  26 /*** structures declarations (and typedefs of structures)*****************************************/
  27 
  28 /*** global variables defined in .c file *********************************************************/
  29 
  30 /*** declarations of public functions ************************************************************/
  31 
  32 #ifdef ENABLE_VFS_FTP
  33 void ftplink_cmd (void);
  34 #endif
  35 #ifdef ENABLE_VFS_SFTP
  36 void sftplink_cmd (void);
  37 #endif
  38 #ifdef ENABLE_VFS_SHELL
  39 void shelllink_cmd (void);
  40 #endif
  41 void help_cmd (void);
  42 void smart_dirsize_cmd (WPanel *panel);
  43 void single_dirsize_cmd (WPanel *panel);
  44 void dirsizes_cmd (WPanel *panel);
  45 gboolean view_file_at_line (const vfs_path_t *filename_vpath, gboolean plain_view,
  46                             gboolean internal, long start_line, off_t search_start,
  47                             off_t search_end);
  48 gboolean view_file (const vfs_path_t *filename_vpath, gboolean plain_view, gboolean internal);
  49 void view_cmd (WPanel *panel);
  50 void view_file_cmd (const WPanel *panel);
  51 void view_raw_cmd (WPanel *panel);
  52 void view_filtered_cmd (const WPanel *panel);
  53 void edit_file_at_line (const vfs_path_t *what_vpath, gboolean internal, long start_line);
  54 void edit_cmd (const WPanel *panel);
  55 void edit_cmd_new (void);
  56 #ifdef USE_INTERNAL_EDIT
  57 void edit_cmd_force_internal (const WPanel *panel);
  58 #endif
  59 void mkdir_cmd (WPanel *panel);
  60 void reread_cmd (void);
  61 void vfs_list (WPanel *panel);
  62 void ext_cmd (void);
  63 void edit_mc_menu_cmd (void);
  64 void edit_fhl_cmd (void);
  65 void hotlist_cmd (WPanel *panel);
  66 void compare_dirs_cmd (void);
  67 #ifdef USE_DIFF_VIEW
  68 void diff_view_cmd (void);
  69 #endif
  70 void panel_tree_cmd (void);
  71 void link_cmd (link_type_t link_type);
  72 void edit_symlink_cmd (void);
  73 void swap_cmd (void);
  74 void quick_cd_cmd (WPanel *panel);
  75 void save_setup_cmd (void);
  76 void info_cmd (void);
  77 void listing_cmd (void);
  78 void setup_listing_format_cmd (void);
  79 void quick_cmd_no_menu (void);
  80 void info_cmd_no_menu (void);
  81 void quick_view_cmd (void);
  82 void encoding_cmd (void);
  83 /* achown.c */
  84 void advanced_chown_cmd (WPanel *panel);
  85 /* chmod.c */
  86 void chmod_cmd (WPanel *panel);
  87 /* chown.c */
  88 void chown_cmd (WPanel *panel);
  89 #ifdef ENABLE_EXT2FS_ATTR
  90 /* chattr.c */
  91 void chattr_cmd (WPanel *panel);
  92 const char *chattr_get_as_str (unsigned long attr);
  93 #endif
  94 /* find.c */
  95 void find_cmd (WPanel *panel);
  96 
  97 /* --------------------------------------------------------------------------------------------- */
  98 /*** inline functions ****************************************************************************/
  99 /* --------------------------------------------------------------------------------------------- */
 100 
 101 /**
 102  * Copy, default to the other panel.
 103  */
 104 
 105 static inline void
 106 copy_cmd (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 107 {
 108     panel_operate (panel, OP_COPY, FALSE);
 109 }
 110 
 111 /* --------------------------------------------------------------------------------------------- */
 112 /**
 113  * Copy, default to the same panel, ignore marks.
 114  */
 115 
 116 static inline void
 117 copy_cmd_local (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 118 {
 119     panel_operate (panel, OP_COPY, TRUE);
 120 }
 121 
 122 /* --------------------------------------------------------------------------------------------- */
 123 /**
 124  * Move/rename, default to the other panel.
 125  */
 126 
 127 static inline void
 128 rename_cmd (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 129 {
 130     panel_operate (panel, OP_MOVE, FALSE);
 131 }
 132 
 133 /* --------------------------------------------------------------------------------------------- */
 134 /**
 135  * Move/rename, default to the same panel, ignore marks.
 136  */
 137 
 138 static inline void
 139 rename_cmd_local (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 140 {
 141     panel_operate (panel, OP_MOVE, TRUE);
 142 }
 143 
 144 /* --------------------------------------------------------------------------------------------- */
 145 /**
 146  *  Remove.
 147  */
 148 
 149 static inline void
 150 delete_cmd (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 151 {
 152     panel_operate (panel, OP_DELETE, FALSE);
 153 }
 154 
 155 /* --------------------------------------------------------------------------------------------- */
 156 /**
 157  *  Remove, ignore marks.
 158  */
 159 
 160 static inline void
 161 delete_cmd_local (WPanel *panel)
     /* [previous][next][first][last][top][bottom][index][help]  */
 162 {
 163     panel_operate (panel, OP_DELETE, TRUE);
 164 }
 165 
 166 /* --------------------------------------------------------------------------------------------- */
 167 
 168 #endif

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