1
1
Miguel de Icaza c9c591769e Gazillions of fixes today to the File Manager:
- Layout file is now installed and used properly.  That means
  that you can actually run the code.

- Buttons actually work in the GtkTed and the regular use
  thanks to GrossHack(tm).

- File operations are working!  Weee!  Copy and Move work as
  well as the warning dialog boxes for all kind of stuff;

- Progressive display is pretty cool, you have to see it.

- Dragging files to desktop icons now allows you to copy/move
  (supported both the remove and local cases, with the obvious
  optimizations).

Still missing:

   - Using Elliot's shaped windows for dnd.
   - Allowing the arbitrary placement of desktop icons by dnd.
   - dropping files into .desktop files.
   - drop support on the panels (right now they only work right
     as drag sources).

Weeeeeee!   Total excitement.  Total and absolute.

Miguel.
1998-03-04 06:28:35 +00:00

49 строки
1.3 KiB
C

#ifndef __FILE_H
#define __FILE_H
enum { OP_COPY, OP_MOVE, OP_DELETE };
enum { FILE_CONT, FILE_RETRY, FILE_SKIP, FILE_ABORT };
extern int verbose;
extern int know_not_what_am_i_doing;
int copy_file_file (char *s, char *d, int ask_overwrite);
int move_file_file (char *s, char *d);
int erase_dir (char *s);
int erase_dir_iff_empty (char *s);
int move_dir_dir (char *s, char *d);
void create_op_win (int op, int with_eta);
void destroy_op_win (void);
void refresh_op_win (void);
int panel_operate (void *source_panel, int op, char *thedefault);
void file_mask_defaults (void);
extern int dive_into_subdirs;
/* Error reporting routines */
/* Skip/Retry/Abort routine */
int do_file_error (char *error);
/* Report error with one file */
int file_error (char *format, char *file);
/* Report error with two files */
int files_error (char *format, char *file1, char *file2);
/* This one just displays buf */
int do_file_error (char *buf);
/* Query routines */
/* Replace existing file */
int query_replace (char *destname, struct stat *_s_stat, struct stat *_d_stat);
/* Query recursive delete */
int query_recursive (char *s);
/* Callback routine for background activity */
int background_attention (int fd, void *info);
extern int background_wait;
#endif