Update base version to 4.6.1.
[midnight-commander.git] / src / view.h
blob7fe053d83ad0a498dc76f9fbc9092d6df352601d
1 #ifndef MC_VIEW_H
2 #define MC_VIEW_H
4 struct WView; /* opaque structure, can be cast to Widget */
5 typedef struct WView WView;
7 /* Creation/initialization of a new view widget */
8 WView *view_new (int y, int x, int cols, int lines, int is_panel);
9 int view_load (WView *view, const char *_command, const char *_file,
10 int start_line);
12 /* View a ''file'' or the output of a ''command'' in the internal viewer,
13 * starting in line ''start_line''. ''ret_move_direction'' may be NULL or
14 * point to a variable that will receive the direction in which the user
15 * wants to move (-1 = previous file, 1 = next file, 0 = do nothing).
17 int view (const char *command, const char *file, int *ret_move_direction,
18 int start_line);
20 extern int mouse_move_pages_viewer;
21 extern int max_dirt_limit;
22 extern int global_wrap_mode;
23 extern int have_fast_cpu;
24 extern int default_hex_mode;
25 extern int default_magic_flag;
26 extern int default_nroff_flag;
27 extern int altered_hex_mode;
28 extern int altered_magic_flag;
29 extern int altered_nroff_flag;
30 extern int mcview_remember_file_position;
32 #endif