(query_dialog): add horizontal line.
[midnight-commander.git] / src / filemanager / filegui.h
blob9112e19cc63773c90cf70b571b3edb5606a59866
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 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 /*** global variables defined in .c file *********************************************************/
19 /*** declarations of public functions ************************************************************/
21 void file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
22 filegui_dialog_type_t dialog_type);
23 void file_op_context_create_ui_without_init (FileOpContext * ctx, gboolean with_eta,
24 filegui_dialog_type_t dialog_type);
25 void file_op_context_destroy_ui (FileOpContext * ctx);
27 char *file_mask_dialog (FileOpContext * ctx, FileOperation operation,
28 gboolean only_one,
29 const char *format, const void *text,
30 const char *def_text, gboolean * do_bg);
32 FileProgressStatus check_progress_buttons (FileOpContext * ctx);
34 void file_progress_show (FileOpContext * ctx, off_t done, off_t total,
35 const char *stalled_msg, gboolean force_update);
36 void file_progress_show_count (FileOpContext * ctx, size_t done, size_t total);
37 void file_progress_show_total (FileOpTotalContext * tctx, FileOpContext * ctx,
38 uintmax_t copied_bytes, gboolean show_summary);
39 void file_progress_show_source (FileOpContext * ctx, const vfs_path_t * s_vpath);
40 void file_progress_show_target (FileOpContext * ctx, const vfs_path_t * path);
41 void file_progress_show_deleting (FileOpContext * ctx, const char *path);
43 /*** inline functions ****************************************************************************/
44 #endif /* MC__FILEGUI_H */