4 typedef struct WView WView
; /* Can be cast to Widget */
6 /* Creates a new WView object with the given properties. Caveat: the
7 * origin is in y-x order, while the extent is in x-y order. */
8 extern WView
*view_new (int y
, int x
, int cols
, int lines
, int is_panel
);
10 /* If {command} is not NULL, loads the output of the shell command
11 * {command} and ignores {file}. If {command} is NULL, loads the
12 * {file}. If the {file} is also NULL, loads nothing. If {start_line}
13 * is positive, the output is shown starting in that line. */
14 extern int view_load (WView
*view
, const char *command
, const char *file
,
17 /* Shows {file} or the output of {command} in the internal viewer,
18 * starting in line {start_line}. {ret_move_direction} may be NULL or
19 * point to a variable that will receive the direction in which the user
20 * wants to move (-1 = previous file, 1 = next file, 0 = do nothing).
22 extern int mc_internal_viewer (const char *command
, const char *file
,
23 int *ret_move_direction
, int start_line
);
25 extern int mouse_move_pages_viewer
;
26 extern int max_dirt_limit
;
27 extern int global_wrap_mode
;
28 extern int default_hex_mode
;
29 extern int default_magic_flag
;
30 extern int default_nroff_flag
;
31 extern int altered_hex_mode
;
32 extern int altered_magic_flag
;
33 extern int altered_nroff_flag
;
34 extern int mcview_remember_file_position
;