Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
[midnight-commander.git] / src / filegui.h
blob29cb12fa942a4a51c5ad6e0b5418776fe4d48ce4
1 /** \file filegui.h
2 * \brief Header: file management GUI for the text mode edition
3 */
5 #ifndef MC__FILEGUI_H
6 #define MC__FILEGUI_H
8 #include "lib/global.h"
9 #include "fileopctx.h"
11 /*** typedefs(not structures) and defined constants **********************************************/
13 typedef enum
15 FILEGUI_DIALOG_ONE_ITEM,
16 FILEGUI_DIALOG_MULTI_ITEM,
17 FILEGUI_DIALOG_DELETE_ITEM
18 } filegui_dialog_type_t;
20 /*** enums ***************************************************************************************/
22 /*** structures declarations (and typedefs of structures)*****************************************/
24 /*** global variables defined in .c file *********************************************************/
26 /*** declarations of public functions ************************************************************/
28 void file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
29 filegui_dialog_type_t dialog_type);
30 void file_op_context_create_ui_without_init (FileOpContext * ctx, gboolean with_eta,
31 filegui_dialog_type_t dialog_type);
32 void file_op_context_destroy_ui (FileOpContext * ctx);
35 char *file_mask_dialog (FileOpContext * ctx, FileOperation operation,
36 gboolean only_one,
37 const char *format, const void *text,
38 const char *def_text, gboolean * do_background);
40 FileProgressStatus check_progress_buttons (FileOpContext * ctx);
42 void file_progress_show (FileOpContext * ctx, off_t done, off_t total,
43 const char *stalled_msg, gboolean force_update);
44 void file_progress_show_count (FileOpContext * ctx, off_t done, off_t total);
45 void file_progress_show_total (FileOpTotalContext * tctx, FileOpContext * ctx,
46 double copyed_bytes, gboolean need_show_total_summary);
47 void file_progress_show_source (FileOpContext * ctx, const char *path);
48 void file_progress_show_target (FileOpContext * ctx, const char *path);
49 void file_progress_show_deleting (FileOpContext * ctx, const char *path);
51 /*** inline functions ****************************************************************************/
52 #endif /* MC__FILEGUI_H */