1
1
mc/src/view.h

32 строки
1.0 KiB
C
Исходник Обычный вид История

1998-02-27 04:54:42 +00:00
#ifndef __VIEW_H
#define __VIEW_H
struct WView; /* opaque structure, can be cast to Widget */
typedef struct WView WView;
1998-02-27 04:54:42 +00:00
/* Creation/initialization of a new view widget */
WView *view_new (int y, int x, int cols, int lines, int is_panel);
int view_init (WView *view, const char *_command, const char *_file,
int start_line);
1998-02-27 04:54:42 +00:00
void view_update_bytes_per_line (WView *view);
1998-02-27 04:54:42 +00:00
/* Command: view a _file, if _command != NULL we use popen on _command */
/* move direction should be a pointer that will hold the direction in which */
/* the user wants to move (-1 previous file, 1 next file, 0 do nothing) */
int view (const char *_command, const char *_file, int *move_direction,
int start_line);
1998-02-27 04:54:42 +00:00
extern int mouse_move_pages_viewer;
extern int max_dirt_limit;
extern int global_wrap_mode;
1998-02-27 04:54:42 +00:00
extern int have_fast_cpu;
extern int default_hex_mode;
extern int default_magic_flag;
extern int default_nroff_flag;
extern int altered_hex_mode;
extern int altered_magic_flag;
extern int altered_nroff_flag;
#endif /* __VIEW_H */